this post was submitted on 21 Jun 2023
79 points (97.6% liked)

Programmer Humor

32602 readers
211 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Hazzard@lemm.ee 3 points 1 year ago (1 children)

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 assigning x = true? Bring it on.

[–] sebastiancarlos@lemmy.sdf.org 6 points 1 year ago

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.