Is the Linux kernel (or other low-level stuff) a "good" example of how to write C

After the question "what is the best use for C".

The Linux kernel seems to be well-known and very well thought out for program C. But is this a good example of C's core "best practice"?

+5
source share
9 answers

I'm ready for this, but the Linux kernel is a student project that has gotten out of control. More seriously, what the Linux kernel does well in terms of programming is a very tight set of design and coding guides that allow a very large number of people to contribute, while still having everything that matches each other.

, , , , ​​BSD - C . , .

, - - . , . , ,

+17

? , ​​Linux - ​​ C , . , , C, , . C. , , - , . . , , "printk" "printf" . . - . , , , - , .

+16

, .

, Linux, C. . , .

C - .

, C, , Git.

+9

gnu (, unix, "ls" "awk" ), , , ( , ).

+3

? * nix userland, , , , "" . , , C-, , . , , , .

+2

C, . C, , . . . , Java ++. , , C - .

Linux Linux. , . .

+1

" ", , . Windows , (, WINDDK), , Microsoft , C:-) , , , , " ", - Windows.

+1

- - . .

0

I believe the kernel is a very good example of how to write modular code. Despite the fact that he is C, he is somewhat object oriented.

0
source

All Articles