Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Perl/MySQL Development Environment

by cLive ;-) (Prior)
on May 26, 2002 at 22:43 UTC ( #169441=note: print w/replies, xml ) Need Help??


in reply to Re: Perl/MySQL Development Environment
in thread Perl/MySQL Development Environment

Let me second that, and explain why.

When debugging, I bet your routine is something like this:

  • make changes and save
  • upload with FTP client (maybe have to reconnect first)
  • reload web page that calls scripts

Now, if it's a big change you may not mind, but what if all you're doing is changing the odd word? It gets a bit tedious.

Editing in vi/vim can speed this up considerably. It's on the server, so you don't have to worry about editing stuff from another machine that doesn't have UltraEdit on it if your away from yours (only ssh client - you do use ssh, don't you:).

It's easy to get overwhelmed though with vim's features, so to begin with, I suggest you learn the following:

  • / followed by term - find
  • n - find next of last term entered
  • x - delete char
  • r char - replace character with char
  • dd - delete line
  • ^ - go to beginning of line
  • $ - go to end of line
  • i - switch to insert mode
  • o - insert line and switch to insert mode
  • ESC - return from insert mode to command mode
  • :w - save file
  • ZZ (in caps) - save and exit

Typing a number before most of the commands above duplicates the action that many times.

If you take it slowly and just learn a few commands at a time, it's easier to learn.

After that, I'd move onto keyboard movement (hjkl), marking and yanking (copying), eg m'a, followed by y'a to mark and copy. p is put (paste).

Finally, this is a good book to get you going.

.02

cLive ;-)

--
seek(JOB,$$LA,0);

  • Comment on Re: Re: Perl/MySQL Development Environment

Replies are listed 'Best First'.
(shockme) Re: Perl/MySQL Development Environment
by shockme (Chaplain) on May 27, 2002 at 00:58 UTC
    WARNING: Incoming OT post......
    When debugging, I bet your routine is something like this:
    
        * make changes and save
        * upload with FTP client (maybe have to reconnect first)
        + reload web page that calls scripts
    

    If he's using Samba, he probably doesn't have to resort to FTP. Just click the Save icon. He's going to have to hit Reload one way or the other, and he's going to have to make changes as well. Using vi/vim, he has to open a telnet (no no) or ssh (that's the ticket) session. So using vi/vim actually involves an extra step that he currently doesn't have to go through with other Windows-based editors.

    I'm not slamming you, cLive ;-). I ++'d the node. I just wanted to make it obvious to everyone that what you are recommending (which is the process I use) involves a step that is not necessary due to the use of Samba.

    All of the above is based on the assumption that I have not missed something glaringly obvious, which is highly likely and - sadly - becoming the norm for my life.

    If things get any worse, I'll have to ask you to stop helping me.

Re: Re: Re: Perl/MySQL Development Environment
by mephit (Scribe) on May 27, 2002 at 03:20 UTC
    One thing to watch out for when editing over a remote connection: lag. If it's a fast connection, the lag probably wouldn't cause any problems, but if it's over a dialup or anything else that's slow, you could end up waiting a "long" period of time for your keystrokes to get through, and things can get messy. That's a pain to deal with.

    My 3.14 cents. (Inflation, ya know...)

    --

    There are 10 kinds of people -- those that understand binary, and those that don't.

Re: Re: Re: Perl/MySQL Development Environment
by kappa (Chaplain) on May 27, 2002 at 08:48 UTC
    As a sidenote: UltraEdit can edit files over FTP, downloading and uploading when necessary (when opening and saving).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-06-25 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (135 votes). Check out past polls.

    Notices?