Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yoda coding styles
Message
 
À
21/04/2006 10:24:18
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01115355
Message ID:
01115386
Vues:
9
>>>>>Look how cleverly I aligned all the punctuation! By the way, there were no other index commands being aligned with this one. Some people need to unlearn what they have learned.
>>>>
>>>>Keeping punctuation marks alligned doesn't assist readability; keeping similar clauses in a group of similar commands does, since it can help the programmer quickly locate a certain clause.
>>>>
>>>>It is part of my personal preferences to sometimes allign code this way; it certainly doesn't always make sense (for instance, in SELECT - SQL statements it wouldn't make sense).
>>>>
>>>>And it is certainly nothing so important that I would place it into the company's coding standards.
>>>
>>>Well that's OK I guess. I've decided personal preference is a waste of time. It's almost selfish. Especially when it's imposed on others.
>>>
>>>As to this style, I can't see any benefit. Here's another one:
>>>
>>>BROW NORM NODE FIEL long long long fieldlist
>>>
>>>That's not readable except to the original programmer. Do you remember what the NODE means? I had to look it up.
>>
>>I remeber one of the first my programs writen with CLIPPER 87, I used an abbreviation (I can't remember wich) when we moved to CLIPPER 5.3 that abbreviation was changed to something other. Beleve me since then I have NEVER used abbreviation when write programs :o)
>
>Maybe we should have a programmer's oath - like the medical one. Do no harm. Don't write your code so it drives the next programmer crazy.

Indeed :o)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform