55 karma · joined Dec 18, 2015 (10y ago) · 25 submissions
comment 2y ago · link · parent
The "maybe" style has the inconsistency embedded in the type system; it's impossible to have an invocation to getFriends and then not handle the resulting possibility of not being logged in.
Shifting it up to the caller just means that you're going to have to remember to ensure the user is logged in before calling getFriends otherwise you'll get some kind of error, which might give you more control, but now there's no guarantee in the type system that you've handled the case where the user isn't logged in.
Writing ifs everywhere to handle failure conditions might be a bit of a pain, but that's more of a failing of the language than the style.
comment 5y ago · link · parent
And yet has no undeprecated pipeline for submitting non-"essential bug fixes" to[1].
I really love the idea of having an engine that does just a little bit more for me up front, but not if it's all closed off; that's what I'm trying to get away from.
comment 8y ago · link · parent
There might be swaths of teams all focused on enriching the data, but you eventually can't derive more information out of a deliberately flat information graph, and all it takes is a few extreme data points to distort the average.
comment 9y ago · link · parent
In a way that's correct, because ultimately Perl6 is designed as the ultimate "kitchen sink" language; it has all the little features you could think of already baked in, which will include a lot of features you won't use.
The main reason for this stems from the overarching design philosophy; "There is more than one way to do something". The language ultimately tries to be as flexible as possible, going so far as to support modification the the core grammar, the object system, etc.
This is meant to make the developer as comfortable as possible, but it can lead the common case of perl-itis, also known as "write-once, read-nonce" code.
comment 9y ago · link · parent
The UX could probably do with some improvement showing that the image is not automatically saved to disk, like scrot or OSX's Image Capture shortcuts, though.
comment 9y ago · link · parent
Not that I doubt some people do voluntarily enjoy JavaScript, but because of the sheer volume of StackOverflow questions, blog posts, micro-techologies, and other assorted attention bestowed upon the language it can be easy to make the logical jump that JavaScript the language is far more popular (in the satisfaction sense) than is actually so.
comment 9y ago · link · parent
WebAssembly is the first steps to truly breaking that chokehold, and truly seeing how popular JavaScript the language really is.
comment 9y ago · link · parent
Their main objection to the pragma would seem to be the MONKEY-SEE-NO-EVAL name; if you don't understand the reference, say you're a non-native speaker, or just have no idea what it's referring to, all you'll see is "NO-EVAL", and then get confused why the code suddenly allows EVAL everywhere. Levity and fun is perfectly acceptable, but is it just as acceptable when the language is less obvious for it's extended developer community?
comment 10y ago · link · parent
What's the solution? Put less warnings? Then you'd get even more people destroying their data. Put more warnings? Then you'd get more people complaining that "Windows doesn't let you edit what you want!".
It doesn't really seem like they can win.
comment 10y ago · link · parent
~ some magical jump in logic ~
Talking about deportation
~ another magical jump in logic ~
Talking about ethnic cleansing
I don't really follow. Nowhere does he talk about "mass deportation" or "ethnic cleansing" or anything even closely related.
comment 10y ago · link · parent
Yes, most things "just work". But if something just doesn't quite work in the way you want it to, you often have to move heaven and earth to hack around the problem, maybe even "accepting" that there's nothing you can do, and constantly suffer that irritation every time you butt up against it.
Personally, I have always preferred having my environment "just-so". After suffering constant little niggles when I'm forced to use MacOS or Windows, it's wonderfully refreshing to come home to my configured linux system.
comment 10y ago · link · parent
Since most ISO boards only differ in keycap and not layout, it would theoretically be possible to create a massive number of configurations with just one layout, which would be amazing!
comment 10y ago · link · parent
The whole point is that every language has something that someone doesn't like about it and every language is "good enough" for some subset of people. Instead of attacking what points everyone does or does not like about X, it's instead better to learn from each other and take the best parts.