Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Avoiding silly programming mistakes

by moritz (Cardinal)
on Aug 20, 2008 at 10:12 UTC ( #705466=note: print w/ replies, xml ) Need Help??


in reply to Re: Avoiding silly programming mistakes
in thread Avoiding silly programming mistakes

I keep forgetting to put Exporter in @ISA

I don't really like to inherit from another module just to use one or two subs. Instead I write use Exporter qw(import);.

And when (interactively) querying a database, the client has to remind me over and over again that 'cd' and 'ls' aren't valid commands.

This happens to me all the time as well. When I use the mysql prompt and enter ls<return> I see my mistake, and then press Ctrl+C to abort the command. But of course Ctrl+C actually exists the client...


Comment on Re^2: Avoiding silly programming mistakes
Select or Download Code
Re^3: Avoiding silly programming mistakes
by jhourcle (Prior) on Aug 20, 2008 at 12:59 UTC
    When I use the mysql prompt and enter ls<return> I see my mistake, and then press Ctrl+C to abort the command. But of course Ctrl+C actually exists the client...

    I'd estimate I make the ctrl-c in mysql about twice a week. Of course, the only reason it's not once a day anymore is because I'm doing less database work.

    At this point, it's been years since I used Oracle, but I have problem overriding my old habits.

    Oh -- and as of mysql 5.1.10 -- ctrl-C aborts the running query, rather than dumping immediately. (still doesn't fix the problem when you're used to sqlplus and are just trying to clear the command, though).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-10-23 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls