10 Secrets The new programmer should know

Source: Internet
Author: User
Keywords Programmers every one work
Tags basic basic skills code computer control control system data how to


The fledgling you with the remaining ink with the graduation certificate on the job, immediately by the book did not write the rules and a variety of miscellaneous day-to-day affairs to a. Such stories are commonplace, and programming is no exception.

Few students are 100% ready for their first real job. If you don't want to be one of them, learn the following 10 basic skills that you can learn without hands-on coaching:

1. Version control system (VCS)

VCs may be the biggest omission in the computer curriculum. These lessons just remember how to write code, but often forget to teach students how to manage code. Every programmer should be able to use git or subversion to effectively create repository (warehouses), Edit and submit code, branch and merge, and understand project workflows.

2. Learn to write

As a programmer, you write more than just code. You will also write the project release instructions, write a message to the version control, write a vulnerability report in the system. These and many places require clear and effective verbal communication-but this skill is rarely emphasized in computer science.

3, Regular expression

Regular expressions are a language in themselves, and every modern programmer must be good at it. Every modern language supports regular expressions or a library of related standards. If your code needs to verify that a string contains 5 characters, a dash, and 1 digits, you should be able to write/^[a-z]{5}-d$/right away.

4, the use of the library

Now it's 2014, so no one needs to use a regular expression to extract the host name from the URL. Because every modern programming language has a standard library for performing common functions.

Programmers need to understand that the code that has been developed, tested, and debugged is usually better than the code they write back. More importantly, code that doesn't need to be written can be implemented much faster.

5, SQL

Many people's SQL is learned at work. How can a database be an elective? Do you have a database?

The era of saving data into flat files is over. Everything goes in and out of the database, and SQL is the language that accesses the data. This is a descriptive language, not a programming language, so it is a new way of thinking to solve problems. Each programmer should understand the basics of database normalization and be able to perform select (and inner, OUTER JOIN), INSERT, update, and delete.

6. IDE, editor and CLI tools

The carpenter who only knows how to use a saw can never be able to leave, so the computer professional graduates only know the Notepad or Pico is astonishing. Programming tools help manipulate code and other data to make life easier for programmers. So every programmer should be aware of the use of command lines, shell scripts, find, grep, and sed.

7, debugging

Every programmer should know to debug a program by using an interactive debugger or by decorating some output statements in the code. The ability to track problems by gradually seeking refinement is too important.

8, error-proofing programming

Mistakes are always inevitable, even the star programmer is no exception. It's no surprise that runaway is the norm in the world. Error-proofing programming is the understanding of this fact. If things don't go wrong, we don't check if the file is open or not, check that the customer ID is a legitimate number, and do not test that the code is allowed to be correct.

Programmers need to know that compiler alarms are useful tools to make us live more comfortably, rather than avoid the hassle of getting away. Every programmer should know why every PHP program starts like this:

Set_error_reporting (E_all)

Each Perl program writes these statements:

Use strict; Use warnings;

9. Team cooperation

Very little programming can be done by yourself, and if you do that often, your intelligence will suffer and your performance will weaken. Your code must interact or mix with others. Another talented programmer, if unable to collaborate with others, will cause negative impact on the project, and quickly become the burden of the Organization.

10, the use of existing code

At school, every assignment is a new project. But the real world is not like this. For people who are just working, the first task they receive is often to modify code vulnerabilities. Then, add a small feature to the existing system based on the existing code base. Design new code that's a matter of months, if you're lucky.

[This article compiles from: blog.newrelic.com]




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.