Settings

Theme

Old man yells at JavaScript

blog.teknik.io

3 points by generaltso 12 years ago · 5 comments

Reader

TazeTSchnitzel 12 years ago

Well, at least some of this is fixed by "use strict", which will loudly error if you use a non-existent variable.

dennisnedry 12 years ago

This rant isn't very constructive. Yes, JavaScript has it's problems, but then again, so do many languages.

  • generaltsoOP 12 years ago

    I agree I just had to rage for a second. At some point, I'll have to learn to into TDD or just start using sanity checks liberally (because I've lost mine)

    Thank you for taking the time to read =)

    • dennisnedry 12 years ago

      I write a lot of JavaScript and one thing that helps me is using Firefox Developer Tools or the Chrome Developer Tools. Usually you will get a decent error message, although it's not perfect. Another thing to check out is a framework (like Backbone.js) - it'll make your life so much easier in the long run. Also, JavaScript kind of has it's own take on traditional design patterns, which I use frequently. Addy Osmani has a free book that has proven to be invaluable for me - http://addyosmani.com/resources/essentialjsdesignpatterns/bo...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection