Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Perl editor idea

by rkg (Hermit)
on Jan 14, 2004 at 03:31 UTC ( #321175=note: print w/replies, xml ) Need Help??

in reply to Perl editor idea

Chromatic is right -- your problem isn't your editor, it is your code: it is nearly humanly impossible to keep 3000 lines of code and globals straight.

Chunking up your code -- subroutines, modules, or best, objects -- let you encapsulate behavior. Instead of building a 3000 line monster, you build a toolkit of little safe, snap-in software components, then build these up into larger components.

Takes some investment to learn this style of coding, but Very Much Worth it. See for example, perlboot, or Damian's book.

When writing code this way, I often feel I am getting nothing done -- just building (and unit testing!) little safe easy functions.

I work and work and work, and nothing seems to be happening (except happy tests), then all of sudden the larger app stands up walks.

It is almost suprising to see it.

And it feels good to know you don't remember anymore how every tiny detail in the system works, but that is OK, you're safe,

  • because you have your tests and
  • because you've encapsulated and
  • because you have well-defined APIs and
  • because you have good variable names and method names, ala the refactoring folks.

Just my two cents.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2023-05-30 18:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found