Hacker News new | ask | show | jobs
by noselfpromote 1803 days ago
I have 4 simple advices for you:

1. Learn to write tests. You will increase your productivity, the fiability of your code and decouple things. Either you go into functionnal programing, either OOP. But write tests.

2. Read other people code. Pick a robust OSS and go through the code.

3. Work in a team, preferably with people better than you. But even juniors can challenge you during peer reviews. If they don't understand your code, maybe it's not clear enough. It will also force you to explain what you do, and thus, find where it could have been simpler.

4. Paper code before writing. Usually I: A. Paper code

B. Write functionnal tests

C. Write pseudo code

D. Write unit test

E. Write code

This way, I'm almost never struggle on bugs.