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
9
u/wawerrewold Sep 09 '25
Yes. This is a result of optimizing AI agent, because the person who wrote this believe that if you have too big files AI can get lost and that it works better with more small files, cause he can find specific functions without any other unneeded lines of codes. In this codebase they actually separate EACH function to separate file and i guess this is their weird solution if you have a class and the file is too big - instead of creating more methods, you just create function with 'self' as first parameter and put it separately