Visual Studio Code

KallDrexx

Ars Tribunus Militum
2,040
I don't see how anyone would have code quality or LOC output increase because of IDE colors. IDE colors affect reading code not writing code, and in that sense for me I find the high contrast of a bright white screen and dark text to be harder to read, more tiring, and less scannable. The bright background just sort of absorbs and takes over the text forcing me to focus harder to make out the distinct text.

Some of that can be solved by using off-white background and non-black (and non-super dark) text, but at that point you are already deviating from defaults and I feel like I can go through code better with bright on dark (without too high of a contrast of white on black) than the opposite.

*Edit:* This is also completely opposite of e-readers where it's obvious to me that dark on light is more readable, but I think that has to do more with the background not fully white and the text not fully black, and it not blasting your eyes with massive amounts of blue light.
 
I don't see how anyone would have code quality or LOC output increase because of IDE colors.
I look at things in terms of productivity and efficiency. My point was that if it's not increasing the amount of things you can do (productivity) or decreasing the time it takes you do something (efficiency), it's worth neither the time investment nor the cognitive load.

IDE colors affect reading code not writing code, and in that sense for me I find the high contrast of a bright white screen and dark text to be harder to read, more tiring, and less scannable. The bright background just sort of absorbs and takes over the text forcing me to focus harder to make out the distinct text.
These are two different things, and it's important to address them separately. I've discussed this in another sub-forum, but legibility is worse with white on black. Essentially, because your eye muscles relax with a black background, you get halation and blurriness with the text because your pupils haven't constricted enough to keep the text in focus. The most important factor in legibility is in fact contrast. Furthermore, for ~50% of the population (those who have astigmatism), white on black will lead to tiredness faster. This is because white backgrounds cause your eyes to constrict, which helps put the otherwise deformed lens back into shape. So you're not squinting, which reduces tiredness.

https://ux.stackexchange.com/questions/ ... r-the-eyes

