Hacker News new | past | comments | ask | show | jobs | submit login

Umm .. I don't? Seriously, who needs to do this? Never had to do it in Lua. Same with Java, although I could see a case where it might be 'necessary', I still don't agree that its a good thing that the language promotes this activity.

Needing to do this indicates worse problems with the developer than the fact of a codebase being too unwieldy.




The language just promotes that it's easy to parse so that tools can be written to automatically transform source code in certain ways. Eclipse has a lot more refactorings than just reorder method arguments. Lua should theoretically fall into the same bucket of languages, it's just that there probably are fewer tools for refactoring so far.

Compare that to languages like C++ where despite its age and being used to widely there are still very few working refactoring tools.

(All that being said, I usually used method argument reordering when removing or adding arguments to a method by changing what the method is doing and then noticing that a different order makes more sense when reading.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: