Hacker News new | ask | show | jobs
Ask HN: Refactoring tools
1 points by kinchen 2703 days ago
Hey HN,

In a large project of mine, I regularly have code wrapped across multiple lines that could be expressed more succinctly using a different series of calls.

My initial stab at how to refactor this is to create a small parser that iterates through these files and refactors as appropriate. Is this overkill? Doesn't seem quite right for sed, but awk might work. Any other tools I'm missing?

2 comments

Can't you use an IDE that has built in refactoring tools? What language is your project and what ide are you currently using?
Some JetBrains IDEs such as PyCharm have refactoring tools built in.