Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

programming

Name: Anonymous 2015-08-22 4:46

let's make a thread about why inheritance is bad.

Name: RMS Marx Stalin 2015-08-22 5:11

Because in a perfect uptopia the state would cease all a person's possessions upon their death and distribute them evenly among the people.

Name: Anonymous 2015-08-22 5:15

Inheritance is bad because it makes the programmer lazy.
It's the kind of thing an Indian would do to cut corners.
Good programmers don't use it and instead type all the fields and functions in the child class a second time.

Name: Anonymous 2015-08-22 18:19

But I'd actually like to have structure inheritance in C.

Name: Anonymous 2015-08-22 18:54

Can you solve this multiple inheritance puzzle?

Name: Anonymous 2015-08-22 19:19

Two words: type inference.

Name: Anonymous 2015-08-22 22:36

>>4
Just put the parent structure at the top of the child structure and cast.

Name: Anonymous 2015-08-23 2:12

One word: the forced indentation of code. Thread over.

Name: Anonymous 2015-08-23 3:14

>>7
upboat this post

Name: Anonymous 2015-08-23 11:42

method & field namespace pollution

Name: Anonymous 2015-08-23 15:22

how am i supposed to scale up dependency injection if i dont have inheritance

Name: Anonymous 2015-08-23 19:41

>>11
With functional composition.

Name: Anonymous 2015-08-23 21:58

>>12
literally true.

Name: Anonymous 2015-08-24 10:15

The general concept is effectively importing libraries at a class scope.

Being able to import only 1 library is ass stupid as fuck. You should be able to pull in whatever functionality into your object class that you want/need.

An object has only 1 identity.

With multiple inheritance, identity gets fucky as inheritance goes more than 1 level deep, diamond of death, etc. This shit just doesn't work to pull in class-level behavior tied to object identity.

Giving each library import its own field in your object makes the most sense. If upstream libs need to share state for whatever ass-backwards reason, they can use singletons.

"Objects" in programming languages have nothing to do with real-life objects. All this inheritance shit is just an ivory tower wank fantasy from academia trying to spin that tale. All it does is make programmers' lives miserable, as PHB fucktards and shitheaded ego coders praise its false claims of organization.

Name: Anonymous 2015-08-24 23:35

>>6
Ruby Rockstar detected.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List