r/functionalprogramming • u/generic-d-engineer • Sep 01 '26
Intro to FP Looking for some feedback on learning functional programming
Hi everyone,
Long time backend operator who has taken a path like this:
Bash -> python -> Go
I thought Procedural programming in Go would click, but it’s still just not resonating much. Though I have to say that single binary plus built in testing is super nice.
In python I do not do any classes or methods. I think in runbooks, pipelines, and dags with a very clear entry point and a clear exit point. Step 1 through 10. Inputs and outputs. Functions only.
Stuff like ORM, OOP, and MVC just don’t resonate with me at all. I know they have their place but like I’m all about top to bottom thinking. Example I love is SQL pipes or GoogleSQL where you start with a big set of data and each line below it filters it down. VS traditional SQL where it’s kinda jumping around all over the place. Or CTE where it’s very clear what each step is doing.
Doing some research I saw the syntax of Clojure and it really seemed intuitive RIGHT AWAY. Elixir also looked good but Clojure seemed much more bash like.
What problem am I trying to solve? I’ve been lucky to have opportunities to learn a lot of platforms, so I consider myself a plumber who needs to be able to connect anything anywhere, automate it, bring visibility, and operational excellence.
It can be anything backend from multi-cloud, services, API, on-prem, OS, DB, you name and I will connect it.
But, I am terrible at front end so there’s that lol
Has anyone been down this path and what’s the landscape look like for the backend in 2026?
9
u/_lavoisier_ Sep 01 '26
if you’re into distributed systems, Elixir is pretty nice
2
u/bigkahuna1uk Sep 02 '26
On another question, Go being procedural, how do you find complexity growing as the size of the program grows. Is it because Go is only used for relatively, small, focused programs so this potential issue is not a problem or is managed effectively or does it become a problem for large codebases?
19
u/freedomfever Sep 01 '26
I would start with f#. Its such a sick language, but unfortunately not used much. However it’ll really make transitioning to other functional languages easier imo.
I can recommend Erlang, suuuch an amazing language for concurrency and wildly unappreciated.
14
u/raxel42 Sep 01 '26
If you somehow tied to JVM - then Scala.
If dot net - F#
For any other reasons- learn Haskell ;)
2
u/generic-d-engineer Sep 01 '26 edited Sep 02 '26
Okay fam after some additional research I’m going to give Elixir a try. The > pipe syntax maps naturally to my top to bottom brain and the examples were super easy to read. At first Clojure felt more natural but after more depth the Elixir stuff looks like it clicks better.
Plus I like how you can be explicit so your code doesn’t have to look a jumble of some ancient Egyptian hieroglyphic tomb found in movies such as the Mummy starring heartthrobs Brandon Fraser and Rachel Weisz.
Plus banning loops is a plus and I liked how the natural batching thinking of data maps right away.
And finally the type support is great and the ergonomics looks solid and can be sold to leaders who won’t have to worry about type safe code.
Edit: Gleam at the top of my list
9
u/recursion_is_love Sep 01 '26
I am not regret learning Haskell.
6
u/adambard Sep 01 '26
Throwing in another vote for clojure. It's a really well-designed language, and a good editor setup with inline evaluation will help a lot while learning to express familiar iterative concepts using a functional style with immutable collections. It does a fabulous job of making functional the default while providing tools to dip into iterative/mutative patterns where they make sense.
5
u/GunpowderGuy Sep 01 '26
My favorite languages are racket and idris2.
5
u/TomosLeggett Sep 01 '26
Tbh despite what everyone's said I'm gonna chuck my hat in and say OCaml. It's functional but with imperative guardrails.
3
u/PuzzleheadedFix8366 Sep 02 '26
elixir. best docs, best community, best DX. 🙌
2
u/pi_meson117 Sep 02 '26
F# for pretty much anything. Idk what beats it.
3
u/maxjmartin Sep 01 '26
I may get dog piled here but I suggest C++.
Why: because it has a fully functional template compilation language and is easily compatible with Python. You can do anything with it and use it functionally, objectively or any other way.
Example I wrote a functional interpreters language using it as an experiment such that it is memory safe and with functions able to be prefix, infix, or postfix.
I really enjoyed learning it after Python. Where C types is your friend.
5
u/[deleted] Sep 01 '26
[removed] — view removed comment