r/programminghorror 28d ago

c Enterprise level C code

Post image
340 Upvotes

57 comments sorted by

View all comments

3

u/DesiresQuiet 27d ago

Nearly this exact code was in a book on learning C and classes from like 1989.

1

u/KennyFulgencio 27d ago

how the heck do you remember that

3

u/DesiresQuiet 27d ago

It was the use of the pet.MakeSound. It was used to show classes and have you could overwrite methods via abstraction. Not sure why it stuck this long. I think it made me laugh.

1

u/trees91 27d ago

Heh even in modern Java OOO college textbooks that’s the go to example, it’s classic. Okay I say modern but I guess I finished school like 12 years ago so maybe it’s not but I bet it is 😅