Comments for stephenwoods.net http://stephenwoods.net !important Wed, 03 Aug 2011 16:09:43 +0000 hourly 1 http://wordpress.org/?v=3.2.1 Comment on Less bullshit, more hacking by morgan crafthttp://stephenwoods.net/2011/07/20/less-bullshit-more-hacking/comment-page-1/#comment-56 morgan craft Wed, 03 Aug 2011 16:09:43 +0000 http://stephenwoods.net/?p=182#comment-56 amen brother! Exactly my thoughts, less bullshit more productivity. amen brother! Exactly my thoughts, less bullshit more productivity.

]]>
Comment on Flash? We don’t need no flash! I don’t have to show you any stinkin’ flash! by Peterhttp://stephenwoods.net/2010/10/26/flash-we-dont-need-no-flash-i-dont-have-to-show-you-any-stinkin-flash/comment-page-1/#comment-50 Peter Thu, 28 Oct 2010 05:10:02 +0000 http://stephenwoods.net/?p=180#comment-50 Very nice :) Very nice :)

]]>
Comment on New Job by vijayhttp://stephenwoods.net/2010/04/16/new-job/comment-page-1/#comment-48 vijay Sat, 18 Sep 2010 20:19:12 +0000 http://stephenwoods.net/2010/04/16/new-job/#comment-48 Ah, crap. Who's going to tell me what they're saying on devel-random? Ah, crap. Who’s going to tell me what they’re saying on devel-random?

]]>
Comment on Learning Python by kellanhttp://stephenwoods.net/2010/02/21/learning-python/comment-page-1/#comment-45 kellan Wed, 12 May 2010 01:54:54 +0000 http://stephenwoods.net/?p=133#comment-45 <pre class="brush: javascript"> object Coin { val rand = new scala.util.Random() def toss() = { rand.nextBoolean() } }var heads = 0 var tails = 0 val range = 0.until(1000000) for (i <- range) { if (Coin.toss()) { heads += 1 } else { tails += 1 } }println("Heads: " + heads + " Tails: " + tails) </pre> object Coin { val rand = new scala.util.Random() def toss() = { rand.nextBoolean() } } var heads = 0 var tails = 0 val range = 0.until(1000000) for (i <- range) { if (Coin.toss()) { heads += 1 } else { tails += 1 } } println("Heads: " + heads + " Tails: " + tails) ]]> Comment on New Job by stacyhttp://stephenwoods.net/2010/04/16/new-job/comment-page-1/#comment-44 stacy Sun, 18 Apr 2010 01:32:22 +0000 http://stephenwoods.net/2010/04/16/new-job/#comment-44 Oh, wait. Flickr. Nevermind. All is right with the world. Oh, wait. Flickr. Nevermind. All is right with the world.

]]>
Comment on New Job by stacyhttp://stephenwoods.net/2010/04/16/new-job/comment-page-1/#comment-43 stacy Sun, 18 Apr 2010 01:31:47 +0000 http://stephenwoods.net/2010/04/16/new-job/#comment-43 Ah, crap. Who's going to tell me what they're saying on devel-random? Ah, crap. Who’s going to tell me what they’re saying on devel-random?

]]>
Comment on Learning Python by Stephenhttp://stephenwoods.net/2010/02/21/learning-python/comment-page-1/#comment-37 Stephen Sun, 21 Feb 2010 08:40:31 +0000 http://stephenwoods.net/?p=133#comment-37 You and I think alike without sleep. ;P You and I think alike without sleep. ;P

]]>
Comment on Learning Python by Luke Smithhttp://stephenwoods.net/2010/02/21/learning-python/comment-page-1/#comment-36 Luke Smith Sun, 21 Feb 2010 07:48:10 +0000 http://stephenwoods.net/?p=133#comment-36 Well, technically, done once after the loop shouldn't change the results much. For some reason (read: lack of sleep) I thought it was in the loop :) Well, technically, done once after the loop shouldn’t change the results much. For some reason (read: lack of sleep) I thought it was in the loop :)

]]>
Comment on Learning Python by Luke Smithhttp://stephenwoods.net/2010/02/21/learning-python/comment-page-1/#comment-35 Luke Smith Sun, 21 Feb 2010 07:45:32 +0000 http://stephenwoods.net/?p=133#comment-35 Did you try the js/node version without JSON.stringify? It's a far more complicated operation than just printing output. Did you try the js/node version without JSON.stringify? It’s a far more complicated operation than just printing output.

]]>
Comment on Back to the Future, Explained by Isaac Z. Schlueterhttp://stephenwoods.net/2009/08/06/back-to-the-future-explained/comment-page-1/#comment-23 Isaac Z. Schlueter Mon, 24 Aug 2009 19:04:21 +0000 http://stephenwoods.net/?p=99#comment-23 You can do it with less code:<code>var dadWriter = false;var marty = { isDadWriter : (function () { var dad = dadWriter; return function () { return dadWriter; }; })() };print(marty.isDadWriter()); //false dadWriter = true; print(marty.isDadWriter()); //false</code> You can do it with less code:

var dadWriter = false;

var marty = {
isDadWriter : (function () {
var dad = dadWriter;
return function () {
return dadWriter;
};
})()
};

print(marty.isDadWriter()); //false
dadWriter = true;
print(marty.isDadWriter()); //false

]]>