r/functionalprogramming • u/Lubbadubdub • 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...
View all comments
Show parent comment
1
u/graemep Sep 08 '17
Yes, I get it, and I am very interested in other languages, especially functional ones. I keep studying them (doing an Erlang MOOC right now) but I always end up using Python - I have clients with Python code bases, and I do stuff that has Python libraries, ad I can get Python work because I have Python experience.
I found Pike's attitude very off-putting too. What sort of people are Google recruiting? At the other extreme, I find Haskell very hard to get to grips with, and that is a problem too.
I disagree with that (its the only thing I do disagree with) - a lot of people who like programming like Python too. Of course there is a big element of fit and personal preference.
Have you tried Smalltalk itself? Pharo is nice implementation, although, again, for various reasons it does not fit what I do (although some recent changes may make me look again).