Question: Why do most programmers/developers use a dark theme while writing software/code?

Answer: Because light attracts bugs.

@nixCraft

Easier on the eyes...

Prolongs the life of your LED screen, particularly if it's OLED.
@ferricoxide @nixCraft and safes energy.
@SomeAnoTooter
You're thinking of turning the screen brightness down
@phi1997 no. I'm thinking of oleds ;)
@ferricoxide
I've never understood why so many people unironically say dark themes are easy to look at. Maybe it's because of my astigmatism, but I find the vast majority of dark themes unbearable.
@nixCraft

@phi1997 @ferricoxide @nixCraft I have astigmatism and have a way harder time reading anything in light mode. Dark mode makes everything significantly easier to see.

Different eyes see things differently I guess, because I don't understand how anyone could use light mode :P

@Kovatoro @phi1997 @nixCraft

Similar: I've significant astigmatism in both eyes – to the point if significant vision doubling in each eye. Black on white is much harder for me to read than light on black, and vast swaths of light color – particularly FFFFFF white – is excessively fatiguing.
@ferricoxide @nixCraft @phi1997 fatiguing seems like the best word for it. It feels like the eye equivalent of doing 100 squats and then trying to sprint. (I'm exaggerating a bit, but the thought entertained me)
@Kovatoro
That's how dark modes are to me. I think we can agree that it's really frustrating when a program lacks proper theming.
@ferricoxide @nixCraft
@phi1997 @ferricoxide @nixCraft Totally! Options should be the minimum, customization would be ideal.
@phi1997 @ferricoxide @nixCraft If you wait N years, you'll see why some people prefer dark mode - where N is large enough that you'll start having cataract issues. BTW, some of the software I've written picks dark mode or light mode based on system settings, so it will hopefully do whatever the user wants automatically.
@bzdev @phi1997 @nixCraft

O365 annoys the piss out of me: defaults to bright mode, and when you go to change it, it offers dark mode or to match your system setting. Like, "why wouldnt it just default to the system setting??"
@ferricoxide @nixCraft It’s actually from before LED screens, CRT screens had a hard time providing non flickering white backgrounds.
Which is why I find it weird that people choose dark today, proper white works just fine now.
@helge
Probably a combination of force of habit and people who never use light mode regurgitating the idea that dark modes are better as if it's not just an opinion
@ferricoxide @nixCraft
@helge @nixCraft

Having been using computers since the 70s, always found most of the modern "light mode" implementations to be eye-searing. Irony is that the display Postscript systems of the late 80s and early 90s were less fatiguing than the 00s' eye-burners. Probably a function of the difference in light quality produced by cathodes vice LCDs and LEDs.
@ferricoxide @nixCraft I’m not entirely sure what DPS has to do with it, it’s a display hardware thing. I’ve been working with NeXT MegaPixel displays and they’ve been great for the time, but they can’t rival the cheapest LCD available today.
I think eye strain is primarily because they are too capable, tune them down 🙃
ePaper displays are the real contender.

@helge @ferricoxide @nixCraft in GEOS (graphic environment operating system) we never had any theme choices.

I loved my C64 for having a GUI and proportional spacing with WYSIWYG printing, no themes then on both my National TV (monochrome) & my CBM Colour CRT

https://en.m.wikipedia.org/wiki/GEOS_(8-bit_operating_system)

GEOS (8-bit operating system) - Wikipedia

@ferricoxide @nixCraft
Only if you have perfect eyesight, if you have imperfect eyesight dark on light is better, that's why opticians use dark on light background.
@nixCraft
Really on a roll with these jokes lately, keep it up

@nixCraft It's 'cos CRTs used to be not-very-good at showing that much non-black on the screen - the picture changed size as you put up more non-black and it flickered.

Black on white, is, of course, easier to read. There's a reason why black ink on white paper is more common than white ink on black paper.

@nixCraft @TimWardCam I feel like paper might be a bad example? I mean in that case it’s because of how pigments work.
@nixCraft Not true for Cochroach DB devs 😛
@nixCraft I hate that I laughed 😅
@nixCraft Because it prevents myopia development, see https://www.nature.com/articles/s41598-018-28904-x
Reading and Myopia: Contrast Polarity Matters - Scientific Reports

In myopia the eye grows too long, generating poorly focused retinal images when people try to look at a distance. Myopia is tightly linked to the educational status and is on the rise worldwide. It is still not clear which kind of visual experience stimulates eye growth in children and students when they study. We propose a new and perhaps unexpected reason. Work in animal models has shown that selective activation of ON or OFF pathways has also selective effects on eye growth. This is likely to be true also in humans. Using custom-developed software to process video frames of the visual environment in realtime we quantified relative ON and OFF stimulus strengths. We found that ON and OFF inputs were largely balanced in natural environments. However, black text on white paper heavily overstimulated retinal OFF pathways. Conversely, white text on black paper overstimulated ON pathways. Using optical coherence tomography (OCT) in young human subjects, we found that the choroid, the heavily perfused layer behind the retina in the eye, becomes about 16 µm thinner in only one hour when subjects read black text on white background but about 10 µm thicker when they read white text from black background. Studies both in animal models and in humans have shown that thinner choroids are associated with myopia development and thicker choroids with myopia inhibition. Therefore, reading white text from a black screen or tablet may be a way to inhibit myopia, while conventional black text on white background may stimulate myopia.

Nature