History v. State

I want to reprogram the way I think about the state of my data models. Think of a blog post. Before I publish it, it’s unpublished. After I publish it, it’s published. If I unpublish it, it’s unpublished again. Maybe I edit it and republish it. Published again. I (and a lot of programmers, I… Continue reading History v. State

New git alias: git last

I made a new git alias I’m loving. Maybe you have something similar. I’ve added this to my .gitconfig: [alias] last = rev-parse –abbrev-ref @{-1} This gets the name of the branch you had checked out prior to the current branch. It’s like git checkout -, but you can use it all over, such as:… Continue reading New git alias: git last