*Edit:* This is also completely opposite of e-readers where it's obvious to me that dark on light is more readable, but I think that has to do more with the background not fully white and the text not fully black, and it not blasting your eyes with massive amounts of blue light.
If blue light is a concern (which it shouldn't be, for legibility or tiredness, because it has limited effect), use a global filter like f.lux or whatever is built in to your operating system. Much better and quicker to apply a global whitepoint/color balance than to sit through dozens of settings in your IDE to get the colours just right.
 

KallDrexx

Ars Tribunus Militum
2,040
I look at things in terms of productivity and efficiency. My point was that if it's not increasing the amount of things you can do (productivity) or decreasing the time it takes you do something (efficiency), it's worth neither the time investment nor the cognitive load.

But productivity of reading and comprehending code isn't measured by how many lines of code you write. Reading code and producing code are completely different sets that don't necessarily have a 1:1 effect on one another, which is why I think it's irrelevant. If you want something quantifiable you'd have to quantify how long tasks such as code reviews and debugging take between different IDE settings.

I'm also unsure about time investment as time investment is down to zero, and I routinely wipe and reinstall my computer every 6-8 months. All my settings are saved (and most IDEs have decent selectable dark themes) that setting up my IDE takes literally less time than it takes to start it running for the first time.

More of the point you are probably going to spend much more time dealing with keymappings and other settings that have a much more direct impact on cognitive load and time investment, and those are not easily able to be homogenized across your different IDEs and text editors.

These are two different things, and it's important to address them separately. I've discussed this in another sub-forum, but legibility is worse with white on black. Essentially, because your eye muscles relax with a black background, you get halation and blurriness with the text because your pupils haven't constricted enough to keep the text in focus. The most important factor in legibility is in fact contrast. Furthermore, for ~50% of the population (those who have astigmatism), white on black will lead to tiredness faster. This is because white backgrounds cause your eyes to constrict, which helps put the otherwise deformed lens back into shape. So you're not squinting, which reduces tiredness.

https://ux.stackexchange.com/questions/ ... r-the-eyes

You are quoting that as if it's the truth, but it does not appear to be clear cut. The first passage in there is research from the 1980s where the main form of electronic screen was CRTs which are not nearly as bright as today's LEDs. Your own quote even says that white on black will cause tiredness if you have an astigmatism, which affects 50% of the population but doesn't say anything about those without it.

Let's take other pieces of data from other internet areas just like you did

https://uxmovement.com/content/when-to- ... ackground/

White also reflects all wavelengths of light. Because the words and letters in paragraph text are compact and close together, when white text reflects light, the reflected light scatters and runs into neighboring words and letters. This makes the shape of the words and letters harder to perceive, which affects readability. Compare that with black text, where the black absorbs the light around each word and letter, making them easy to distinguish.

Supposedly a study at Stephen F. Austin University concluded the similar (https://web.archive.org/web/20051230051 ... HNCUR.html).

You seem to be making it out to be much more clear cut than it seems to really be.
 

Lt_Storm

Ars Tribunus Angusticlavius
21,345
Subscriptor++
Ignoring for the moment hanser sharpening his hair into a pair of beautiful points, does anyone have suggestions on my questions above?
I know it's an off-topic discussion, but I completely agree with hanser. Customizing stuff has never made me more productive. And this extends beyond IDEs and code editors to things like browser and OS settings. It's only been a net neutral, or made me less productive in the cases that hanser already discussed. Namely, collaboration and wasting time on initial setup when I should be doing something more task-focused.

Has anyone actually ever had their code quality improve and their LOC output increase because their IDE windows are now black instead of white?

Having well designed functional tools which function the way you expect them to is highly beneficial. It allows you to use the functions of your IDE / editor more frequently and fluently. Moreover, initial setup is generally a one time affair. After that, you just keep your configuration files someplace centralized. No need to reconfigure periodically. Hell, you can even add a few scripts to install your configurations appropriately (Also useful for installing all the software that you want on the machine initially).

Moreover, with plugin based editors and IDEs, if you want to have full functionality, you really need to spend at least some time looking into the various plugins which are available. If each plugin you use thinks about things like keybindings differently (and they will because they are developed by independent people without coordination), then each plugin you use adds a not-insignificant learning curve to your toolset. Better to replace all the key bindings with something which thinks similarly to how you think naturally. Now, when you guess the keybinding, you will probably be right (or if you are wrong, you will be right next time).
 

Lt_Storm

Ars Tribunus Angusticlavius
21,345
Subscriptor++
These are two different things, and it's important to address them separately. I've discussed this in another sub-forum, but legibility is worse with white on black. Essentially, because your eye muscles relax with a black background, you get halation and blurriness with the text because your pupils haven't constricted enough to keep the text in focus. The most important factor in legibility is in fact contrast. Furthermore, for ~50% of the population (those who have astigmatism), white on black will lead to tiredness faster. This is because white backgrounds cause your eyes to constrict, which helps put the otherwise deformed lens back into shape. So you're not squinting, which reduces tiredness.

https://ux.stackexchange.com/questions/ ... r-the-eyes

You are quoting that as if it's the truth, but it does not appear to be clear cut. The first passage in there is research from the 1980s where the main form of electronic screen was CRTs which are not nearly as bright as today's LEDs. Your own quote even says that white on black will cause tiredness if you have an astigmatism, which affects 50% of the population but doesn't say anything about those without it.

Let's take other pieces of data from other internet areas just like you did

https://uxmovement.com/content/when-to- ... ackground/

White also reflects all wavelengths of light. Because the words and letters in paragraph text are compact and close together, when white text reflects light, the reflected light scatters and runs into neighboring words and letters. This makes the shape of the words and letters harder to perceive, which affects readability. Compare that with black text, where the black absorbs the light around each word and letter, making them easy to distinguish.

Supposedly a study at Stephen F. Austin University concluded the similar (https://web.archive.org/web/20051230051 ... HNCUR.html).

You seem to be making it out to be much more clear cut than it seems to really be.

Moreover, if someone has astigmatism, then they are likely to have corrective lenses. In fact, computer glasses aren't unheard of if you spend so much time staring at a screen.

Also, what is this about "reflected light of all wavelengths"? That isn't how most displays work. They are emissive. There are only three or four wavelengths of light present. Moreover, because they are emissive, they are typically the brightest thing in your field of vision. This means that how text appears on them is quite different than on the printed page.
 
ITT, we waste time expounding on how customising your editor is a waste of time
Learning stuff is never a waste of time. :) I'm open to having my mind changed, and discussions like this in forums like this is where I learned probably >80% off what I know about tech. Optimizing workflows is an important topic to learn about, I think, especially considering that most of the people who code in this coding subforum do it for a living.

I'm sorry (but not sorry) that I took the discussion in another course. I'm sorry because it kind of sucks to have your question left unanswered because somebody brought up another topic, but I'm not sorry because even though now we are discussing the merits of customizing your IDE from the defaults instead of how to do it, that doesn't prevent someone who knows the answer to your question from posting it. I think we have enough collective bandwidth to maintain more than one conversation at a time. :)
 

fitten

Ars Legatus Legionis
55,634
Subscriptor++
I don't theme or customize any of my editors, really. I find deviating from the defaults to increase setup, switching, and collaboration costs, so I try to avoid it. And I recommend other professionals do the the same for those reasons.
That makes no sense. I'm not going to be less comfortable for eight hours a day just so that the 30 seconds you spend looking at my screen is easier for you.
I'm guessing you don't pair program very often. I also guess you don't spend much time helping your more junior colleagues work through sticky technical stuff. (I just spent an hour at someone else's desk. Thank god his keyboard stuff is the default.) People using their own custom settings is a real productivity drag for me when I'm helping a special snowflake.

