Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The color of comments in your code window
Message
De
19/08/2009 10:11:52
 
 
À
18/08/2009 16:39:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01418690
Message ID:
01418930
Vues:
74
I put a blank line after sections of code - helps me keep them separate in my mind - and after years of typing other peoples' term papers, I can't type a comma without a space. I just can't and you can't make me, so THERE!

But, still being a lazy typist, I'll use the first 4 letters of a command, then either let Intellisense fill it in (if it's there) or run Beautify and let it expand the command.


>I'm not saying that one way is right or another is wrong. Just offering a differing opinion. *G*
>
>You can pass the property as a parameter, then have the decsion made.
>
>And yes, I don't know the entire architecture. But, IMO, there are still other ways. See Bob Martin's book.
>
>There is good in the code:
>- Liberal use of white space. Too many people don't use blank lines, which makes the code hard to read. Using a space after the comma in a parameter list and around the equal sign in the assignment statements are other important ones.
>- Using the full function/command name rather than the first four letters
>
>>Ah, yes... Free code review. I love it. Thanks. As a solo dev, I rarely get feedback on my code. Especially from an expert.
>>
>>I certainly subscribe to this (relatively) recent craze about correctly architected code. I've heard MANY podcasts on it in the past couple of years, and honestly, I can't get enough of it. It has caused me to re-write, and then re-write again many sections of my code.
>>
>>So, help me get the full idea of what you've presented here. I do see the beauty in it, and I like the idea, but let me explain why I did it the way did (not that I'm trying to justify or convince you, or me, that I am right).
>>
>>Your saying move the IF test into the called method, rather than addressing it where I did, at the higher level method, right? Now, the test is against a class property that will dictate wheter the target method should be called. I'm sure you see that. The reason I chose that architecture was so that I could call that target method from various other places, irrespective of the controlling class property; which I sometimes need to do.
>>
>>This let's me call the target low-level method outright and know that it will fire, otherwise, I'd have to (1) store the current value of the class property, (2) set it to true (3) call the target method (4) restore the original value.
>>
>>I can see the case for it both ways.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform