22.11.2013 Aufrufe

Programmierstil - IPD Snelting

Programmierstil - IPD Snelting

Programmierstil - IPD Snelting

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Beispiel 7<br />

<strong>Programmierstil</strong><br />

Programmlayout<br />

Schlecht:<br />

longName = longerName + (evenLongerName<br />

+ alsoLongName) + shortName;<br />

if ((condition1 && condition2) ||<br />

(condition3 && condition4)) {<br />

doSomething();<br />

Gut:<br />

longName = longerName<br />

+ (evenLongerName + alsoLongName) + shortName;<br />

if ((condition1 && condition2)<br />

|| (condition3 && condition4)) {<br />

doSomething();<br />

Prof. Dr.-Ing. G. <strong>Snelting</strong> (Uni Karlsruhe) c○2008 by <strong>IPD</strong> <strong>Snelting</strong> – Programmieren WS 2008/2009 17 / 31

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!