I have a Kinesis keyboard. But I also keep a standard keyboard because most people can't type on the Kinesis. Collaboration in that case is 5 second operation. "Here, use this instead."

I know this is a bit behind but I just read it...

Similar... I tend to keep with defaults... even in games. Back in the day, I used to customize the hell out of my emacs. It was great, had all these custom things I could do to theoretically increase my productivity. Then I'd sit at a colleague's machine or they'd sit at mine and immediately productivity dropped to 0... usually ending with "I can't do anything here, you type" which, we all know, telling someone else what to type is the epitome of efficiency.

On the game side of things... back in the day, my friends and I had a lot of LAN parties. One friend had multiple machines so when we were at his place, some folks could use those instead of bringing one of their own. We were going to play one FPS and a friend who was using one of the host's computers literally spent nearly an hour just trying to customize the keyboard/etc to what he was used to using. Meanwhile, the rest of us got tired of waiting after about 10 minutes so we just started playing while the other guy struggled with the customization. Eventually, he got it customized close enough to at least start playing and then he would get into situations like "I need to X$, what key to you press?" and we'd reply "The default configuration for that is the T-key (or whatever)" but that wouldn't work for him because... he had customized it. Eventually, we got tired of that game after playing about an hour and a half and decided to play another... the other guy had only been able to play maybe 30 minutes. Guess what he had to do on the next game we started playing?

In any case, learning the defaults mean that you can sit down at any machine, anywhere and all else being equal, maintain nearly 100% productivity as you would on your own machine. Likewise if anyone sits at your machine. That includes replacement machines, etc. Granted, things as simple as changing color themes is a different story... that's just a simple set of button clicks and off you go and even then, if you're at another machine or someone is at yours, then the color scheme can probably be tolerated for short periods.
 

KallDrexx

Ars Tribunus Militum
2,040
In any case, learning the defaults mean that you can sit down at any machine, anywhere and all else being equal, maintain nearly 100% productivity as you would on your own machine. Likewise if anyone sits at your machine. That includes replacement machines, etc. Granted, things as simple as changing color themes is a different story... that's just a simple set of button clicks and off you go and even then, if you're at another machine or someone is at yours, then the color scheme can probably be tolerated for short periods.

I think that breaks down in any non-trivial environment though. It requires everyone to be pretty homogeneous in their setups and your personal setup. For example the defaults for Visual Studio are drastically different than VS with R#, which are drastically different than Rider, which is drastically different than Visual Studio Code. It's not just colorization but also keymappings, toolbars, functionality, window docking abilities etc....

Now add to the mix that your company may use more than one language which may mean multiple IDEs. Many companies use VS for C# and VS Code for Javascript. Now add shops that have components in C++, Java, Rust, and any other additional language and now you have real fundamental issues with the assumption that you can just sit down at someone else's computer and be productive, even if everyone is adhering to defaults.

