|
libcats.org
How Not to Program in C++: 111 Broken Programs and 3 Working Ones, or Why Does 2+2=5986Steve OuallineI am not a C++ expert by any means, but whoever titled this book didn't attempt to read it.
And I may be completely unfair, I am reviewing a computer book 7 _years_ after publication. The title clearly indicates a book, where a sample program is given, and then an explanation of how and why it is wrong, and finally how to avoid those mistakes. Instead, you're given a program listing (in standard black&white like most books instead of the color highlighted of a modern editor or IDE), and basically told there is a problem within the category of the chapter. Then it gives a hint & answer number (but not the page number those items reside on). Occasionally in the hints you receive the output of the program. A programming puzzle book of this nature could be quite interesting, but if that is the goal, mark it as a puzzle book and give it a difficulty rating. Some of the problems with this book include the fact that the publisher's spellcheck fixed the bug on page 30, so that there is none to find. Page 32 would be clear from syntax highlighting (and has needless use of pointers and alters comment style part-way though so that the 'broken' one will compile). Chapter 5 is about C, not C++, while much C appears in C++ the book is about the later, not the former. Many of the bugs come from ignoring basic features of the language or coding idioms. In C++ you avoid the preprocessor as much as possible because C++ gives you language tools (templates to replace macros, global consts to avoid #DEFINEs). The book avoids const correctness and RAII. So, what is good about the book? The humor posted between the puzzles, including indicating what of the story is folklore. "This page left unintentionally blank." 'BASIC programmer: if I type WALK will it go slower?' Given the Marketplace price (instead of Amazon's new) it could be a 5 star computer humor book, with a bunch of other junk also in it, if you have that mindset when you pick it up.
Скачать книгу бесплатно (pdf, 1.63 Mb)
Читать «How Not to Program in C++: 111 Broken Programs and 3 Working Ones, or Why Does 2+2=5986» EPUB | FB2 | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:
![]() Самодельные детали для сельского радиоприемникаАвтор: Авторы: З.Б.Гинзбург, Автор: Ф.И.Тарасов.Категория: радиоэлектроника
Размер книги: 1.40 Mb
![]() Тестирование Дот Ком, или Пособие по жестокому обращению с багами в интернет-стартапахАвтор: Роман Савин
Размер книги: 5.26 Mb
![]() Система упражнений по развитию способностей человека (Практическое пособие)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 818 Kb
![]() Осмотр места происшествия: Справочник следователяАвтор: Леви Александр Абрамович, Автор: Редакция А.А.Леви.Категория: право, юридические науки
Размер книги: 4.48 Mb
Только что пользователи скачали эти книги:
![]() Весеннее сумасшествиеАвтор: Авророва АлександраКатегория: Детектив, Остросюжетные любовные романы
Размер книги: 723 Kb
![]() Материалы по металлическим конструкциямАвтор: МельниковКатегория: Строительство, Монтаж конструкций
Размер книги: 2.49 Mb
![]() Учебник испанского языка. Практический курс для начинающихАвтор: Е. И. Родригес-Данилевская, Автор: А. И. Патрушев, Автор: И. Л. СтепунинаКатегория: НАУКА и УЧЕБА, ЯЗЫКИ
Размер книги: 28.80 Mb
![]() Руководство по ремонту и эксплуатации Mitsubishi Space Star 1999-2004 гг. выпуска.Автор: Гусь С.В.
Размер книги: 10.28 Mb
![]() Judah Moscato Sermons: Edition and Translation (Studies in Jewish History and Culture)Автор: Gianfranco Miletto, Автор: Giuseppe Veltri
Размер книги: 2.74 Mb
![]() Геофизика (конспект лекций): Тема 7. Взаимодействие океана и литосферы. Тема 8. Взаимодействие атмосферы и суши. Тема 9. Общая теория развитияАвтор: Павлов А.Н.
Размер книги: 8.03 Mb
|
|