4 ms·
IMHO broaden your boundaries a bit and learn a lisp or clojure-based functional style, like grab a getting started in clojure book and work through it. You wil
by qbasic_forever 3y ago
IMHO broaden your boundaries a bit and learn a lisp or clojure-based functional style, like grab a getting started in clojure book and work through it. You will learn a lot more than this guide goes into, it's really just looking at functions in a functional style but doesn't spend nearly enough on data structures and state which are really the core of functional programming (and what python doesn't do well out of the box for functional programming).
Learning a bit of clojure will really open your eyes to what functional programming means, and you can take some of those learnings back to python.
- eyelidlessness 3y agoI’ll second this. Learning Clojure radically changed how I think about programming, regardless of what language I program in now. Both because of the restrictions of FP itself, but also (and, IMO, at least as importantly) because pervasive FP solutions at the language/stdlib level are an excellent source of inspiration and guidance for “thinking in” FP. The great thing is that FP as an approach does translate very well to most imperative/OO contexts. It just isn’t necessarily very obvious how it will, until/unless you’ve been fully immersed and embraced it.