Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Programming Mess
Message
De
07/05/2013 15:45:36
 
 
À
07/05/2013 09:54:10
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01572688
Message ID:
01572937
Vues:
67
>>In 35 years I have never seen such a thing as self-explanatory code. Does not exist.
>
>Nobody's pertefc.
>
>I'd go with the next best thing - the code which is clear to the guy who needs to maintain it, and doesn't lead him to wrong conclusions about how it works, contains no misnomers, no dead code, and doesn't use esoteric tricks (or explains them in clear language).
>
>I know things that throw me off when reading code I am supposed to fix:
>
>- code which never really worked yet nobody told me so - I waste thirty minutes trying to figure how and it just won't
>
>- unused variables, code in blocks which never execute (the condition is never met)
>
>- variables initialized elsewhere, with cryptic or wrong names
>
>- obsolete or just plain wrong comments
>
>The rest, like "if x=.t." and other unnecessary pieces of code, bad formatting, ten-line screen concatenations instead of textmerge, not normalized long logical expressions - that is only annoying but not an obstacle.

AMEN. Mod +5, insightful
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform