<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>10 правил программирования на Си предотвращающих ошибки</title>
		<description>Discuss 10 правил программирования на Си предотвращающих ошибки</description>
		<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html</link>
		<lastBuildDate>Fri, 24 Apr 2026 19:53:24 +0000</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://chipenable.ru/index.php/component/jcomments/feed/com_k2/62.html" rel="self" type="application/rss+xml" />
		<item>
			<title>unalex says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-1890</link>
			<description><![CDATA[насчет комментариев, напугали, я часто использую такую конструкцию если
/*
чтоб раскомментирова ть, добавь косую черту вначале кода
/*/]]></description>
			<dc:creator>unalex</dc:creator>
			<pubDate>Tue, 06 Dec 2011 06:24:12 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-1890</guid>
		</item>
		<item>
			<title>САБ says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-528</link>
			<description><![CDATA[Нет, ну про условную компиляцию никто не спорит. Речь шла об использовании #if 0 для безусловного комментирования участков кода. Причем в примере заявлено /* */ - так делать нельзя. А ведь можно, и более того - часто гораздо удобнее, чем предложенный "правильный" вариант.]]></description>
			<dc:creator>САБ</dc:creator>
			<pubDate>Sat, 07 Aug 2010 21:41:01 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-528</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-522</link>
			<description><![CDATA[Вложенные комментарии не использую, но с помощью комментирования часто отключаю куски кода. А #if удобно использовать для отладочных фрагментов программы (#if DEBUG ... #endif).]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 03 Aug 2010 20:13:39 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-522</guid>
		</item>
		<item>
			<title>САБ says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-520</link>
			<description><![CDATA[Не совсем корректный перевод. Скорее не "// Так делать нельзя..." а "// Так делать не рекомендуется.. .". Ибо Стандарт говорит, что все кроме примера из №5 синтаксически правильно. С правилом №5 не согласен - комментарий, что /* */, что // написать и удалить в процессе отлаки в разы быстрее и удобнее, чем #ifdef. При помощи #ifdef имеет смысл комментрировать (заодно и выделяя таким образом) наброски нереализованных кусков в процессе написания, но не отключаемый в процессе отладки код. Аналогично не согласен со многими тезисами у Голуба. Для правила №6 есть дополнение - существуют еще типы uint_leastXX_t и uint_fastXX_t, про которые тоже неплохо бы написать. Например, счетчик цикла от 0 до 10 имеет смысл объявлять не int, а uint_fast8_t, который будет 8-битным беззнаковым для AVR и 32-битным беззнаковым для ARM.]]></description>
			<dc:creator>САБ</dc:creator>
			<pubDate>Tue, 03 Aug 2010 18:26:17 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-520</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-515</link>
			<description><![CDATA[ Да я и сам уже начал волноваться :) А вообще приятно, что кто-то о тебе вспоминает.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sun, 01 Aug 2010 22:44:54 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-515</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-513</link>
			<description><![CDATA[Да и в правду че то пропал Павел в последнее время ;-)]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sat, 31 Jul 2010 22:07:31 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-513</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-512</link>
			<description><![CDATA[ Кто знает что есть такая книга :-) хорошо что есть такой сайт! Где можно узнать про книги и не только.]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sat, 31 Jul 2010 22:02:59 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-512</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-511</link>
			<description><![CDATA[C возвращением Pashgan. А то мы уже начали волноваться :)]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sat, 31 Jul 2010 21:59:22 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-511</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-510</link>
			<description><![CDATA[Есть замечательная книга. "Веревка достаточной длины, чтобы выстрелить себе в ногу" Ален И. Голуб Там есть все вышеперечисленн ое и даже больше. Обращайтесь к классике.]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sat, 31 Jul 2010 17:08:23 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-510</guid>
		</item>
		<item>
			<title>Guest says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-509</link>
			<description><![CDATA[*ушел переписывать все параметризирова нные макросы в инлайн функции* давно взял себе за правило всегда объявлять все переменные с фиксированной разрядностью (uint8_t, etc.)]]></description>
			<dc:creator>Guest</dc:creator>
			<pubDate>Sat, 31 Jul 2010 15:09:17 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html#comment-509</guid>
		</item>
	</channel>
</rss>
