Programming ain’t easy. What’s harder is to convey concepts into printed words. Books can sometimes lag behind the latest-and-greatest moments in a given technology, overlooking the heart of decisions and choices behind the code.
I’m usually searching for open source development tools and developer meetups, so I was lucky that I discovered a early release online version via O’Reilly – special thanks to Revolunet, a French web developer that has collected a great reading library for web developers.
Where It All Started From
Learn How to Serve “The Other White Meat” of Programming
The handiness of the acronyms – like, DRY, which means Don’t Repeat Yourself – helps to refine functions for developers. They can also lend ideas for how to approach elements in a project that have to be coded. Take this example for DOT – Do One Thing:
Each function should do only one thing, and do that one thing as well as it can. Following this principle will make your function more reusable, more readable, and easier to debug.
Steps associated with advanced material get covered pretty well, such as Callbacks, “functions that you pass as arguments to be invoked when the callee has finished its job.”
In the above code, the clicked() callback gets passed into into jQuery’s .on() method. When $button receives a click event, it invokes clicked() which runs the ok() assertion and then start(), which tells QUnit that it’s finished waiting for asynchronous operations, so it can continue to run tests.
This material may be a bit much for those who don’t program, but I didn’t find it incredibly overwhelming to managers who have heard of programming languages but have never used an editor. For those who fear code, fear not. Elliot offers some great suggestions on starter material, as well as additional links for new libraries.