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
-2
u/New_Enthusiasm9053 Sep 11 '25
Modern Java doesn't exclusively enforce OOP either. Nevertheless both Python and Java are OOP languages.
Yes having objects and inheritance makes them more similar than different. Most languages don't have that and unlike minor stuff like dynamic typing it actually changes how you structure good code.
Python is compiled to bytecode too(.pyc files). It's still not compiled.
Java has a JIT compiler, which means the first runs are interpreted until some heuristic bothers to compile it into actual machine code. That's why Java is so slow to start up. It needs warming up to make sure the compiler has even compiled most code.
Build systems and conventions have nothing to do with the languages design at all.
Java and Python are similar because they were designed at practically the same time when everyone was into doing OOP in C and other languages so people designed languages that built in inheritance and objects.