5
top 8 comments
sorted by: hot top controversial new old
[-] fibojoly@sh.itjust.works 1 points 1 year ago

I can't tell if it's a parody or an actual genius idea.

[-] dingdong@lemm.ee 1 points 1 week ago* (last edited 1 week ago)

No there is AT LEAST one use for this. You could create an options class with booleans, and you could toggle settings when running or debugging. Also less savvy people (other non software engineers) can toggle settings easier for internal tools.

[-] GlitchyDigiBun@lemmy.world 0 points 1 year ago

I would like to see the debugger give a list of all these boolean values and watch them toggle in real time. That would be far more useful.

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

fwiw I opened an issue on the vs code repo. It already got a downvote and the issue was reassigned from one maintainer to another. Popcorn is tightly secured.

[-] GlitchyDigiBun@lemmy.world 1 points 1 year ago

Eh, I'll stick with C# slowly becoming more and more syntax-redundant like all the other OOPLs :'(

[-] JSens1998@lemmy.ml 1 points 1 year ago

It looks neat, but I think I'll keep my true and false. I don't like chhannngggeeee!

[-] Hazzard@lemm.ee 0 points 1 year ago

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 2 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.

this post was submitted on 21 Jun 2023
5 points (100.0% liked)

Programmer Humor

32472 readers
655 users here now

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

Rules:

founded 5 years ago
MODERATORS