2 ms·
I went the opposite path, from C to OO languages, including Java. Yes, you can do the same in C, in fact a lot of people did it intuitively before OO became ma
by diego_moita 12y ago
I went the opposite path, from C to OO languages, including Java.
Yes, you can do the same in C, in fact a lot of people did it intuitively before OO became mainstream. Many of the techinques that make OO design work so nice (encapsulation, loose coupling, strong cohesion) were called simply "modularization" back then.
The advantage of modern OO languages of today is that the techniques are explicit, clear on the language design, they don't depend only on the programmers discipline. Also, they bring a lot of other features hard to implement in C: garbage collection, reflection that provides sleek frameworks and tools for refactoring, etc.