r/functionalprogramming • • Jan 11 '24
Question Help a newbie choose a language+web framework
Edit: I decided to go with Elixir, thanks all!
Hello, I'm new to functional programming in the sense that I don't have much proficiency with any FP language beyond basic concepts. I'm trying to work on a side project that is mostly going to be a learning experience, and wanted to do it in an FP language I'm interested in learning, but which can also be helpful in terms of career/job hunting (for reference, I'm currently an undergraduate looking for internships. i don't expect to find an FP internship, but at least later down the road I'd like to use FP at work and wanna start gaining some sort of experience now). So preferably an fp language+framework that has usage or is gaining traction in industry as well.
I found the following (after searching on this very sub):
- Haskell + IHP
- Elixir + Phoenix
- F# + (whatever is used in the .NET ecosystem)
- Scala + Tapir
- Ocaml + ???
Again, the criteria is basically: useful to put on my resume for job hunting, and also batteries-included so it's easy to "get into" for a newbie like me, and learn more about the language/ecosystem along the way as I'm building the project. Let me know which one you guys would recommend, and if there's any that I've missed! Thanks you!
5
u/newgoliath Jan 11 '24
You might also want to look at Elm. elm-lang.org
5
u/MadocComadrin Jan 12 '24
There's probably going to be plenty of language suggestions based on the merits of the language or frameworks, so I'll give one based on internships.
Jane Street uses OCaml and has regular internship cycles. They're also pretty good about sponsoring cool things: they've been the biggest corporate sponsor for ICFP consistently for a few years now and the sponsor STEM youtubers - Matt Parker is one that comes to mind.
4
u/pthierry Jan 11 '24
My team uses Servant in Haskell. It's not battery included like IHP but the type safety and ergonomy of the overall system is impressive and helpful.
9
u/doobdargent Jan 11 '24
I can only recommend Elixir, I've been using it since 2016 and I'm never going back to anything else. The style is different that other functional language in a sense that it looks imperative as most people are used to.
The scalability and resilience is built-in.
7
u/plum4 Jan 11 '24
Phoenix is so good it's hard to put into words. I've spent a lot of time reading the source code of it and learning the BEAM alongside it, and it will change the way you think of web programming.
4
u/ursaCalc Jan 12 '24 edited Jan 13 '24
From my perspective if you want to find a easy way then Elixir with Phoenix is a best choice:
If you want to learn different approaches to build app, I would suggest: Haskell or Scala
Haskell is pure language and can give you many new things and way of working. As downside not so good tooling and really big learning curve
Scala is get best (and worst) from both world Fp and OOP, tooling much nicer and learning curve is much better compare to Haskell
4
u/Joewoof Jan 13 '24
Phoenix happens to be the highest-rated web framework on StackOverflow this year. Both it and Elixir are “battle-tested,” so you should take a look there first.
1
u/BarOld1834 Jan 12 '24
Scala Play framework
3
u/[deleted] Jan 11 '24 edited Jan 11 '24
[removed] — view removed comment