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;
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
-
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 tend to use "foo" and "bar" (and their cousin, "baz") in example, prototype, and temporary code. I'll use them for variable names in coding standards and documentation. But I rarely if ever use them in production code - there's almost always a better variable name that I should be using in real code. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein
-
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 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."
-
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
Ian Darling wrote: And I knew a guy who got up to temp47 before thinking he might have gone about the function the wrong way Slow learner... :)
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 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 used to use it but stopped a long time ago. Now I dont even use temp as a variable name for the same reason I stopped using foo and bar. So much easier to name the variable so that another developer can actually tell what the hell is happening.
-
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 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.
-
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
-
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
-
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;
-
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