git

You Too Can Suck at Github with Chris Coyier!

by Joey deVilla on August 30, 2011

Chris coyier

HTML5/CSS guru, prolific webcaster and blogger, banjo player and all-round International Man of Mystery Chris Coyier is one of my fellow BarCamp Tour members and a friend of Shopify. He joined our friends at Wufoo, makers of web forms par excellence, who have since been acquired by SurveyMonkey.

If you get the chance to catch Chris at one of the upcoming BarCamps on the BarCamp Tour, do it! He’s a great presenter with lots of teach and an entertaining style in which to teach it. You can get a taste of a Chris Coyier presentation at CSS Tricks, where his 101st screencast, Let’s Suck at Github Together, walks you through Github with very little pain.

This article also appears in the Shopify Technology Blog.

{ 0 comments }

How We Use Git at Shopify

by Joey deVilla on August 24, 2011

Trunk and branches
Creative Commons photo by Paul Hart.

Over at the Shopify Technology Blog, John Duff explains the Git workflow we use at Shopify. Whether you’re a Git user wondering about how other people use it or looking to migrate from your oldie-von-moldie version control system that’s not expected to catch up to Git for years, you’ll find John’s writeup useful.

{ 1 comment }

Salmagundi for Monday, August 22, 2011

by Joey deVilla on August 22, 2011

Welcome to another Salmagundi — a selection of some interesting techie stuff on the web!

In his article Your Code is My Hell, all-round Ruby/Rails guru Avdi Grimm warns Ruby and Rails developers about a creeping exceptionalism that has been rearing its ugly head as of late. Many Ruby/Rails developers seem to be under the impression that simply because Ruby and Rails do a lot to make programming easier, they can simply ignore things like good coding, good object design, design patterns and the SOLID principles and all those other practices and disciplines that good coders follow and exercise. Ruby’s a great programming language and Rails is a great web development framework (and I’m quite glad to return to them), but they’re not a free pass to code carelessly!

Nick Quaranto from Thoughtbot explains why he loves CoffeeScript, by way of the movie 300, in CoffeeScript: Spartan JavaScript. “Writing JavaScript properly, and in an OO manner, requires you to be verbose,” writes Quaranto. “What I like best is that CoffeeScript is simply…spartan.” He covers the good as well as the bad (but it’s mostly good). If you’d like to try it out, visit the CoffeeScript site to get started.

Here’s another one from Avdi Grimm (he’s got lots of good suggestions — you should check his blog regularly if you’re a Ruby/Rails developer): The Procedure/Function Block Convention in Ruby. He’s got a clever idea for when to use “curly bracket” blocks (he suggests to use the for functional blocks) and when to use “do…end” blocks (he says to use them for procedural ones.

And finally, if you use Git, you’ll want to read Benjamin Sandofsky’s article, Understanding the Git Workflow. “If you’re fighting Git’s defaults,” he writes, “ask yourself why.” He suggests that your workflow should be:

  1. Create a private branch off a public branch.
  2. Regularly commit your work to this private branch.
  3. Once your code is perfect, clean up its history.
  4. Merge the cleaned-up branch back into the public branch.

This article also appears in the Shopify Technology Blog.

{ 0 comments }