4 ms·
> "the curved sweet yellow food that grows on trees" You have (some variety of) cavendish bananas in mind. There are red, pink and blue bananas. They're not
by topspin 5y ago
> "the curved sweet yellow food that grows on trees"
You have (some variety of) cavendish bananas in mind. There are red, pink and blue bananas. They're not all sweet. The plants they grow in are not always "trees" but rather large fern like plants.
And then that day arrives when you are required to style some variant of 'banana' you are forced to decide: do I break the world by messing with banana or do I make new-banana?
- LouisSayers 5y agoI'm definitely going to have to do some research on bananas after this lol. In CSS land however you wouldn't break the world for a different banana, you'd simply add another class for the variant and style appropriately. .banana { // generic banana styles } .banana.musa-velutina { color: pink; } Of course not all decisions are going to be as straightforward, but I do think that there's a lot of value in keeping a website's items consistent. The work upfront to name things and build out concepts will pay its dividends as you extend a site or build out new ones.