Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jaysoo
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Typed React and Redux
(jaysoo.ca)
13 points
by
jaysoo
11y ago
|
0 comments
2.
▲
When Learning, Attitude and Approach Matter
(jaysoo.ca)
1 points
by
jaysoo
11y ago
|
0 comments
3.
▲
Why You Should Care About Flux
(jaysoo.ca)
1 points
by
jaysoo
11y ago
|
0 comments
4.
▲
by
jaysoo
13y ago
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 though Unix `time` I got numbers that were much closer, alt
5.
▲
Grunt vs Gulp – Beyond the Numbers
(jaysoo.ca)
2 points
by
jaysoo
13y ago
|
2 comments
6.
▲
Creating Semantic, Reusable Directives in AngularJS
(jaysoo.ca)
1 points
by
jaysoo
13y ago
|
0 comments
7.
▲
by
jaysoo
14y ago
Yeah I know. It was just a quick example. It's useful for something like: f = (options) -> options.foo or= 'bar' # ...
8.
▲
by
jaysoo
14y ago
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 this is good. That being said, some of the problems this arti
9.
▲
by
jaysoo
15y ago
Is it really that strange? Those statements are basically (as per ECMA-262 11.9.3): 0 === Number('0') 0 === Number('') '0' === ''
10.
▲
by
jaysoo
16y ago
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.
▲
by
jaysoo
16y ago
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 have the advantage of offering bundles if you use them for cabl
12.
▲
by
jaysoo
16y ago
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 i=0, arg; arg=arguments[i]
13.
▲
by
jaysoo
16y ago
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 know the value of SessioID because the browser will send it a
14.
▲
by
jaysoo
16y ago
No problem. It's one of those things developers don't realize when coming from C-style languages. :)
15.
▲
by
jaysoo
16y ago
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.com/code.html "JavaScript does not have block scope, so de
16.
▲
by
jaysoo
16y ago
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 create new scope). For example, if you ran the code below in Fi
17.
▲
by
jaysoo
16y ago
> #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 refer to the variable `a`. Plus, even if you create a new