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
3
u/quiteamess Sep 06 '17
The data science and the functional programming communities developed apart from each other. The speed to get stuff done in python is what made it win the race the data science community. The functional programming community tries 'to get everything right' and focuses more on what will be and not on what is there right now.
The functional programming model makes a lot of sense for data science. At the last ICFP there was a talk by one of the main developers of TensorFlow. He is basically reaching out to the FP community because some things do not scale well in TensorFlow. The discussion at the end of the talk also shows nicely that the FP community and the data science community have very different knowledge domains.
Data science in the Haskell eco system is still poorly supported. But there are a lot of people interested in getting the toolset for data science in Haskell, for example DataHaskell.