News for hackers. Stuff that matters.
Re:Cognitive Biases in Software Development by kroltan on Tuesday March 31, 2020 @02:41AM (#22735397)
If the author reads this: Dark theme completely FUBARs the code snippets.

Sample: https://i.imgur.com/QUO48fn.png

Re:Cognitive Biases in Software Development by raziel2p on Tuesday March 31, 2020 @04:59AM (#22735938)
I get the idea of ios/android apps supporting dark theme, but since when did this concept apply to websites?
Re:Cognitive Biases in Software Development by kroltan on Tuesday March 31, 2020 @11:17PM (#22745285)
Through the prefers-color-scheme CSS media query [1], a draft [2] that is already implemented in mainstream browsers.

Websites can write stylesheets specifically for light or dark preferences. Browsers currently derive this information from the operating system's preferences.

[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref... [2]: https://drafts.csswg.org/mediaqueries-5/#prefers-color-schem...

Re:Cognitive Biases in Software Development by Deely123123 on Tuesday March 31, 2020 @03:32AM (#22735573)
How did you change theme to Dark?
Re:Cognitive Biases in Software Development by Cthulhu_ on Tuesday March 31, 2020 @03:47AM (#22735647)
Happened automatically on my device, probably because I have macOS running in dark mode. It's a feature. Switch your OS to the color scheme and language you prefer and websites / apps should adjust accordingly. Should. We're not quite there yet.
Re:Cognitive Biases in Software Development by kroltan on Tuesday March 31, 2020 @11:13PM (#22745258)
You set your OS' system theme to Dark, and the browser should pass this information on to websites.