News for hackers. Stuff that matters.
Re:English-Prime - English without "is" by jrockway on Sunday January 04, 2009 @10:33PM (#419953)
> Eliminate all assignment statements, and see how you structure your code in their absence. Then add them back as necessary.

Actually, I think removing points is the typical exercise. Removing assignment is too easy :)

http://www.haskell.org/haskellwiki/Pointfree

Re:English-Prime - English without "is" by nostrademons on Sunday January 04, 2009 @10:36PM (#419958)
Everybody has to start somewhere. Not everyone programs in Haskell. ;-)
Re:English-Prime - English without "is" by silentbicycle on Monday January 05, 2009 @10:19AM (#420537)
Which, in a roundabout way, ends up looking curiously similar to Forth... :)
Re:English-Prime - English without "is" by newt0311 on Monday January 05, 2009 @01:41AM (#420093)
Agreed. Recursion and first-class functions are something that most CS students know way too little about.
Re:English-Prime - English without "is" by eru on Monday January 05, 2009 @07:13AM (#420309)
You can also remove (explicit) recursion --- which almost the same as removing points in practise.
Re:English-Prime - English without "is" by newt0311 on Monday January 05, 2009 @10:49AM (#420583)
Not quite. The Y combinator does real work. Its not just an extra point attached at the end. Furthermore, getting rid of implicit recursion does not make one a better programmer (imho).
Re:English-Prime - English without "is" by eru on Monday January 05, 2009 @02:11PM (#420900)
But it makes your programs easier to read in many cases. Abstracting the control flow with combinators like filter, map and other folds also tends to make my programs less error prone.
Re:English-Prime - English without "is" by eru on Monday January 05, 2009 @03:52PM (#421084)
Why should the Y combinator be a point attached at the end? Do we talk about the same 'pointfree programming'?