WordPressのカスタマイズとプラグイン、CSSテクニック、SEOの話題など。
In: ネット
27 1月 2009プログラムのコードやReadmeを見ていると、サンプルの変数名やパスワードとして「hoge」が使われていることがあります。
これは、日本で普及しているプログラミング業界の隠語で、特に意味はないものですが、ファイル名、関数名、変数名などの使い捨てワードとしてよく使われています。
由来はよく分からないのですが、間投詞としての「ほげ?」が、80年代にコンピュータギークの間で使われて定着した、ということのようです。
「ほげ」を使用した最古の記録の一つは、1984年頃に 曽田大明神@名古屋大学(現SRA)が使用した “hoge” です。 現在でも曽田大明神に奉納されている 3.5 吋のフロッピィディスク中には 当時のままに残っている可能性があります。
(A page of HOGE)
というわけでもちろんこの「hoge」は、日本国内でだけ通用するジャーゴンです。
では海外ではhogeを使いたいような場合にどんなのが使われているのか?というと、「foo,bar」といったものが使われることが多いようです。
こちらで、各国語版の「hoge」が紹介されています。
広告
metasyntactic variable
foo, bar, baz, quux, quuux, quuuux. . . : MIT/ Stanford usage, now found everywhere ( thanks largely to early versions of this lexicon! ) . At MIT ( but not at Stanford) , baz dropped out of use for a while in the 1970s and ‘ 80s. A common recent mutation of this sequence inserts quxbefore quux. bazola, ztesch: Stanford ( from mid- ‘ 70s on) . foo, bar, thud, grunt: This series was popular at CMU. Other CMU- associated variables include gorp. foo, bar, bletch: Waterloo University. We are informed that the CS club at Waterloo formerly had a sign on its door reading “Ye Olde Foo Bar and Grill”; this led to an attempt to establish “grill” as the third metasyntactic variable, but it never caught on. foo, bar, fum: This series is reported to be common at XEROX PARC. fred, jim, sheila, barney: See the entry for fred. These tend to be Britishisms. flarp: Popular at Rutgers University and among GOSMACS hackers. zxc, spqr, wombat: Cambridge University ( England) . foo, bar, baz, bongo Yale, late 1970s. snork Brown University, early 1970s. foo, bar, zot Helsinki University of Technology, Finland. blarg, wibble New Zealand. toto, titi, tata, tutu France. pippo, pluto, paperino Italy. Pippo /pee´po/ and Paperino / pa·per·ee’ ·no/ are the Italian names for Goofy and Donald Duck. oogle, foogle, boogle; zork, gork, bork These two series ( which may be continued with other initial consonents) are reportedly common in England, and said to go back to Lewis Carroll. Of all these, only foo and bar are universal (and baz nearly so).
(metasyntactic variable)
各国の大学発ですね。結論としてもっともユニバーサルなのは「foo,bar」(次点でbaz)ということでした。
それではfoo,barとは何か、というのが気になりますが、これは英語のスラングが語源というのが定説になっているようです。
foo/bar の由来はいろんな説がありますが、映画『プライベート・ライアン』でも使われていました第二次大戦中のアメリカ兵のスラング「fubar」(Fuck Up Beyond All Recognition =“何から何までめっちゃくちゃ”)を2つに分けたもの・・・という説が有力そうです。
(MSN相談箱 foo/baa の表記について)
ここは、SE見習いである私ことdaceloが、日夜習得していくシステム関連の備忘録、phpやWordPressTipsのネタ、あるいはSEOやWebマーケティング関連の雑感を投稿するブログです。 平日は大体毎日投稿しています。土日は休業日です。
40 Responses to hoge, hogehogeの由来、foo,bar の語源
トラックバックURL:かてぃっく
10月 22nd, 2009 at 8:15 AM
@いるねす これ。実際に検索するとそれっぽい人が中部にいる。俺は先輩から聞いた。http://bit.ly/irehh
smlifcatic
10月 22nd, 2009 at 5:15 PM
@いるねす これ。実際に検索するとそれっぽい人が中部にいる。俺は先輩から聞いた。http://bit.ly/irehh
旭
3月 1st, 2010 at 2:24 PM
@argentum25 たぶんあんまり難しく考えなくていいと思いますよー。って説明サイトがありました!人名前じゃなかった!w つhttp://bit.ly/cBgXAm
palette35
3月 1st, 2010 at 11:24 PM
@argentum25 たぶんあんまり難しく考えなくていいと思いますよー。って説明サイトがありました!人名前じゃなかった!w つhttp://bit.ly/cBgXAm
Yuichiro Kobayashi
6月 10th, 2010 at 4:57 PM
「間投詞としての「ほげ?」が、80年代にコンピュータギークの間で使われて定着」(http://ow.ly/1WOfB) RT @langstat メタ構文変数(中略)由来は書いていない RT @langstat なぜ計算機寄りの人は「ほげほげ」という語をよく使うのだろうか?
k_2106
6月 10th, 2010 at 5:03 PM
へぇ。由来は考えたことなかったな。 RT @langstat 間投詞としての「ほげ?」が、80年代にコンピュータギークの間で使われて定着」(http://ow.ly/1WOfB) RT @langstat RT http://bit.ly/9W7SEu
langstat
6月 11th, 2010 at 1:57 AM
「間投詞としての「ほげ?」が、80年代にコンピュータギークの間で使われて定着」(http://ow.ly/1WOfB) RT @langstat メタ構文変数(中略)由来は書いていない RT @langstat なぜ計算機寄りの人は「ほげほげ」という語をよく使うのだろうか?
k_2106
6月 11th, 2010 at 2:03 AM
へぇ。由来は考えたことなかったな。 RT @langstat 間投詞としての「ほげ?」が、80年代にコンピュータギークの間で使われて定着」(http://ow.ly/1WOfB) RT @langstat RT http://bit.ly/9W7SEu
Pasta-K/ShutoMorii
6月 11th, 2010 at 2:29 PM
Now browsing:hoge, hogehogeの由来、foo,bar の語源 | ネット | 『Weblogy』 http://blog.dacelo.info/net/entry-662.html
pastak
6月 11th, 2010 at 11:29 PM
Now browsing:hoge, hogehogeの由来、foo,bar の語源 | ネット | 『Weblogy』 http://blog.dacelo.info/net/entry-662.html
真北
7月 10th, 2010 at 6:15 AM
bar fooの次がなんだったか忘れたから調べた. : hoge, hogehogeの由来、foo,bar の語源 | ネット | 『Weblogy』 http://bit.ly/cOqmu7
makita148
7月 10th, 2010 at 3:15 PM
bar fooの次がなんだったか忘れたから調べた. : hoge, hogehogeの由来、foo,bar の語源 | ネット | 『Weblogy』 http://bit.ly/cOqmu7
hironox
7月 25th, 2011 at 2:01 AM
hogehogeの由来…1980年代の時代考証を踏まえて
・ジャイアンの歌声(ドラえもん)
・死に際の悲鳴(北斗の拳)
・ホゲホゲタラタラ♪(どろろOP歌詞)
あたりが元ネタ候補かな
konnoWorks
9月 8th, 2011 at 7:38 AM
システム系じゃない立場からすると、なんでみんなhogehogeやるのか分からない。で、調べた。
要は「ん?」とか「え?」を「ほげ?」っていう人が過去にいたって事…? 『hoge, hogehogeの由来、foo,bar の語源』http://j.mp/oGf3hc
konnoworks
9月 8th, 2011 at 4:38 PM
システム系じゃない立場からすると、なんでみんなhogehogeやるのか分からない。で、調べた。
要は「ん?」とか「え?」を「ほげ?」っていう人が過去にいたって事…? 『hoge, hogehogeの由来、foo,bar の語源』http://j.mp/oGf3hc
勅使河原 一也
11月 10th, 2011 at 5:40 AM
http://t.co/TpRUZJKl 「hoge, hogehogeの由来、foo,bar の語源」 なんでサンプルはhogehogeってみんな使うの?って聞かれて、そういうもんですって答えておいたけど、一応由来調べとこう。
created20030410
11月 10th, 2011 at 2:40 PM
http://t.co/TpRUZJKl 「hoge, hogehogeの由来、foo,bar の語源」 なんでサンプルはhogehogeってみんな使うの?って聞かれて、そういうもんですって答えておいたけど、一応由来調べとこう。
rinsyan0518
12月 18th, 2011 at 12:34 PM
@doseisan_ons そういえば,hogeの由来を僕も知らなかった.こういうことらしいよ( http://t.co/wRCZ21SZ
rinsyan0518
12月 18th, 2011 at 9:34 PM
@doseisan_ons そういえば,hogeの由来を僕も知らなかった.こういうことらしいよ( http://t.co/wRCZ21SZ
sHino.
3月 2nd, 2012 at 4:16 AM
そういやぁfoo,barも時々見かける。ネットでコード検索してるときに。 RT @TopsyRT: hoge, hogehogeの由来、foo,bar の語源 http://t.co/bAvN1ggI
ushinomiya
3月 2nd, 2012 at 1:16 PM
そういやぁfoo,barも時々見かける。ネットでコード検索してるときに。 RT @TopsyRT: hoge, hogehogeの由来、foo,bar の語源 http://t.co/bAvN1ggI
suppy(すっぴー)
5月 22nd, 2012 at 1:56 AM
プログラミングなどで出てくる "hogehoge"。職場でたまたま「この名前のサイトってあるのかな」という話になり調べてみたらあったのでびっくり。http://t.co/2TnSq4yn http://t.co/sOZYBnU3 由来は http://t.co/nZIZUaGx
suppy193
5月 22nd, 2012 at 10:56 AM
プログラミングなどで出てくる "hogehoge"。職場でたまたま「この名前のサイトってあるのかな」という話になり調べてみたらあったのでびっくり。http://t.co/2TnSq4yn http://t.co/sOZYBnU3 由来は http://t.co/nZIZUaGx
ralit
5月 24th, 2012 at 8:45 PM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy – http://t.co/KS96MvNZ
はとさん@僕の非実写アイコン募集中
5月 24th, 2012 at 9:07 PM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy – http://t.co/KS96MvNZ
ralit
5月 25th, 2012 at 5:45 AM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy – http://t.co/KS96MvNZ
hatology
5月 25th, 2012 at 6:07 AM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy – http://t.co/KS96MvNZ
pei29 ☆( ゝω・ )vキャピ
7月 7th, 2012 at 3:37 PM
RFCにも由来が載ってた。 hoge, hogehogeの由来 Weblogy http://t.co/AvS9yKWf http://t.co/Gznt0I9R
pei29
7月 8th, 2012 at 12:37 AM
RFCにも由来が載ってた。 hoge, hogehogeの由来 Weblogy http://t.co/AvS9yKWf http://t.co/Gznt0I9R
aoisensi@プロフ読め
7月 29th, 2012 at 4:41 AM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy: http://t.co/XdJMTfjq #miteru
aoisensi
7月 29th, 2012 at 1:41 PM
hoge, hogehogeの由来、foo,bar の語源 | Weblogy: http://t.co/XdJMTfjq #miteru
Kenji Tammas
8月 23rd, 2012 at 3:01 AM
@katsuhisanakata
hogeとは
http://t.co/MM96qkqe
kenjitammas
8月 23rd, 2012 at 12:01 PM
@katsuhisanakata
hogeとは
http://t.co/MM96qkqe
NOBU1024
10月 19th, 2012 at 6:31 AM
hogeは日本のみであったか。香港人向けドキュメント作る前に確認してよかったw hoge, hogehogeの由来、foo,bar の語源 | Weblogy http://t.co/hHsPiQGw
nobu1024
10月 19th, 2012 at 3:31 PM
hogeは日本のみであったか。香港人向けドキュメント作る前に確認してよかったw hoge, hogehogeの由来、foo,bar の語源 | Weblogy http://t.co/hHsPiQGw
MOKYN
11月 29th, 2012 at 11:01 PM
プログラマにはお馴染みのhoge, foo, bar, bazの由来について。自分はmokeをよく利用します。由来は特にありませんが(笑) /** hoge, hogehogeの由来、foo,bar の語源 | Weblogy http://t.co/sNvUl5KO
こ
11月 29th, 2012 at 11:38 PM
hogehoge http://t.co/Sp7fC8Ax
swmokyun
11月 30th, 2012 at 8:01 AM
プログラマにはお馴染みのhoge, foo, bar, bazの由来について。自分はmokeをよく利用します。由来は特にありませんが(笑) /** hoge, hogehogeの由来、foo,bar の語源 | Weblogy http://t.co/sNvUl5KO
marisadaze
11月 30th, 2012 at 8:38 AM
hogehoge http://t.co/Sp7fC8Ax
nakachop
6月 19th, 2015 at 6:03 PM
"hoge"が通じないらしい でもワタシは"hoge"を知っているが"foo"とか"bar"を知らない "piyo"がカワイイと思う