/functional-python

Exploring how to use functional concepts in Python

Primary LanguagePython

Functional Python

Experimenting with functional programming in Python.

How functional is Python?

Is functional programming even applicable with the idea of writing Pythonic code, or the Zen of Python? These things have been on my mind lately, since I have switched from Clojure to writing full time Python code.

In this repo, I share some ideas on how to find a possible way to be both Pythonic, and Functional.

The functional code examples are well suitable for super fast feedback loops during development, by using a thing called REPL Driven Development.

I have tried keeping it Pythonic while adding functional patterns like Railway Oriented Programming, and a really cool Python specific library called toolz.

Blog Posts

REPL Driven Development in Python: Can we have that in Python too?

Railway Oriented Programming in Python: A Pythonic Railway?

Functional Python with the toolz library: Functional Python

The Polylith architecture in Python: A fresh take on Monorepos in Python

Python Web Conf 2022

I am using the source code here in my Functional Python talk at Python Web Conf 2022.

Func Prog Sweden

I am using the source code here in my Functional Programming in Python? talk at the Fifth Func Prog Sweden Meetup 2022.