As the thread title says, I'm looking for someone who can explain the advantages of object oriented coding to me.
I have a background in PHP, got certified in it, but I never managed to figure out why I should use object oriented code over just a bunch of functions.
I'm having the same issue while going through the C++ tutorials provided on the website, and I always hear people talk (post) about how good object oriented coding is, and alike.
The examples on the website tell me that it's basically to make things easier to use.
One of the examples given is that, if you had a microwave, it would become less user friendly if you had to work with the microwave's 'internals' as opposed to it's keypad.
Now I don't really see this example (though I'm sure it's just an example to make it easier to understand), to me, makeing that microwave object oriented, and only giving access to the keypad seems strange if you consider that, object oriented isn't "smaller" or "more compact" then regular code.
So in the example of the microwave, a non object oriented microwave would basically be a regular microwave with the casing removed.
Now, to a developer who knows that microwave inside out, that could mean easy access through the keypad, plus possible extra functionality through the internals. Ofcourse, to a consumer it would be very dangerous, but that wouldn't be relavant unless said consumer would first decomepile our microwave.
I know I'm probably making no sense at all, but I really intend to become a qualified C++ developer, and I'm quite sure that somehow in a way that I might not understand yet, there's a way in which OOC is useful, and basically my question is; what's useful about OOC?