Joseph_R_Thomas
October 1st, 2003, 12:59 AM
hi..i noticed that developers tend to use the words Foo and Bar often while stating example for others...even in the FAQ section...
can anyone tell me what is meant by Foo and Bar>>>
tks a lot
Mick
October 1st, 2003, 02:23 AM
We've already been over this ;)
http://www.codeguru.com/forum/showthread.php?s=&threadid=240802&highlight=foobar
Joseph_R_Thomas
October 1st, 2003, 02:40 AM
tks Mr.Mick...but i still got a question...
i am reading a programming book and the author uses words like
CFoo and
CBar...
why??:confused: :confused:
Mick
October 1st, 2003, 02:46 AM
Originally posted by Joseph_R_Thomas
tks Mr.Mick...but i still got a question...
i am reading a programming book and the author uses words like
CFoo and
CBar...
why??:confused: :confused:
Because, while if I wrote a book, I wouldn't use CFoo or CBar as an example, since it's a book and the examples should be meaningful.
But when pasting pseudo-code (example code) I use foobar, foo, bar, quite often, it's meant as a temporary, a meaningless name to show functionality. Where you don't have to stop and thinking up a clever name for a class or function, because it doesn't matter, it's just an example.
It's been done that way by coders for a long time, I can't even recall when I first encountered the usage of, and asked the same question your asking, what does it mean...
Joseph_R_Thomas
October 1st, 2003, 02:52 AM
got u now Mr.Mick:)
tks a lot.....:)
fianlly now i get it....pheww,,,
years from now maybe i can tell to to another guys who post this questions....:D
all tks to you:)