Hacker News new | ask | show | jobs
by umanwizard 2487 days ago
I'm not convinced. The filesystem layer on Linux and FreeBSD (and probably other OSs too, though I don't have knowledge) is totally object-oriented and written in C.

Gnome/GTK also encourage an object-oriented style in C, via GLib and GObject.

Also, Greek numerals were just as unwieldy as Roman ones (if not worse), and at any rate the Greeks did not use numbers in their mathematics. There's an enormous amount of math you can do without arithmetic and algebra.

(Edit: Saw your username after I posted this and I want to say that I respect you deeply -- I don't know of anyone else who has written a working C++ compiler almost by themselves. And I like D a lot, though have only had a very limited chance to use it professionally.)

2 comments

I've seen OOP code written in Fortran-10. It blew my mind at the time (I didn't even know it was called OOP until years later).

But only once. And probably by someone who had learned OOP in another language that was built around OOP.

I was in the C business before, during, and after the OOP revolution. I never saw any OOP attempts in C before C++ came along and popularized OOP. Many C programmers didn't want to move to C++, and were determined to make it work in C. It did work, but the result was kinda hideous and terribly fragile (had to throw type safety out the window with all the necessary casting).

> I don't know of anyone else who has written a working C++ compiler almost by themselves

Neither do I :-) Thanks for the kind words.

O-O is a state of mind and can be implemented in nearly all algorithmic languages, you just need senior people who know WTF they are doing. And I've seen a lot of spaghetti non-o-o code in places like the Google web crawler even though there are class definitions there are no actual objects.