- One spoonful of OSX
- A sprinkling of Git
- Three pounds source code
core.ignorecasejust in case
- Commit, push
User.coffeeand watch as
git diffs don’t make any sense,
git resetdoesn’t reset,
git stashdoesn’t stash,
git commit -adoesn’t commit.
- Laugh with glee as your editor jumps between the current and an old-old-old version
- Go on holiday, give up, freak out
Serve for two
- Realize (probably with help from colleagues) that the OSX file-system is not case-sensitive
- Go to GitHub or clone the project on Linux
- Realize that both
After having fought my way through Clean Code, I’m now reading The Clean Coder. Both are great books you should read. Clean Code helped me crystallize and expand on the ideas I had about good code. The Clean Coder is more about the part of programming you spend away from your computer; estimation, testing strategies, communicating inside and outside the team, generally being a professional. The whole book is really about being professional. (Disclaimer: links are affiliate links to Amazon)
I already have two active to-do items. There’s a whole paragraph asking “do you know what X is”? And honestly, I have no idea about most of those X’s. Not even what they may be about. So it’s probably time to pick up some more theory. On the other hand, Uncle Bob emphasizes actively honing your programming skills. A good way to do that is code katas. The term, apparently started here, is taken from martial arts: a kata is a series of excercises you practice until you achieve perfect form (for an appropriately small threshold).
Just a note if you need / want to remove the redirects of yesod (a Haskell web framework) from
http://myhost.com. You can find the below instance declaration in
Foundation.hsif you’re using the scaffold. If not, you’ll know where it is, because you put it there :)
instance Yesod App where cleanPath _ pieces = Right $ filter (not . ((==) "")) piece
This ignores any trailing slashes (and duplicates as well), so that all the following URLs will be considered the same as
You’re a cool kid, right? All the cool kids have their blog and other stuff on a VPS (or on GitHub, but that’s a different story). Really cool kids have their stuff on Linode, by the way; yes, that’s a referral link. All the cool kids use Chef to manage their infrastructure at work consisting of N-hundred Heroku dynos and AWS instances. So why not manage your VPS with Chef? While you’re at it, why not upload the whole thing to GitHub? (Like this)
Yes, really, in 2012. See here, it’s on GitHub.
Why, in the name of all that is 8-bit?
For one, it’s fun. The core protocol is well defined by the RFCs. In the web development world you don’t often get to program to specifications like that; it’s a nice change of pace. There’s no need for any front-end work either. I get to write Python, which I haven’t done for a while. And finally, it’s my own free time, nowgetoffmydamnlawn.