Live data from Hacker News

Concepts to help developers master JavaScript

github.com

51–54 of 54 posts

Re: Concepts to help developers master JavaScript

#51

Earlier quoted context omitted.

Were there any tech reasons for switching from ruby to node?

Sadly, no.

Thanks, I was just wondering since I don't really see the point in rewriting between dynamic languages. Aside from a few things being easier in each (async being an example) they're basically the same to me.

Re: Concepts to help developers master JavaScript

#52
post #43
post #9

Earlier quoted context omitted.

Not GP but variable scope in JS is very different to e.g. C, C#, Java etc. Superficially it appears similar, but the syntax is a faux amis.

Is is very similar to Lisp, Clipper or Perl, also known in CS circles as dynamic scope variables.

I've never come across hoisting in another language (not that I've looked hard).

Re: Concepts to help developers master JavaScript

#53
post #14

Earlier quoted context omitted.

Some historical perspective: Some languages picked it up along the way. So in my case, I only first found out about closures in JS, after going through several popular languages, that got closures only later on: Pascal, C++, PHP...

Then again, Lisp, Smalltalk, Haskell, etc. predate JS, from a historical perspective.

Popular languages?

Re: Concepts to help developers master JavaScript

#54
post #43

Earlier quoted context omitted.

Is is very similar to Lisp, Clipper or Perl, also known in CS circles as dynamic scope variables.

I've never come across hoisting in another language (not that I've looked hard).

I gave you a couple examples, though.

And here is another one, upvar in Tcl.

Post reply on HN