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

Re: Refactoring just to refactor?

by swl (Parson)
on Jun 28, 2019 at 01:46 UTC ( [id://11102055]=note: print w/replies, xml ) Need Help??


in reply to Refactoring just to refactor?

I would leave the existing code as it is. You could perhaps modify it when next you are working on that area, and then only if it can be justified on the basis of speed and/or clarity.

And WRT speed, I have not tested, so others could comment on whether there is a meaningful difference, if any at all.

edit immediately after posting: And one should ensure there are tests in place to ensure the code functions correctly after a change.

Log In?
Username:
Password:

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

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

    No recent polls found