I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
I don't really like js so far, but there are just no alternatives in some cases. And my code ends up like those counter examples. Where can learn how to organize it properly?
[2] http://blog.jcoglan.com/2010/02/21/events-theyre-not-just-fo...
There are other alternatives as well[1], such as:
- LLVM languages: http://syntensity.blogspot.com/2011/04/emscripten-10.html
- HotRuby: http://hotruby.yukoba.jp/
- Smalltalk: http://clamato.net/
- Haxe: http://haxe.org/
- Mascara: http://www.mascaraengine.com/
And so on. Coffeescript is just closer to javascript than most alternatives. But it is a different language, and a nicer one in my humble opinion.
[1] https://github.com/jashkenas/coffee-script/wiki/List-of-lang...
Just like anything else, it will take time and active effort. Till then, I suggest work with frameworks which help you structure your code. I use backbone.js and I have heard good things about YUI.
Like everything else: throw a lot of time at it, and have a desire to make awesome things. Other than explicit feedback on written code, there is no one thing I could tell you to help you write better JavaScript for web browsers.