38

The English words foo, bar and baz are often used as placeholder nonsense names in programming. In French, "toto, titi, tata, tutu" are common.

Which words are used for this purpose in German code?

To clarify: Although company-local traditions are interesting, that's not what I'm asking about.

Tim
  • 16,600
  • 18
  • 86
  • 165
  • 8
    This reminds me of an April-Fools joke, where Microsoft introduces G# (German Sharp), a C# implementation with German keywords ;) – OregonGhost May 27 '11 at 11:14
  • 4
    Better an April-Fools joke than the foolish German VBA they really created. – bernd_k May 27 '11 at 13:03
  • @bernd_k: Yes, and it's still in Excel. Did they do this for other languages as well? ;) – OregonGhost May 27 '11 at 13:14
  • @oregonGhost Tja und dann gibt es noch viele deutsche Übersetzungen von guten Computerbüchern, wo die automatische Übersetzung große Teile der Programmbeispiele entstellt hat. – bernd_k May 27 '11 at 13:24
  • 4
    Mein Vorschlag für eine (mehr oder weniger) akkurate Übersetzung wäre Zeug, Kneipe und Bartholomäus. ;-) – deceze May 27 '11 at 14:09
  • 1
    @deceze: Das erinnert mich an eine Situation vor ein paar Monaten. Hatte mit einem Kollegen für einen Kunden eine Software mehr oder weniger fertig. Er hatte mir dann noch per IM eine Codezeile geschickt, die ungefähr aussah wie ... Get(b). Nun macht mein Instant-Messenger aus (b) natürlich ein Bierglas... Den Screenshot davon haben wir dem Kunden dann in der Mitteilung, dass alle Fehler behoben seien und offenbar auch der Code selbst dieser Meinung sei, mitgeschickt ;) – OregonGhost May 27 '11 at 21:52
  • 3
    Random Wikipedia connection: http://de.wikipedia.org/wiki/Metasyntaktische_Variable – Debilski Jun 12 '11 at 02:00
  • @OregonGhost : they did it for french as well, alas. – ogerard Jun 21 '11 at 19:37
  • 1
    @ogerard: With accents? :D – OregonGhost Jun 21 '11 at 19:40
  • @OregonGhost : no, but worse: with different syntactic delimiters for parameters and cell addressing. – ogerard Jun 21 '11 at 19:44
  • For me, wrgl, xrgl, zrgl, and the like are international enough to use them in any language. :) – sbi Nov 22 '11 at 14:37

9 Answers9

38

Since programming is often deeply connected with the English language, I guess many if not most people use foo, bar, etc. too.

However there is of course blub and blubber or at my company blurbs, blurbsi, blubberhupps and the like are hot. It's sort of a local meme.

musiKk
  • 5,728
  • 32
  • 37
18

You could go with dings–bums, dingens–kirchens, bla–blubb–blafasel. But if we are talking about programming context, then I wager the English placeholders foo and bar are the most popular by far.

RegDwight
  • 2,335
  • 1
  • 21
  • 33
16

Bla is sometimes used. And Blub if you need a second. But since the actual code language is typically English, not German, you can use the same as in English. In my company, however, you'll find a suspicious amount of bunny in code... Everybody likes bunnies.

I hate the use of foo, bar, baz, by the way. Better think of real examples. Now that I think about it, I rarely encountered German examples with foo, bar and baz. May be coincedence though.

OregonGhost
  • 14,206
  • 1
  • 59
  • 83
5

All German Programmers I know use foo / bar. So do I, most of the time, but my own private variation is:

Nase, Hase, Vase, Blase (etc.)

5

A friend has told me that his professor extensively used “wilde” (= “wild”) and “wutz” (= diminutive of “boar”, “pig”) as metasyntactic variables. To this day, these are my favourites.

Konrad Rudolph
  • 1,047
  • 9
  • 13
2

This is not representative, but my first variable of choice is always "willi", followed by "otto" and then "franz"

teylyn
  • 3,814
  • 1
  • 20
  • 33
1

Ich nehm eene, meene, miste. Kommt glaub ich aus der Augsburger Puppenkiste. "Eene, meene, miste, es rappelt in der Kiste ...". Bedeutet, soweit ich weiß, in etwa das gleiche wie foo bar baz. :-)

Lumi
  • 801
  • 5
  • 8
  • 6
    Ne, das "eene meene miste" entstammt der "Rappelkiste", einer ZDF-Kleinkindersendung aus den 70er Jahren im Kielwasser der Sesamstraße, siehe http://www.fernsehserien.de/index.php?serie=555. – Ray Nov 16 '11 at 16:31
1

Muh, lala and bum, of course.

RegDwight
  • 2,335
  • 1
  • 21
  • 33
fzwo
  • 3,319
  • 2
  • 24
  • 27
0

I once worked on a project where the temporary or test variables were always called Hugo. Don't know though if anyone else uses it.

Jan
  • 11,406
  • 10
  • 61
  • 86