972 karma · joined Nov 14, 2012 (14y ago) · 517 submissions
comment 13y ago · link · parent
I don't see any joke. Jokes are of the type "Knock knock, who's there", etc. Using GoF patterns in a language without interfaces or type hinting? Not so much.
Most of the design patterns can be applied in any language, some languages even have inherent support for some of them. Not much to do with types or interfaces (besides them offering extra checks).
Facade, Decorator, Flyweight, Iterator, Proxy, etc... Equally at home in Java, C++, Smalltalk, Python or Ruby...
>On a recent article, another "Ruby expert" (who writes and sells programming books) was shocked by the fact that you can reuse code with inheritance. You should read it.
I guess you are referring to this:
comment 13y ago · link · parent
Yes, no magic unicorns and fairies spreading pixie dust to wake you up at just the right moment, I'm afraid.
The indecipherable to you message of the story is: don't go back to sleep if you happen to wake up shortly before the alarm clock. Just wake up.
Now, if you woke yourself up at 3:00, as you ask in your previous comment, that doesn't fall on the "shortly" period before a 6:30 way, so by all means go back to sleep. I mean, Oh, those hard decisions...
>But it's not just this one thing. I see so many people intent on sharing their personal revelations that it's now impossible to find genuine insights that are more widely applicable than that one person's experience. This is the age of crowd-sourced "wisdom", where everyone thinks their own discoveries will apply universally. Anecdote over data, experience over research.
I think that what you write above ONLY APPLIES TO YOU. Perhaps you should do some more research into the matter, instead of shoving your personal anecdotes on to us.
comment 13y ago · link · parent
Most of the times the guys that can come with "brilliant solutions" on new problems are those that know the solved problems inside and out.
The other guys just keep reinventing the wheel (only worse).
comment 13y ago · link · parent
Then you are not good enough for them. They want someone that breaths and knows these things inside out and backwards.
Any half-competent dabbler can look them up and implement them. Creating novel solutions takes more deep understanding of them than that.
comment 13y ago · link · parent
Then go back to sleep, dummy. Does he have to spell it out for you?
>Where is the wisdom that solves all my problems, enabling me not to have to make any decisions?
That's called being dead. Until then try to take advice for what it is: a recipe that you can try and adjust to taste.
comment 13y ago · link · parent
comment 13y ago · link · parent
Well known facts should need no citation upon an audience of educated adults.
Still, here's a secondary corroboration for you: http://online.wsj.com/article/SB1000142405297020474090457719...
comment 13y ago · link · parent
I find responsive design a cheap copout, jack of all screen resolutions, master of none.
Just create a good desktop design, and make sure it plays on a modern smartphone with tap-to-zoom. Tablets will work automatically.
I dont'see "more diversity of screen sizes" coming affecting this at all. New screen sizes will just be bigger than an 2010 iPhone/Android phone. Those can play well with desktop-sized designs anyway.
And even if you have a 30" monitor you still don't need more than 1000-1200 pixels of webpage estate anyway. For one, people can't read or follow freakishly long lines of text easily.
comment 13y ago · link · parent
It's not a manipulation or a trick.
It's a "reward system". You get X only if you do Y. Period.
It has worked wonders for ages. Still does in most parts of the world. The US has a messed up system that ends with annoying, over-self-indulged, entitled children and adults.
comment 13y ago · link · parent
So your point is even more irrelevant to the original discussion.
comment 13y ago · link · parent
Actually it's very much a law. And it's how the law works in the real world. It might not be "justice", but it's law alright.
From the kid who the local cop knows his family and lets him walk on something that would land someone else in juvenile prison to the rich guy literally getting away with murder. And there are stuff that cops selectively enforce everyday, e.g ignoring someone selling dope small-time, because he snitches bigger fishes for them.
A law can still be effective, if the selective enforcement prevents the majority of the people of breaking it.
comment 13y ago · link · parent
While I am pro Aaron and anti-MIT this is argument is weak sause.
So what? I also know what I could do to secure my house more robustly (put an electric fence, more cameras, a steel door with secure locks etc), and I don't do it. Does that give you the right to enter into it against my will, much less to a robbery?
>This debate has gone on long enough; most of HN disagrees with your position. Let it drop.
And most of US citizens disagree with you (maybe), and say that abortions should remain illegal. Should you just let it drop? One should not abandon his views because of what a majority (or minority) says. And neither is what the majority agrees with always right.
comment 13y ago · link · parent
What can't you do in ML that you could in OS X 10.1?
If and only if the app signing and approval by Apple gets mandatory to run apps, a la iOS, then you'll have a point.
As for now, all the new signing etc are additions on top of the regular infrastructure, and the reason they were added was security.
Most security nerds find app signing and sandboxing a good idea.
comment 13y ago · link · parent
All those points are moot. It's like pointing C's many flaws (or PHP's myriads). Or Ruby's. Or Javas. All languages have several syntactic or semantic issues.
It didn't "took the industry a decade to learn Javascript". It took the industry a decade to have:
1) Mostly compatible implementation of JS and the DOM. 2) Powerful enough computers and JS VM so it can be used for fancy stuff. 3) A reason to use it (AJAX and involved web apps).
Nothing of which has anything to do with Javascript's "difficulty" or "quirkiness" as a language.
comment 13y ago · link · parent
It was designed to be easy to use with callbacks for website UI style events (which is not quite the same as async programming).
The Node async is just a half-thought implementation of async on top of a VM that doesn't really support it. The thing it has going for it is traction (and some people new to async are amused by the callback style and find it "challenging", whatever).
Scala/Dart/Go/Rust/Haskell/etc have a better async story.
ES6 will add some promising stuff in the future (no pun intended).
comment 13y ago · link · parent
Most Android devices are sold free with contract or with low tier phones to people who don't care much about smartphones. As for Android tablets, they don't sell that well, period. That's the huge majority of Android users. A minor one is geeks like us, open source fans, etc, that prefer it to iOS. (And that still leaves tons of geeks preferring iOS).
If you need any proof that the majority of Android users are not that technical, just check these "relative number of active devices": http://developer.android.com/about/dashboards/index.html
Half a year later, only 10 percent have the latest release. And over 50% are two releases behind.
Neither the majority not the minority of Android users are much likely to buy a programmers' editor for their Android phone or tablet.