Photo by Ryan Graybill on Unsplash

A couple years ago, I gave up my former life as a lawyer and jumped into programming. I reflected on a couple of lessons that I learned during my journey:

  1. Nothing is impossible. It is simply a matter of time and effort.
  2. But just because it is possible doesn’t mean it should be done.
  3. You gotta be willing to learn on your own. Experience cannot be learned from books or watching, you must do.
  4. Perfection is your enemy. Start small. Make mistakes. You will master it eventually.
  5. Curiosity is essential. There are too many new things for you to be complacent.
  6. Don’t be afraid of what you don’t know. You will never know a fraction of everything.
  7. Getting help is okay. You can’t make it alone

--

--

Many times I find myself writing code, and coming upon a difficult problem I justify to myself “I will write it dirty now, but I will refactor it later”.

But a few weeks or months down the track I come back and look at my code and think “Crap, it is now really complicated. Maybe I shouldn’t refactor it?”.

Arguably the best time to refactor code is now while your brain is fully immeshed in the problem. Sure, it’s painful. But it will be easier now than later.

--

--