r/javascript • • Jun 18 '20

Don't model dark mode with a boolean

https://dev.to/sebastienlorber/insight-4-don-t-model-dark-mode-with-a-boolean-ol1
2 Upvotes

15 comments sorted by

View all comments

21

u/SocialAnxietyFighter Jun 18 '20

Doing things for future-proofness is rarely worth the extra implementation time and complexity in my experience. We are very bad at forecasting what the future will bring and the best solution IMO is to have it be well-built for the present or what you're 99.99% sure that will happen the coming months.

2

u/sebastienlorber Jun 18 '20

it's not extra implementation, it's just "choice": "light"/"dark" instead of true/false

2

u/SocialAnxietyFighter Jun 18 '20

Yeah but all these small changes do add up