In C you'd have a struct of data but then have to go searching for the methods that operate on that struct. Making it object oriented improved the ability to find those methods by putting them on the object.
There were debates that with discipline you could simply write C in an object oriented fashion, using a struct for the data and carefully putting all the methods in the same file so they were easy to find, and get the same result.
But either way, looking at things as objects dramatically improved programmers ability to write large programs.
View all comments
Show parent comment
1
u/RedPill115 Jun 10 '24
C to object oriented C++
In C you'd have a struct of data but then have to go searching for the methods that operate on that struct. Making it object oriented improved the ability to find those methods by putting them on the object.
There were debates that with discipline you could simply write C in an object oriented fashion, using a struct for the data and carefully putting all the methods in the same file so they were easy to find, and get the same result.
But either way, looking at things as objects dramatically improved programmers ability to write large programs.