Linus computers have graphics cards! He opposes that each line of code does not exceed 80 characters

(Star those things about programmers)

Original: those things about programmers (id: iProgrammer)

1. Linus's development computer has a graphics card

 First of all, I want to apologize. Yesterday I tweeted " Linus's development computer, the configuration is like this! "In the comments, some children's shoes asked why there is no graphics card. I replied that ZDNet did not mention it in English.

In fact, I missed it, his graphics card is Sapphire RX580.

When ZDNet enumerates hardware information, it is highlighted and bold, especially conspicuous, and it also gave the link to Amazon.

Only the gray fonts used by the graphics card, so I missed it, it was my fault!


Linus said that he usually chooses ordinary consumer CPUs because they are often the most cost-effective, and for Intel's CPUs, he actually likes them with integrated graphics. Because he doesn't care about the GPU very much, the integrated graphics card is enough, which avoids the embarrassing situation of choosing a suitable GPU but having a loud fan.

Although game developers and AI/machine learning developers pay much attention to graphics cards, Linus does not engage in video and image processing, nor does it play games, so it does not require high graphics cards. The sapphire RX580 he chose randomly is enough.

In addition, Linus actually said that he does not need 64GB of RAM because the things he develops are often not very memory intensive, but he wants to fill up all 4 memory slots, and RAM is very cheap.

With the addition of the graphics card, the total price of these hardware configurations of Linus is expected to be about 3700+ US dollars.

2. Linus recommends giving up no more than 80 characters per line of code

Recently on the official Linux kernel mailing list, Linus and other developers were discussing a topic: whether it is necessary to insist that each line of code does not exceed 80 characters.

Like many open source projects with a long history, the Linux kernel has its own code style guide, which includes no more than 80 characters per line of code.

There are historical reasons for this requirement. The previous punch cards and early Unix terminals had a maximum width of 80 columns. Later many projects (including the official coding style of some programming languages, such as Python) also followed this requirement.

Above is IBM's punch card. We mentioned it in this article "Learning Programming in 1969, How Programmers Written Code Back then" .

In a recent discussion, kernel developer David Laight advocated that the 80-character limit should always be used. In the narrow "terminal", there is less movement of the neck and mouse.

Linus disagrees, believing that forcing a newline after 80 characters is bad and will cause practical daily problems. "Moreover, most of us have broken through the 80-column terminal model for a long, long time."

"Persons with hardware restrictions should not impose their inconvenience on those with better resources. We need to adjust the restrictions to a reasonable range. It is already in 2020, and the 80-column terminal limit is no longer reasonable... …So for the sake of heaven, don’t treat the 80-column limit as a standard."

https://lkml.org/lkml/2020/5/29/1038

The Linux kernel code style has abandoned the limit of 80 characters per line of code. Although it is still retained, other developers are not forced to follow it.

- EOF -

Recommended reading Click the title to jump

1. Linus Great God’s home office experience (he also plays cats) ;

2. Linus held back it! Point out bad code politely ;

3. Linus patiently and politely criticized a developer ;

Pay attention to "the programmer's things" star, don't miss the circle

Inside the circle, I'm watching ❤️

Guess you like

Origin blog.csdn.net/P5dEyT322JACS/article/details/106536019