I finished my work in a joke , How can you not be happy ？
If you want to be a happy programmer , I'll know something about the following , Let's have a look .
Pay attention to the idea of solving problems and the essence of things
Attach importance to thought 、 Pay attention to the nature of the problem , Don't look at things on the surface . In the face of practical problems , Think more deeply , Ask more why , All the way down to the essence of the problem . Keep going like this , You are definitely a thoughtful programmer . It's easy to come up with a reliable plan when you encounter problems .
What are the benefits of paying attention to thought and essence ？ First , As a programmer who understands the essence , I'm very down-to-earth , Communicate with other technicians , Will not be despised . second , Can let us know why , Without the pain of the heart .
For example, database index , Everybody knows , After building the index ,SQL Query criteria "=" When , It's a lot faster . If we recite this as an experience , You'll have a counter example right away . For example, when your table has an identity field ,1 Indicates valid ,0 Invalid representation .
At this point, if an index is created on this field , According to experience , We definitely think the speed will be much higher , But actually , Basically no change . At this time, I am very depressed .
If you want to be a happy programmer , We must understand the essence of index , Why is the index fast after it is built . If you understand this essence , There would be no such doubt . Third , It can make us more efficient . Fourth , Make yourself more conscious , Not to be confused by appearances .
Simplicity is beauty , We are all artists
What is beauty ？ I think it's something that gives people a good sensory experience of whatever kind , This is beauty . For example, the soft afterglow of the setting sun in the eyes , Breathe the grassy air , The job is done , Sit and enjoy It's a wonderful moment .
Simple things don't bore people , It's like a few monotonous clouds in the sky , A gentle breeze blows across my face , What it brings is a good mood , Cool head , Can give oneself a clear thinking space .
In the world of procedure , Follow the same principle . If a program is well written , It's easy for others to understand . Programs are not written for machines , The program is written for people to see .
When a program goes wrong , We want to solve the problem quickly . If the program is beautiful , Any technician can understand it , So it's very helpful for us to solve the problem .
for instance ： Count the days of the month .
There are also the following implementations
The same function , Which code do you think is easier to understand ？
Imitate others more , Develop good coding habits
Imitation must be easier than creation . We can't create it for the time being , You can imitate first ！
For programmers , Imitation is also important . Let's say we're going to do a project , At this time, you must not do it from the beginning . First , We need to find a way to find out , See if there's anything that's right for us .
If there is , Let's download , Then it can be used . without , You can look for something like that , And then change , It can still be used for me . In this case , It can save us a lot of time . The progress of the project may be ahead of schedule .
When a programmer first enters a company , It is difficult to understand the overall architecture of the system in a short time . Don't be afraid at this time . What shall I do? ？ Let's imitate other old classmates in the project team , Imitate other people's development process 、 Imitate the code structure of others , Imitate other people's rules of command ......
As long as you're good at imitating , I'm sure you're stunned . I give you a very good evaluation . Why is this so , Because the old students in the project team are using It must be reasonable at present , As long as you imitate , There's basically no problem , You said you would have problems after the probation period ？
All in all , Imitation can not only save us a lot of time , It also enables us to quickly find the right ideas and methods to solve problems , As Newton said “ The reason why I stand high , It's because I'm on the shoulders of giants ”, Imitation is also standing on the shoulders of others , Can save us a lot of physical strength , Why not do it ？
Focus on technology trends , Love learning
There are senior professional software development engineers , Answer all your doubts online ~ Introduction to programming language “so easy”
The information contains ： Introduction to programming 、 Game programming 、 Curriculum design, etc .
Free learning books ：
Free learning materials ：
As a professional programmer , Technology trends have to focus on .IT The industry is developing rapidly , New ideas and new things are constantly emerging . If we don't open our eyes to see , To understand , We will be phased out .
New software products are born every day , There's a new release , There are also new ways to solve problems . If we take time to focus on , We are likely to have a windfall . For example, today , You see a message ,PHP5.3 Version starts to support closures .
What does this mean ？ It means that your programming method can be transformed more gracefully . Or you see the news that MySQL PUSH There's a new engine out there , You have to see what the engine has , What will it do for my work in the future .
this is it , We accumulate bit by bit , Practice your basic skills every day , Long term persistence . We will find ourselves happier every day , Because we can easily do our work like artists every day , How can you not be happy ？