Tuomo Kankaanpää
2y ago
Senior Software Engineer | I help web developers to learn Next.js | 10+ years industry experience

If I could go back in time, these are the 5 things I wish I knew about programming.
(It would have saved me a lot of wasted time and effort.)
1. Read the error message
When you encounter a bug, the first thing you should do is read the error message. Riches are in the error messages.
2. Think before you act
Thinking things through before starting to write any code or try different things usually gets you further faster.
3. Iterate
Iteration is the secret weapon for getting things done.
Don't try to make the first version of a feature or an app the ultimate one, but rather start simple and iterate over it to reach the best possible outcome.
4. Let your thoughts marinade
Don't try to decide hard things in one sitting. Give it a day or two and the solution is easier to find.
5. Ask questions
I know it might be uncomfortable or scary to ask someone else for help. But I encourage you to do it anyway! By asking you give the other person chance to help you and they also "learn the thing better" by explaining it.
You also get answer to your question usually faster than trying to figure it out yourself.