r/programming • • May 05 '19

10 OOP Design Principles Programmer Should Know

https://hackernoon.com/10-oop-design-principles-every-programmer-should-know-f187436caf65
2 Upvotes

44 comments sorted by

View all comments

5

u/AlphaDeveloperZA May 05 '19

That's SOLID advice.

-9

u/shevy-ruby May 05 '19

Not really.

Why not?

Because it attempts to tackle different philosophies/usage of/in OOP into "this is the only true OOP way and everything else must be worse". And that is totally rubbish.

Let's use an oft-used Alan Kay quote here:

https://www.quora.com/Why-did-Alan-Kay-dislike-Java

Even with an explanation (though that was not what he may have said origianlly, but it is a good summary nonetheless IMO).

What amazes me is ... people love to critisize Agile. Fair enough, the word itself is a dead-giveaway for marketing. But then they happily use Java and don't understand how there could be anything other than Java for OOP.

And why is DRY even there? Why would this be connected in any way to OOP and nowhere else?

It's logical that, if you can AVOID repeating yourself, that's good. So why is that even mentioned.

It reminds me of other loop-repeated statements such as "use the right tool for the job" (but never specify what this really means) or "learn all the languages" (yeah right because people have an infinite amount of time) or "you will only understand concepts if you use a language which has this concept" (yeah right ... as if any idea is tied to an IMPLEMENTATION ... or does your brain have to ask for some permissions before it can have an idea?).

hackernoon.com is medium.com right? So no surprise ... I dunno why but they always want visitors to log in; probably because the clickety-click leads to monetary flow. Otherwise why are people even using that terrible format for posting their ideas about any subject?

9

u/riotvaninho May 05 '19

I think the joke went a bit over your head buddy

6

u/scientz May 05 '19

"a bit" lol.