Most of the data that I've found suggests that dark text on a light background is measurably more legible than the reverse. This effect is increased for people with astigmatism -- which is about half the population, so that's not insignificant.
There's a lot of pushback I've seen when studies like that get cited: they're old, they weren't about programmers, etc. And, maybe, but even though we're staring at LCD panels now rather than CRTs, light is light light and vision is vision. It's not about how much light is "shining into your eyes" as much as it is about visual acuity, and it's at least worth trying light mode and just... turning down the brightness on your monitor a little. Also, turning up the ambient light in the room. If your environment is so dark that the backlighting on your keyboard is visible, then you've tacitly designed your environment to make light mode blinding and uncomfortable, so you're not really giving it a fair shake.
I'd like to see studies about whether alternating between dark and light mode occasionally will help prevent your eyes from getting tired as quickly; my suspicion is yes, because it certainly does feel that way to me. But a lot of things that seem intuitively true don't stand up to scrutiny.