Programmierstil - IPD Snelting
Programmierstil - IPD Snelting
Programmierstil - IPD Snelting
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
Beispiel 3<br />
<strong>Programmierstil</strong><br />
Namen und Kommentare<br />
Schlecht:<br />
// check if l is bigger than max<br />
if (l > max) {<br />
Gut:<br />
// space left?<br />
if (length > maxLength) {<br />
Prof. Dr.-Ing. G. <strong>Snelting</strong> (Uni Karlsruhe) c○2008 by <strong>IPD</strong> <strong>Snelting</strong> – Programmieren WS 2008/2009 10 / 31