r/functionalprogramming • • Sep 06 '17

Python Using Python... Struggling with inconsistency...

I'm mainly working with Python at the moment. Most people in my company are using oop, which is kinda "natural" given the choice of the language. In general, I don't like oop. I prefer simple solutions to complex ones when they can solve the same thing and oop adds one layer of abstraction to functions. I value consistency and explicity. I hate it that in Python sometimes you call by reference and sometimes by value and there's no apparent model behind it. Most people are using oop coz they dont care as much about which paradigm to use and it's always easier to argue for oop since "everything is an object anyway" (which is not entirely true and how is that a valid argument..). Is there a way to be more "functional" with Python? Are there good argument against using oop? Or maybe I should just give up and go with the flow...

7 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/ws-ilazki Sep 07 '17

Yeah, that can still be a problem, but I figured there's a chance some of the work might be sort of standalone, where you could have a chance to try something different in that environment. Maybe Coconut would be a safer way to go with it, since it has a better chance of being readable while still providing some FP niceties.

Good luck if you try something like that, though. It can be hard to introduce change into any group set in its ways ;)