📜 ⬆️ ⬇️

Rootless Root in Russian. Revelation the first.

With this post I start the translation series “Revelations of Unix Teacher Foo”.

So, the first revelation.

- Teacher Foo and Ten Thousand Lines
')
One day, Teacher Foo told a passing programmer: “On one line of a shell script, there is more Unix spirit than Ten Thousand Line of code in C.”

The programmer, who was very proud of his mastery of C, said: “How is that? C is the language in which the Unix kernel itself is implemented! ”

Teacher Foo replied: “It is. Despite this, there is more Unix spirit on one line of a shell script than Ten Ten thousand Lines of code in C. "

The programmer was stunned. " But through C, we feel the strength of Patriarch Richie (Ritchie)! We become one with the operating system and all the devices, getting incomparable performance for it!"

Teacher Foo replied: “Everything you say is true. But still, in one line of the shell script there is more Unix spirit than Ten Ten thousand Lines of code in C. "

The programmer looked at Master derisively and started to leave. But the teacher nodded to his student Nubi, and he wrote a single line of shell script on the blackboard. The teacher said: “Oh, Able Programmer, this is a pipe. Realize it on pure C — will you have ten thousand lines? ”

The programmer grumbled something in his beard, looking at what Nubi wrote. Finally, he agreed that ten thousand would be probably not enough.

“How many Hours do you need to implement and debug this program in C?” Asked Nubi.

“Many” - admitted a passer-by programmer. “But only a fool will do it at a time when much more worthy Tasks await him.”

“Tell me now, who better understands the spirit of Unix?” Asked Teacher Foo. “The one who writes ten thousand lines - or the one who realizing all the uselessness of the Task, nevertheless deserves a reward - without having written a single line of code?”

And enlightenment came down on the programmer as soon as he heard it.

Copyright 2003 Eric S. Raymond

Revelation the second

Source: https://habr.com/ru/post/23191/


All Articles