WatchMeCode

screencasts by derick bailey

be the first to know about new episodes

Episode 11: JavaScript Idioms For C# Developers

There are many common mistakes that are made when changing from a language like C# in to JavaScript - mistakes that everyone makes during this transition, including me. From code that avoids prototypal inheritance while constructing new objects, to global variable and function leaks, these mistakes are easy to make because JavaScript lets you make them and still runs your application's code. But there are hidden troubles, small bits of danger in what looks like innocent code, and unnecessary complications in code that can be greatly simplified.

This episode will show you how to correct many of those mistakes by writing idiomatic JavaScript and using common JavaScript patterns. You'll learn about some of the differences between C# and JavaScript, and see how to correct the code that comes from a statically typed mindset, in a dynamic language environment.

Not a C# developer? No problem! The principles and patterns applied in this episode are equally as valuable and understandable to Java, Ruby, C++, JavaScript and other developers that want to see some real-world examples of putting common JavaScript patterns in place.

Watch The Preview For "JavaScript Idioms For C# Developers."

What you'll learn:

  • Cleaning up global vars
  • The namespace pattern
  • The revealing module pattern
  • Objects and protoypes
  • Object literals
  • API as a "protocol"
  • Tell, don't ask
  • Unobtrusive JavaScript
  • Eval is evil
  • ... and more!

What you'll get:

  • 33 minutes of video
  • Download, to take it with you
  • 720p HD video
  • Multiple formats (.mov, .mp4)

Quotes and reactions from viewers

Like what you see? Let me know! - @derickbailey

blog comments powered by Disqus
Published: 2012-10-15. Running Time: 33 minutes.