February 2012
Can you write a better Javascript function than this?
Yesterday, I decided to write a bit of JavaScript code to evaluate classes. The first version of my code looked like this. function hasClass(el, className) { var r; r = new RegExp('(^| )' + className + '( |$)'); return r.test(el.className); } function addClass(el, className) { if (hasClass(el, className)) { return false; } el.className += ' […]
Five ways to handle Technical Debt
Despite best efforts, development teams always leave a trace of hacky approaches in their code. All of these inefficiencies in the code are called tech debt. Just like a financial debt, it incurs interest. Our accrued interest would be: bugs that require extra effort and introduces more development delays, as well as complicating future updates […]
Four Developer Tips for Winning Hackathons
Recently, we participated in a 24-hour hackathon and created 2012 Matters, a Facebook app that encourages you to share what matters most in the 2012 election. People are quick to talk about the advantages of building a product quickly, but there’s much less talk about what it takes for a team to build a successful demo in a very short time. Here are four things that successful teams do to create working software in 24 hours.



