jargon file

Variable “foo” and Other Programming Oddities

programming languages

Variable “foo” and Other Programming Oddities

If you’ve ever viewed UNIX documentation, you’ve probably encountered variables foo and bar at some point. Here’s a Ruby example I found in the newsgroups: foo = 0 bar = 0 1.times do foo = 1 foo := 2 bar = foo+1 end puts foo, bar O’Reilly’s FooCamp

By Jeff Atwood ·
Comments