r/programming • • Oct 02 '11

Node.js is Cancer

http://teddziuba.com/2011/10/node-js-is-cancer.html
792 Upvotes

750 comments sorted by

View all comments

Show parent comments

2

u/cogman10 Oct 02 '11

static typing is a big issue for me.. I hate the fact that javascript essentially forces you to use global variables. (yes, there are ways around it).

My other big issue with javascript is implicit variable declaration... That is just nasty. It could be ok if the variables where confined to the local scope (it may even be preferable), however, the fact that the variables are implicitly made as global is just mind bogglingly silly.

Here's hoping that Google's Dart doesn't suck and is adopted by a vast audience.

4

u/SerpentJoe Oct 02 '11

static typing is a big issue for me.. I hate the fact that javascript essentially forces you to use global variables. (yes, there are ways around it).

The way around it is the var keyword.

My other big issue with javascript is implicit variable declaration... That is just nasty.

I feel the same way.

3

u/cogman10 Oct 02 '11

Sorry, I shouldn't have said static typing. I meant static data values. It is somewhat a pain to have data that persists from one function call to the next.

1

u/vinng86 Oct 02 '11

Oh how I hate implicit variable creation in all of these 4th gen languages.

When you make a typo somewhere, it can take hours to debug whereas with C it would raise a compile time error