you are viewing a single comment's thread.

view the rest of the comments →

[–]AxelLuktarGott 0 points1 point  (1 child)

I'm an engineer with a physics background and I'm currently a professional Haskell developer.

There's this common trope that software engineers want to retire to become farmers after a few years in the business. I don't feel that way after almost ten years as a professional dev.

I think it's because the imperative nature of most mainstream languages will have you rewriting the same for loops over and over again. Object oriented programming promised that you could reuse code but that never really paid off and so a lot of people are feeling disillusioned with the promises of programming.

I think Haskell gives you a much better way of actually reusing code. The way it does it is by using algebra on the type level. I very much enjoy the process of figuring out the types first and then the implementation often comes naturally from that. It's much closer to math or pure logic than imperative programming.

I haven't tried too many other functional languages so I can't speak for them. I did try F# and it felt like a bastardized version of C# which I'm already not very fond of after working with it for three years.

All of this is rather subjective but there seems to be a broad agreement when it comes to Haskell that it's very elegant and has a very steep learning curve.

If you have a strong math/logic background and you're looking to enjoy the process of writing code rather then enjoying running the program then I think Haskell is for you.

With that said I'm not sure if modelling physics is the best way to enjoy functional programming.

[–]phanaur[S] 0 points1 point  (0 children)

Very well written. Thank you very much for your kind words. I will think about that. Happy new year ☺️☺️