Conditional Matches

You mean by using utils?

I mean by making hide2 more consistent by calling it hide instead.
I mean by making playButton2 just playButton.
I mean by making play2 just play.
I mean by making pause2 just pause.
I mean by making initial2 just initial.
I mean by making speaker2 just speaker.

Numbers on class names are the mark of someone that only knows a hammer, who is forced to treat everything as if it were a nail.

Get rid of those numbered class names, because they’re make things much more complex, result in unneeded duplication, and are just not needed, or wanted, or helpful, or desired.

1 Like

What if instead of using numbers, I use letters instead, would that be an improvement?

Better than using numbers?

or equally bad?

hidea
pausea
initiala
speakera

That would be equally hideous and just as bad, for you are then totally ignoring the largest benefit of using class names in the first place.

Class names are designed to be used on multiple elements, instead of just one single element.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.