<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780167</guid>
        <pubDate>Sat, 06 Oct 2018 10:12:54 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780167</link>
        <description><![CDATA[negram: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3780145'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Da&#036;aD &#064; <time class="tag-quote__quoted-time" datetime="2018-10-05T23:32:12+03:00">05.10.18, 20:32</time></span><div class='quote '><div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778805'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Serafim &#064; <time class="tag-quote__quoted-time" datetime="2018-09-21T23:28:09+00:00">21.09.18, 23:28</time></span><div class='quote '>потому что во всех современных языках давно уже есть стандарты</div></div><br>
...Иногда дебильные. Например, отступы в два пробела в скале. Из-за таких &quot;стандартов&quot; код становится абсолютно нечитаемым - сливается в сплошную стенку.</div></div><br>
я б скалку назвал перлом 21го века со встроенным обфурскатором. <br>
Редкий язык ТАК поощряет производство нечитаемого кода. Если это образец &quot;современного языка&quot;, то я лучше побуду ретроградом :)]]></description>
        <author>negram</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780155</guid>
        <pubDate>Sat, 06 Oct 2018 02:16:51 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780155</link>
        <description><![CDATA[Serafim: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3780145'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Da&#036;aD &#064; <time class="tag-quote__quoted-time" datetime="2018-10-05T20:32:12+00:00">05.10.18, 20:32</time></span><div class='quote '>...Иногда дебильные. Например, отступы в два пробела в скале. Из-за таких &quot;стандартов&quot; код становится абсолютно нечитаемым - сливается в сплошную стенку.</div></div><br>
Да ладно, вроде норм. Всё равно при грамотной организации методы на 5-6 строк максимум получаются, да и вертикальную отбивку никто не запрещал.]]></description>
        <author>Serafim</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780145</guid>
        <pubDate>Fri, 05 Oct 2018 20:32:12 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780145</link>
        <description><![CDATA[Da&#036;aD: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778805'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Serafim &#064; <time class="tag-quote__quoted-time" datetime="2018-09-21T23:28:09+00:00">21.09.18, 23:28</time></span><div class='quote '>потому что во всех современных языках давно уже есть стандарты</div></div><br>
...Иногда дебильные. Например, отступы в два пробела в скале. Из-за таких &quot;стандартов&quot; код становится абсолютно нечитаемым - сливается в сплошную стенку.]]></description>
        <author>Da&#036;aD</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780125</guid>
        <pubDate>Fri, 05 Oct 2018 11:39:28 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3780125</link>
        <description><![CDATA[ЫукпШ: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778704'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Qraizer &#064; <time class="tag-quote__quoted-time" datetime="2018-09-20T16:58:48+00:00">20.09.18, 16:58</time></span><div class='quote '><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// Интерфейс объектов синхронизации для межпроцессного использования</div><div class="code_line">// Захват и освобождение ресурса наследуются</div><div class="code_line">class TIPSynk: public ISynkObject</div><div class="code_line">{</div><div class="code_line">protected:</div><div class="code_line">&nbsp;&nbsp;HANDLE synkObject;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script></div></div><br>
Может оказаться весьма удобным обернуть классом вот это:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;HANDLE synkObject;</div></ol></div></div></div></div>]]></description>
        <author>ЫукпШ</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778868</guid>
        <pubDate>Sun, 23 Sep 2018 06:16:45 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778868</link>
        <description><![CDATA[OpenGL: Это к rustfmt же, и он настраивается. По такой логике и в плюсах есть стандарты - во всех IDE есть какой-то свой дефолтовый способ автоформатирования кода  :whistle:]]></description>
        <author>OpenGL</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778838</guid>
        <pubDate>Sat, 22 Sep 2018 13:44:36 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778838</link>
        <description><![CDATA[Serafim: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778826'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>OpenGL &#064; <time class="tag-quote__quoted-time" datetime="2018-09-22T08:46:17+00:00">22.09.18, 08:46</time></span><div class='quote '>В расте нет </div></div><br>
<a class='tag-url' href='https://github.com/rust-lang-nursery/fmt-rfcs' target='_blank'>https://github.com/rust-lang-nursery/fmt-rfcs</a> :whistle:]]></description>
        <author>Serafim</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778826</guid>
        <pubDate>Sat, 22 Sep 2018 08:46:17 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778826</link>
        <description><![CDATA[OpenGL: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778805'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Serafim &#064; <time class="tag-quote__quoted-time" datetime="2018-09-21T23:28:09+00:00">21.09.18, 23:28</time></span><div class='quote '>...потому что во всех современных языках давно уже есть стандарты </div></div><br>
В расте нет :)]]></description>
        <author>OpenGL</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778809</guid>
        <pubDate>Sat, 22 Sep 2018 04:37:08 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778809</link>
        <description><![CDATA[Славян: Отсутствие пометки весьма явно указывает, что плюсы есть самый что ни на есть стандарт.<br><br>...а &quot;все современные языки&quot; являются аки геи в гейропе :oops:]]></description>
        <author>Славян</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778805</guid>
        <pubDate>Fri, 21 Sep 2018 23:28:09 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778805</link>
        <description><![CDATA[Serafim: А можно помечать, что это вы опять о своих плюсах, а?<br><br>...потому что во всех современных языках давно уже есть стандарты :jokingly:]]></description>
        <author>Serafim</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778799</guid>
        <pubDate>Fri, 21 Sep 2018 18:08:35 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778799</link>
        <description><![CDATA[Qraizer: Показательностью предпочтений.]]></description>
        <author>Qraizer</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778764</guid>
        <pubDate>Fri, 21 Sep 2018 12:21:15 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778764</link>
        <description><![CDATA[B.V.: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778705'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Qraizer &#064; <time class="tag-quote__quoted-time" datetime="2018-09-20T18:18:29+00:00">20.09.18, 18:18</time></span><div class='quote '>О&#33; Это ещё лучше:</div></div><br>
А, собственно, чем?]]></description>
        <author>B.V.</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778728</guid>
        <pubDate>Fri, 21 Sep 2018 06:41:19 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778728</link>
        <description><![CDATA[MIF: Я не парюсь. Visual Studio сама делает нужные отступы.<br>А ешё у нее есть функция &quot;Отформатировать доkумент&quot;.]]></description>
        <author>MIF</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778705</guid>
        <pubDate>Thu, 20 Sep 2018 18:18:29 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778705</link>
        <description><![CDATA[Qraizer: О&#33; Это ещё лучше:<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// Простой врапер над IDispatch без использования ITypeInfo</div><div class="code_line">class Wrapper</div><div class="code_line">{</div><div class="code_line">protected:</div><div class="code_line">&nbsp;&nbsp;IDispatch *autoObj; &nbsp; // указатель на интерфейс автообъекта; дать доступ производным классам</div><div class="code_line">&nbsp;</div><div class="code_line">private:</div><div class="code_line">&nbsp;&nbsp;// простая обёртка над IDispatch::Invoke()</div><div class="code_line">&nbsp;&nbsp;HRESULT AutoWrap(WORD autoType, Variant *result, const std::wstring&amp; strName,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; const initializer_list&amp; args = initializer_list());</div><div class="code_line">&nbsp;&nbsp;// вспомогательная функция для чтения свойства</div><div class="code_line">&nbsp;&nbsp;Variant OleProperty(const std::wstring&amp; name, WORD action)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;Variant x;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;AutoWrap(action, &amp;x, name);</div><div class="code_line">&nbsp;&nbsp; &nbsp;return x;</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;&nbsp;// вспомогательная функция для чтения/записи свойства с параметрами</div><div class="code_line">&nbsp;&nbsp;Variant OleProperty(const std::wstring&amp; name, WORD action, const initializer_list&amp; args)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;Variant x;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;AutoWrap(action, &amp;x, name, args);</div><div class="code_line">&nbsp;&nbsp; &nbsp;return x;</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp;/* Конструктор указателем на интерфейс. obj должен быть не NULL.</div><div class="code_line">&nbsp;&nbsp; &nbsp; Формально тут должен быть подсчёт ссылок, однако не все автообъекты увеличивают счётчик</div><div class="code_line">&nbsp;&nbsp; &nbsp; одинаково, поэтому это оставлено производным классам. */</div><div class="code_line">&nbsp;&nbsp;explicit Wrapper(IDispatch* obj): autoObj(obj)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;if (autoObj == NULL) throw std::runtime_error(&quot;Automation: IDispatch is NULL&quot;);</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;&nbsp;/* Освободить автообъект. Уменьшение счётчика нужно делать всегда. */</div><div class="code_line">&nbsp;~Wrapper() { autoObj-&#62;Release(); }</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;/* Вызов методов IDispatch.</div><div class="code_line">&nbsp;&nbsp; &nbsp; res &nbsp;- возвращаемое значение; может быть NULL, если не интересует;</div><div class="code_line">&nbsp;&nbsp; &nbsp; name - имя метода для вызова;</div><div class="code_line">&nbsp;&nbsp; &nbsp; args - набор параметров для метода;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;опционален, по умолчанию пуст, но если присутствует, параметры должны быть указаны</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;в обратном порядке.</div><div class="code_line">&nbsp;&nbsp; &nbsp; Возвращает признак успешного вызова. */</div><div class="code_line">&nbsp;&nbsp;HRESULT OleMethod(Variant *res, const std::wstring&amp; name, const initializer_list&amp; args = initializer_list())</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;return AutoWrap(DISPATCH_METHOD, res, name, args);</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;/* Чтение свойства IDispatch.</div><div class="code_line">&nbsp;&nbsp; &nbsp; name - имя свойства.</div><div class="code_line">&nbsp;&nbsp; &nbsp; Возвращает значение свойства. При ошибке вернёт VT_EMPTY, но отчитается в лог. */</div><div class="code_line">&nbsp;&nbsp;Variant OlePropertyGet(const std::wstring&amp; name)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;return OleProperty(name, DISPATCH_PROPERTYGET);</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;/* Чтение свойства IDispatch с параметром.</div><div class="code_line">&nbsp;&nbsp; &nbsp; name - имя свойства.</div><div class="code_line">&nbsp;&nbsp; &nbsp; Возвращает значение свойства. При ошибке вернёт VT_EMPTY, но отчитается в лог. */</div><div class="code_line">&nbsp;&nbsp;Variant OlePropertyGet(const std::wstring&amp; name, const initializer_list&amp; args)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;return OleProperty(name, DISPATCH_PROPERTYGET, args);</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;/* Установка свойства IDispatch.</div><div class="code_line">&nbsp;&nbsp; &nbsp; name - имя свойства.</div><div class="code_line">&nbsp;&nbsp; &nbsp; При ошибке отчитается в лог, поведение свойства зависит от реализации IDispatch. */</div><div class="code_line">&nbsp;&nbsp;void OlePropertyPut(const std::wstring&amp; name, Variant val)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;OleProperty(name, DISPATCH_PROPERTYPUT, initializer_list() &#60;&#60; val);</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>Qraizer</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778704</guid>
        <pubDate>Thu, 20 Sep 2018 16:58:48 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778704</link>
        <description><![CDATA[Qraizer: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// Интерфейс объектов синхронизации</div><div class="code_line">class ISynkObject</div><div class="code_line">{</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp;virtual DWORD lock &nbsp;(DWORD=INFINITE)=0; &nbsp; &nbsp; &nbsp; &nbsp;// блокировка</div><div class="code_line">&nbsp;&nbsp;virtual BOOL &nbsp;unlock() &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=0; &nbsp; &nbsp; &nbsp; &nbsp;// освобождение</div><div class="code_line">};</div><div class="code_line">&nbsp;</div><div class="code_line">// Интерфейс объектов синхронизации для межпроцессного использования</div><div class="code_line">// Захват и освобождение ресурса наследуются</div><div class="code_line">class TIPSynk: public ISynkObject</div><div class="code_line">{</div><div class="code_line">protected:</div><div class="code_line">&nbsp;&nbsp;HANDLE synkObject;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; TIPSynk() &nbsp; &nbsp; &nbsp; &nbsp; : synkObject(INVALID_HANDLE_VALUE){}</div><div class="code_line">&nbsp;&nbsp; TIPSynk(HANDLE so): synkObject(so) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{}</div><div class="code_line">&nbsp;&nbsp;~TIPSynk() { if (synkObject != INVALID_HANDLE_VALUE) CloseHandle(synkObject); }</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;// Присваивание существующего объекта (подсчёт ссылок ведёт ОС)</div><div class="code_line">&nbsp;&nbsp;BOOL &nbsp; &nbsp; assign(HANDLE src);</div><div class="code_line">&nbsp;</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp;// получить объект синхронизации</div><div class="code_line">&nbsp;&nbsp;operator HANDLE() const { return synkObject; }</div><div class="code_line">&nbsp;&nbsp;// захват</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; DWORD lock(DWORD timeOut = INFINITE);</div><div class="code_line">&nbsp;&nbsp;// множественное ожидание</div><div class="code_line">&nbsp;&nbsp;static DWORD wait(BOOL all, DWORD timeOut, const std::vector&#60;HANDLE&#62;&amp; synks);</div><div class="code_line">};</div></ol></div></div></div></div>]]></description>
        <author>Qraizer</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778703</guid>
        <pubDate>Thu, 20 Sep 2018 16:46:11 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778703</link>
        <description><![CDATA[JoeUser: Проголосил за &quot;свой вариант&quot;. Но ближе вариант 3:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle {</div><div class="code_line">&nbsp;&nbsp;public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;unsigned short**** Arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int &nbsp; &nbsp; ArgLong2,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std::string&amp; &nbsp; &nbsp;ArgLongLongLongLong3,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;verylongenumtype &nbsp; &nbsp; ArgLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLong);</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle();</div><div class="code_line">}</div></ol></div></div></div></div><br>
Форматирование аргументов в стиле киношных титров - новая фишка, пока экспериментирую.]]></description>
        <author>JoeUser</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778702</guid>
        <pubDate>Thu, 20 Sep 2018 16:45:10 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778702</link>
        <description><![CDATA[Wound: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778693'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>OpenGL &#064; <time class="tag-quote__quoted-time" datetime="2018-09-20T14:29:10+00:00">20.09.18, 14:29</time></span><div class='quote '>1, превращающийся в 2 при большом числе аргументов. </div></div><br>
Тоже самое. Еще бывает циклы и алгоритмы так же как во 2 - разношу если слишком длинная строка получается.]]></description>
        <author>Wound</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778699</guid>
        <pubDate>Thu, 20 Sep 2018 15:31:51 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778699</link>
        <description><![CDATA[Gonarh: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle {</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle(unsigned short* arg1, int arg2, std::string&amp; arg3, verylongenumtype arg4);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;static bool Foo1(int arg1, void* arg2);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;virtual verylongenumtype Foo2();</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;private:</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;bool m_bFoo1;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;unsigned int m_nVeryLongFoo2;</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>Gonarh</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778697</guid>
        <pubDate>Thu, 20 Sep 2018 15:05:07 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778697</link>
        <description><![CDATA[B.V.: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778693'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>OpenGL &#064; <time class="tag-quote__quoted-time" datetime="2018-09-20T14:29:10+00:00">20.09.18, 14:29</time></span><div class='quote '>1, превращающийся в 2 при большом числе аргументов.</div></div><br>
:victory: <br>
Аналогично :) <br>
<br>
<span class="tag-color tag-color-named" data-value="mergepost" style="color: mergepost"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2018-09-20T15:05:38+00:00">20.09.18, 15:05</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=413551&view=findpost&p=3778695'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Славян &#064; <time class="tag-quote__quoted-time" datetime="2018-09-20T14:38:56+00:00">20.09.18, 14:38</time></span><div class='quote '>В действительности public/private у меня тоже отделены от левого края на пару пробелов/Tab.</div></div><br>
Да, сорри, этого не учёл. Такое тоже встречалось]]></description>
        <author>B.V.</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778695</guid>
        <pubDate>Thu, 20 Sep 2018 14:38:56 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778695</link>
        <description><![CDATA[Славян: Проголосовал за 1. В действительности public/private у меня тоже отделены от левого края на пару пробелов/Tab.]]></description>
        <author>Славян</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778693</guid>
        <pubDate>Thu, 20 Sep 2018 14:29:10 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778693</link>
        <description><![CDATA[OpenGL: 1, превращающийся в 2 при большом числе аргументов.]]></description>
        <author>OpenGL</author>
        <category>Наши голосования</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778690</guid>
        <pubDate>Thu, 20 Sep 2018 14:15:04 +0000</pubDate>
        <title>Отступы, отступы, отступы..</title>
        <link>https://forum.sources.ru/index.php?showtopic=413551&amp;view=findpost&amp;p=3778690</link>
        <description><![CDATA[B.V.: Разгребая по долгу работы чужой код, задумался над вопросом предпочтения разработчиками определённого стиля расстановки отступов.<br>
Выделил несколько наиболее ярких стилей, которые мне повстречались, и свёл их на примере описания класса<br>
<br>
Итак,<br>
<strong class='tag-b'>1.</strong><br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle</div><div class="code_line">{</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle(unsigned short* arg1, int arg2, std::string&amp; arg3, verylongenumtype arg4);</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;static bool Foo1(int arg1, void* arg2);</div><div class="code_line">&nbsp;&nbsp; &nbsp;virtual verylongenumtype Foo2();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">private:</div><div class="code_line">&nbsp;&nbsp; &nbsp;bool m_bFoo1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;unsigned int m_nVeryLongFoo2;</div><div class="code_line">}</div></ol></div></div></div></div><br>
<br>
<strong class='tag-b'>2.</strong><br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle</div><div class="code_line">{</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;unsigned short* arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int arg2,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;std::string&amp; arg3,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;verylongenumtype arg4);</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;static bool Foo1(int arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;void* arg2);</div><div class="code_line">&nbsp;&nbsp; &nbsp;virtual verylongenumtype Foo2();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">private:</div><div class="code_line">&nbsp;&nbsp; &nbsp;bool &nbsp; &nbsp; &nbsp; &nbsp; m_bFoo1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;unsigned int m_nVeryLongFoo2;</div><div class="code_line">}</div></ol></div></div></div></div><br>
<br>
<strong class='tag-b'>3.</strong><br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle</div><div class="code_line">{</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;unsigned short* &nbsp; &nbsp; arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arg2,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;std::string&amp; &nbsp; &nbsp; &nbsp; &nbsp;arg3,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;verylongenumtype &nbsp; &nbsp;arg4);</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;static bool Foo1(</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;void* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arg2);</div><div class="code_line">&nbsp;&nbsp; &nbsp;virtual verylongenumtype Foo2();</div><div class="code_line">private:</div><div class="code_line">&nbsp;&nbsp; &nbsp;bool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_bFoo1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;unsigned int &nbsp; &nbsp;m_nVeryLongFoo2;</div><div class="code_line">}</div></ol></div></div></div></div><br>
<br>
<strong class='tag-b'>4.</strong><br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">class MyFavoriteIndentationStyle</div><div class="code_line">{</div><div class="code_line">public:</div><div class="code_line">&nbsp;&nbsp; &nbsp;MyFavoriteIndentationStyle &nbsp; &nbsp; &nbsp;(unsigned short* arg1, </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int arg2,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; std::string&amp; arg3,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; verylongenumtype arg4);</div><div class="code_line">&nbsp;&nbsp; &nbsp;~MyFavoriteIndentationStyle &nbsp; &nbsp; ();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;static bool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Foo1(int arg1,</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; void* arg2);</div><div class="code_line">&nbsp;&nbsp; &nbsp;virtual verylongenumtype &nbsp; &nbsp;Foo2();</div><div class="code_line">&nbsp;&nbsp; &nbsp;</div><div class="code_line">private:</div><div class="code_line">&nbsp;&nbsp; &nbsp;bool &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_bFoo1;</div><div class="code_line">&nbsp;&nbsp; &nbsp;unsigned int &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;m_nVeryLongFoo2;</div><div class="code_line">}</div></ol></div></div></div></div><br>
<hr><br>
Наверняка найдётся много тех, кто использует часть оформления из одного варианта, часть из другого. В этом случае просьба голосовать за наиболее близкий<br>
А если уж совсем не совпало, тогда см. последний вариант выбора]]></description>
        <author>B.V.</author>
        <category>Наши голосования</category>
      </item>
	
      </channel>
      </rss>
	