In the spirit of trying to drum up some fun discussion, I ask you the following:
Do you have a particular programming brain-cramp or faux-pax that stands out? Mine, was just this past weekend.
I am in the building a tool based around OpenSSH. So, I have this routine:
So, as part of my testing, I deliberately injected an error, by specifying $command = " /bin/l ". I was going nuts trying to figure out why my counter wouldn't increment. About an hour or so later, it dawns on me that my system alias for " ls " is " l ".my $failedActivation = 0; sub activateFirstCluster { my $offlineStatus; if ($failedActivations eq 3 ) { $offlineStatus = &executeTaskSequence($clusterHost, @offLineSequence +); } else { $command = "/bin/ls"; ($error = &runSystemCommand($command)) && $failedActivations++; print "failed $failedActivations times\n"; return $success; } }
At the time I thought it was pretty funny. But somebody's gotta have a better one than that.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Programming Brain-Cramp
by blakem (Monsignor) on Aug 20, 2001 at 08:25 UTC | |
by Hanamaki (Chaplain) on Aug 20, 2001 at 22:07 UTC | |
Re: Programming Brain-Cramp
by SparkeyG (Curate) on Aug 20, 2001 at 08:42 UTC | |
by Anonymous Monk on Aug 21, 2001 at 05:27 UTC | |
Re: Programming Brain-Cramp
by maverick (Curate) on Aug 20, 2001 at 09:11 UTC | |
Re: Programming Brain-Cramp
by RhetTbull (Curate) on Aug 20, 2001 at 20:31 UTC | |
Re: Programming Brain-Cramp
by Maclir (Curate) on Aug 20, 2001 at 20:36 UTC | |
Re: Programming Brain-Cramp
by dws (Chancellor) on Aug 20, 2001 at 21:58 UTC | |
by RedDog (Pilgrim) on Aug 21, 2001 at 05:45 UTC | |
Re: Programming Brain-Cramp
by mrmick (Curate) on Aug 20, 2001 at 17:51 UTC | |
Re: Programming Brain-Cramp
by adamcrussell (Hermit) on Aug 20, 2001 at 20:28 UTC | |
Re: Programming Brain-Cramp
by dthacker (Deacon) on Aug 21, 2001 at 16:44 UTC |
Back to
Meditations