2 ms·
You probably think you know how to write code in which you Don't Repeat Yourself. Haskell will show you you are quite wrong and there are any number of repeatin
by jerf 14y ago
You probably think you know how to write code in which you Don't Repeat Yourself. Haskell will show you you are quite wrong and there are any number of repeating patterns that you currently don't even see, and how you can factor them out too. It will also give you a fantastic workout in learning how to separate logic from code that does stuff. This definitely can have a very positive impact on the rest of your code.
Even if you only treat it as a workout like lifting weights, it can still be worth it.
The downside is, to really see this you need to try to do a couple of real projects in Haskell. Maps & folds & monads are the words of the language, not fluency. I think a great deal of the "this is useless!" has come from people taking the first mile of the thousand mile journey and wondering why nothing's different yet, and why did I bother taking this mile anyhow?