0

Getting Git

Posted by admin on Jan 25, 2010 in system admin, version control

I recently converted all of my professional projects over to github and switched my dev workflow to use git.

Oh, what a difference a tool makes.

First off, git just works.  It’s awesome to be able to switch branches *super* easily… and even create a branch after you’ve begun work on it.  Realizing that you’ve started a new feature and need it to be in it’s own “silo” is great.   What you want is for it not to be a pain to merge it back together.   Honestly, I wish we had this at my old job where having multiple levels and several branches would have been highly beneficial.

Secondly, it is a bit of an adjustment to get your mind around a distributed vcs, but it is very powerful once you’re there.  Realizing that a commit is really just versioning off what you have into your local repository and then pushing is really sharing that with some remote repo can be tricky at first.   Once you realize how easy it would be to share and simultaneously work on projects as a result, it is pretty incredible.

To give you an idea, I want to show you a typical svn workflow and the corresponding git workflow.

1
2
3
4
5
6
$ svn co http://svnhub.com/project/trunk
... do some work ...
$ svn up
... resolve some conflicts ..
$ svn status
$ svn commit

Easy, right? Yes, it requires very little… but what if you have no network connection? What if you want to quickly switch a branch? Nonetheless… lets look at the same kind of thing in git

1
2
3
4
5
6
7
$ git clone git@github.com:/username/repo
... do some work ...
$ git add <changed files>
$ git commit -a -m "commit message"
$ git pull origin
... resolve conflicts if any ...
$ git push origin master

So if you’re transitioning off of SVN and you want to move to git, that is probably a workflow you will probably become very familiar with–but the power behind it is amazing. I highly encourage you to watch Scot Chacon’s ‘Getting Git’ talk–it will change the way you think about version control!

 
0

Why programmers should play Go

Posted by admin on Jan 7, 2010 in Uncategorized

Shapes in Go aren’t unlike software design patterns. While there is nothing preventing you from placing logic in your views, this shape is recognized to be a weak one. Think of Gang-of-Four design patterns: the MVC, Adapter, and Factory patterns are recognized to be helpful in some circumstances (and not appropriate in others). On a lower level, iteration and recursion have commonly recognized shapes, as do database normalization vs. denormalization. Even if you can’t hold an entire program or algorithm in your head at once, recognizing common shapes helps you to understand what is going on.

via Rail Spikes: Why programmers should play Go.

Tags:

Copyright © 2012 Autoficiency All rights reserved. Theme by Laptop Geek.