When foo and bar is not enough [closed]

2019-03-08 00:19发布

When you are using placeholder names when programming (not necessary variable names, but labels, mockup names, etc) and foo and bar is not enough, what do you use?

I guess baz is rather common as third name, and the lorem ipsum for longer texts. But then what?

26条回答
劫难
2楼-- · 2019-03-08 00:35

in France we use "toto", "tata", "titi" etc... instead of foo and bar... ("tyty" is rarely used)

查看更多
We Are One
3楼-- · 2019-03-08 00:38

People at my work have a curious affinity for "monkey"

查看更多
欢心
4楼-- · 2019-03-08 00:39

After foo, bar, baz and qux, which are the only canonical ones I can remember, I tend to use "META_SYNTACTIC_VARIABLE_1", "META_SYNTACTIC_VARIABLE_2", or just "$VAR1", "$VAR2" and so on.

查看更多
我命由我不由天
5楼-- · 2019-03-08 00:39

imagination

查看更多
祖国的老花朵
6楼-- · 2019-03-08 00:40

I typically use single-letter placeholder variable names, and strings like "This is a button" or "Here is some text" / "here is more of it" for UI stuff.

查看更多
叼着烟拽天下
7楼-- · 2019-03-08 00:41

If an example is that complex, it would probably be easier to understand if you just used real variable names.

查看更多
登录 后发表回答