Live data from Hacker News

I program without syntax highlighting

hakon.gylterud.net

21–30 of 70 posts

Re: I program without syntax highlighting

#21
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 support all feet.

Re: I program without syntax highlighting

#23

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 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.

Re: I program without syntax highlighting

#24

Syntax highlighting gains, regardless of color scheme, are not negligible. There are grayscale color schemes, for example, that remove the violent nature of some color themes.

I use a custom grayscale theme in Neovim with 3 light and 3 dark colors. Comments are darkest, language syntax like keywords and brackets are normal, and assigned values bright. This helps me focus on what's important and ignore the boilerplate around. Everything is still readable but I can parse the code by just taking a glance at the relevant stuff.

Re: I program without syntax highlighting

#27

> In Acme I double click on the outmost marker [...] I'll represent the insufferable Emacs/Vim pricks by saying: Once I read you're using a mouse during development, my willingness to entertain your contrarian dx ideas dropped to near 0.

As of emacs 31.1, xterm-mouse-mode is default where supported.

Re: I program without syntax highlighting

#28
I eat all my food without knife and fork. I find I am able to see the beauty in a pork chop when I cut it with a spoon and am able to appreciate its qualities better. Too tough and the cutting fails. I know then to rid myself of an ugly thing and buy another. Just right and I can scoop up a piece as soon as I get it to the right shape.
Post reply on HN