👋👋 Link to the original text: A few words for the programmer
Hey guys, everyone! I am cxuan, an appropriate fishing time, and I wrote 36 suggestions to share with you. Many of these suggestions are my own practice, and some of them are the experience I gained from chatting with my colleagues. I hope everyone can close the pit in time.
- If the code is not tested, then it will not work.
- The source code is your friend, make sure you will use it.
- Although you have written some code, it does not mean that you own the code. If a member of the team has to modify your code, please don't be angry.
- Don't reinvent the wheel, the existing wheel or code base can help, search more.
- If you have some ideas, but you haven't implemented them, it doesn't mean that these ideas are nonsense.
- The source code just prompts the compiler what to do, but the compiler does not necessarily do it (compiler optimization).
- Actively conduct code reviews, and don't carry out code reviews with arrogance.
- Code that is difficult to understand is difficult to maintain, so write comments in time.
- Code that is difficult to maintain is almost useless.
- Learn to read the meaning between the lines from the business requirements and convert it into technical requirements.
- The neater the code layout, the easier it will be to read your code. The easier it is to read, the easier it is to understand and maintain.
- The code will not write comments by yourself. Your comments can help others understand, and more importantly, can help you understand. You may understand now, but what about 5 years from now?
- Bad code will often come back to haunt you.
- There are very few tasks that can be completed in 5 minutes, at least half a day.
- The magic value is very bad.
- Always document the code, not only to help others, but also to help yourself.
- Project managers always want you to complete two days' work in one day.
- If your product has a bug, your users will always find it.
- What matters is not the quantity of code, but the quality of the code, because everyone will write if else, but not everyone will use the strategy pattern.
- Remember: code reviews are not criticizing your code, so don't worry about it.
- The biggest cost of bad code lies in operation and maintenance.
- Fixing bugs in your code can improve your coding skills and improve your understanding.
- You must always improve your skills, otherwise you may be out of the entire industry.
- If the user does not request a certain function, please do not add it randomly.
- If the code is not tested, it will not work (yes, I know I have included it twice, but it is really important).
- If you write code that makes you feel very fulfilling, please don't be complacent, because there will always be someone somewhere that writes better code than you.
- When testing code, you should test your code against frequent and boundary conditions.
- Never trust user input, the user should always content killing .
- We must always include buffer overflows in our daily considerations.
- You have to spend more time thinking about how to write code, rather than spending more time writing code.
- Change in requirements is the most hated thing.
- Remember, your success depends more on your soft skills and how you articulate the problem and its solutions, rather than your technical ability.
- When you see that some of your ideas are incorporated into the product, and many are discarded, don't take it to heart, because this is how things work.
- Use version control, which will save you at critical moments.
- Love your job, not your company. You never know when your company will stop loving you.
- There will always be younger and more talented people joining the company. The constant salary inversion over the years illustrates this point well.
💪Finally, I would like to recommend my own Github , which contains a lot of hardcore articles, which will definitely help you.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。