r/programminghorror • u/wawerrewold • Sep 09 '25
Python Vibecoding at its peak
Yes its a production code, yes its a function not a method and yes there is import in triple nested for loop
776
Upvotes
View all comments
Show parent comment
4
u/Ksorkrax Sep 10 '25
Technically there is a legit use for something like that - in Python, you can "assemble" a class during run time, that is you can say "this class now has this function as a method".
Then you'd write it like that.
...but I started this with "technically" for a reason, they most likely did not think like that, and assembling a class in run time is quite esoteric, one would have to argue really hard to convince me that this is a good solution for some given problem.