What Do You Use For Placeholder Names?

Metasyntactic variables.

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 4318 Views - Last Post: 04 April 2010 - 09:18 AM

#1 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

What Do You Use For Placeholder Names?

Posted 19 March 2010 - 02:03 AM

http://en.wikipedia.org/wiki/Foobar

You know? Foo bar baz. Good stuff, right? Well, not everybody uses foo-bar-baz; at least when they aren't displaying the code publicly.

For example, I typically use human genitalia for placeholder names. Yeah, I know, it might sound weird, but it certainly keeps things interesting. Especially when you have to pastebin the code so others can see it. ;)

So, do you have anything special patterns for placeholder names, or do you stick with the good ol' classic foo-bar-baz pattern that is so common today?

Is This A Good Question/Topic? 0
  • +

Replies To: What Do You Use For Placeholder Names?

#2 Lemur  Icon User is online

  • Pragmatism over Dogma
  • member icon


Reputation: 1381
  • View blog
  • Posts: 3,511
  • Joined: 28-November 09

Re: What Do You Use For Placeholder Names?

Posted 19 March 2010 - 02:19 AM

Lorem Ipsum Dolor Sit Amet...

I have the first few paragraphs of that danged thing memorized.
Was This Post Helpful? 2
  • +
  • -

#3 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: What Do You Use For Placeholder Names?

Posted 19 March 2010 - 12:49 PM

foo, bar, baz, x, y, z, that, thing, crap, stuff, shit
Was This Post Helpful? 0
  • +
  • -

#4 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3116
  • View blog
  • Posts: 19,153
  • Joined: 14-September 07

Re: What Do You Use For Placeholder Names?

Posted 19 March 2010 - 12:52 PM

temp
Was This Post Helpful? 0
  • +
  • -

#5 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5905
  • View blog
  • Posts: 12,808
  • Joined: 16-October 07

Re: What Do You Use For Placeholder Names?

Posted 19 March 2010 - 01:51 PM

The classic foo bar are usually enough.

Sometimes larry, moe, curly. I had a cooworker who didn't seem to approve of larry, though. Turns out it was her husband's name.

This post has been edited by baavgai: 19 March 2010 - 01:52 PM

Was This Post Helpful? 0
  • +
  • -

#6 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: What Do You Use For Placeholder Names?

Posted 20 March 2010 - 11:58 AM

I need to get some new names, foo bar baz are getting boring.
Was This Post Helpful? 0
  • +
  • -

#7 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 527
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: What Do You Use For Placeholder Names?

Posted 23 March 2010 - 11:35 AM

Quote

For example, I typically use human genitalia for placeholder names.


OK. That's pretty funny. Post a link to a pastebin. I'd like to see this in practice.
Was This Post Helpful? 0
  • +
  • -

#8 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: What Do You Use For Placeholder Names?

Posted 23 March 2010 - 07:12 PM

View PostMentalFloss, on 23 March 2010 - 10:35 AM, said:

Quote

For example, I typically use human genitalia for placeholder names.


OK. That's pretty funny. Post a link to a pastebin. I'd like to see this in practice.


http://gist.github.com/274901 Here is a rather hilarious Gist from back in January. I was apparently experimenting with Clojure datatypes, which are somewhat similar to classes.
Was This Post Helpful? 0
  • +
  • -

#9 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 527
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: What Do You Use For Placeholder Names?

Posted 23 March 2010 - 09:23 PM

View PostRaynes, on 23 March 2010 - 06:12 PM, said:

View PostMentalFloss, on 23 March 2010 - 10:35 AM, said:

Quote

For example, I typically use human genitalia for placeholder names.


OK. That's pretty funny. Post a link to a pastebin. I'd like to see this in practice.


http://gist.github.com/274901 Here is a rather hilarious Gist from back in January. I was apparently experimenting with Clojure datatypes, which are somewhat similar to classes.


Oh wow... well I did ask to see something. Thanks for sharing. LOL
Was This Post Helpful? 0
  • +
  • -

#10 TriggaMike  Icon User is offline

  • Using up all your 1's and 0's
  • member icon

Reputation: 85
  • View blog
  • Posts: 1,103
  • Joined: 26-September 08

Re: What Do You Use For Placeholder Names?

Posted 23 March 2010 - 09:44 PM

Mine always have some semblance actually, unless it's completely just temp.

Temporary Strings: temp, buff, buffer etc.

Temporary Variables for counting usually: cnt, count, i


Honestly though most of my variables have some kind of descriptive name. Like, in a 3000 line program I think I had temp maybe in 3 places.
Was This Post Helpful? 0
  • +
  • -

#11 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: What Do You Use For Placeholder Names?

Posted 24 March 2010 - 07:47 AM

View PostMentalFloss, on 23 March 2010 - 08:23 PM, said:

View PostRaynes, on 23 March 2010 - 06:12 PM, said:

View PostMentalFloss, on 23 March 2010 - 10:35 AM, said:

Quote

For example, I typically use human genitalia for placeholder names.


OK. That's pretty funny. Post a link to a pastebin. I'd like to see this in practice.


http://gist.github.com/274901 Here is a rather hilarious Gist from back in January. I was apparently experimenting with Clojure datatypes, which are somewhat similar to classes.


Oh wow... well I did ask to see something. Thanks for sharing. LOL


The most comical part is how the names fit in with the experimentation. The names were merely coincidental, but the length and width fields made it funny.
Was This Post Helpful? 0
  • +
  • -

#12 programble  Icon User is offline

  • (cons :dic :head)

Reputation: 49
  • View blog
  • Posts: 1,315
  • Joined: 21-February 09

Re: What Do You Use For Placeholder Names?

Posted 24 March 2010 - 02:30 PM

Actually, I sometimes use omgz, omg and wtf.
Was This Post Helpful? 0
  • +
  • -

#13 ShaneK  Icon User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: What Do You Use For Placeholder Names?

Posted 24 March 2010 - 03:48 PM

Gibberish, generally blah or barg or something stupid~

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#14 Choscura  Icon User is offline

  • D.I.C Lover


Reputation: 467
  • View blog
  • Posts: 2,228
  • Joined: 18-October 08

Re: What Do You Use For Placeholder Names?

Posted 25 March 2010 - 05:32 AM

moop, dink, wip, wop, yabba, moobs, occasionally the names of things that piss me off, and single character variable names (a b c).

I like the 'omg' and 'wtf' idea.
Was This Post Helpful? 0
  • +
  • -

#15 demosthenes2k8  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 93
  • Joined: 30-December 09

Re: What Do You Use For Placeholder Names?

Posted 26 March 2010 - 08:18 PM

ret, temp, tmp, str, ss (stringstream), a, b, cond, etc.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2