typewriter icon

Weekly Typed

For those of us who love coding and technology, there’s nothing quite like the thrill of getting better. There are many great coders out there and they offer a variety of advice for improving. This is what I put into action last year.

###1) Learn to Type

This tip comes from Steve Yegge. Known for his opinionated, wall-of-text, entertaining blog rants, Steve Yegge puts great stock in being able to type well and type fast. Yegge’s typing speed is probably the main reason he is able to write his massive blog posts without getting bored or exhausted.

####Implementing it Before June 2013, I could type all the letters on my keyboard without needing to look down, but I didn’t use all my fingers. I was never able to break 55 wpm in typing tests because of this. I had been typing like that since I got my first computer at age 11.

I used Typing Web’s excellent typing tutor app. It starts you off placing the fingers on the home row, typing letters at first, then words and finally sentences. Numbers and punctuation come later.

####The result It was really hard in the beginning, especially at work. I had to stay late a few times the first few weeks, to get work done on time. I kept at it and seven months later, I am back to my old 55-60 wpm speed. But now I use all my fingers. I’m sure I will get faster. It takes time to break 15 years of habit.

###2) Learn (a) Lisp

Paul Graham, Eric Raymond, xkcd and Steve Yegge (again) and many, many others say that learning Lisp will change you as a programmer. You will see everything differently.

####Implementing it While I fully support learning for its own sake, it might be hard to ever be at a job where I need to use something like Common Lisp. Clojure, with its practical design outlook and JVM-ness, seemed an ideal compromise. It’s got real traction. I had seen it action a couple of years ago at grad school, where one of my colleagues used it with Processing to make cool looking sketches.

I actually had previous history with Lisp. Training for new recruits at TCS followed (and as far as I know, still does), the beginner level programming course at MIT, which uses Scheme. At the time, fresh out of college, my previous programming education treated the different styles of programming (functional, object-oriented etc.) the way that old-school Darwinist biologists treated evolution. Every new form was an improvement over the previous, eventually leading to the ideal form: human beings/OOP. Coming from that background, Scheme was a giant WTF. “Why would anyone use functions to act like classes?”, I thought, and left it at that. I doubt the instructors at TCS knew the answer to that either; they just taught it because they were told to.

According to Tim Ferriss, when learning something new, having the right material can make the difference between learning it well and giving up in frustration after a few tries. The koan-style problem website 4clojure.com is perfect for learning Clojure syntax. Another project, clojure-koans, and some essays written by bloggers got me started. In December, I wrote a small tic-tac-toe game in Clojure.

####The result I love it. I’m still barely a beginner, I don’t even fully grasp macros yet (according to Paul Graham, the most powerful feature of Lisp), and it’s still amazing. Lisp code looks…beautiful. Concise. Elegant. There’s nothing else like it. And now, having been exposed to this style of programming, I find it bleeding over into the way I write JavaScript (currently my main language).

###3) Really understand CS theory

I didn’t have a great teacher for Automata Theory, in college. I also had a lot going on at the time and slacked off. I got good marks in the exam by last-minute cramming, but I’ve never understood the whole deal with Turing machines and the rest of that. It felt like something was missing.

Knowing Automata Theory and Computer may not immediately help you with your work but you will be changed forever by the knowledge. Computers, and why we know they work, won’t be a mystery anymore. In a way, it’s like knowing how to build a house, then going back and studying Newtonian physics.

####Implementing it I signed up for the Automata Theory course on Coursera. Did most of the lectures and assignments, except the last couple of weeks.

####The result This one is a bit of a mixed bag. I definitely understand computer science theory a lot more now. I was lax in doing the proofs in the course, so maybe I didn’t get as much out of it as I could have.

###4) Get to know your tools

This one is just common sense. If you become more proficient with your everyday tools, and use features that you haven’t used before, it can take you less time to do the same work. Take a few minutes every weekend, and find a new feature in your daily tools that you never used before.

####Implementing it I use many tools. Sublime Text 2 is a major one; I do almost all my typing in it (haven’t tried upgrading to ST3 yet). There is a huge ecosystem of plugins and snippets and packages for it. The ones I found most useful: Emmet, JSHint, and Sidebar. I also learned keyboard shortcuts for selecting text in different ways: column select, word select, selection within quotes, within tags and within the current (bracket) scope.

Among the other tools I use: I switched from bash to the fish shell. I switched from the default OS X terminal to iTerm. And I also added Alfred to my workflow, to automate my work (the jury is still out on this one, because I’ve also become better at shell scripting) and help me look up documentation more quickly.

###The result Faster work, less RSI, less boredom. Every minute I’ve spent studying keyboard shortcuts and other features has paid off many times over.

###5) Get better at Git


“If you’re still using SVN or CVS, you’re a sucker” -

Some smart person

When I say “Git”, I don’t mean just Git, but that’s the distributed source control system I know best. Git obviously has a lot of momentum, and the sheer power that if offers over SVN makes you an order of magnitude more productive. Branching and merging, doing releases, working with other team members, hunting down bugs, creating clean histories, doing experimental work; everything is easier and faster with Git.

####Implementing it I have been using Git for personal projects since 2011, but 2013 was the first time I got to use it in the workplace. I work with many Git wizards. My team uses the Gitflow model for releases. I discovered the magical tool that is git rebase (especially in interactive mode) and how to use it to clean up development histories and make your merges go more smoothly. I learned how git bisect could save me a lot of manual work in figuring out where a bug was introduced. git cherry-pick came in handy recently when I had to include some work from a branch without merging the whole branch in.

####The result Git is fucking awesome. Even at my advanced beginner level of understanding it seems lightyears ahead of SVN. Creating branches for each feature and fix, code reviews before merges and frequent small commits now all feel like the right way to do write software.


blog comments powered by Disqus