How many people use fubar?
-
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
I use variable names that make sense :) So I don't use
foo
orbar
at all, unless my variable actually represents a bar... ;)Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
I use it here and there. I've also become accustomed to using 0xDEADDEAD and the likes throughout my embedded code. Anyone else having some fun with hex in their stuff? -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
Microsoft's eMbedded Visual C++ team clearly love it:
The program '_blah_' has exited with code -1159943394 (0xBADCAB1E).
:wtf: :squint: Ah, replace 1 with L... -- Mike Dimmick -
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
keegan wrote: instead of naming something 'temp' ill use foo or bar I don't use
foo
orbar
but I usedummy
. Rickard Andersson Here is my card, contact me later! UIN: 50302279 E-Mail: nikado@pc.nu Interests: C++, ADO, SQL, Winsock, 0s and 1s -
keegan wrote: instead of naming something 'temp' ill use foo or bar I don't use
foo
orbar
but I usedummy
. Rickard Andersson Here is my card, contact me later! UIN: 50302279 E-Mail: nikado@pc.nu Interests: C++, ADO, SQL, Winsock, 0s and 1s -
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
i don't use foobar. i generally use "bob". it's easier to type than "foobar". -c CheeseWeasle
-
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
-
It's a commonly used "metasyntactic variable" (see the Jargon File or dict.org). My own opinion is that it's not good style to use them in production code (for examples it is ok), and to an extent can suggest unclear thinking - much like using terms like doohickey and thingy do when describing something in physical terms. Of course, I've probably done it myself a few times, but I do tend to do things like "OrderValueTemp" instead of "Temp" :-) And I knew a guy who got up to temp47 before thinking he might have gone about the function the wrong way :laugh: -- Ian Darling
-
heh... string dummy; cout << "Enter your name..."; cin >> dummy; cout << "\nHello, " << dummy; *.* cin >> knowledge;
-
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
-
Ian Darling wrote: temp47 Yikes - maintaining his code must have been fun :~ Paul ;)
That's better! It looks like radioactive waste now. - Ryan Binns
Fortunately, it was when I was at uni, and he was in a different year to me :-D -- Ian Darling
-
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
I do, but only in either testing something or in book code snippets. Cheers, Tom Archer Inside C#,
Extending MFC Applications with the .NET Framework// Thanks to Atlantys
if (PostType == AnythingDistastful
|| PostType == AnythingOld)
{
if ((rand() % 2) == 0)
{ /* make fun of VB */ }
else
{ /* make fun of COBOL */ }
} -
Impressive, Ravi. Congrats on the nice work. Cheers, Tom Archer Inside C#,
Extending MFC Applications with the .NET Framework// Thanks to Atlantys
if (PostType == AnythingDistastful
|| PostType == AnythingOld)
{
if ((rand() % 2) == 0)
{ /* make fun of VB */ }
else
{ /* make fun of COBOL */ }
} -
I tend to come up with more descriptive names - pays dividends when I do maintenance :-D Paul ;)
That's better! It looks like radioactive waste now. - Ryan Binns
Agreed. This point is exactly why when I consult for a company, I always preach the mantra "Code is read more than it is written". Cheers, Tom Archer Inside C#,
Extending MFC Applications with the .NET Framework// Thanks to Atlantys
if (PostType == AnythingDistastful
|| PostType == AnythingOld)
{
if ((rand() % 2) == 0)
{ /* make fun of VB */ }
else
{ /* make fun of COBOL */ }
} -
I have a tendency to use the acronymn all the time in my code, instead of naming something 'temp' ill use foo or bar. I even saw foo used on a c++ test i took last year. Im just wondering how often professional programmers use it, if ever, or its just a little joke that people hint at but never use. the origin of fubar [^] *.* cin >> knowledge;
I never use either. I usually name variables using hungarian notation and selfdocumentation unless they are just iterators.. John
-
Fortunately, it was when I was at uni, and he was in a different year to me :-D -- Ian Darling
I see this kind of thing all the time in research...
feature56 = feature34 + feature23;
It does serve one unintended purpose. No one but the author could possiblly understand the code without months of study... John
-
I never caught on to using fubar, foo, or bar in any combination. I guess it was too abstract to be of any help to me, but of course, that was its purpose. Use foo when you intentionally don't want to be specific about something. Now, it has become one of those fingernail-on-the-blackboard things for me, and I hate using it and really dislike even seeing it. You won't ever see it in anything I write. Dave "You can say that again." -- Dept. of Redundancy Dept.
:rolleyes: a little tense about this. tell us how you really feel! ;) Josef Wainz Software Developer
-
i don't use foobar. i generally use "bob". it's easier to type than "foobar". -c CheeseWeasle
fred is the way to go. bob is reversible. but fred you'll never be confused which way to read the variable. i've been naming things fred for 15 years, go figure. Josef Wainz Software Developer
-
Impressive, Ravi. Congrats on the nice work. Cheers, Tom Archer Inside C#,
Extending MFC Applications with the .NET Framework// Thanks to Atlantys
if (PostType == AnythingDistastful
|| PostType == AnythingOld)
{
if ((rand() % 2) == 0)
{ /* make fun of VB */ }
else
{ /* make fun of COBOL */ }
}