Archive for the ‘Coding’ Category

Why we use Git and how to set up your own Git Server

Monday, February 23rd, 2009

I just spent the weekend moving all our svn repos to git. Yes. All of them. There have been plenty of great articles written about why git rocks, but for us it comes down to branches. The ability to painlessly create a branch for a new feature and then merge it easily later is crucial work doing new development on large production systems.

We started off by moving a couple of our open source projects over to github.com. I’ve gotta say, Github is really impressive. Great UI, generous free git hosting, nice pretty graphs… So if we love github so much, why is this an article about setting up your own git server? Because we’re a small company, with lots of projects in our portfolio. The repo to cost ratio on github made it impractical for us to move all our svn repos (which we hosted on our own server) over to github.

I had tried previously to set up my own git server (before finding github), and had gotten bogged down, and after a few hours of poking around the internet decided it wasn’t worth the effort. Then recently a friend of mine showed me me gitosis. Gitosis makes setting up your own git server trivial. Literally 15 minutes later I was up and running with my first git repo on my server. I won’t go into all the details on how to set up gitosos because you can read about it on Garry Dolley’s blog. It took a few more hours to migrate over all our svn repos, but we’re now swimming in the joy that is 100% git usage.

haml: a better way to look at rails and css

Monday, February 16th, 2009

We’re always looking for ways to produce cleaner, smaller and faster code. Haml is a rails plugin that brings a couple of things with it. The first being HAML and the second, SASS. Both are ways of condensing and streamlining coding for Ruby on Rails and CSS. You’ll find plenty of people who don’t like HAML.

Being a development/design shop, quality control is very important to us. Anything that cuts down the amount of typing and syntaxing is going to benefit our clients and us. The less typing we (26AM, twentysixam) has to do, the less room for error. This also means faster troubleshooting and updates for our clients. SASS creates the possibility for variables within CSS. Why update a color attribution in 10 places when you could update it in one. Why type a definition 4 times when you could do it once?

The beauty behind HAML is that it is an indent based coding style. An indent means a new definition. It’s that simple. It’s been a couple weeks and we’re fans. Some people may think we’re lazy, on the contrary, we’re fast. We want to put out projects faster and more accurately. Because of this fact, we’ve started using HAML.

Page 2 of 2«12