3 ms·
It didn't. The wiki tells us that it was first used in 1990, somewhat before Java was on the scene. http://en.wikipedia.org/wiki/Code_refactoring#History http:
by mullr 15y ago
It didn't. The wiki tells us that it was first used in 1990, somewhat before Java was on the scene.
http://en.wikipedia.org/wiki/Code_refactoring#History http://en.wikipedia.org/wiki/Code_refactoring#History
- sigzero 15y agoSmalltalk was famous for it.
- sambeau 15y agoMakes sense, I guess: Java was based on Objective C which was based on Smalltalk (and C).
- bromagosa 15y agoRight, http://books.google.com/books?id=1MsETFPD3I0C&lpg=PP1&hl=ca&pg=PA71#v=onepage&q&f=false http://books.google.com/books?id=1MsETFPD3I0C&lpg=PP1... It actually came from Smalltalk, just for a change.
- DanielRibeiro 15y agoWell, Unit Tests also came from it (SUnit was the first Unit Test framework). Which is unsurprising, as refactoring without unit tests is quite daunting. But JUnit did make them mainstream, and so did Eclipse' refactorings.
- eru 15y agoInterestingly, refactoring usually works quite well for functional Haskell code without tests just relying on the types. (Of course the types won't help you in more imperative sections of your code, i.e. it's hard to guarantee a specific order of actions in the IO Monad with types only.)
- silentbicycle 15y agoActually, the Smalltalk community got it from Forth, where it was called "factoring" (no "re-"). See e.g. Leo Brodie's _Thinking Forth_ (http://thinking-forth.sourceforge.net/ http://thinking-forth.sourceforge.net/).