That's not even considering that there are legitimate reasons some users may be using Windows, some using OSX, some using Linux which all have massive differences (fuck the command key on macs).

My last company I used Rider (with intellj oriented keybindings due to personal coding I do), another coworker used VS, another only used VS Code, etc.. I used Linux, UI designers used OSX, other developers used Windows. Despite this we pair programmed just fine and adapted at each other's machines.

To me it seems more important to make sure you are as productive as you can be at your own system (because even with pair programming you'll still be there a significant amount of time, especially if you do outside work coding) and making sure that you and your coworkers are able to adapt as needed.
 

Jehos

Ars Legatus Legionis
55,560
I don't see how anyone would have code quality or LOC output increase because of IDE colors.
Really? I spend like 20% or less of my coding time typing. The rest is all reading, usually either figuring out how code works so I know how to make the change, or following a debugger. Appropriate code coloring is a HUGE benefit on that front. You start getting affordance benefits when certain things are colored in ways that make them stand out.
 

Apteris

Ars Tribunus Angusticlavius
9,590
Subscriptor
Good point, and actually one more argument for customization. The IDEA default color scheme has too many colors out of the box. It's like a rainbow, when what you want is perhaps for the symbol under the cursor to be highlighted and everything else to be black on white. (This is by way of example, not actually my preferred color scheme.)
 

KallDrexx

Ars Tribunus Militum
2,040
I don't see how anyone would have code quality or LOC output increase because of IDE colors.
Really? I spend like 20% or less of my coding time typing. The rest is all reading, usually either figuring out how code works so I know how to make the change, or following a debugger. Appropriate code coloring is a HUGE benefit on that front. You start getting affordance benefits when certain things are colored in ways that make them stand out.

I'm just saying that while you read code most of the time I don't see Light text on a dark background vs the inverse vs any other color scheme would show up on any type of A/B testing for LOC output metrics in any meaningful way. The whole context of where my response came from was that hestermofet said that customizing stuff never made him more productive and asked if anyone had code quality or LOC output metrics improved by changing the color scheme.

Unless you are talking about completely unreadable color scheme then I doubt you'd have verifiable differences in those two metrics because those metrics are measuring output (writing) more than input (reading) which is where the benefits come from. Any difference in output from an input based activity is an indirect difference, and in the context of color schemes any difference is most likely much less than "whatever makes you squirm less and more comfortable". It's not necessarily that 1 second gained in reading is 1 second more you'll spend on writing, or that what you write will be at better quality than if you had spent that 1 second more reading.

I was questioning his chosen metrics for the discussion at hand.
 

Lt_Storm

Ars Tribunus Angusticlavius
21,345
Subscriptor++
I don't see how anyone would have code quality or LOC output increase because of IDE colors.
Really? I spend like 20% or less of my coding time typing. The rest is all reading, usually either figuring out how code works so I know how to make the change, or following a debugger. Appropriate code coloring is a HUGE benefit on that front. You start getting affordance benefits when certain things are colored in ways that make them stand out.

I'm just saying that while you read code most of the time I don't see Light text on a dark background vs the inverse vs any other color scheme would show up on any type of A/B testing for LOC output metrics in any meaningful way. The whole context of where my response came from was that hestermofet said that customizing stuff never made him more productive and asked if anyone had code quality or LOC output metrics improved by changing the color scheme.

Unless you are talking about completely unreadable color scheme then I doubt you'd have verifiable differences in those two metrics because those metrics are measuring output (writing) more than input (reading) which is where the benefits come from. Any difference in output from an input based activity is an indirect difference, and in the context of color schemes any difference is most likely much less than "whatever makes you squirm less and more comfortable". It's not necessarily that 1 second gained in reading is 1 second more you'll spend on writing, or that what you write will be at better quality than if you had spent that 1 second more reading.

I was questioning his chosen metrics for the discussion at hand.

And given that 80% of your time is spent on input, any time saved there means more available time for output.
 

KallDrexx

Ars Tribunus Militum
2,040
And given that 80% of your time is spent on input, any time saved there means more available time for output.

If you save time in reading comprehension but your LOC metric does not improve does that mean you gained no productivity advantage? My argument is you can still have a measurable productivity bonus from better code reading tools without increased LOC output because there is more that goes into how productive you are at your job than how many lines of code you write, especially since we seem to all be in agreement that 80% of your time is spent reading code compared to writing code.
 
You're too hung up on a single abbreviation that I used. Rightly or wrongly, many (employers) in the industry use LOC as a metric for productive output, that's the only reason I mentioned it. We can debate the merits of LOC as a measure of productivity. But I also mentioned the supposed productivity impact changing colour themes and other customizations have on code quality. I don't know, it might help readability to change colours as many of you are claiming, but I question even that. Unless you are outside the norm (i.e. you require special accessibility accommodations), default colour combinations are usually chosen specifically to be more readable.
 

Jehos

Ars Legatus Legionis
55,560
I don't see how anyone would have code quality or LOC output increase because of IDE colors.
Really? I spend like 20% or less of my coding time typing. The rest is all reading, usually either figuring out how code works so I know how to make the change, or following a debugger. Appropriate code coloring is a HUGE benefit on that front. You start getting affordance benefits when certain things are colored in ways that make them stand out.

I'm just saying that while you read code most of the time I don't see Light text on a dark background vs the inverse vs any other color scheme would show up on any type of A/B testing for LOC output metrics in any meaningful way. The whole context of where my response came from was that hestermofet said that customizing stuff never made him more productive and asked if anyone had code quality or LOC output metrics improved by changing the color scheme.

Unless you are talking about completely unreadable color scheme then I doubt you'd have verifiable differences in those two metrics because those metrics are measuring output (writing) more than input (reading) which is where the benefits come from. Any difference in output from an input based activity is an indirect difference, and in the context of color schemes any difference is most likely much less than "whatever makes you squirm less and more comfortable". It's not necessarily that 1 second gained in reading is 1 second more you'll spend on writing, or that what you write will be at better quality than if you had spent that 1 second more reading.

I was questioning his chosen metrics for the discussion at hand.
You're missing the fundamental point that reading code is a blocking task. I can't write code until I've read enough code. The faster I can grok the code I'm reading, the sooner I can clear that block and get to writing for my current task. The next task starts the read -> write cycle over again. It doesn't matter what metric you want to apply, whether it's LOC (stupid), tasks completed per day (better), or impact on schedule (probably best), I'm going to improve if I can cut down how much time it takes to read and understand code.

That understanding part is where careful colorization pays off. It's metadata applied to the code you're reading. It takes practice for it to be a benefit, but it absolutely is a benefit once you've put in the time with a consistent color scheme. The details of the color scheme (white on black, black on white, orange or green for constants, whatever) don't matter. What matters is that they speed up your code comprehension.

default colour combinations are usually chosen specifically to be more readable.
This is an important point as well. You don't have to come up with your own color scheme to get this benefit. The defaults are good ones. Or download a theme that works for you. You can absolutely offload the effort of building a good color scheme to someone else.
 
Jehos":yzuej370 said:
The details of the color scheme (white on black, black on white, orange or green for constants, whatever) don't matter.

That's...exactly what KallDrexx's original point was?

KallDrexx":yzuej370 said:
I don't see how anyone would have code quality or LOC output increase because of IDE colors.

I don't think KallDrexx or anyone else was arguing that colorized code in general isn't a benefit over non-colorized code. The argument was that the differences in productivity between different color schemes are minimal to nonexistent, unless the color scheme is truly difficult to read (but then why would you choose it as your color scheme?).
 

hongooi

Ars Tribunus Militum
2,244
Subscriptor
You're too hung up on a single abbreviation that I used. Rightly or wrongly, many (employers) in the industry use LOC as a metric for productive output, that's the only reason I mentioned it. We can debate the merits of LOC as a measure of productivity. But I also mentioned the supposed productivity impact changing colour themes and other customizations have on code quality. I don't know, it might help readability to change colours as many of you are claiming, but I question even that. Unless you are outside the norm (i.e. you require special accessibility accommodations), default colour combinations are usually chosen specifically to be more readable.

lmao. You wanted discussion, you got discussion.
 

Jehos

Ars Legatus Legionis
55,560
Jehos":2pqcngzf said:
The details of the color scheme (white on black, black on white, orange or green for constants, whatever) don't matter.

That's...exactly what KallDrexx's original point was?

KallDrexx":2pqcngzf said:
I don't see how anyone would have code quality or LOC output increase because of IDE colors.

I don't think KallDrexx or anyone else was arguing that colorized code in general isn't a benefit over non-colorized code. The argument was that the differences in productivity between different color schemes are minimal to nonexistent, unless the color scheme is truly difficult to read (but then why would you choose it as your color scheme?).
The differences in productivity between color schemes may be minimal, but the difference between a color scheme you're used to and one you're not is pretty big. Or to put it another way, there's not necessarily a "one true color scheme" to use, but if you make your own oddball scheme and someone else is pair programming with you, you're probably throwing them for a loop. It can be organizationally useful to stick to a default.
 

hanser

Ars Legatus Legionis
43,847
Subscriptor++
In other news, programmer happiness matters. Can you measure it? Sometimes, but often you can't.

I just find themes to have low ROI in the happiness department. Once you're in the zone the specific colors matter less. (Themes are generally one of the easiest things to version, though. I still don't think it's worth the effort. Pick one of the defaults, and get on with it. I don't even change monospaced fonts anymore...)
 

