<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[C++ Welche Tabulatorbreite?]]></title><description><![CDATA[<p>Halllo,</p>
<p>ich weiß nicht welche Tabulatorbreite gängig benutzt wird wenn man C++ (oder auch andere Sprachen) programmiert? Ich habe bisher entweder 8 oder 4 benutzt wobei ich 4 &quot;schöner&quot; finde.</p>
<p>Gibt es Richtlinien (coding standard) die was vorgeben?</p>
<p>Danke euch</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196289/c-welche-tabulatorbreite</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 07:10:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196289.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Oct 2007 20:16:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:16:44 GMT]]></title><description><![CDATA[<p>Halllo,</p>
<p>ich weiß nicht welche Tabulatorbreite gängig benutzt wird wenn man C++ (oder auch andere Sprachen) programmiert? Ich habe bisher entweder 8 oder 4 benutzt wobei ich 4 &quot;schöner&quot; finde.</p>
<p>Gibt es Richtlinien (coding standard) die was vorgeben?</p>
<p>Danke euch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393283</guid><dc:creator><![CDATA[einGastZuViel]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:16:44 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:27:13 GMT]]></title><description><![CDATA[<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393294</guid><dc:creator><![CDATA[Bouncer]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:32:13 GMT]]></title><description><![CDATA[<p>Wenn du keine Vorgaben hast, dann mach es wie's dir am besten gefaellt! Ich persoenlich hab eine Breite von 4, weil 8 einfach zu viel Platz wegnimmt. Aber das ist wie gesagt schlicht und einfach Geschmackssache!</p>
<p>Bouncer schrieb:</p>
<blockquote>
<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
</blockquote>
<p>ob das wichtig ist oder nicht, muss er wohl selber entscheiden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393297</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:32:48 GMT]]></title><description><![CDATA[<p>öh und was ist das oder wie mache ich das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393299</guid><dc:creator><![CDATA[einGastZuViel]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:38:19 GMT]]></title><description><![CDATA[<p>Blue-Tiger schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
</blockquote>
<p>ob das wichtig ist oder nicht, muss er wohl selber entscheiden</p>
</blockquote>
<p>natürlich, wenn man's nur mit eigenen codes zu tun hat, dann ist es egal.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393303</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393303</guid><dc:creator><![CDATA[Bouncer]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:53:27 GMT]]></title><description><![CDATA[<p>Bouncer schrieb:</p>
<blockquote>
<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).</p>
</blockquote>
<p>Wieso keine Tabs?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393313</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 20:55:47 GMT]]></title><description><![CDATA[<p>meinen code werden eine reihe anderer leute lesen, meist unter linux, deswegen frage ich .....also wie kann ich es hinbekommen dass die leute die ihn lesen auch was sauberes vor sich liegen haben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393314</guid><dc:creator><![CDATA[einGastZuViel]]></dc:creator><pubDate>Sat, 27 Oct 2007 20:55:47 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 21:03:56 GMT]]></title><description><![CDATA[<p>also mit linuxern ist das so'ne sache. die haben anstatt cr/lf nur eins davon am zeilenende. naja, aber was die tabs angeht: echte tabs sind übel, wenn der andere nicht die gleiche tab-breite eingstellt hat wie du (meistens hat er's nicht). deshalb rate ich zu einem editor, der tabs durch spaces ersetzt. dass die quelltexte dadurch etwas grösser werden ist vernachlässigbar.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393321</guid><dc:creator><![CDATA[Bouncer]]></dc:creator><pubDate>Sat, 27 Oct 2007 21:03:56 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 21:06:27 GMT]]></title><description><![CDATA[<p>Also ich kann unter vim die tabulatoren durch spaces ersetzen. Aber sobald ich einen anderen editor öffne dann sind die einrückungen wieder anders.....? Das gibts doch nicht.</p>
<p>Sobald ich sie unter kate/kwrite ändere sind sie wieder unter vim anders.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393325</guid><dc:creator><![CDATA[einGastZuViel]]></dc:creator><pubDate>Sat, 27 Oct 2007 21:06:27 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 21:55:17 GMT]]></title><description><![CDATA[<p>einGastZuViel schrieb:</p>
<blockquote>
<p>ich weiß nicht welche Tabulatorbreite gängig benutzt wird wenn man C++ (oder auch andere Sprachen) programmiert?</p>
</blockquote>
<p>das ist völlig wurst. und ich bevorzuge sogar echte tabs und keinen whitespace müll. denn code-einrückungen sollten semantisch sein und nicht &quot;schön&quot;.</p>
<pre><code class="language-cpp">int    foo;
double bar;
for(;;)
    stuff();
</code></pre>
<p>sowas sieht &quot;nett&quot; aus, hat aber keinen mehrwert. interessant ist nur, dass der schleifenkörper eine einrückung hat.</p>
<pre><code class="language-cpp">int            foo;
double bar;
for(;;)
    stuff();
</code></pre>
<p>sieht zwar mit nem verhunzten tab komisch aus, verliert aber kein stück an einrückungsbedeutung.</p>
<p>am besten is dann eh so <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">int foo;
double bar;
for(;;)
    stuff();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1393360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393360</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Sat, 27 Oct 2007 21:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 22:11:46 GMT]]></title><description><![CDATA[<p>Bouncer schrieb:</p>
<blockquote>
<p>also mit linuxern ist das so'ne sache. die haben anstatt cr/lf nur eins davon am zeilenende.</p>
</blockquote>
<p>Das hat erstens nichts mit Linux zu tun, und zweitens würde ich gerade gern wissen, was das mit der Frage zu tun hat, Apeman.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393374</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Sat, 27 Oct 2007 22:11:46 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 22:12:59 GMT]]></title><description><![CDATA[<p>einGastZuViel schrieb:</p>
<blockquote>
<p>meinen code werden eine reihe anderer leute lesen, meist unter linux, deswegen frage ich .....also wie kann ich es hinbekommen dass die leute die ihn lesen auch was sauberes vor sich liegen haben?</p>
</blockquote>
<p>Wenn du in einem Team arbeitest, mach das mit dem Team aus. Aber ganz egal ob du jetzt alleine programmierst oder mit anderen. Wichtig ist: erarbeitet euch (bzw. erarbeite dir, wenn du allein arbeitest) Code-Conventions und haltet euch alle daran. Zum Thema &quot;lesserlicher Code&quot; gehoert ja noch wesentlich mehr als &quot;Tabulatorbreite&quot;, sondern auch Fragen wie &quot;kommen die { und } auf eigene Zeilen oder nicht&quot; und &quot;wie benenn ich meine Variablen (cammelCase oder underscore_separated, ...)&quot;. Da hat jeder seine eigenen Vorstellungen und Geschmaecker, und es gibt zig Flamewars und Diskussionen zu diesen Themen (auch hier im Forum).</p>
<p>Egal ob du jetzt im Team arbeitest oder nicht, du wirst es nie Allen recht machen koennen! Es gibt hier keinen &quot;richtigen&quot; Weg, das ist echt nur eine Frage von Vorlieben. Es gibt auch in der Linuxwelt zig verschiedene Konventionen, und wenn du jetzt fragst, an welche du dich halten sollst, wirst du nur einen Flamewar heraufbeschwoeren. Such dir einen Stil, der dir gefaellt und halt dich daran, und basta <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
(Wenn du im Forum/Google z. B. nach &quot;Coding Convention&quot; suchst, wirst du garantiert genug Material finden, aus dem du deine eigenen Conventions zusammenstoepseln kannst)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393375</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Sat, 27 Oct 2007 22:12:59 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 22:28:01 GMT]]></title><description><![CDATA[<p>Bouncer schrieb:</p>
<blockquote>
<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).</p>
</blockquote>
<p>Totaler Käse. Wichtig ist nur, dass du Tabs und Spaces nicht mischst. Und wie Blue-Tiger sagt, wenn du im Team arbeitest, dass du dich an eine gemeinsame Konvention hältst.</p>
<p>thordk schrieb:</p>
<blockquote>
<p>und ich bevorzuge sogar echte tabs und keinen whitespace müll</p>
</blockquote>
<p>Yep, mache ich auch. Denn wenn man das strikt durchzieht, braucht man sich um Tab-Breite überhaupt keine Gedanken machen. Das hat lediglich Auswirkungen auf die Darstellung, nicht aber die Einrückung selbst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393383</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Sat, 27 Oct 2007 22:28:01 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 22:45:19 GMT]]></title><description><![CDATA[<p>LordJaxom schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>also mit linuxern ist das so'ne sache. die haben anstatt cr/lf nur eins davon am zeilenende.</p>
</blockquote>
<p>Das hat erstens nichts mit Linux zu tun, und zweitens würde ich gerade gern wissen, was das mit der Frage zu tun hat, Apeman.</p>
</blockquote>
<p>irgendwie war mir so, als hätte der OP erwähnt, dass er textfiles zwischen linux und win austauschen möchte. deshalb hab' ich ihn auf den unterschied hingewiesen.</p>
<p>groovemaster schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>ist egal. wichtig ist nur, dass du keine 'echten tabs' benutzt, sondern spaces (0x20).</p>
</blockquote>
<p>Totaler Käse. Wichtig ist nur, dass du Tabs und Spaces nicht mischst.</p>
</blockquote>
<p>naja, kann ja sein, dass du deine quelltexte mit 'nem editor schreibst, bei dem tabs und spaces unterschiedlich angezeigt werden (word? openoffice?). sowas wäre mir zu nervig. wenn ich die tab-taste drücke, dann will ich einfach nur schneller nach rechts als mit der space-taste und deshalb ist es besser, wenn der editor dann 4 spaces einfügt als einen tab-character, dessen breite nicht festgelegt ist.</p>
<p>groovemaster schrieb:</p>
<blockquote>
<p>Das hat lediglich Auswirkungen auf die Darstellung, nicht aber die Einrückung selbst.</p>
</blockquote>
<p>alles klar, du weisst bescheid <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393387</guid><dc:creator><![CDATA[Bouncer]]></dc:creator><pubDate>Sat, 27 Oct 2007 22:45:19 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 23:31:30 GMT]]></title><description><![CDATA[<p>Bouncer schrieb:</p>
<blockquote>
<p>naja, kann ja sein, dass du deine quelltexte mit 'nem editor schreibst, bei dem tabs und spaces unterschiedlich angezeigt werden (word? openoffice?). sowas wäre mir zu nervig. wenn ich die tab-taste drücke, dann will ich einfach nur schneller nach rechts als mit der space-taste und deshalb ist es besser, wenn der editor dann 4 spaces einfügt als einen tab-character</p>
</blockquote>
<p>Begründung?</p>
<p>Bouncer schrieb:</p>
<blockquote>
<p>dessen breite nicht festgelegt ist.</p>
</blockquote>
<p>Was vollkommen belanglos ist, wenn du &quot;echte&quot; Tabs verwendest statt Spaces.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393402</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Sat, 27 Oct 2007 23:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sat, 27 Oct 2007 23:51:35 GMT]]></title><description><![CDATA[<p>groovemaster schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>naja, kann ja sein, dass du deine quelltexte mit 'nem editor schreibst, bei dem tabs und spaces unterschiedlich angezeigt werden (word? openoffice?). sowas wäre mir zu nervig. wenn ich die tab-taste drücke, dann will ich einfach nur schneller nach rechts als mit der space-taste und deshalb ist es besser, wenn der editor dann 4 spaces einfügt als einen tab-character</p>
</blockquote>
<p>Begründung?</p>
</blockquote>
<p>hab ich schon angedeutet, ansonsten --&gt; <a href="http://www.adamspiers.org/computing/why_no_tabs.html" rel="nofollow">http://www.adamspiers.org/computing/why_no_tabs.html</a></p>
<p>groovemaster schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>dessen breite nicht festgelegt ist.</p>
</blockquote>
<p>Was vollkommen belanglos ist, wenn du &quot;echte&quot; Tabs verwendest statt Spaces.</p>
</blockquote>
<p>vielleicht hast du schon mal ein code snippet in dieses board gepostet, dann weisst du, was ich meine. es ist sicher kein problem, wenn man daheim ganz allein in seinem hobbykeller programmiert. aber wehe man tauscht quelltexte mit anderen aus. spätestens dann werden echte tabs zu einem ärgernis (zum glück gibt es 'indent' und ähnliche tools, die das wieder ausbügeln können).<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393411</guid><dc:creator><![CDATA[Bouncer]]></dc:creator><pubDate>Sat, 27 Oct 2007 23:51:35 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 08:07:57 GMT]]></title><description><![CDATA[<p>auf der seite ist das beispiel hier:</p>
<pre><code class="language-cpp">typedef struct
{
  int _mp_alloc;                /* Number of *limbs* allocated and pointed
                                   to by the D field.  */
  int _mp_size;                 /* abs(SIZE) is the number of limbs
                                   the last field points to.  If SIZE
                                   is negative this is a negative
                                   number.  */
  mp_limb_t *_mp_d;             /* Pointer to the limbs.  */
} __mpz_struct;
</code></pre>
<p>wer so kommentiert, bei dem ist eh schon hopfen und malz verloren :p</p>
<pre><code class="language-cpp">typedef struct
{
  /* Number of *limbs* allocated and pointed
   * to by the D field.
   */
  int _mp_alloc;                

  /* abs(SIZE) is the number of limbs                                  
   * the last field points to.  If SIZE
   * is negative this is a negative
   * number.
   */
  int _mp_size;                 

  /* Pointer to the limbs.  */
  mp_limb_t *_mp_d;
} __mpz_struct;
</code></pre>
<p>kommentiert genauso toll und egal, was für nen einrückungstyp verwendet wird, das ganz kann schlicht nicht zerfetzt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393451</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Sun, 28 Oct 2007 08:07:57 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 09:42:11 GMT]]></title><description><![CDATA[<p>Bouncer schrieb:</p>
<blockquote>
<p>groovemaster schrieb:</p>
<blockquote>
<p>Bouncer schrieb:</p>
<blockquote>
<p>naja, kann ja sein, dass du deine quelltexte mit 'nem editor schreibst, bei dem tabs und spaces unterschiedlich angezeigt werden (word? openoffice?). sowas wäre mir zu nervig. wenn ich die tab-taste drücke, dann will ich einfach nur schneller nach rechts als mit der space-taste und deshalb ist es besser, wenn der editor dann 4 spaces einfügt als einen tab-character</p>
</blockquote>
<p>Begründung?</p>
</blockquote>
<p>hab ich schon angedeutet, ansonsten --&gt; <a href="http://www.adamspiers.org/computing/why_no_tabs.html" rel="nofollow">http://www.adamspiers.org/computing/why_no_tabs.html</a></p>
</blockquote>
<p>Es gibt genauso gute Argumente FUER Tabs <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
<a href="http://www.movementarian.org/docs/whytabs/" rel="nofollow">http://www.movementarian.org/docs/whytabs/</a><br />
<a href="http://www.derkarl.org/why_to_tabs.html" rel="nofollow">http://www.derkarl.org/why_to_tabs.html</a></p>
<blockquote>
<p>In fact, the advantage of hard-tabs is demonstrated by the kde cvs repository. Most applications are indented with spaces, most of those are inconsistently tabbed. Of the few tabbed modules (aRts, Noatun), the code is exactly 100% consistent.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1393477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393477</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Sun, 28 Oct 2007 09:42:11 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 12:14:48 GMT]]></title><description><![CDATA[<p>Blue-Tiger schrieb:</p>
<blockquote>
<p>Es gibt genauso gute Argumente FUER Tabs <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
</blockquote>
<p>ja, es ist, wie so vieles beim programmieren, eine glaubensfrage.<br />
ich z.b. verwende nur spaces und gehe damit von vorn herein allen tab-problemen aus dem weg.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393535</guid><dc:creator><![CDATA[But god didn&#x27;t listen]]></dc:creator><pubDate>Sun, 28 Oct 2007 12:14:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 12:26:26 GMT]]></title><description><![CDATA[<p>Persönlich 4. Ist aber dank indent total egal. Ebenso Tab/Space, Allman/K&amp;R/GNU, ...</p>
<p>Edit: Allman heisst der Mensch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393542</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 28 Oct 2007 12:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 12:22:38 GMT]]></title><description><![CDATA[<p>Ah ich danke allen für ihren regen Beitrag - ihr habt mir (auch wenn ihr es nicht glaubt) doch um einiges weitergeholfen. Ich hoffe das eskaliert hier jetzt nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393543</guid><dc:creator><![CDATA[einGastZuViel]]></dc:creator><pubDate>Sun, 28 Oct 2007 12:22:38 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 13:10:29 GMT]]></title><description><![CDATA[<p>Wie rücken denn die Tab-Verfechter sowas ein:</p>
<pre><code class="language-cpp">void func(int a,
          int b)
{
}
</code></pre>
<p>Tabs darf man nur benutzen wenn man genau weiß was man tut. Die wenigsten tun das aber und sobald der Code dann mal mit anderer Tabweite dargestellt wird ist er verhunzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393562</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393562</guid><dc:creator><![CDATA[DrGreenthumb]]></dc:creator><pubDate>Sun, 28 Oct 2007 13:10:29 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 13:24:15 GMT]]></title><description><![CDATA[<p>DrGreenthumb schrieb:</p>
<blockquote>
<p>Tabs darf man nur benutzen wenn (...)</p>
</blockquote>
<p>wer bistn du? die tab-polizei? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393571</guid><dc:creator><![CDATA[tolulol]]></dc:creator><pubDate>Sun, 28 Oct 2007 13:24:15 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 13:24:18 GMT]]></title><description><![CDATA[<p>thordk schrieb:</p>
<blockquote>
<p>kommentiert genauso toll und egal, was für nen einrückungstyp verwendet wird, das ganz kann schlicht nicht zerfetzt werden.</p>
</blockquote>
<p>Ist natürlich die Frage, ob man sich seinen Einrückungsstil von Tabs diktieren lassen will <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393572</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Sun, 28 Oct 2007 13:24:18 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 14:17:21 GMT]]></title><description><![CDATA[<p>*g* gut, wenn der Threadersteller jetzt eh seine Antwort hat koennen wir ja noch etwas weiterdiskutieren. Finds cool mal einen ernsthaften Thread ueber das Thema zu haben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>DrGreenthumb schrieb:</p>
<blockquote>
<p>Wie rücken denn die Tab-Verfechter sowas ein:</p>
<pre><code class="language-cpp">void func(int a,
          int b)
{
}
</code></pre>
<p>Tabs darf man nur benutzen wenn man genau weiß was man tut. Die wenigsten tun das aber und sobald der Code dann mal mit anderer Tabweite dargestellt wird ist er verhunzt.</p>
</blockquote>
<p>Ich bin Tab-Verfecheter, aber das wuerd ich natuerlich mit Spaces einruecken ==&gt; <strong>Tabs for indentation, spaces for alignment</strong>.</p>
<p>anderes Beispiel:</p>
<pre><code>if (a &amp;&amp; b)
{
    doSomething(a_very_long_parameter,
                another_one);
}
</code></pre>
<p>wuerd ich so einruecken:</p>
<pre><code>if (a &amp;&amp; b)
{
[i]&lt;tab&gt;[/i]doSomething(a_very_long_parameter,
[i]&lt;tab&gt;[/i]............another_one);
}
</code></pre>
<p>Sprich: was nicht Einrueckung ist, sondern zum &quot;Code-Formattieren&quot; gehoert, mach ich mit Spaces damit es auch bei anderen Tab-Widths noch vernuenftig ausschaut <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> (was bei Spaces-Einrueckungen nicht moeglich ist, da ist die Einrueckbreite &quot;fix&quot;). Aber der &quot;echte&quot; Grund, warum ich Tabs bevorzuge, ist folgender:</p>
<pre><code class="language-cpp">if (a)
{
    int x = blubb();
    doSomething();
    int y = frablabla();
}
</code></pre>
<p>Angenommen ich moechte jetzt was auskommentieren:</p>
<pre><code class="language-cpp">// MIT TABS: layout bleibt erhalten
if (a)
{
    int x = blubb();
//  doSomething();
    int y = frablabla();
}

// MIT SPACES: layout bleibt nicht erhalten
if (a)
{
    int x = blubb();
//    doSomething();
    int y = frablabla();
}
</code></pre>
<p>Das das Zeilen-Auskommentieren immer die Blockstruktur optisch kaputt macht, stoert mich immer ein bisschen. Geht das nur mir so?<br />
(man kann logisch argumentieren dass auskommentierte Zeilen sehr selten vorkommen, etc. aber hin &amp; wieder kommt das bei mir einfach vor)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393595</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Sun, 28 Oct 2007 14:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Welche Tabulatorbreite? on Sun, 28 Oct 2007 14:40:49 GMT]]></title><description><![CDATA[<p>Blue-Tiger schrieb:</p>
<blockquote>
<p>Sprich: was nicht Einrueckung ist, sondern zum &quot;Code-Formattieren&quot; gehoert, mach ich mit Spaces damit es auch bei anderen Tab-Widths noch vernuenftig ausschaut</p>
</blockquote>
<p>das ist ein guter Kompromiss... nur stelle ich mir das sehr mühselig vor oder passiert das automatisch? I.d.R. werden im Tab-Modus solche Leerstellen ja mit Tabs aufgefüllt und nur am Ende um Leerzeichen ergänzt.</p>
<p>Das mit dem Auskommentieren stimmt schon, aber nur deswegen würde ich nicht Tabs benutzen. Dann lieber den Editor so einstellen das er die Kommentare auch bei Leerzeichen so ersetzend einfügt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1393609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1393609</guid><dc:creator><![CDATA[DrGreenthumb]]></dc:creator><pubDate>Sun, 28 Oct 2007 14:40:49 GMT</pubDate></item></channel></rss>