Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FOO - where does it come from?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00539920
Message ID:
00540211
Vues:
18
>Yes and he is actually a good programmer.
>
>>Do you know, what happened with the original programer? Is he still programming? :)
>>
>>>It's not the worse way to name variables. I supported an application where original developer used variavbles name like m.f*ckyou and user would call and complain that program is cursing her. It turned out that she got message "Variable 'f*ckyou' not found".
>>>
>>>>>>
>>>>>>Before Nancy's explanation I thought, that it's an short form of "function". Anyway, I personally hate to see all these "foo"s in my colleague's code. I always use a meangful name for variables, objects, etc., even for temp variables.
>>>>>
>>>>>
>>>>>
>>>>>Nadya,
>>>>>
>>>>>You mean that they actually use FOO and BAR in real live code!!!
>>>>>
>>>>>Even *I* wouldn't do a thing like that.
>>>>>
>>>>>Cheers,
>>>>>
>>>>>Chris
>>>>
>>>>Don't remember about BAR, but FOO - definitely... Something like FOO=&CallProc
>>>>Another problem is, that not all variables are declared. This also contradicts with my style, because I declare each used variable explicitly (though it's unnecessary). I also use l+type prefix, thought this is also obsolete, becase I also use m. to distinquish vars from table fields...

Sergey;

I went to work for the “worlds primer urine analysis company”, as a Visual FoxPro Programmer. My first project was to make work a program written by a consultant who was no longer on the company premises. The information on file was critical and was often used in a court of law. People lost careers and went to jail because of the information we supplied. As I looked at the source code I found the following: All variables were preceded with the letters pp_, so pp_firstname, pp_lastname, etc. Comments were always preceded with “Ming was here!”

After resolving the problems I brought this coding methodology to the attention of our IT Director – who stated “That is very unprofessional”! No kidding!

Tom
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform