top | item 42263199

(no title)

ndjdjddjsjj | 1 year ago

An AST for you favourite language is readily availble so get one and go nuts.

I am sure in 2006 or so I was doing "extract method" in Resharper. And Lispers probably doing it for centuries ;)

discuss

order

Philpax|1 year ago

The fascinating part isn't that it can modify code accordingly to some rules - it's that it can modify code from _arbitrary_ languages without having a grammar or semantic analysis for them.

ndjdjddjsjj|1 year ago

I think the tool has some grammar info: C, C++, C#, Java, Go, JS are similar.

And that is enough when:

1. Most code in a code file is irrelevant to whatever specifc bug is being looked at.

2. It is removal of code at play not writing code.