News for hackers. Stuff that matters.
Re:Stop hating Java by bromagosa on Friday July 22, 2011 @09:26AM (#2793394)
Right, http://books.google.com/books?id=1MsETFPD3I0C&lpg=PP1... It actually came from Smalltalk, just for a change.
Re:Stop hating Java by silentbicycle on Friday July 22, 2011 @10:38AM (#2793685)
Actually, 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/).
Re:Stop hating Java by DanielRibeiro on Friday July 22, 2011 @09:44AM (#2793458)
Well, 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.

Re:Stop hating Java by eru on Friday July 22, 2011 @10:21AM (#2793608)
Interestingly, 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.)
Re:Stop hating Java by brazzy on Friday July 22, 2011 @12:53PM (#2794266)
You mean just like in Java?
Re:Stop hating Java by eru on Friday July 22, 2011 @01:39PM (#2794429)
Yes. But the pure part of your program tends to be bigger in Haskell than in Java.
Re:Stop hating Java by masklinn on Friday July 22, 2011 @04:14PM (#2795007)
And the type system (and compiler) help you know what's pure and what's not.