News for hackers. Stuff that matters.
Re:Learn You a Haskell for Great Good by sevensor on Tuesday August 21, 2018 @04:08PM (#17813265)
I've bounced off LYAH more than once because it spends so much time in the REPL. I'm not interested in the REPL as an end in itself, only insofar as it can help me develop an actual program. Outside of image-based environments, what you do in the interactive shell doesn't reflect how actual code gets written. It feels trivial, and it doesn't help you build up a library of examples to refer back to later.
Re:Learn You a Haskell for Great Good by 3rdAccount on Tuesday August 21, 2018 @06:10PM (#17814283)
This bothered me too. I use a REPL everyday, but you have to know how to write full programs too.
Re:Learn You a Haskell for Great Good by fjsolwmv on Tuesday August 21, 2018 @09:21PM (#17815433)
What book on any language shows you whole programs that couldn't be seen in repl (assuming a repl exists)
Re:Learn You a Haskell for Great Good by sevensor on Tuesday August 21, 2018 @11:04PM (#17815950)
Off the top of my head, HtDP, despite being entirely presented within DrRacket, has you work through programs that you could just as well compile. Learn Python the Hard Way, as well as every other "Hard Way" book, makes a point of having you write entire programs. The Ocaml resource that was posted a week or two ago makes a point of deemphasizing the REPL.
Re:Learn You a Haskell for Great Good by 3rdAccount on Thursday August 23, 2018 @06:43AM (#17826096)
I have over 25 programming books in my cube and another dozen or so at home. I'd say roughly 1/3 tend to favor full practical programs interlaced with snippets. The full programs are usually 1/2 to a few pages in each chapter and are in general, not something I'd try to cram into the REPL piece by piece.