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

Re: Re (tilly) 1: Development Speed and Productivity

by mothra (Hermit)
on Nov 24, 2000 at 22:10 UTC ( [id://43249]=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 1: Development Speed and Productivity
in thread Development Speed and Productivity

As I mentioned, the copying and pasting was referring to, in this example, writing stored procs. ie. If I'm writing a proc where I have the query:

SELECT s.first_name, s.last_name, s.date_of_birth, tm.highest_mark
FROM T_STUDENT s, T_TEST_MARKS tm
...etc...

And then later I want to do another query using some of the same fields, I used to retype the field and table names, even though copying and pasting them would be much faster (of course :). I certainly wouldn't keep copying and pasting functions or other "I-want-to-be-in-a-module" types of thingies into several different scripts/programs/whatever you want to call them. After all, that's what modules are for. Not to mention that copying and pasting code (with the idea "hey, this almost does what I want, I'll just c/p it here and make some changes!") is very dangerous. :)

-- mothra

  • Comment on Re: Re (tilly) 1: Development Speed and Productivity

Replies are listed 'Best First'.
Re: Re: Re (tilly) 1: Development Speed and Productivity
by zigster (Hermit) on Nov 27, 2000 at 15:32 UTC
    I have had to do similar stuff before I wrote an perl application to create the SQL from the database directly. Point it at a table (or two) and it creates the select then edit the select. This is probs better than cut/paste. -- Zigster

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found