Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re(tilly) 4: Efficiency in maintenance coding...

by tilly (Archbishop)
on Nov 15, 2001 at 03:05 UTC ( #125455=note: print w/replies, xml ) Need Help??


in reply to Re(3): Efficiency in maintenance coding...
in thread Efficiency in maintenance coding...

Pretty good...

But your proposed fix only handles 95% of the problem. Why didn't I try fixing things that way? (ie What does your fix miss?)

BTW so far this code example is not making the case for Perl being maintainable look very good... :-(

UPDATE
Your update is half-right. The half that is wrong is the most common misunderstanding I have encountered about how split behaves...

UPDATE 2
Eventually seems to have come. Modulo difficult questions about how the definition of a word ain't what you would expect. Consider a kudo delivered. :-)

  • Comment on Re(tilly) 4: Efficiency in maintenance coding...

Replies are listed 'Best First'.
(tye)Re: Efficiency in maintenance coding...
by tye (Sage) on Nov 15, 2001 at 03:22 UTC

    95%? You expect to only have 20 words? ;) [Update: I was thinking of a "slurp" version -- and rechecking shows that the original Perl version had a much more serious bug...]

    BTW, I guess "ain't" ain't a word. (:

            - tye (but my friends call me "Tye")
      No, it ain't, either in Java or Perl.

      BTW you are making Perl look better, which none of the rest of us were doing! The way to demonstrate maintainability is to demonstrate how easy maintainance is. Fixing the definition of "word" used to include an optional 't or 's is easily enough done in the Perl version. In the Java version it is far harder to realize this important feature...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://125455]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2017-10-21 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (269 votes). Check out past polls.

    Notices?