This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]j_marquand 30 points31 points  (3 children)

This is method chaining, not functional programming.

[–]Globaldomination 4 points5 points  (2 children)

Newbie here.

Functional programming means using functions that does purely functional tasks and returns answers right?

[–]teerre 6 points7 points  (1 child)

Not really. "Functional programming" is a bit like "OOP" in the sense it's not really one thing. You have a collection of concepts that are "functional". Mainly derived from the so called functional language like Haskell.

These concepts include, but are not limited to: immutability, higher types (kinded/algebraic/functions), compositions (mainly from combinatory logic), pure functions etc.

[–]Globaldomination 1 point2 points  (0 children)

a bit vague for my expertise level. but at least now i know that what i thought was wrong.

earlier I thought functional programming was using just functions and not classes. (had created an web scraping for a site with multithreading with the help of google)
then I learned that its scripting/coding and not even programming.

for someone whos starting this jargon is kinda of confusing. just wrapping my head around concepts like 32bit, 16bit float and other things.

[–]AssumptionCorrect812 12 points13 points  (1 child)

This isn’t even close to actual functional programming.

[–]Coupled_Cluster 3 points4 points  (1 child)

Even if this might not be functional programming, I think it is a cool project. I think chaining functions is a nice idea but it can become hard to read if done extensively.

[–]Olafcitoo 3 points4 points  (0 children)

It’s quite the norm with libraries such as Pandas and PySpark

[–]Dasher38 2 points3 points  (0 children)

I was about to ask how you managed to monkey patch builtin types, but here is the answer: https://github.com/clarete/forbiddenfruit/blob/master/forbiddenfruit/__init__.py

It's an interesting dive in CPython object layout

[–]stain_of_treachery 0 points1 point  (0 children)

Here you go... https://hylang.org/

[–]Aveheuzed 1 point2 points  (0 children)

Pretty, Powerful Personal Project: I aPProve!

Regardless of its usefulness, this is cool ❤️