Кіріспе
Брайан Керниган мен Дэннис Ричидің кітабы – оқулық.
the textbook
The C Programming Language (sometimes termed K&R, after its authors' initials) is a computer programming book written by Brian Kernighan and Dennis Ritchie, the latter of whom originally designed and implemented the C programming language, as well as co designed the Unix operating system with which development of the language was closely intertwined. The book was central to the development and popularization of C and is still widely read and used today. Because the book was co authored by the original language designer, and because the first edition of the book served for many years as the de facto standard for the language, the book was regarded by many to be the authoritative reference on C.
C бағдарламалау тілі (кейде авторларының әріптерімен K&R деп аталады) – Брайан Керниган мен Дэннис Ричи жазған компьютерлік бағдарламалау кітабы. Дэннис Ричи C бағдарламалау тілін бастапқыда жобалап, іске асырған, сондай-ақ тілдің дамуымен тығыз байланысты болған Unix операциялық жүйесін бірлесіп жасаған. Бұл кітап C тілін дамыту мен танымал етуде маңызды рөл атқарды және бүгінге дейін кеңінен оқылып, қолданылуда. Кітаптың авторы тілді бастапқыда жасағандықтан және кітаптың бірінші басылымы көп жылдар бойы тілдің де-факто стандарты болғандықтан, көптеген адамдар оны C тілі бойынша басты анықтама деп санайды.
the textbook
The C Programming Language (sometimes termed K&R, after its authors' initials) is a computer programming book written by Brian Kernighan and Dennis Ritchie, the latter of whom originally designed and implemented the C programming language, as well as co designed the Unix operating system with which development of the language was closely intertwined. The book was central to the development and popularization of C and is still widely read and used today. Because the book was co authored by the original language designer, and because the first edition of the book served for many years as the de facto standard for the language, the book was regarded by many to be the authoritative reference on C.
Қабылдау
1983 жылдың тамызында "Байт" журналында былай делінген: "[C Programming Language] – C тілі жөніндегі шешуші еңбек. Осы кітапты алғанша одан әрі оқымаңыз!" Джерри Пурнелл сол жылы журналға кітаптың "әлі де стандартты, бірақ сәл қысқа" екенін жазды. Ол одан әрі: "Керниган мен Ричидің кітабынсыз да C тілін үйренуге болады, бірақ бұл қиын жолмен. Егер сіз оны C тіліне арналған жалғыз кітап деп қарасаңыз, тым көп еңбек сіңіресіз" деп жалғастырды.
Ықпал
C бағдарламалау тілі техникалық жазудың үлгісі ретінде жиі келтіріледі, оны сыншылар нақты баяндау мен қысқаша өңдеу ретінде сипаттайды. Мысалдар көбінесе жүйелік бағдарламалауға баса назар аударған, тілдің күнделікті қолданылуында кездесетін толық бағдарламалардан тұрады. Оның авторлары былай деді: «Біз бірінші басылымның лакониктілігін сақтауға тырыстық. C үлкен тіл емес, оған үлкен кітап та қажет емес. Біз C бағдарламалаудың негізгі ерекшеліктерін, мысалы, көрсеткіштерді түсіндіруді жақсарттық. Біз бастапқы мысалдарды жетілдірдік және бірнеше тарауларға жаңа мысалдар қостық. Мысалы, күрделі жарияланымдарды қарастыру жарияланымдарды сөздерге және керісінше түрлендіретін бағдарламалармен толықтырылды. Барлық мысалдар бұрынғыдай, мәтіннен тікелей тексерілді, ол машинамен оқылатын форматта сақталған. «Hello, world!» мәтінін ғана басып шығаратын бағдарлама, минималды жұмыс істейтін C бағдарламасының мысалы ретінде ұсынылды. Содан бері көптеген оқулықтар бағдарламалау тілін таныстыру үшін осы тәсілді қолданады. ANSI C пайда болғанға дейін, мәтіннің бірінші басылымы C компиляторларын жазушылар үшін тілдің де-факто стандарты болып табылды. ANSI C стандарты қабылдағаннан кейін авторлар екінші басылымды бағдарламашылар үшін, компилятор жазушылар үшін емес, жазды. Олар былай деді: «А қосымшасы – анықтамалық нұсқаулық, ол стандарт емес, бірақ стандарттың негізгі қағидаларын кішірек көлемде жеткізуге жасалған тыраныс. Ол бағдарламашыларға оңай түсіну үшін арналған, бірақ компилятор жазушыларына анықтама ретінде емес – бұл рөлдің өзі стандартына тиесілі. В қосымшасы стандартты кітапхананың мүмкіндіктерін қысқаша сипаттайды. Ол да бағдарламашыларға, емес орындаушыларға арналған. С қосымшасы – бастапқы нұсқадан енгізілген өзгерістердің қысқаша шолуы». C бағдарламалау тілінің бағдарламашыларға тигізген әсері, олардың бір буыны алғаш рет университеттер мен өнеркәсіпте C-мен жұмыс істеді, көптеген авторлардың бағдарламалау стилі мен конвенцияларын ұсынылатын, тіпті нормативтік практика ретінде қабылдауға әкелді. Мысалы, кітаптың екі басылымында ұсынылған бағдарламалардың кодтау және пішімдеу стилі жиі «K&R стилі» немесе «One True Brace Style» деп аталады және Unix және Linux ядроларының бастапқы кодында қолданылатын конвенциялық кодтау стиліне айналды.
We have tried to retain the brevity of the first edition. C is not a big language, and it is not well served by a big book. We have improved the exposition of critical features, such as pointers, that are central to C programming. We have refined the original examples, and have added new examples in several chapters. For instance, the treatment of complicated declarations is augmented by programs that convert declarations into words and vice versa. As before, all examples have been tested directly from the text, which is in machine readable form.|preface to the second edition
The book introduced the "Hello, World!" program, which prints only the text "hello, world", as an illustration of a minimal working C program. Since then, many texts have followed that convention for introducing a programming language. Before the advent of ANSI C, the first edition of the text served as the de facto standard of the language for writers of C compilers. With the standardization of ANSI C, the authors more consciously wrote the second edition for programmers rather than compiler writers, saying
Appendix A, the reference manual, is not the standard, but our attempt to convey the essentials of the standard in a smaller space. It is meant for easy comprehension by programmers, but not as a definition for compiler writers—that role properly belongs to the standard itself. Appendix B is a summary of the facilities of the standard library. It too is meant for reference by programmers, not implementers. Appendix C is a concise summary of the changes from the original version.|preface to the second edition
The influence of The C Programming Language on programmers, a generation of whom first worked with C in universities and industry, has led many to accept the authors' programming style and conventions as recommended practice, if not normative practice. For example, the coding and formatting style of the programs presented in both editions of the book is often referred to as "K&R style" or the "One True Brace Style" and became the coding style used by convention in the source code for the Unix and Linux kernels.