Development Cost of Procedural Programming vs. OOP?

后端 未结 9 2156
面向向阳花
面向向阳花 2021-02-06 01:21

I come from a fairly strong OO background, the benefits of OOD & OOP are second nature to me, but recently I\'ve found myself in a development shop tied to a procedural prog

9条回答
  •  时光说笑
    2021-02-06 01:52

    Good idea. A head-to-head comparison. Write application X in a procedural style, and in an OO style and measure something. Cost to develop. Return on Investment.

    What does it mean to write the same application in two styles? It would be a different application, wouldn't it? The procedural people would balk that the OO folks were cheating when they used inheritance or messaging or encapsulation.

    There can't be such a comparison. There's no basis for comparing two "versions" of an application. It's like asking if apples or oranges are more cost-effective at being fruit.

    Having said that, you have to focus on things other folks can actually see.

    1. Time to build something that works.

    2. Rate of bugs and problems.

    If your approach is better, you'll be successful, and people will want to know why.

    When you explain that OO leads to your success... well... you've won the argument.

提交回复
热议问题