Discussion

Ask HN: Refactoring tools

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?

1 points kinchen 7 years ago 2 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton