Обсуждение: $foo $bar is BAD

Поиск
Список
Период
Сортировка

$foo $bar is BAD

От
Melvin Davidson
Дата:
Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.

Anyone that has done time in the military, and other goverment agencies, has been introduced to the term fubar, which stands for "fouled up beyond all repair". Although fouled was replaced by another similar word where the 2nd, 3rd and 4th letters were substituted with other letters that gave more significance to it. Over time, fu was somehow misheard as foo, and coders commonly started using it in examples. Not Cool!


The next time you need to make an example, please try being a little more original (or meaningful) with your variable names.

--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

Re: $foo $bar is BAD

От
John R Pierce
Дата:
On 4/15/2016 4:35 PM, Melvin Davidson wrote:
Anyone that has done time in the military, and other goverment agencies, has been introduced to the term fubar, which stands for "fouled up beyond all repair". Although fouled was replaced by another similar word where the 2nd, 3rd and 4th letters were substituted with other letters that gave more significance to it. Over time, fu was somehow misheard as foo, and coders commonly started using it in examples. Not Cool!

omg, grow up.



-- 
john r pierce, recycling bits in santa cruz

Re: $foo $bar is BAD

От
Tom Lane
Дата:
John R Pierce <pierce@hogranch.com> writes:
> On 4/15/2016 4:35 PM, Melvin Davidson wrote:
>> *Anyone that has done time in the military, and other goverment
>> agencies, has been introduced to the term fubar, which stands for
>> "fouled up beyond all repair". Although fouled was replaced by another
>> similar word where the 2nd, 3rd and 4th letters were substituted with
>> other letters that gave more significance to it. Over time, fu was
>> somehow misheard as foo, and coders commonly started using it in
>> examples. Not Cool!*

> omg, grow up.

FWIW, the Jargon File (a/k/a Hackers Dictionary) says that "foo" can be
traced back further than "fubar", making the OP's claim rather backwards.
In any case, it's an old enough term that nobody is going to give it up
on such grounds.

http://www.catb.org/jargon/html/F/foo.html

            regards, tom lane


Re: $foo $bar is BAD

От
John McKown
Дата:
On Fri, Apr 15, 2016 at 6:35 PM, Melvin Davidson <melvin6925@gmail.com> wrote:
Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.

Anyone that has done time in the military, and other goverment agencies, has been introduced to the term fubar, which stands for "fouled up beyond all repair". Although fouled was replaced by another similar word where the 2nd, 3rd and 4th letters were substituted with other letters that gave more significance to it. Over time, fu was somehow misheard as foo, and coders commonly started using it in examples. Not Cool!


The next time you need to make an example, please try being a little more original (or meaningful) with your variable names.

​I understand your dislike of this. But, in reality, the likelihood of it changing is very small. The same with SNAFU. Personally, except in a context such as this, I don't use them (I like using "bubba" for meaninglessness). And, even in examples, I think that properly named variables are a good idea. ​Let's face it "The one language all programmers use is cursing." A fact of life, even if quite improper in the past. And still improper in a business / professional setting, IMO.

 


--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.


​In the above instance, I fear this is a fantasy. [sigh]​


--
How many surrealists does it take to screw in a lightbulb? One to hold the griffon and one to fill the bathtub with brightly colored LEDs.

Maranatha! <><
John McKown

Re: $foo $bar is BAD

От
Melvin Davidson
Дата:
Thanks for the sympathetic feedback John. I understand people are reluctant to change. It was just my intent to enlighten others as to the true background behind it.
So if it's not about to change, then I'll just have to cry $boo $hoo, $oye $vey. :)

On Fri, Apr 15, 2016 at 8:05 PM, John McKown <john.archie.mckown@gmail.com> wrote:
On Fri, Apr 15, 2016 at 6:35 PM, Melvin Davidson <melvin6925@gmail.com> wrote:
Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.

Anyone that has done time in the military, and other goverment agencies, has been introduced to the term fubar, which stands for "fouled up beyond all repair". Although fouled was replaced by another similar word where the 2nd, 3rd and 4th letters were substituted with other letters that gave more significance to it. Over time, fu was somehow misheard as foo, and coders commonly started using it in examples. Not Cool!


The next time you need to make an example, please try being a little more original (or meaningful) with your variable names.

​I understand your dislike of this. But, in reality, the likelihood of it changing is very small. The same with SNAFU. Personally, except in a context such as this, I don't use them (I like using "bubba" for meaninglessness). And, even in examples, I think that properly named variables are a good idea. ​Let's face it "The one language all programmers use is cursing." A fact of life, even if quite improper in the past. And still improper in a business / professional setting, IMO.

 


