Live data from Hacker News

Viewing profile — jaysoo

jaysoo

HN member
Joined
Tue, Dec 08, 2009, 2:44 AM UTC
HN karma
29
Public activity
17 items

About jaysoo

http://jaysoo.ca

[ my public key: https://keybase.io/jaysoo; my proof: https://keybase.io/jaysoo/sigs/yTy-9ISNw5x5E9888xpIL14Nb1ZPkQE5-gF8cEN1jjw ]

Recent public activity

  1. story
  2. story
  3. story
  4. comment
    Comment #7137107

    Updated the post with timing numbers. I want to note that the numbers can be deceiving though because they use different mechanisms to record elapsed time. When I ran the same task…

  5. story
  6. story
  7. comment
    Comment #4534661

    Yeah I know. It was just a quick example. It's useful for something like: f = (options) -> options.foo or= 'bar' # ...

  8. comment
    Comment #4534025

    I myself enjoy using CoffeeScript, but I understand it might not be for everyone. It's always good to look at the pro/cons before choosing a language, so I think discussions like t…

  9. comment
    Comment #3592567

    Is it really that strange? Those statements are basically (as per ECMA-262 11.9.3): 0 === Number('0') 0 === Number('') '0' === ''

  10. comment
    Comment #2158295

    If this was socialism then either the government or the public would own Bell/Rogers/Telus. This is also not free-market capitalism. I'm not sure what you would call it.

  11. comment
    Comment #2158279

    The big deal here is that instead of offering competitive plans the big ISPs are _decreasing_ the level of service and _increasing_ the prices of plans. Also, Bell/Rogers/Telus hav…

  12. comment
    Comment #2125558

    Not exactly the same signature, but can handle arbitrary number of calls. var say = (function() { var savedArgs = []; return (function recurse () { if (arguments.length) { for (var…

  13. comment
    Comment #2108558

    The goal could be CSRF instead of actually reading the cookies. If there's a SessionID cookie for example, you can use JS to GET/POST the request to the server without needing to k…

  14. comment
    Comment #1438836

    No problem. It's one of those things developers don't realize when coming from C-style languages. :)

  15. comment
    Comment #1436947

    Blocks in JavaScript do not create scopes. This is different from many other languages (like Java or C). In fact, Crockford has mentioned this as well: http://javascript.crockford.…

  16. comment
    Comment #1436348

    In the case of closure, yes you will take a small performance hit. But the example given is still invalid because the only scope present is the function-scope (for-loop doesn't cre…

  17. comment
    Comment #1436191

    > #13 In any code block, store local references to out-of-scope variables. That doesn't even make sense. The for-loop block doesn't create a new scope, so it's perfectly valid to r…