4 ms·
Here are some Haskell tutorials that do introduce the language by walking you through an actual interesting problem: Use simulated annealing to solve a computa
by mbrubeck 17y ago
Here are some Haskell tutorials that do introduce the language by walking you through an actual interesting problem:
Use simulated annealing to solve a computational geometry problem: "The final program will have less than 100 lines of Haskell and will organize a mass picnic in an arbitrarily-shaped public park map and will print pretty pictures showing where everyone should sit!" http://www.lisperati.com/haskell/ http://www.lisperati.com/haskell/
"Write Yourself a Scheme in 48 Hours" (implementing a simple parser and interpreter): http://jonathan.tang.name/files/scheme_in_48/tutorial/overview.html http://jonathan.tang.name/files/scheme_in_48/tutorial/overvi...
Most chapters of Real World Haskell also take this form. For example, it walks you through writing a parsing library, and a barcode scanning program: http://book.realworldhaskell.org/ http://book.realworldhaskell.org/
- viraptor 17y agoJust to add to the programming tutorials list, here's one for (/from) the Haiku project / C++: http://www.haiku-os.org/tags/tutorials http://www.haiku-os.org/tags/tutorials - a series of blog posts.
- mbrubeck 17y agoThanks, it pleases me so much to browse through these. The first desktop apps I wrote were on BeOS[1], and it's still the best-designed GUI toolkit (and probably the cleanest and most usable C++ API) that I've seen. Kudos to the Haiku project for keeping the flame alive. [1]: http://www.advogato.org/person/mbrubeck/diary/101.html http://www.advogato.org/person/mbrubeck/diary/101.html
- silentbicycle 17y agoI'm not sure that "Write Yourself a Scheme in 48 Hours" is the greatest example of a language tutorial that isn't steeped in programming-language-theory-geekery-for-its-own-sake. :)