The basic principles of a programmer

2010-08-11  来源:本站原创  分类:Java  人气:138 

Software has unwittingly done a decade to do with the joy of success and failures of the pain, but dared not call themselves masters, because my eyes were compared with the real master, there is still too far. The world has not become master of the short cut, but some basic principles can be followed.

1. A solid foundation. Data structures, discrete mathematics, compiler theory , these are the foundation of all computer science, if not master them, it is difficult to write high-level procedures. According to my observation, learning computer science more people than other professional people can learn to write high quality software. Everyone can write the program, but when you find that hard to write to a certain extent improve the time, you should think about is not to come back to learn the basic theory. Do not go for the beginning OOP , even if you re-versed in OOP, when encountered some of the basic algorithm may also do nothing.

2. Rich imagination. Do not be confined to a way of thinking, a problem of time to think about some solutions to the problem, try the others never thought of the method. Imagination is built on the basis of a wealth of knowledge, in addition to other computers, multi-read materials on other subjects such as astronomy, physics, mathematics and so on. In addition, more than to see science fiction movies is a good way.

3. The simplest is the best. This may have followed an all scientific criteria, such a complex theory in Einstein's mass-energy exchange of the eyes, but could not be more simple is a simple formula: E = mc2. The simplest way to more easily understood and more easy to implement, easier to maintain. A problem when the program give priority to the most simple, only a simple program can not meet the requirements consider complicated.

4. Not into a dead end. When you encounter obstacles that may wish to get away from the computer to see the scenery, listen to light music, chat with friends. When I encountered problems when the will to play the game, and is the kind of very violent fighting games, when the charge of that part of the game extremely excited when the brain cells responsible for programming that part of the brain cells get adequate rest. When back to work, I'll see that the problem can be solved even now.

5. Thirst for answers. Natural history of human development is a thirst for an answer, even if only a small part of the answer is also worth to pay. As long as you just believe, we must find the answer, you will pay the energy to explore, even if it was not the answer, in the process, you will learn a lot.

6. More with others. Three from everyone, perhaps in a casual conversation with others, you can Flaring spark of inspiration. More on the Internet, take a look at other people's views on the same issue, will give you inspiration.

7. Good programming style. Note that to develop good habits, code indentation layout, variable naming rules should always be consistent. We all know how to troubleshoot the error code, but often neglected troubleshooting comments. Comment is an important part of the program, it can make your code easier to understand, but if the code has been clearly expressed your thoughts, you do not add comments, if comments and code inconsistencies, then worse.

8. Tenacity and perseverance. This may be a "master" and the biggest difference between the general programmer. Masters are not geniuses, they are honed in countless days and nights out. Success can bring us tremendous joy, but the process is immense boring. You may wish to make a test, find a table of prime numbers less than 10,000, all of them were written down, and then check it three times, if we can complete the work without interruption, you meet this one.

