18 1 / 2011
Think: An OOP's Approach to JavaScript
Sometimes it seems that there aren’t many hard-fast rules in programming. What works here, may not work there. What is best for this developer may not be best for another. One area where this is noticeably the case is the debate over coding standards and code-cleanliness. For me, this is always evolving as I discover new ways to make my code more maintainable, more readable, and just downright more beautiful. How well your code reads and looks is almost as important as how well it performs and is considered your first impression when another developer is tasked to maintain your code. Today, I will be suggesting a few techniques I use to write beautiful JavaScript code that is less prone to bugs and easier to maintain.