32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions
comment 8y ago · link · parent
For example, if you know you're dealing with text, you can use snappy, if you know you're dealing with images, webp, videos x264 (or x265 if you only care about decode speed and encoded size), etc and then fall back to zstd only when you don't have a specific compressor for the chosen file type.
comment 8y ago · link · parent
You might be able to experience it yourself. Just move your eyes all the way (ALL the way) to the right or left and hold them there for a second, you might hear/feel a high-pitched sensation almost like a slight tickle right where your eardrum is.
comment 8y ago · link · parent
There's no reason for such an appalling level of emotional response on a forum such as this where intellectual discourse is king.
comment 8y ago · link · parent
No, I fixed it myself because despite what you might believe, the intent was never to mislead and I maintain that it didn't. :)
> Because they didn't fire on it? And had no intention of doing so. You make it sound like the actually intended to shoot it down.
They absolutely did intend to shoot it down when they thought that Arafat was on it. They didn't when they learned he wasn't. At any rate, you know that's not what I was comparing, this is just what you've chosen to interpret my superlative as being in reference to.
Did you even read the article, though? There was never a belief that he was alone on that jet. And there were many occasions where Israel signed off on assassination plots that would have lead to the death of even Israeli citizens just to kill Arafat. There were even plots to blow up a stadium then time car bombs to go off outside the stadium as the people were fleeing.
These weren't aborted or called off except by the reluctance of brave individuals in the Israeli defense ministry and air force that deliberately mislead their superiors and put off pulling the trigger or confirming the identification so as to avoid the civilian collateral damage.
comment 8y ago · link · parent
> Once Mossad recognized that was the case, the operation was called off; it's not like they fired and missed.
I said the title should be "aborted at last minute" not "failed" - how can that possibly be misconstrued as implying they still tried?
> It was NOT a jet, it was a DHC-5[0]... and the article says that right in the first sentence. Saying "passenger jet" invokes a far greater scope of potential tragedy.
The NYTimes notification on my phone says "commercial jet." And as far as greater scope of potential tragedy... instead of a civilian jet with Arafat and his cronies, it was instead a civilian jet with Arafat's brother and 30 wounded Palestinian children and flight staff. How on earth is that less of a potential tragedy!?
comment 8y ago · link · parent
This is also the same title that NYTimes uses to link to this article.
comment 8y ago · link · parent
In other words: different industries. Apples and oranges. Do you really think only programmers have creativity and innovation?
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
Aside: I detest Discourse. It is an abomination of good ideas mated to horrible UX by developers and designers too caught up in drinking their own koolaid to understand that most people do _not_ live in Discourse and expect the website to act the same way every other website does. Hijacking `ctrl+f` in a webpage should reserve a special spot in hell for the person that decided it was a good idea [0].
[0]: https://meta.discourse.org/t/options-to-disable-hijack-of-cm...
comment 8y ago · link · parent
C# has seen a similar push to implement pattern matching, down to the use of `_` as discard. The first iteration of this feature in C# 7 is feature light, but it's a good start, and they've promised more to come. The team behind C# has become really good at getting over NIH and embracing new technologies and techniques while somehow preserving backwards compatibility and ergonomics. Anders Hejlsberg doesn't kid around.
Here's an example cribbed from an official MSFT blog [0]:
public static int Count<T>(this IEnumerable<T> e)
{
switch (e)
{
case ICollection<T> c: return c.Count;
case IReadOnlyCollection<T> c: return c.Count;
// Matches concurrent collections
case IProducerConsumerCollection<T> pc: return pc.Count;
// Matches if e is not null
case IEnumerable<T> _: return e.Count();
// Default case is handled when e is null
default: return 0;
}
}
A lot of people have lamented this as the death of F#, but I think MSFT is making the right calls here.EDIT:
Little-known fact: C# actually does have discriminated unions, and has had for a long time (from the start?) in the form of the `Exception` base class. In fact, pattern matching in C# can be "pulled off" (read: hacked together as a proof-of-concept) without the changes from C# 7 by simply using the extended catch syntax:
class MyType1 : System.Exception
{ /* ... */ }
class MyType2 : System.Exception
{ /* ... */ }
void foo()
{
throw something ? new MyType1() : new MyType2();
}
void bar()
{
try
{
foo()
}
catch (MyType1 mtype)
{
//take type-specific action here
}
catch (MyType2 mtype)
{
//take type-specific action here
}
catch (Exception _)
{
//the _ was optional, but this is the `default` block
}
}
[0]: https://blogs.msdn.microsoft.com/seteplia/2017/10/16/dissect...comment 8y ago · link · parent
Here's what the app looks like: http://www.creativeapplications.net/wp-content/uploads/2009/...
Ever since I've ditched macOS I've been waiting to find a similarly designed app for Windows.
EDIT: Just tried Diskitude, but it's unfortunately nothing like DaisyDisk. It doesn't do the same drill-down DD does.
comment 8y ago · link · parent
I don't think even that is a good enough reason. They simply don't approach the problem the way someone using their app would. It's the developers' problem to turn a difficult design into code, but the real problem is that even when that is done perfectly, the UX still sucks.
Every time we redesigned a major UX component of the dashboard of our (desktop) app, we would grab a random secretary, HR person, accountant, or anyone else we could find and borrow an hour of their time and just watch them try to use it without any prior preconceptions that come as a result of designing/coding the interface yourself.
It's been 10 years since we used that trick and I've moved on from that company, but I still think it's the best approach I've ever come across short of outsourcing some sort of panel testing.
comment 8y ago · link · parent
https://www.huffingtonpost.com/entry/what-goes-through-every...
comment 8y ago · link · parent
This is from experience teaching people to "think outside the box" to write better code, to create/describe better models of the real world, etc. starting with people that you would swear didn't have a creative bone in their body and watching them improve dramatically.
\* (I know I kind of did argue that, but since you're asking outright, this is what I actually believe.)