14
Wombat
5y

Still learning haskell not even knowing a single good usecase for it. Nevertheless it is fun.

Comments
  • 1
    @bittersweet thank you for the link.
  • 3
    Monads, yo

    (jk they're actually straightforward)
  • 2
    @Wombat may I ask for the link before @Jilano finds out that I asked for it
  • 4
  • 2
    @Wombat thanks a lot, mate :)
  • 2
    There's even an open source chess engine in Haskell (Barbarossa). Far weaker than top engines like Stockfish, but certainly good enough for casual players:

    https://github.com/nionita/...
  • 1
    The main use case for Haskell is training your brain to get out of certain OOP dogmas. It teaches you to focus on things like constructing types correctly, recognizing function purity, thinking about "DRY" in terms of generics and typeclassing instead of inheritance, to think about monads to model IO, exceptions and null cases safely.

    It's not even about functional programming — Haskell is about types. Haskell is the reason Rust, Swift and Kotlin have much better type systems than their ancestors.

    Not to say Haskell is perfect — well the problem is, it IS actually perfect, which also makes it nearly unusable at times.

    By learning Haskell, you learn to recognize the flaws in other languages. Some flaws are helpful, others get in the way. You start to see why those flaws exist, and how to properly navigate around them.

    So enjoy the mental exercise!
  • 1
    @bittersweet thank you. I probably don't understand half the stuff you pointed out. But I move forward again, cause I really felt stuck after learning Laravel. I feel like I am growing again. Therefore thank you again.
Add Comment