Re:You can use C-Reduce for any language
by Philpax on Thursday November 28, 2024 @05:28AM
(#42264138)
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.
Re:You can use C-Reduce for any language
by ndjdjddjsjj on Thursday November 28, 2024 @06:45AM
(#42264531)
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.
I am sure in 2006 or so I was doing "extract method" in Resharper. And Lispers probably doing it for centuries ;)