r/programming • • Aug 02 '25

How FastAPI Works

https://fastlaunchapi.dev/blog/how-fastapi-works/
118 Upvotes

101 comments sorted by

View all comments

Show parent comment

2

u/Proper-Ape Aug 03 '25

And yes, one can write such crap in almost any language. Difference is: For Java, we have several generations of programming students, who were actively taught to write software this way, and a language that promotes the shitshow that is ideological OOP, by not even allowing freestanding functions.

So true. My favorite thing is that ideological OOP besides being a lot of boilerplate for very little benefit, was just a misunderstanding of Alan Kay's quite reasonable OOP ideas. Erlang's actor model which is quite close to that actually lead to more reliable code. Isolated objects/actors that can be independently restarted on crashing, that communicate via message passing.

Most people would describe Erlang as a functional language though.

IOOP only lead to 2 line functions being spread into deeply nested class hierarchies that are mostly used once. Overabstraction and spooky action at a distance.

4

u/Big_Combination9890 Aug 03 '25

was just a misunderstanding of Alan Kay's quite reasonable OOP ideas.

It's simultaneously more and less than that. A lot of the bad ideas that plague OOP, come from the fact that the earliest usage of OOP have absolutely diddly squat to do with what its apologists insist is is about: https://www.youtube.com/watch?v=wo84LFzx5nI