Faramir

Ars Legatus Legionis
36,356
Subscriptor
There's a failure mode where someone is seemingly always configuring his environment for better productivity rather than going ahead and being productive. I'm on the far other side of the spectrum, I can't be bothered even with learning shortcut keys--I just want to get on with what I'm trying to do. Somewhere in the middle is probably optimal. (Then there are probably people that spend all their time trying to figure out the optimal amount of time to spend on optimizing their environment. Turtles all the way up?)
 

fitten

Ars Legatus Legionis
55,634
Subscriptor++
Definitely from the Unix side of things... for years (~1986 through 2000), I was primarily a Unix user. I know I spent, on average, a few minutes every day 'customizing' my shell, emacs, xwindows, etc. I think a bit of that comes from the culture/draw of those type systems... high individuality (either people who think they are highly individual or that by joining the culture will become) so folks tend to spend time making their environment highly individual. That's just me theorycrafting, though.
 

hanser

Ars Legatus Legionis
43,847
Subscriptor++
There's a failure mode where someone is seemingly always configuring his environment for better productivity rather than going ahead and being productive.
I'd bet there's a correlation between someone who is willing to always fiddle with their environment and Linux users :)
I think that counts as actual productivity on Lunix. Like if you said in a daily standup "I spent my day customizing my environment", that would be normal and acceptable. :judge:
 

