Better HN
topnewbestaskshowjobs
Log inSign up

isak2

-1 karma · joined Nov 25, 2010 (16y ago) · 7 submissions

Submissions

comment 15y ago · link · parent

For all John Doe knew, those events (road closed, rain + strong wind) were unlikely to happen, so planning for them would not have been rational. He did bring an umbrella when he saw a cloudy sky, which demonstrates good planning (even though it didn't work out in this particular case).

comment 15y ago · link · parent

I wrote one in C# a while ago:

http://isaksky.wordpress.com/2010/10/30/objected-oriented-so...

comment 15y ago · link · parent

This is more "Why use Ruby" than "Why use Rubinius."

comment 15y ago · link · parent

Yeah. I meant that the mistake is less likely to have been made in the first place.

comment 15y ago · link · parent

I think Crockford is right about that error.

Declaration of variables in the loop could lead to this type of error:

http://cam.ly/blog/2011/01/javascript-interview-question/

(All of the 4 <li> will do alert('4') when clicked, when the programmer expects alert('1'), alert('2'), etc.)

If the variable had been declared at the top, that error probably would not happen.

comment 15y ago · link · parent

Cool. But why?

comment 16y ago · link · parent

I liked it overall, but the moderator was really obnoxious. He kept interrupting the panelists to tell lame jokes...