Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any good tool to refactor Perl web code? [closed]

i'm currently working on a perl web app LAMP style and recently stumbled upon this death maze of code left by some previous developer. He left so many magic numbers and weird logic that it's gives me a headache everytime i had to go through it.

I'm learning unit testing right now so i want to find some useful tool to refactor the code and write unit test along the way to make sure that i don't accidentally break anything.

Any recommendation for any good refactoring tool for LAMP perl? Preferably free :)

Thanks.

like image 927
melaos Avatar asked Feb 02 '09 09:02

melaos


People also ask

What is refactoring in C#?

This refactoring allows you to modify a method signature in the following ways: Add, remove, rename, or reorder parameter(s) Change return type. Change parameter type(s) Rename method.


2 Answers

I think Eclipse / EPIC has "some" Perl refactoring tools... but don't quote me on that ;-)

Might also be worth checking out Komodo. However the full version isn't free like Eclipse / EPIC. You could try their opensource version Komodo Edit but I guess it won't have all the features?

I've not used either above or any other refactoring tools... I get by with vi/vim & TextMate editors and what they provide (or what I've so far found in each of these editors!).

Making unit tests is a good start. Also have a look perltidy / Perl::Tidy & Perl::Critic which may help peer thru the mess and find some of those "code smells".

like image 138
draegtun Avatar answered Sep 24 '22 06:09

draegtun


Probably, volunteers on Refactor :my => 'code' can help you. Anyway, it's free to ask :)

like image 21
sastanin Avatar answered Sep 20 '22 06:09

sastanin