15 years of programmer experience sharing: 40 tips to change your programming skills!

How can programming save more time and make fewer mistakes?

Recently, such a "experience" has become popular. The software engineer named Kesk Noren shared a blog post on Medium-"40 Tips that will change your coding skills forever", which received 3.5k likes.

40 tips that will permanently change your programming skills, you deserve it~

In addition to a software engineer, Kesk Noren is also a full stack engineer. He used 15 years of work experience to sum up some things that are helpful to his career.

Also mentioned,

Although this article is quick to read, it takes a lifetime to really apply it.

Without much to say, let's take a look!

40 tips for changing programming skills

1、Break large blocks of code into smaller functions

2、Today's things are finished today, if they are not finished, they will be kept until tomorrow.

If the problem has not been solved before get off work, then all you need to do is turn off the computer and save it until tomorrow.
Stop thinking about the problem halfway!

3、YAGNI principle

"You aren't gonna need it!"
Functions that you think are useful are actually not needed . Except for the required core functions, no other functions should be deployed.
The core idea of ​​this principle is to run the software as quickly and simply as possible.

4、You don’t have to be omniscient

For example, learn some basic knowledge, SOLID principles, how to write clean code and so on.

5、KISS principle

「Keep it simple,stupid.」or「Keep it stupid simple.」, A programming principle.
Most systems tend to be the "simplest" and the most efficient, but they are not easy to operate in practice.

6、do not think too much

7、When stuck by a problem/Bug, walk away!

But remember to come back.

When you go to work, go to the bathroom, or go for a walk, you may be able to think of solutions.
Especially when you are angry with clients, colleagues, or even when it is about your job stay, the efficiency will be higher.

8、Learn to write test code TDD

TDD is a software development process that relies on repeating a short development cycle: write a test, run all the tests, see if the new test fails, write some code, run the test, refactor the code, repeat.

9、Decompose the problem before writing code

Don't start writing code without knowing how to do it.

10、Don't memorize the code by rote

To understand the logic.

11、Learn to use Stack Overflow well

If you copy and paste a Stack Overflow solution, make sure you understand it.

12、Don't "do not practice optics"

If you want to learn something, just practice, optics is not enough.

13、Review the code with your friends

Study other people's code and let others study your code from time to time.
Help each other and make progress together.

14、Don’t Reinvent The Wheel

"Don't reinvent the wheel." Make
full use of existing experience and results to avoid unnecessary investment and waste.

15、Your code is the best document

16、Know how to search

For this, you need to have experience and read a lot of books to know what to look for.

17、Maintenance considerations when writing code

Your code will need to be maintained by yourself or others in the future.
Therefore, when writing code, you should consider the reader, rather than want to be the smartest person, and make it read like a story.

18、copy and paste

The best way to solve errors with Google and Baidu is to "copy and paste".

19、do not give up

In the end, no matter what method is used, the problem will definitely be solved.

20、Rest, rest and rest

The best way to solve the problem is to have a stable mind.

21、Learning software design patterns

Design patterns are solutions to common problems in software design. Each mode is like a blueprint, you can customize to solve common design problems in the code. (Don’t reinvent the wheel.)

22、Use integrated tools

Automate as much as possible.

23、Do code katas.

"Code kata" is an exercise in programming that can help programmers improve their skills through practice and repetition.

24、Dependency injection is a requirement

Programming to an interface, not implementation.
The so-called dependency injection means that the dependency between components is determined by the container during the runtime of the application system, that is, the container dynamically injects the target object instance of a certain dependency into the associated components in the application system.

25、Refactor-test-refactor

Refactoring is a technique of reorganizing existing code, changing and improving its internal structure without changing its external behavior.

26、Seek help in time

do not waste time.

27、Practice makes perfect.

Diligence.

28、Don't worry too much about comments

Although comments can help you sometimes, don't care too much. They may be outdated.

29、Know your development environment

Understand your development environment and invest in a sufficiently powerful environment, such as IntelliJ.

30、Reuse components

31、Consider related restrictions

When developing network applications, consider mobile priority and related power and bandwidth constraints.

32、Don't optimize or refactor prematurely

It is more important to have a minimum viable product as soon as possible.

33、Don't make a fool of yourself

Never choose an inefficient shortcut to save a few minutes.
"Every time you code, give your best!"

34、Follow the prescribed standards

35、The user is not a technician

When you develop your UI, you need to take this into consideration.

36、Stick to Github or bitbucket

Small-scale, frequent git commits can be made.

37、Record all key parts

Recording system logs is better than debugging code.

38、Consistent style

If you use one style, always use the same style.
If you work with more people, use the same style for all teams.

39、Don’t stop learning

But rather than learning a new language or framework, we should pay more attention to learning the basics of software development.

40、patience and love

Finally, have enough patience and love for what you are doing.

Well, here are 40 tips to change your programming skills, I hope it will help you~
Of course, if you have any good experience and skills, you are welcome to share with us~

Translator: non-white post from the bottom of the concave Temple qubit reports | Public number QbitAI
Author: Kesk -*-、link: https: //medium.com/swlh/40-tips-that-will-change-your-coding-skills-forever- bf9d6b936ccc

Guess you like

Origin blog.csdn.net/zwluoyuxi/article/details/107826209