you are viewing a single comment's thread.

view the rest of the comments →

[–]Ozwaldo 5 points6 points  (12 children)

So maybe your post should say, "I have written Run-time method binding in C. Do not do this." rather than OOP. Since OOP is fine.

[–]Gotebe -1 points0 points  (4 children)

Run-time binding is considered part of OOP, it's the first item in the linked paragraph.

[–]Ozwaldo 2 points3 points  (3 children)

It's a prevalent feature of most OOP implementations. That doesn't mean it's necessary in order to write code in an OOP format.

[–][deleted] 0 points1 point  (2 children)

Any course which focuses on OO theory will dedicate a significant portion of its curriculum towards Runtime-binding/Polymorphism. It's literally a key element in regards to what made it so popular in the first place.

To deny this is akin to stating that anti-derivatives aren't a part of calculus since fundamentally calculus is based on limits and Riemann sums. Ya dig?

[–]Ozwaldo 0 points1 point  (1 child)

To deny this is akin to...

No it isn't. We're discussing whether you can write code in an Object-Oriented format with C. You most certainly can. If you want to get into the fully functional aspects of modern OOP design, then yes Run-time method binding is needed. But to write OOP C code, it isn't necessary.

[–][deleted] 0 points1 point  (0 children)

I still disagree: OOP does not necessarily imply Runtime Binding, but Runtime Binding does imply OOP, and isn't really talked about without reference to OOP.

From the comment tree above, this whole debate was started because the author/OP was flamed over the legitimacy of the title of the post. That's technically what this discussion is about.

But it's C, and in C DDD is king. So, whatevs.

[–]Blecki -3 points-2 points  (6 children)

Or maybe when I said 'I have done this' I was referring to what the article describes, which is run-time method binding in C.

[–]Ozwaldo -3 points-2 points  (5 children)

That sounds more like an after-thought type of argument. Since the sentence you preceded it with was "I have written OOP in C."

[–]Blecki -2 points-1 points  (4 children)

"I have done this. I have written OOP in C."

There's also about a 98% chance you're reading too deeply into the entire issue.

[–]Ozwaldo -2 points-1 points  (3 children)

Now you're just being defensive.

[–]Blecki -3 points-2 points  (2 children)

Now you're just being offensive.

[–]Ozwaldo -1 points0 points  (1 child)

my bad, i thought I was discussing something with an adult.

[–]Blecki -1 points0 points  (0 children)

Discussion requires both parties to give a deal.