Apteris

Ars Tribunus Angusticlavius
9,590
Subscriptor
There's a failure mode where someone is seemingly always configuring his environment for better productivity rather than going ahead and being productive. I'm on the far other side of the spectrum, I can't be bothered even with learning shortcut keys--I just want to get on with what I'm trying to do. Somewhere in the middle is probably optimal. (Then there are probably people that spend all their time trying to figure out the optimal amount of time to spend on optimizing their environment. Turtles all the way up?)
I recently took the Coursera ML course taught by Andrew Ng. That guy just does not give a single dam: open Wordpad, type code, open cmd (Windows 7 cmd no less), run code. Repeat.

Mad respect.

(The above could probably be read in two ways; the course and the code used were of very high quality, and Ng is very good. That someone that talented just types code in whatever text editor is at hand impressed me.)
 

Jehos

Ars Legatus Legionis
55,560
There's a failure mode where someone is seemingly always configuring his environment for better productivity rather than going ahead and being productive. I'm on the far other side of the spectrum, I can't be bothered even with learning shortcut keys--I just want to get on with what I'm trying to do. Somewhere in the middle is probably optimal. (Then there are probably people that spend all their time trying to figure out the optimal amount of time to spend on optimizing their environment. Turtles all the way up?)
I recently took the Coursera ML course taught by Andrew Ng. That guy just does not give a single dam: open Wordpad, type code, open cmd (Windows 7 cmd no less), run code. Repeat.

Mad respect.

(The above could probably be read in two ways; the course and the code used were of very high quality, and Ng is very good. That someone that talented just types code in whatever text editor is at hand impressed me.)
Not pictured: the thousands of additional iterations when he has typos or forgets something and has to go look it up because he has no Intellisense or the bugs that take him longer to fix because code smells are covered up or...