Live data from Hacker News

I program without syntax highlighting

hakon.gylterud.net

51–60 of 70 posts

Re: I program without syntax highlighting

#51

As usual, I read the code sample before reading the article: for (i=0;i There's no way it's mentally just as easy for me to find that error without syntax highlighting. It may be just slightly more difficult, but then it's death by a thousand paper cuts if I'm reading code for 6-12 hours a day.

I think it's fine when you're just working on your own but if you have to review code or work in a codebase you don't own that's much more effort.

Re: I program without syntax highlighting

#52

Earlier quoted context omitted.

I was an engineer on the Visual Studio team when we first introduced syntax highlighting and code completion. The rollout triggered quite a bit of internal controversy. A sizable group of developers strongly opposed these features—syntax coloring, parameter completion, signature validation—arguing that “real programmers write their code unaided.” I can’t help but wonder how those same engineers are adapting to the cu…

I will say this, I don't see how these aids can hurt someone's ability to write code. In that, I think there is a difference between those tools and AI. AI can write code fast, but can definitely also hurt your ability maintain a codebase if you aren't keeping it in check. I don't think there's any level where synatax highlighting could make a codebase worse.

When a coworker pastes a screenshot of their syntax highlighted code with a black background into chat it is functionally 50% blank as my 55 year old eyes are not good at low contrast. Regular blue, purples and reds are often unreadable against a black background.

Fortunately syntax highlighting isn’t part of the code, it’s just how it’s displayed. There comes a point where pasting images of code, to preserve syntax highlighting, into chats, email, and documentation it’s not only a waste of space, it becomes an ADA issue. Use whatever fonts and themes in your editor, but keep those to yourself.

Re: I program without syntax highlighting

#53

As a dyslexic programmer, I often think about how I would never be able to do the job I do without syntax highlighting. I don’t really know why it works so well for me, but I think it helps me skim and pattern match syntax much more easily without spending too much time reading every single word, which is exhausting for me. Types and autocompletion in an IDE also help me massively reduce issues with spelling and ulti…

See my other comment in this post. The reason I started thinking about creating a theme was because colour themes can sometimes saturate the ADHD brain, and so I’m going to try and dial back the colour to reduce the noise.

Hopefully when I’m done, you can take a peek to see if can help with your dyslexia

Re: I program without syntax highlighting

#54

Earlier quoted context omitted.

I was an engineer on the Visual Studio team when we first introduced syntax highlighting and code completion. The rollout triggered quite a bit of internal controversy. A sizable group of developers strongly opposed these features—syntax coloring, parameter completion, signature validation—arguing that “real programmers write their code unaided.” I can’t help but wonder how those same engineers are adapting to the cu…

I will say this, I don't see how these aids can hurt someone's ability to write code. In that, I think there is a difference between those tools and AI. AI can write code fast, but can definitely also hurt your ability maintain a codebase if you aren't keeping it in check. I don't think there's any level where synatax highlighting could make a codebase worse.

I'm guessing they used the same argument that was made for calculators, printing... By lessening the burden on your brain you weaken it.

Re: I program without syntax highlighting

#55
post #5

Most syntax highlighting adds too many color variations. In light modes, I find that variations gray and bolding certain symbols, variable names, function names in definitions and method calls to be enough. Just enough hint so the brain can skim for the matching information. My editor highlights the opening and closing brackets of my current block,but indent level indicators are usually enough for me to visually vali…

And then there's Rainbow Brackets...

I used to love rainbow brackets when they became popular about 10 years ago. Now I find that I almost never care about bracket color, and often it's distracting and I'd prefer them to be the same color.

Re: I program without syntax highlighting

#56
post #8

> Supporting all languages equally future-proves the editor, because who knows which language we will use in ten years? I remember which editors I used in 1990: emacs for most of my code and vi (vim now) for light editing mostly on remote machines. They are the same editors I'm using today. I went through some IDEs (Eclipse, NetBeans) because Java would have been nearly impossible otherwise but I never left those two…

We definitely had syntax highlighting in the 90s. I distinctly remember Turbo Pascal supporting it as early as 1992.

Re: I program without syntax highlighting

#57

I think language matters quite a bit when it comes to how useful this is. For simpler syntaxes like C or Java, I think the highlighting adds little. But as a language allows for more complex things like monkey patching or helper methods and the like, a little bit of color is really helpful. Knowing immediately that a method is built into the SDK or that it's some monkey patch that's been added gives me better underst…

I was an engineer on the Visual Studio team when we first introduced syntax highlighting and code completion. The rollout triggered quite a bit of internal controversy. A sizable group of developers strongly opposed these features—syntax coloring, parameter completion, signature validation—arguing that “real programmers write their code unaided.” I can’t help but wonder how those same engineers are adapting to the cu…

I'm pretty sure Turbo Pascal/C/etc and perhaps vim had syntax highlighting (though perhaps not the other bits) before the first VS release, I'm surprised they hadn't encountered it already.

Re: I program without syntax highlighting

#58

As a dyslexic programmer, I often think about how I would never be able to do the job I do without syntax highlighting. I don’t really know why it works so well for me, but I think it helps me skim and pattern match syntax much more easily without spending too much time reading every single word, which is exhausting for me. Types and autocompletion in an IDE also help me massively reduce issues with spelling and ulti…

I had not thought about this perspective (I wrote this essay many eons ago). But now I have a good colleague who is dyslexic, and he said the same thing. He says, for him, the colours carry more meaning than the characters often.

Re: I program without syntax highlighting

#60

I program with syntax highlighting. I'm not convinced by the arguments of the article: - actively clicking on matching parentheses has the benefit of selecting that part - being more sensitive to the "beauty" of the code I think syntax highlighting doesn't get in the way of these two points. The only valid point: - No syntax highlighting automatically supports all languages True I guess. In the sense that no shoes su…

No compliler automatically supports all languages so I do all my programming with a magnetized needle and a steady hand.
Post reply on HN