These are my programmer career point a few years experience, hoping to give you help.

  • The basic principles of a programmer 2010-08-11

    Software has unwittingly done a decade to do with the joy of success and failures of the pain, but dared not call themselves masters, because my eyes were compared with the real master, there is still too far. The world has not become master of the s

  • Java game developers should always adhere to basic principles of the 10 2010-08-07

    On the two articles related to the concept of fiction: 1, plotters: we all know, Java GUI to paint to the drawing, to repaint the image refresh, but complete repaint and paint used in this continuity in the process of drawing components, and I will b

  • The basic principles of video playback 2010-03-03

    VLC is a powerful stuff, do a lot of interesting things. The most simple interface to open a file from the player, you can also use the command line, such as C: \ Program Files \ VideoLAN \ VLC> vlc.exe test.ts Get built-in help, will write vlc-help.

  • 960 Grid System and use the basic principles 2010-05-31

    Transfer from: As some readers 960 Grid System CSS Framework of Principles and the use of methods more interested Binbin storm today and to share this on the 960 grid CSS Framework of t

  • The basic principles of software engineering (Reprinted) 2010-06-10

    The basic principles of software engineering Well-known software engineering expert B. Boehm comprehensive views of relevant experts and scholars and summarizes the experience of developing software for many years, in 1983 in a paper presented seven

  • Java developers need to adhere to the basic principles 2010-06-10

    There are many standards and practice guidelines apply to Java developers, but here to say is that every Java developer required to adhere to basic principles. First, add comments to code. Although everyone knows this, but sometimes not consciously f

  • The basic principles of object pool technology and analytical applications (1) 2010-07-02

    This paper analyzes the basic principles of object pool technology based on the given object pool technology implemented in two ways. Also pointed out that when using the object pool technology should pay attention to. Java object Java object life-cy

  • http basic principles of the agreement 2010-07-30

    http basic principles of the agreement xml web service development of Chapter 1 of the xml web service Chapter 2 xml web service architecture Chapter 3 xml web service based on technology Chapter 4 use xml web service Chapter 5 to implement a simple

  • Rich text editor and practice the basic principles of 2010-08-18

    from: Rich Text Editor, Rich Text Editor, referred to as RTE, it offers similar to Microsoft Word's editing features, easy to write HTML, the user will not need to set the various text

  • Design patterns --- the basic principles of object-oriented 2010-10-08

    Design patterns have learned a few simple Factory, Singleton, etc., decided some time ago to learn about the system, time-consuming for two months, read 3 books, including <java And model >, "design pattern lying>, <head first design patt

  • The basic principles of design patterns 2010-12-19

    The basic principles of design patterns: "Open - Closed" principle (Open-Closed Principle, or OCP) Original: Software entities should be open for extension, but closed for modification. Explanation: A software entity should be open for extension

  • [Transfer] mysql replication basic principles, mysql master-slave configuration principle 2010-11-13

    mysql replication basic principles, mysql master-slave configuration principle 1, the replication process Mysql replication (Replication) is an asynchronous replication, from a Mysql instace (called Master) to another Mysql instance (call it Slave).

  • The basic principles of Oracle memory configuration 2011-06-12

    Transfer: I am often asked: "Our system has XX memory, how memory is allocated right?" My answer is "do not know." This is a very frustrating answer, because this issue really no sol

  • Reprinted-Java-written programs 30 basic principles 2010-07-04

    (1) the class name the first word should be capitalized. Fields, methods, and object (handle) the first letter should be lowercase. For all identifiers, which contains all of the words should be close together, and the upper middle of the first lette

  • The basic principles of Ajax technology (step) 2011-05-26

    I use a simple example to verify the user name to talk about my understanding of Ajax: This example uses a two JSP and JS, I did not use the background to verify, because the principle is the same. 1. User Registration form page: ajaxCheckUser.jsp <%

  • The basic principles of Web Spiders 2010-03-30

    Transfer: Keywords: spiders spider web Web spiders or Web Spider, is a very image of the name. Internet likened to a spider web, then Spider spider is crawling around on the Internet. Web spider is the link thr

  • The basic principles of database connection pool 2010-06-11

    Traditional database connection (refer to the basic realization through DriverManager and DataSource to connect), a database connection objects are corresponding to a physical database connection, database connection and the closure of the establishm

  • MySQL DISTINCT to achieve the basic principles of 2010-10-09

    "SELECT distinct uid FROM user WHERE (". $ Where. ") AND uid! = '$ Uid'"; -------------------------- DISTINCT and GROUP BY operation is actually very similar to the realization, just after the GROUP BY remove only one record in each gr

  • Basic principles and concepts of reptiles 2010-10-22

    Reptiles crawling in the network when the collection of pages on the Web as a directed graph, starting from a given URL beginning, the links along the page, according to a certain strategy. Traversal algorithm is usually used in the following: 1, dep

  • MySQL Replication (copying) the basic principles of 2010-11-15

    1, the replication process Mysql replication ( Replication ) is an asynchronous replication, from a Mysql instace (called Master) to another Mysql instance (call it Slave). Implement the copy operation completed mainly by three processes, two process