Fresh experience in programming under Linux

  

Now, start building your project in a Linux environment. My programming environment is RedFlag5.0+Eclipse+GCC+QT.

# * Code Editing *

Although there is Eclipse, and QT also provides a good plugin for Eclipse to achieve basic visual programming. However, the speed of Eclipse is really too slow, so basically all the work is done in sh. The code is written almost exclusively with vi(vim).

The function of vi is really too powerful. I don't know if there is any more powerful editor in the world. In command line mode, I can grammar highlight, handle multiple files, search, and replace. Various editing modes are really amazing. Vi may be more refined and efficient than Borland's signature software sk in the dos era.

# * Compile *

Since learning programming, I have never created a Make file manually. At the earliest, I seemed to use the programming tool TC2.0, the integrated development environment for text mode. I don't really remember how the project files were built.

However, working in pure command line mode is really cool. There is a feeling of controlling the whole world. All compilation details, although each compilation parameter is still not controlled by you, but at least you can see.

Looking at the compiled screen output from the screen like rain, it is a feeling of inexplicable excitement.

# * New learning mode*

The nature of open source allows you to access a lot of good code. Yesterday, the company needed a CRC16 function. I have already done one before, but The polynomial does not meet the requirements, then under Linux:

cd $gcc-include-dir

dir dir dir

vi dir

/crc

Then I found several standard implementations of crc. From a very early age, I was told that if you want to improve the level of programming, you should read a lot of source code and cultivate a sense of language. This time I finally found the resources.

# * A novel project management method *

Kernel compilation makes me feel very convenient. Last week, when I was doing the Linux driver, when I was actually working, I didn't see how to add your module to the Linux kernel. However, after a simple review, I found Kconfig and Makefiles in various levels of the directory. After very simple processing, my driver code can appear in the graphical interface in make menuconfig. Work often needs to deal with multiple versions of a project. CVS solves part of the problem. However, this configuration of the kernel may be a very effective means of this type of work. I hope to find out its implementation mechanism as soon as possible.

# *ThizLinux inspiration *

There is a handy tool for installing software in thizLinux apt-get (this tool is available in the Linux branch). Its use requires configuring a server. Anytime you need any software, or the source code of the software, just run:

apt-get install Keyword

Search all matching software from the server. If the software requires basic runtime support, it will automatically download and install all of the underlying software for you based on dependencies. so cool.

# * Final *

It is a pleasure to see these wonderful things.

Now, start building your project in a Linux environment. My programming environment is RedFlag5.0+Eclipse+GCC+QT.

# * Code Editing *

Although there is Eclipse, and QT also provides a good plugin for Eclipse to achieve basic visual programming. However, the speed of Eclipse is really too slow, so basically all the work is done in sh. The code is written almost exclusively with vi(vim).

The function of vi is really too powerful. I don't know if there is any more powerful editor in the world. In command line mode, I can grammar highlight, handle multiple files, search, and replace. Various editing modes are really amazing. Vi may be more refined and efficient than Borland's signature software sk in the dos era.

# * Compile *

Since learning programming, I have never created a Make file manually. At the earliest, I seemed to use the programming tool TC2.0, the integrated development environment for text mode. I don't really remember how the project files were built.

However, working in pure command line mode is really cool. There is a feeling of controlling the whole world. All compilation details, although each compilation parameter is still not controlled by you, but at least you can see.

Looking at the compiled screen output from the screen like rain, it is a feeling of inexplicable excitement.

# * New learning mode*

The nature of open source allows you to access a lot of good code. Yesterday, the company needed a CRC16 function. I have already done one before, but The polynomial does not meet the requirements, then under Linux:

cd $gcc-include-dir

dir dir dir

vi dir

/crc

Then I found several standard implementations of crc. From a very early age, I was told that if you want to improve the level of programming, you should read a lot of source code and cultivate a sense of language. This time I finally found the resources.

# * A novel project management method *

Kernel compilation makes me feel very convenient. Last week, when I was doing the Linux driver, when I was actually working, I didn't see how to add your module to the Linux kernel. However, after a simple review, I found Kconfig and Makefiles in various levels of the directory. After very simple processing, my driver code can appear in the graphical interface in make menuconfig. Work often needs to deal with multiple versions of a project. CVS solves part of the problem. However, this configuration of the kernel may be a very effective means of this type of work. I hope to find out its implementation mechanism as soon as possible.

# *ThizLinux inspiration *

There is a handy tool for installing software in thizLinux apt-get (this tool is available in the Linux branch). Its use requires configuring a server. Anytime you need any software, or the source code of the software, just run:

apt-get install Keyword

Search all matching software from the server. If the software requires basic runtime support, it will automatically download and install all of the underlying software for you based on dependencies. so cool.

# * Final *

It is a pleasure to see these wonderful things.


Copyright © Windows knowledge All Rights Reserved