Written in front: This article from Lei June, is his speech for the Software Development 2.0 Technical conference, but for some reasons not come in handy. It's a great benefit for our programmers to share with you here.
Every it enterprise, especially a startup, is distressed: no good programmers can be found. Now universities, software colleges and various training institutions, each year to train hundreds of thousands of of programmers, graduating everyone has the same frustration: can not find a good job. What is the problem? In fact, enterprises need is not just the person who will write the program, need to come to work, especially to the people who can do good work. Most of the college students have just learned how to write procedures, it is really difficult to enterprise demand.
What kind of programmer does the enterprise need, and how does a newly-started programmer become a master of enterprise needs? A lot of programmers ask me, "What kind of ability do I need to be able to start a business?" "I've been pondering a similar problem. I have written 10 years of procedures, but also in the management of more than 1000 people in Jinshan Research and development team, recently also in the angel investment, carefully summed up the following five suggestions to share with all programmers.
Recommendation One: You can write a program only if you really like it.
like to write programs, to be a programmer is to go to heaven;
do not like to write programs, programmer is the hell.
Programmers need to lie in front of the computer, often day and night, very hard, and work slightest the slightest false, less write a punctuation is not. Like people, the days are very happy, every write a line of code, there will be new achievements, especially when their works are widely used, that kind of pride welled up. Do not like the person, sitting in front of the computer extremely bored, is the progress pressure to breathe, every day for the bug to find bugs angry.
Only like, only love, can write the program well!
I suggest that people who do not like to write a program early career change, do not force themselves, lest astray mistake oneself.
Recommendation two: The program as a work of art, like writing poetry to write code
There are few companies doing CodeView (code-level checking of written procedures), so many people are under the pressure of progress, as long as the test pass even if done. On the surface, the development speed is very fast, the progress is guaranteed; But in fact, such programs even the developers themselves are difficult to read, once there are bugs, difficult to debug, future maintenance upgrades are very difficult. Most of this code can only be rewritten, wasting natural and serious.
If each person writes the program when works of art to write, writes each line is earnest, clean, although the speed is slightly slower, but the comprehensive development cost will be much lower.
How do you write code that is as beautiful as a poem? Method is also very simple.
First, buy a few classic programming books, all the examples of the book re-write all over again, compare and book The gap between the examples, step by step to improve their programming style and skills. For a long time, it is natural to write the same code as the routine in the book, even better than the book.
Second, the foundation of solid, look at Linux and other system-level source code, see how the Master is written, there is a feeling.
Third, read through all the information on MSDN, so that, "reading broken million Juan, write."
Also, be sure to keep in mind the Iron Law of software engineering: Things that can go wrong must be wrong. Each variable is initialized, the reference to each parameter will be checked for validity, the boundary conditions will be checked at every possible error, so that the developed program will be a lot more stable, error will be easy to modify. Wild way out of the master, General development speed, but after the bug many, often need a long time to modify. And the real master, the pursuit of the realm is Bugfree code (zero defect codes).
Five tips for programmers-how to become a master programmer and start a business