Programmierstil - IPD Snelting
Programmierstil - IPD Snelting Programmierstil - IPD Snelting
Beispiel 11 Programmierstil Weitere Beispiele . . . Schlecht Gut if (valid == true) { return true; } else { return false; } return valid; Prof. Dr.-Ing. G. Snelting (Uni Karlsruhe) c○2008 by IPD Snelting – Programmieren WS 2008/2009 26 / 31
Beispiel 12 Programmierstil Weitere Beispiele . . . Schlecht Gut if (isFooBar() == false) { ... } if (!isFooBar()) { ... } Prof. Dr.-Ing. G. Snelting (Uni Karlsruhe) c○2008 by IPD Snelting – Programmieren WS 2008/2009 27 / 31
- Seite 1 und 2: Programmieren Prof. Dr.-Ing. Gregor
- Seite 3 und 4: Programmierstil Grundsätzliches Wa
- Seite 5 und 6: Programmierstil Grundsätzliches Wi
- Seite 7 und 8: Beispiel 1 Programmierstil Namen un
- Seite 9 und 10: Beispiel 2 Programmierstil Namen un
- Seite 11 und 12: Beispiel 4 Schlecht: Programmiersti
- Seite 13 und 14: Beispiel 5 Programmierstil Programm
- Seite 15 und 16: Beispiel 6 Programmierstil Programm
- Seite 17 und 18: Beispiel 7 Programmierstil Programm
- Seite 19 und 20: Beispiel 8 - Schlecht Programmierst
- Seite 21 und 22: Programmierstil Programmstruktur un
- Seite 23 und 24: Programmierstil Programmstruktur un
- Seite 25: Beispiel 10 Programmierstil Program
- Seite 29 und 30: Programmierstil Allgemeine Programm
- Seite 31: Programmierstil Allgemeine Programm
Beispiel 12<br />
<strong>Programmierstil</strong> Weitere Beispiele . . .<br />
Schlecht<br />
Gut<br />
if (isFooBar() == false) {<br />
...<br />
}<br />
if (!isFooBar()) {<br />
...<br />
}<br />
Prof. Dr.-Ing. G. <strong>Snelting</strong> (Uni Karlsruhe) c○2008 by <strong>IPD</strong> <strong>Snelting</strong> – Programmieren WS 2008/2009 27 / 31