You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 44You can't reasonably expect to compare any programming paradigms on such short and contrived examples. Anyone here can come up with code requirements that make their own preferred paradigm look better than rest, especially if they implement other improperly. Only when you have real, big, changing project can you gain insights in strengths and weaknesses of different paradigms.Euphoric– Euphoric2017-05-10 19:55:18 +00:00Commented May 10, 2017 at 19:55
- 20There's nothing about OO programming which mandates that those 3 methods should go together in the same class; similarly there's nothing about OO programming which mandates that behaviour should exist in the same class as data. That is to say, with OO Programming you can put data in the same class as behaviour, or you can split it out to a separate entity/model. either way, OO has nothing really to say about how data should relate to an object, since the concept of an object is fundamentally concerned with modelling behaviour by grouping logically-related methods into a class.Ben Cottrell– Ben Cottrell2017-05-10 20:00:17 +00:00Commented May 10, 2017 at 20:00
- 20I got 10 sentences into that rant of an article and gave up. Pay no attention to the man behind that curtain. In other news, I had no idea that True Scotsmen were primarily OOP programmers.Robert Harvey– Robert Harvey2017-05-10 20:28:49 +00:00Commented May 10, 2017 at 20:28
- 11Yet another rant from someone who writes procedural code in an OO language, then wonders why OO is not working for him.TheCatWhisperer– TheCatWhisperer2017-05-10 21:45:12 +00:00Commented May 10, 2017 at 21:45
- 11Though it is undoubtedly true that OOP is a disaster of design missteps from start to finish -- and I'm proud to be a part of it! -- this article is unreadable, and the example you give is basically making the argument that a poorly designed class hierarchy is poorly designed.Eric Lippert– Eric Lippert2017-05-10 22:19:19 +00:00Commented May 10, 2017 at 22:19
| Show 10 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you