What's in a variable-name? on Freenode's #perl. - Fortune [possible satire]

WebDragony'all should spell it in uppercase it being an acronym and all
reactionYes, but we're *lazy*!
* WebDragon*so* noticed ;)
dkrWebDragon: people that use CamelCase have no right to criticize about capitalization. :)
WebDragondkr: I hate underscores
* dkrcontemplates a source code filter that does lets you use spaces in var names by switch them to underscores at compile time
preactionblack magic
mstdkr: source filters are evil.
mstdkr: in a bad way.
mstdkr: hacking the compiler is much more fun, and evil in a useful way :)
mstWebDragon: recommended perl style is $var_name
mstWebDragon: it's also more readable than $varName or $VarName
mstWebDragon: I'd recommend trying it for at least a month
mstWebDragon: also note that it'll make life easier because you'll be consistent with the rest of perl code
WebDragonmst: I was thinking more along the lines of filenames and irc nicknames than perl variables
mstWebDragon: ah. fair enough :)
* WebDragondoesn't use CamelCase for perl variables
mstWebDragon: then I shall cease complaining :)
avar${"Insert a descriptive essay about the variable here"}
WebDragonrofl
rindolfavar: that won't work with 'use strict 'refs''
WebDragonavar: I've seen things like that in real life and had recurring nightmares about them when I saw similar and sometimes worse things on thedailywtf.com
mstrindolf: ${main::}{"Insert a descriptive essay about the variable here"} would :)
mstrindolf: or you could just use %_ :)
dkrmy boss still occasionally uses vars like $x. still trying to beat that behavior out of him
* WebDragononly uses x|y|z for Cartesian coordinate math
WebDragonwhich, since I hardly ever do any of that, means the obvious
Channel#perl
NetworkFreenode
TaglineWhat's in a variable name?
Published2009-12-14