I used an extension a while ago that changed CSS colour values (#ababab) into little coloured dots, that became a colour picker when clicking on them (while still letting you input RGB or Hex, ofc), and it was pretty awesome!
So, I could unironically see this being really nice. Although… I think this would need a pretty narrow context, something like if x == true would look pretty confusing as a toggle, I imagine. But assigningx = true? Bring it on.
Good point. I actually thing that having if x == true is bad practice anyway because it’s redundant, so showing a toggle in that context would have the benefit of highlighting that something’s wrong.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
I used an extension a while ago that changed CSS colour values (#ababab) into little coloured dots, that became a colour picker when clicking on them (while still letting you input RGB or Hex, ofc), and it was pretty awesome!
So, I could unironically see this being really nice. Although… I think this would need a pretty narrow context, something like
if x == true
would look pretty confusing as a toggle, I imagine. But assigningx = true
? Bring it on.Good point. I actually thing that having
if x == true
is bad practice anyway because it’s redundant, so showing a toggle in that context would have the benefit of highlighting that something’s wrong.