Joana Borges Late
1 min readMar 16, 2023

--

We both agree that inheritance is bad in OOP.

Now I will defend my thesis for *small websites made by a single person*.

In my experience, the CSS code is cut by half and the HTML has an insignificant increment.

Using "dark-button" helps. I want to create a dark button, I write 'class="dark-button"'.

I see a dark button in the running webpage, I know that its class is "dark-button".

In case, I want all the dark buttons to become yellow buttons:

1) I change the declarations for the class "dark-button" - anyone would have to do the same and

2) using the text-editor, I replace "dark-button" for "yellow-button" in a few files - others would not need to do that.

My point is: doing step '2' is extremely fast and easy. I am used to doing this replacement for 80 or more JavaScript files each time.

You { it looks like some kid was playing with poop. }

I like to keep the discussion at a technical level.

--

--

Responses (1)