>>1911>Hello /prog/, I need some advices about object oriented programming, why is it better than procedural?>betterDifferent tools, different jobs, etc, etc, etc.
The basic principle of OOP is to make code more "modular" by coupling data structures with code to operate on them (so-called "objects").
What makes this special is that you don't have to understand the internals of an object in order to work with it - only the methods it exposes.
This gives you two advantages:
1.) You can arbitrarily change one part of the program without worrying about breaking anything else (often, you won't even have to recompile the rest of your code)
2.) You can write very generic code that works with lots of different kinds of objects
Of course, this is only true for well-designed OO code; if your design is shit, then you'll still have all of the problems that OOP is supposed to solve.
>but I can't let go the idea that procedural is more understandable, what can I do about it?I find that drawing diagrams helps.
But the main thing is: keep practising.