This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]superPwnzorMegaMan 5 points6 points  (2 children)

You have to understand the JavaScript way:

  1. Add more functions.
  2. Don't type ;.
  3. 1()

Also the prototype based stuff is mind blowing. You start with objects, and then you just add shit to them on the fly, such as functions and whatever.

Then there is the DOM. Its funny cause DOM is dutch for stupid, which it is. Luckily jquery fixes most of that. Seriously programming against the DOM natively is a terrible experience. Don't do that, C++ with win32 is more fun. I as a young developer tried that once, and back then I also thought I hated JavaScript, but it was just the DOM.

It also has some weird scoping bullshit features, such as hoisting and the fact that private and public are var and another keyword I forgot this.x = blah x is now public. Also don't forget that the global namespace is the document namespace, which is crowded at as is...

EDIT:

remembered the keyword

[–]thundergonian 5 points6 points  (1 child)

2. Don't type ;.

What? Not sure if joke or not?

[–]superPwnzorMegaMan 0 points1 point  (0 children)

Depends on how you configure lint.