Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Blank data file

by Anonymous Monk
on Jul 09, 2002 at 22:36 UTC ( [id://180641]=note: print w/replies, xml ) Need Help??


in reply to Re: Blank data file
in thread Blank data file

First off, thanks all.

Aristotle... I appreciate your comments but I'm not really a perl programmer and I don't particularly want to be. ;-) When I write server side scripts from scratch I use PHP and I tend to enjoy it. :-)

The code I gave is modified from the file access routines that an existing set of scripts was already using. I'm aware it's redundant, server intensive, and generally low end. What you saw was only the beginning. The entire member database is flat file.

The client, however, didn't ask for a rewrite (just a new script to do X, X and X) and they definitely didn't pay for one.

Replies are listed 'Best First'.
Re: Re: Re: Blank data file
by Necos (Friar) on Jul 10, 2002 at 01:15 UTC
    <rant mode>
    While it's a shame that you don't want to learn Perl, that's no excuse to write crappy code.
    </rant mode>

    On the other hand, it would be best (in future projects) to:
    use strict; use warnings;
    --------------------------------------------------------

    <rant mode again>
    Bad programming practices are bad programming practices no matter what language you're coding in. To quote one of the other monks: "Only Bad Coders Code Bad Perl." There is a nice tutorial on file locking here that would be of some great use to you in future projects. Please! Please! Please! Read up on files and file locking before writing code for "clients." I've already been bitten by not handling file locking properly, so I suggest doing some more in-depth reading, even if you're not going to become an uber Perl coder.
    </rant mode>

    Theodore Charles III
    Network Administrator
    Los Angeles Senior High
    4650 W. Olympic Blvd.
    Los Angeles, CA 90019
    323-937-3210 ext. 224
    email->secon_kun@hotmail.com
    perl -e "map{print++$_}split//,Mdbnr;"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found