--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.


​In the above instance, I fear this is a fantasy. [sigh]​


--
How many surrealists does it take to screw in a lightbulb? One to hold the griffon and one to fill the bathtub with brightly colored LEDs.

Maranatha! <><
John McKown



--
Melvin Davidson
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.

Re: $foo $bar is BAD

От
Jan de Visser
Дата:
On Friday, April 15, 2016 8:13:56 PM EDT Melvin Davidson wrote:
> *Thanks for the sympathetic feedback John. I understand people are
> reluctant to change. It was just my intent to enlighten others as to the
> true background behind it.*
> *So if it's not about to change, then I'll just have to cry $boo $hoo, $oye
> $vey. :)*

Reading this:

  http://programmers.stackexchange.com/a/80609

it appears to me that the true origin is not what you claim it to be, but pre-
war MIT pranksters.

And besides: language evolves. Words change meaning over time. Nobody typing
'foo = 2*bar' thinks about WW2 acronym, and everybody reading it immediately
understands it, again without referring to that acronym.

The horse is dead, Jim. Stop beating it.




Re: $foo $bar is BAD

От
Peter Devoy
Дата:
> Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.

> The next time you need to make an example, please try being a little more original (or meaningful) with your variable
names.

In light of recent CoC decisions, I would like to propose the
opposite.  I think more expletives would
diversify the language of the documentation and lower the barriers to
contribution by individuals more
dispositioned to use colourful language due to their cultural and/or
socioeconomic background. O:-)


Re: $foo $bar is BAD

От
"Joshua D. Drake"
Дата:
On 04/15/2016 04:35 PM, Melvin Davidson wrote:
> *Although people commonly use $foo $bar in examples, it is actually a
> misuse of a VERY rude acronym.

Actually it isn't.

>
> *The next time you need to make an example, please try being a little
> more original (or meaningful) with your variable names.
> *

I don't see this happening.

JD


>
> --
> *Melvin Davidson*
> I reserve the right to fantasize.  Whether or not you
> wish to share my fantasy is entirely up to you.


--
Command Prompt, Inc.                  http://the.postgres.company/
                         +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.


Re: $foo $bar is BAD

От
Gavin Flower
Дата:
On 16/04/16 14:00, Peter Devoy wrote:
>> Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.
>> The next time you need to make an example, please try being a little more original (or meaningful) with your
variablenames. 
> In light of recent CoC decisions, I would like to propose the
> opposite.  I think more expletives would
> diversify the language of the documentation and lower the barriers to
> contribution by individuals more
> dispositioned to use colourful language due to their cultural and/or
> socioeconomic background. O:-)
>
>
Peter,

You're just a misbegotten son of a Third Hand Camel Dealer!  :-)


Cheers,
Gavin


Re: $foo $bar is BAD

От
Brent Wood
Дата:

+1

We should be "open" to include various languages, dialect & colloquialisms in documentation... the measure is whether the meaning is clear - foobar has a long history, as do foo & bar, in the communication of ideas.

That would mean no jargon, abbreviations, humour, sarcasm, acronyms, etc...

If we refused to use any words which had a historical connotation than might offend someone, we might as well forget about documentation altogether.



Brent Wood


Brent Wood
Principal Technician - GIS and Spatial Data Management
Programme Leader - Environmental Information Delivery
+64-4-386-0529 | 301 Evans Bay Parade, Greta Point, Wellington | www.niwa.co.nz
NIWA
To ensure compliance with legal requirements and to maintain cyber security standards, NIWA's IT systems are subject to ongoing monitoring, activity logging and auditing. This monitoring and auditing service may be provided by third parties. Such third parties can access information transmitted to, processed by and stored on NIWA's IT systems.
________________________________________
From: pgsql-general-owner@postgresql.org <pgsql-general-owner@postgresql.org> on behalf of Peter Devoy <peter@3xe.co.uk>
Sent: Saturday, April 16, 2016 2:00 PM
To: Psql_General (E-mail)
Subject: Re: [GENERAL] $foo $bar is BAD

> Although people commonly use $foo $bar in examples, it is actually a misuse of a VERY rude acronym.

> The next time you need to make an example, please try being a little more original (or meaningful) with your variable names.

In light of recent CoC decisions, I would like to propose the
opposite.  I think more expletives would
diversify the language of the documentation and lower the barriers to
contribution by individuals more
dispositioned to use colourful language due to their cultural and/or
socioeconomic background. O:-)


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



Вложения