Jules Copeland wrote: > Using Foo and Bar, just seems to add another level of mental processing > to go through before you can start grasping the concepts of what's being > explained.
I'm sure this is not the answer you're looking for, but I'm afraid you're going to have to learn to live with foo, bar, baz and foobar. These reference placeholders have been in use as long as I've been programming computers. It's such an ingrained part of the programmer's culture it will likely never disappear. That being said. These placeholders are very often misused. "They are commonly used to represent unknown values, typically when describing a scenario where the purpose of the unknown values is understood, but their precise values are arbitrary and unimportant." -- Ref: http://en.wikipedia.org/wiki/Foobar What you are describing is a scenario where the unknown values may not be understood, and their values are rational and important. In these scenarios good tutorials should avoid arbitrary references placeholders and use more descriptive examples. Example: def foo bar = 10 baz = 5 foobar = bar + baz end In such an example the meaning should be clear because the placeholders are truly arbitrary and unimportant. Any attempt to assign meaning to the variable severs no apparent purpose. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

