News for hackers. Stuff that matters.

isak2

Re:Coffee and Design for Failure on Friday April 22, 2011 @03:39PM (#2475181)
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).
Re:Sudoku Solving on Saturday March 26, 2011 @02:09AM (#2371489)
Re:Why Use Rubinius on Friday February 25, 2011 @10:13PM (#2264748)
This is more "Why use Ruby" than "Why use Rubinius."
Re:JSHint: An Community Driven Fork of JSLint on Friday February 18, 2011 @04:01PM (#2237247)
Yeah. I meant that the mistake is less likely to have been made in the first place.
Re:JSHint: An Community Driven Fork of JSLint on Friday February 18, 2011 @03:28PM (#2237106)
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.

Re:JavaScript simulation of an iPad on Monday January 03, 2011 @08:12PM (#2065403)
Cool. But why?
Re:Strange Loop 2010 Panel: The Future of Programming Languages on Wednesday November 24, 2010 @09:48PM (#1939193)
I liked it overall, but the moderator was really obnoxious. He kept interrupting the panelists to tell lame jokes...