3 ms·
1. Try to understand the problem you want to solve and only solve this one in the shortest and cleanest way you can. 1.1. Write tests for this problem you solv
by torte 10y ago
1. Try to understand the problem you want to solve and only solve this one in the shortest and cleanest way you can.
1.1. Write tests for this problem you solve.
1.2. Do not over-engineer on that problem.
1.3. Optimize later. If the code is clean the performance is usually good enough. If the code is clean you can easily optimize on it.
2. The choice of the language does not matter so much, as long you know the caveats of it. If you use dynamically typed languages you should write more tests covering possible input and output or use asserts to validate it.
3. Know your tools. Try to understand each tool you are using first before using it for your production code.
4. Learn to communicate your thoughts clearly. Honestly it is one of the biggest advantages for any developer. You will write better code as a result.