Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.
At one point in my programming career, I was pretty obsessed with design patterns. I wanted to be a great âsoftware developer,â I wanted to write âperfect code.â And I thought, if only I knew design patterns, I would be able to write perfect code right from the get go.
If you are at the point where I was, I know how you feel. You are not alone.
Let me set you free.
What you are *not* supposed to do
When I thought I needed to learn design patterns, I decided to read all the books on design patterns I could find. A lot of people were recommending the âGang of Fourâ book, so I put it to the top of my list. And I would love to say that I became a design pattern ninja and lived happily ever after, but the truth is⊠I didnât finish any of them.
They felt extremely boring, and I didnât appreciate them.
Do you know why I didnât appreciate them? Because design patterns are solutions. They are not fundamentals that you can read and immediately put to use. To appreciate a solution, you need to first suffer from its problem.
The issue was that I never suffered from the problems that those design patterns were solutions to. I thought I could learn anything by just reading, I underestimated the importance of experience.
What you are supposed to do
Get your hands dirty, and make mistakes.
That is the only solution. Write a lot of code, donât be afraid to make mistakes, try to find solutions on your own to your own problems.
Donât try to find solutions to problems you donât have.
Iâm not telling you to never read books. Read them, for sure you will learn new things. The good thing about books is that even if you donât understand it all, you might be able to have an understanding of what types of problems there are.
But donât forget to create things, donât let not being âperfectâ stop you. Believe me, reading books after you create something on your own will give you lots of âa-haâ moments, and you will be able to go back to your code and use what you learned to make your code even better.
Create problems, and believe me, solutions will be fun.
If you like this article, follow me on Twitter or sign up to my newsletter to get notified when I write new articles. I write about software and startups.
If you are looking for a Rails developer, Iâm currently available for remote work. Feel free to get in touch with me at âhi at evrim dot io.â
How to learn design patterns (and pretty much anything else) was originally published in Hacker Noon on Medium, where people are continuing the conversation by highlighting and responding to this story.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.