News for hackers. Stuff that matters.
Re:What Is Good About Haskell? by behnamoh on Thursday October 03, 2019 @06:31PM (#21152962)
> I feel like Haskell forced me to write better code by forcing me to think about side effects.

I see, but wouldn't that be possible by "forcing" yourself to think about side effects in the language you were already using?

I mean, at the end of the day, it's learning the functional programming concepts that is supposedly going to make you a better programmer. Why not just start learning those in Java, Python, JS, etc.?

One thing I hear a lot from people who've learnt Haskell is they admit they're probably never going to use it in a real-world project (for so many reasons). Then, isn't it inefficient and a waste of time to learn parts of Haskell that are only found in Haskell?!

If I were to learn FP (which I will soon), I'd choose to learn it in the language I'm using now. It's not only more efficient, but also I'd enjoy being able to put what I've learnt in practical use.

Re:What Is Good About Haskell? by empath75 on Thursday October 03, 2019 @06:45PM (#21153051)
It’s easy in python for example to rely on state without realizing you are. The Haskell compile forces you to account for it everywhere.
Re:What Is Good About Haskell? by rifung on Friday October 04, 2019 @04:01PM (#21161361)
> I mean, at the end of the day, it's learning the functional programming concepts that is supposedly going to make you a better programmer. Why not just start learning those in Java, Python, JS, etc.?

That could totally be possible for many, but for me, I need something more concrete. I had read about Haskell and the benefits of immutability and agreed from a high level, but until I actually used it, I didn't feel like I understood it.

Re:What Is Good About Haskell? by pdimitar on Sunday October 06, 2019 @06:42PM (#21175713)
> I mean, at the end of the day, it's learning the functional programming concepts that is supposedly going to make you a better programmer. Why not just start learning those in Java, Python, JS, etc.?

Because every OOP/imperative programmer I've ever known for 18 years has the easy way out in not thinking about side effects or immutability and they never proactively reach for them.

Granted my bubble is not representative of the world but this trend is nevertheless quite telling. I also never proactively reached for FP techniques in OOP/imperative language until I learned my first FP language.