Preparing Yourself for Modern JavaScript Development
codethinked.com
Preparing Yourself for Modern JavaScript Development
1–10 of 75 posts
Re: Preparing Yourself for Modern JavaScript Development
#2i also highly recommend using popular frameworks and libraries, since lots of them use the tricks mentioned in your article.
Another thing that's worth noting is the JSON Object Notation: http://www.hunlock.com/blogs/Mastering_JSON_(_JavaScript_Obj...
very readable form of declaration.
Re: Preparing Yourself for Modern JavaScript Development
#3Thanks for the article though, if I ever need to write some JS this will help keep me a little more sane.
Re: Preparing Yourself for Modern JavaScript Development
#4(function(window, $, undefined){ //do some work }(window, jQuery));
If instead of immediately executing this function, we kept a reference to the function, then reference it, the function can be supplied with mocks for testing. Obviously there's an issue that you'd pollute the global namespace with this named function. So what's the best practice there?
Re: Preparing Yourself for Modern JavaScript Development
#5"JavaScript: The Good Parts" by Douglas Crockford "JavaScript Patterns" by Stoyan Stefanov
Re: Preparing Yourself for Modern JavaScript Development
#6Re: Preparing Yourself for Modern JavaScript Development
#7Re: Preparing Yourself for Modern JavaScript Development
#8This is a nice, gentle introduction, but if you're going to start using modules you might as well go slightly farther and use something like RequireJS ( http://requirejs.org/ ) or Browserify ( https://github.com/substack/node-browserify ).
Re: Preparing Yourself for Modern JavaScript Development
#9Here are a couple book recommendations for those of you looking to improve your JavaScript: "JavaScript: The Good Parts" by Douglas Crockford "JavaScript Patterns" by Stoyan Stefanov
Re: Preparing Yourself for Modern JavaScript Development
#10Here are a couple book recommendations for those of you looking to improve your JavaScript: "JavaScript: The Good Parts" by Douglas Crockford "JavaScript Patterns" by Stoyan Stefanov
I've been working on following the good parts for my latest project. I've started to cringe any time people talk about the prototype or using "this"
Get cozy with them -- they're useful.