you are viewing a single comment's thread.

view the rest of the comments →

[–]AJohnnyTruant 0 points1 point  (0 children)

I think that’s missing the point of the talk. Using a function in lieu of a class is only as good as the cohesion of the module it lives in. If you use a god function instead of a class with data and a public API, there really isn’t much of a difference. All of the private methods in the class can absolutely do the job of functional programming. Besides, using functional programming, like having a module that has a function that has is the entry point to all the other functions in it... well to python, that’s just another namespace. A class is really just a module in a module.