A must-read for novices||The programmers who are new to the industry are very mixed? Secretly tell you these ten secrets!

As a fledgling person, you set foot on the job with a graduation certificate that still has the fragrance of ink. You were immediately dismissed by the rules and various complicated daily affairs that were not written in the book. Such stories are commonplace, and programming is no exception.

Few students are 100% prepared for their first real job. If you don’t want to be one of them, learn these 10 basic skills that you can learn without hands-on instruction:

1. Version Control System (VCS)

VCS is perhaps the biggest omission in computer courses. These courses just remember to teach how to write code, but often forget to teach students how to manage code. Every programmer should know how to use Git or Subversion to effectively create a repository, edit and submit code, branch and merge, and understand the project workflow.

2. Learn to write

As a programmer, you have to write more than just code. You also need to write project release notes, commit messages for version control, and write vulnerability reports in the system. These and many places require clear and effective written communication—but this skill in computer science is rarely emphasized.

3. Regular expressions

Regular expressions are a language in themselves, and every modern programmer must be good at it. Every modern language supports regular expressions or has related standard libraries. If the code needs to verify whether a string contains 5 characters, 1 dash, and 1 number, you should be able to write /^[AZ]{5}-\d$/ immediately.

4. Use of the library

It's 2014, so no one needs to use regular expressions to extract hostnames from URLs. Because every modern programming language has a standard library that performs common functions.

Programmers need to understand that code that has been developed, tested, and debugged is usually better than code that has been rewritten. More importantly, code that does not need to be written can be implemented much faster.

5、SQL

Many people learn SQL on the job. How can the database be an elective course? Is there any database that does not use it?

The era of storing data in flat files is over. Everything goes in and out of the database, and SQL

It is the language for accessing data. This is a declarative language, not a programming language, so it requires a new way of thinking when solving problems. Every programmer should understand the basics of database standardization and be able to execute

SELECT(及 INNER、OUTER JOIN)、INSERT、UPDATE 和 DELETE。

6. Will use IDE, editor and CLI tools

A carpenter who only knows how to use a saw can never be a teacher, so it's amazing that a computer graduate who only knows Notepad or pico. Programming tools help manipulate code and other data, making life easier for programmers. So every programmer should know the use of command line, shell script, find, grep and sed.

7, debugging

Every programmer should know to use an interactive debugger or embellish some output statements in the code to debug the program. The ability to track issues through incremental refinement is really important.

8. Error-proof programming

Mistakes are always inevitable, even star programmers are no exception. Out of control is the norm in the world, and it's no surprise that things go wrong. Error-proof programming understands this fact. If things do not go wrong, we will not check whether the file is opened successfully or not, whether the customer ID is a legal number, or whether the code is allowed to be correct.

Programmers need to know that compiler warnings are useful tools that allow us to live more comfortably, rather than avoid troublesome things. Every programmer should know why every PHP program starts like this:

set_error_reporting(E_ALL)

Every Perl program must write these statements:

use strict; use warnings;

 

9. Teamwork

Very few programming tasks will be done by yourself. If you do this often, your intelligence will be impaired and your performance will be weakened. Your code must interact or mix with others. No matter how talented a programmer cannot collaborate with others, it will have a negative impact on the project and quickly become a burden on the organization.

10. Use existing code

When in 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 the code vulnerability. Then, add a small function to the existing system based on the existing code base. Designing new code is a few months away, if you are lucky.

Guess you like

Origin blog.csdn.net/weixin_45713725/article/details/109387719