Hacker Newsnew | past | comments | ask | show | jobs | submit | 2012-04-15login
Stories from April 15, 2012
Go back a day, month, or year. Go forward a day, month, or year.
1.Crockford on Bootstrap's semicolon omission: “insanely stupid code” (github.com/twitter)
279 points by sferik on April 15, 2012 | 192 comments
2.Farbrausch (demoscene group) releases their tools and engine (github.com/farbrausch)
270 points by ginsweater on April 15, 2012 | 66 comments
3.Brendan Eich: The infernal semicolon (brendaneich.com)
256 points by raganwald on April 15, 2012 | 133 comments
4.UK moves to restrict Internet freedom (aljazeera.com)
240 points by atlantic on April 15, 2012 | 61 comments
5.Ice (johncarlosbaez.wordpress.com)
232 points by robinhouston on April 15, 2012 | 12 comments
6.A great list of command-line tips (commandlinefu.com)
223 points by shocks on April 15, 2012 | 28 comments
7.No I won't sign your NDA, here's why. (jpl-consulting.com)
220 points by jplarson on April 15, 2012 | 93 comments
8.Unemployed game designer creates mind-blowing solar system explorer app (venturebeat.com)
181 points by dwynings on April 15, 2012 | 39 comments
9.Atari Sketches of Laptops and Wikipedia from 1982 (futureofthebook.org)
169 points by maxwell on April 15, 2012 | 51 comments
10.Kickstarter Is Totally Disrupting Consumer Electronics, Probably By Mistake (amandapeyton.com)
169 points by zachh on April 15, 2012 | 67 comments
11.Our take on Derby vs. Meteor (derbyjs.com)
164 points by pie on April 15, 2012 | 30 comments
12.Reed Hastings: Comcast no longer following net neutrality principles (facebook.com)
160 points by dwynings on April 15, 2012 | 59 comments

There's something horribly wrong with everything about this. Why is such a smart person as Crockford wasting his time arguing about semicolons in 2012? Why is this at the top of the most popular hacker website? Why are people writing detailed opinions about semicolons in this thread (with surely more to come?)

One would hope that at least over time the bike sheds being argued about would start to at least evolve into arguments about bike garages and eventually bike factories. But I guess the bike shed is forever a bike shed, as long as we're making bikes.

Whatever the next disruption is in software engineering, please dear God let it be immune-by-design to this type of distraction.


Heh, I was waiting for this post. Coming in the next 24 hours:

- "Why I use minimal semi-colons in Javascript"

- "ASI is broken but I like it"

Honestly I'm shocked at the defense of this practice (of ASI "abusage"). It speaks loudly to Jacob's (fat@githib) ranking of ego-stroking and showboating over creating readable code, particularly for a library "Designed for everyone, everywhere" [1].

I'm confounded that such an attitude can survive in a large engineering organization like Twitter. Google's style guide [2] specifically prohibits this ("Always use semicolons.") and yes, this is the same standard we use internally for writing Javascript.

Just because you can doesn't mean you should. FFS, just get over yourselves and your hipster bullshit and use semi-colons.

[1]: http://twitter.github.com/bootstrap/

[2]: http://google-styleguide.googlecode.com/svn/trunk/javascript...

15.Peter Thiel’s CS183: Startup - Class 4 Notes Essay (blakemasters.tumblr.com)
136 points by aaronbrethorst on April 15, 2012 | 15 comments
16.An Open Letter To Those Not Employed At Instagram (techcrunch.com)
126 points by psycho on April 15, 2012 | 68 comments

The key point:

  "ASI [“Automatic Semicolon Insertion”] is an error correction
  procedure. If you start to code as if it were a universal
  significant-newline rule, you will get into trouble."—Brendan Eich
18.Why Generation Y Is Causing The Great Migration Of The 21st Century (placeshakers.wordpress.com)
109 points by trevin on April 15, 2012 | 129 comments
19.Secret Computer Code Threatens Science (scientificamerican.com)
105 points by emcl on April 15, 2012 | 42 comments
20.Stop Looking For A Technical Co-founder (techcrunch.com)
91 points by ssclafani on April 15, 2012 | 42 comments
21.WebP - A new image format for the Web (by Google) (developers.google.com)
90 points by marcusEting on April 15, 2012 | 53 comments
22.1.5 million pages of ancient texts to be made accessible online (arstechnica.com)
87 points by iProject on April 15, 2012 | 10 comments
23.Tim Berners-Lee's original WWW proposal (1989) (cern.ch)
86 points by epenn on April 15, 2012 | 18 comments

Jacob ("fat") comes off looking far worse than Crockford, to my eyes (and that Kit character seems to be 7 years old). It's the arrogance and stupidity of youth facing the crotchety crankiness of experience. Crockford has earned the right to have a strong opinion here IMO.

But it's not just bike-shedding. It's more pernicious than that. It's actually something that looks like bike-shedding to uninformed observers, but something that strongly affects cross-version compatibility. Javascript does automatic semicolon insertion by taking advantage of potentially ambiguous constructs that happen to be resolved in one way right now. But they may be actually ambiguous in the future - in the case where a unary prefix operator becomes a binary operator. Language extension usually works this way: a previously unambiguously wrong statement is made valid; but JS semicolon insertion often turns "wrong" statements into "correct" statements, so it leaves less "entropy" to be taken advantage of when increasing the power of the syntax. I think there's a strong case for JS to not insert semicolons here, and I agree with Crockford's position on not handling it in JSMin. It's the right thing to do.


Couldn't upvote this more.

I am fed up with posts telling me email is broken and a new disruptive tech will be the cure. Email is an open protocol, decentralized, providing optional security.

Shortcomings—or rather call them additional requirements—can be solved with tools keeping email focussed on async text-based communication. Want to send large files? Dropbox. Want more automation? Improve the client side and/or write scripts. Want less spam? Don't distribute your address or sign-up everywhere.

If you don't like your inbox being a todo-list you should change something—maybe your job, profession or your work environment but it's definitely not email. I have got rarely todos in my inbox.

For me, email is—if you mind a set of rules—an efficient way of communication which is documented. You can easily and asynchronously discuss and agree on topics in a transparent manner with one or more participants, again: with an open and decentralized technology, no middleman anywhere. Sometimes obviously it's better to meet folks face to face.

Now tell me, which tool can do this? What do you want to improve?

This whole email is broken thing is just done for the sake of getting attention, making a lame conference presentation "disruptive" or getting some crappy todo app funded.

26.A Programming Language, now in HTML (50th anniversary) (jsoftware.com)
82 points by ranit8 on April 15, 2012 | 13 comments
27.Semicolon.js (github.com/madrobby)
76 points by MatthewPhillips on April 15, 2012 | 25 comments
28.Ask HN: How can Non-US founders open a bank account in the US?
75 points by sathishmanohar on April 15, 2012 | 64 comments

"Here is your new apartment. You must use a key to enter it. If you forget your key, you can buzz the superintendent during business hours, and if the super is home, (s)he will open the door for you.”

If you try to take your key with you at all times, the super will save your bacon once in a blue moon when you forget your key. On the other hand, if you think of the door as only needing a key when you wish to have it opened on nights and week-ends, you are on your way to trouble.

30.What's the row of numbers on the copyright page of books? (msdn.com)
64 points by raganwald on April 15, 2012 | 11 comments

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: