Live data from Hacker News

Object oriented programming in C (2007)

ldeniau.web.cern.ch

1–10 of 13 posts

Re: Object oriented programming in C (2007)

#2
Casey Muratori recently gave a great talk during a Q&A talking about the way he uses C to achieve some of the same things people typically think of as object oriented (starts around 19:39)[0]. It doesn’t cover everything that makes up OO design but I like it because highlights how C is powerful and capable of things like polymorphism in a cleaner way than C++.

[0]https://hero.handmade.network/episode/chat/chat014#1179

Re: Object oriented programming in C (2007)

#5
post #2

Casey Muratori recently gave a great talk during a Q&A talking about the way he uses C to achieve some of the same things people typically think of as object oriented (starts around 19:39)[0]. It doesn’t cover everything that makes up OO design but I like it because highlights how C is powerful and capable of things like polymorphism in a cleaner way than C++. [0] https://hero.handmade.network/episode/chat/chat014#11…

Direct link to video at 19:39 https://www.youtube.com/watch?v=EhtxDXlrJ6Y&t=19m39s

Re: Object oriented programming in C (2007)

#6
post #4

just use c++ dude

There are still a few reasons to use C even to this day and I'd add that the page was last updated in 2007.

Unless it's compile speed or not having an updated C++ compiler for your platform, I'm not sure what that would be.

Edit: Is it the new thing to hate on C++? Downvotes aren't arguments

Re: Object oriented programming in C (2007)

#9
post #7

just use c++ dude

>just use c++ dude Instead of choosing the OOP system that C++ forces on you; you can just use C and choose which OOP system to use.

I bet you can still probably build it and use it more easily with C++ than with C.
Post reply on HN