Re: [Rails] Stop using Foo Bar!

2010-03-31 Thread Peter Hickman
Part of the problem with more 'realistic' variable names is that some people will fixate on the names and fail to notice the general principal. For example def has_min_elements?(foo, bar) foo.size >= bar end might be harder to read for someone new but def bookshelf_has_at_least(bookshelf, numb

Re: [Rails] Stop using Foo Bar!

2010-03-31 Thread Gregory Seidman
On Wed, Mar 31, 2010 at 01:59:36PM +0200, Jules Copeland wrote: > I'm teaching myself RoR, and I've found myself on this forum a fair few > times when looking for solutions to problems. > > I've also found many other sites with help forums and tutorials as well. > > This may seem like a petulant

Re: [Rails] Stop using Foo Bar!

2010-03-31 Thread Hassan Schroeder
On Wed, Mar 31, 2010 at 4:59 AM, Jules Copeland wrote: > This may seem like a petulant request, but please for the love of all > things holy, can people stop using foo and bar in code demos and > tutorials please? c.f. -- Hassan Schroeder -

RE: [Rails] Stop using Foo Bar!

2010-03-31 Thread Joel Dezenzio
You can always use Voo, Doo, and Vlad. Metasyntactic variables are not meant to be creative or original though. They are simply meant to represent unknown variables. The common ones are Foo, Bar, and Baz. -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

Re: [Rails] Stop using Foo Bar!

2010-03-31 Thread Rimantas Liubertas
> Can I just ask for a little bit of imagination when giving examples > please? No. Longer version: programming is dealing with abstractions. If one want to learn programming then it is unavoidable. Or maybe I am just spoiled by those math teachers who used a and b, x, y and z instead of trying t