Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: The joys of bad code

by snookmz (Beadle)
on Nov 22, 2004 at 20:34 UTC ( #409728=note: print w/ replies, xml ) Need Help??

in reply to The joys of bad code

Unfortunately, my past (and probably present) code..

When setting up a DBI query:

$command = "UPDATE staff SET $tag=\"$value\" WHERE id=\"$params{\"id\" +}\" AND $tag!=\"$value\""; my $sth = $dbh->prepare("$command");

Most of my old code is currently running a simple employee status / timesheet system. I always groan when i'm asked to changed / fix something in it as it's a house of cards just waiting to topple over.

I like to think I've improved a lot, but when I think of the stuff the monks here write I realise just how much I have to go :)

Comment on Re: The joys of bad code
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://409728]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-27 06:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (719 votes), past polls