I know that when you write Ruby or Python, you use under_scored method names and CamelCase class names. But JavaScript isn't Ruby or Python. Consider: In browsers, all methods are camelCase. In node.js's standard library, all methods are camelCase. In commonjs, all methods are camelCa...

If you look on Cultured Code's Arrivals page, you'll see something like this: This is a very tempting thing for small companies to do. You want your customers to know that you're working on something they want. But ultimately, it's a bad idea. When Cloud Sync launches, I'll think, "Fi...

Master Rubyist Charles Nutter recently posted an entry titled The Rubyists are wrong . Wrong about the way rubies featured in our Ruby logos are cut. My father has worked in the jewelry business for over 30 years. As soon as I read Charles’ article, I wondered what Pop would think. So...

What if my GitHub repository is corrupted or deleted? Don’t Panic! Because of the distributed nature of git, everyone always has a local full copy of the repository, complete with history. Any of your repositories, assuming they have been kept up to date, can be uploaded to the GitHub...

Related:

→ Slightly Obtrusive JavaScript 31 May 2010 There are good things and bad things about "Unobtrustive JavaScript." One bad thing: it's hard to tell what JavaScript is touching an element. Idea: Only ever use classes and ids prefix with js- when touching the DOM with JavaScript. For exa...

→ try() 26 February 2008 This is something we’re using on GitHub that I really wish I started using sooner. For lack of a better name, it’s called try() . It works like this: def remove_email ( email ) emails . find_by_email ( email ) . try ( :destroy ) end Another example: file_type ...

If you're using Aquamacs, ⌘r should compile the current coffee-mode buffer and open the resulting JavaScript in a new buffer using js2-mode . You can customize the mode used to open JavaScript by overriding coffee-js-mode and you can override the key combo by adding this to the

If you look on Cultured Code's Arrivals page, you'll see something like this: This is a very tempting thing for small companies to do. You want your customers to know that you're working on something they want. But ultimately, it's a bad idea. When Cloud Sync launches, I'll think, "Fi...