FB18 - Das Forum für Informatik

fb18.de / Off-Topic / Allgemeines

Code-Conventions: So macht man's richtig!

Code-Conventions: So macht man's richtig! 2004-11-11 02:05
Viciarg
How To Write Unmaintainable Code

Für eventuelle Punktabzüge oder Scheinverlust bei P3 übernehme ich keine Haftung. Bei P2 sollte es nicht soo schlimm sein [img]http://www.fb18.de/gfx/15.gif[/img]

Re: Code-Conventions: So macht man's richtig! 2004-11-11 02:35
Da:Sourcerer
Bei P2 sollte es nicht soo schlimm sein [img]http://www.fb18.de/gfx/15.gif[/img]
…weil da keiner drauf achtet?

Aber: Sehr schöner Text [img]http://www.fb18.de/gfx/14.gif[/img]

Re: Code-Conventions: So macht man's richtig! 2004-11-11 11:24
Viciarg
Bei P2 sollte es nicht soo schlimm sein [img]http://www.fb18.de/gfx/15.gif[/img]
…weil da keiner drauf achtet?

Nein, weil die selbst net besser sind ;)

Re: Code-Conventions: So macht man's richtig! 2004-11-11 18:38
dr.Gonzo
Grossartige Vorschlaege die auf der Seite gemacht werden.
Besonders bei der Sache mit der ungarischen Notation und den Zahlenspielen bei der Farbe habe ich geut gelacht.[img]http://www.fb18.de/gfx/28.gif[/img]

Re: Code-Conventions: So macht man's richtig! 2004-11-12 08:54
sChQrf
jo, ich wär mehrmals fast erstickt vor lachen… besonders gut gefallen hat mir:
Insist on carrying outright orthogonal information in your Hungarian warts. Consider this real world example: "a_crszkvc30LastNameCol". It took a team of maintenance engineers nearly 3 days to figure out that this whopper variable name described a const, reference, function argument that was holding information from a database column of type Varchar[30] named "LastName" which was part of the table's primary key. When properly combined with the principle that "all variables should be public" this technique has the power to render thousands of lines of source code obsolete instantly!

Re: Code-Conventions: So macht man's richtig! 2004-11-12 18:55
Eddie
Erinnert mich daran, dass ich früher true immer durch Ausdrücke wie "2*2 == 2+2" umschrieben hab. [img]http://www.fb18.de/gfx/15.gif[/img]