System Programmer growth plan-Background Knowledge

Source: Internet
Author: User

Indicate the source and author's contact information during reprinting.
Article Source: http://www.limodev.cn/blog
Contact information of the author: Li xianjing <xianjimli at Hotmail dot com>

I have been hesitant to write such a chapter for a long time. Finally, considering that this series is intended for beginners, I should not make too many assumptions for readers. These basic knowledge must be mastered, I cannot help but introduce it. If you already know them, skip this chapter with confidence. If you are a newbie, Please study the content mentioned in this chapter carefully.

Basic knowledge

C language.Do not think that the C language is outdated. It is always an open-source community, especially the king of system software and embedded systems. In the foreseeable future, the C language will continue to flourish.
Send vitality. Some layers think that C language is not suitable for developing large software. This is a big mistake. The operating system kernel, virtual machines, database management systems, graphics engines, Web servers, and other large software are almost all
Developed in C language. On the contrary, C language is not suitable for developing small programs. At this time, the script language is more powerful. C language can survive, and its own principles are as follows:

C language is one of the simplest languages. Most programming languages have gained praise for their simplicity. Almost all of them have become more and more complex over time. After decades of development, C Language, start
Always keep it simple and elegant. Beginners think that C language is hard to learn. In fact, they do not understand the computer itself. It is very easy to learn the computer composition principle and operating system principle.
. Once you have mastered it, you will find that every feature of the C language is required and commonly used, and you do not need to remember anything unnecessary at all. Its features are actually no less than enough.

C language is one of the programming languages with the highest running timeliness. The same algorithm, C language is generally more efficient than other languages, which is also one of the reasons why it is the mainstream programming language of system software. Some Dynamic languages claim to be faster than the C language, which is a lie. The example of a specific algorithm is insufficient. Selecting an efficient algorithm is fundamental, but the C language is more efficient.

C language is one of the most intuitive languages. C language can intuitively express the programmer's ideas. Unlike some other languages, a line of simple code is not clear about what is actually done in it, but how much it will take
. The intuition of C language satisfies the curiosity of programmers. using C language, you can feel that programming is an art. Everything is under control and can satisfy your sense of accomplishment.

In the preparation plan of system programmers, the previous section uses the C language as an example. Readers should look for this C language getting started book. They can read it first without any further understanding, with the subsequent courses, you will learn more deeply.

Data structures and algorithms.No matter what design method or development process is used, data structures and algorithms are the cornerstone of software development. Laying a good foundation will get twice the result with half the effort in future work. Successor
The course is also centered on these basic data structures and algorithms and describes how to use these basic materials to build Large-Scale Systems. Readers do not need to be proficient in data structures and algorithms for the time being. First, read this book to learn about it like a two-way linked list,
The basic principles of dynamic array, queue, heap, stack, hash table, sorting, and searching are all done. We will continue to exercise these data structures.

Development Environment

This series of articles focuses on the basic knowledge of software development, which does not depend on specific platforms and development environments. Readers can choose based on their preferences. We recommend that you use the following development environments:

Use Linux as the operating system.Linux is the most suitable operating system for programmers. It is open-source and can be used free of charge for a variety of different releases. By default, these releases are installed with development tools. To learn about Linux, you need a book. If you have never been familiar with Linux, you don't have to worry. It takes several hours to learn more than ten common commands.

The editor uses vim.The editor function is to create source files, that is, to input the code we have written into the computer. Vim and Emacs are the most popular in Linux.
The code editor is simpler to get started with vim and has powerful functions. It supports basic editing functions such as searching, cutting, and replacement, as well as advanced editing features such as symbol jump and code completion. Vimtutor is the best inbound
Course materials, beginners can use it to program after learning this tutor, and then master those advanced functions. The more proficient you are, the more efficient you can work.
Resources are worthwhile.

The compiler uses GCC.The function of the compiler is to translate source code into machine languages that can be "read" by computers. There are several available c compilers in Linux, GCC
Is the most popular among them. Most releases are installed with GCC by default. There are a lot of GCC parameters and it looks complicated. We just need to know the simplest usage, like this: gcc-G
Test. C-O test.

The debugger uses GDB.The debugger function is used to help programmers locate errors. This is the last and least expected method. The more debuggers you use, the higher your level.
Poor, but it is essential for beginners to master this tool. GDB is powerful. We recommend that you use command-line GDB, which is more flexible and convenient. The reader first master how to set breakpoints, display variables, and
Continue and perform other basic operations.

Make is used for project management.Make is the most popular project management tool in Linux. makefile is the input file of make, which is equivalent
In programming languages, executing make is equivalent to calling the functions in it. Writing makefile is a tedious and boring task. Fortunately, we don't have to learn about it. We will explain the future version of make.
Automake, now you can write the following simple makefile:
ALL:
Gcc-g test. C-o Test
Clean:
Rm-F test

Here, you can regard all as a function name, GCC-g test. C-o
Test Is the function body (add a tab before it). Its function is to compile test. C to test and run make
All is equivalent to calling this function. Clean is another function. Its function is to delete test. If you have time to learn about makefile, it is certainly better. If you do not have time, learn about this
Enough.

When I train a beginner, if he has never used Linux or a C language program, I will give two to four weeks to learn the above content. If the reader is at a similar level and is not eager to take the courses below, take a good look at the content mentioned here.

(Welcome to criticism, encouragement, and suggestions)

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.