News for hackers. Stuff that matters.
Re:Writing Good Code Is a Lot Like Writing Prose by matt4077 on Tuesday July 11, 2017 @08:40AM (#14743602)
Editors really need to improve their support or comments. Currently, they're even deemphasised in some color schemes (looking at you VSCode).

I built a prototype for an Atom extension a while back that rendered Comment blocks with a markdown parser, inline, right in the editor.

I'm hoping that the VSCode team gets around to implementing the extension hooks necessary to implement this at some point, since I've switched away from Atom.

Re:Writing Good Code Is a Lot Like Writing Prose by Cacti on Tuesday July 11, 2017 @09:36AM (#14744030)
It's bizarre that we're still marking up code with comments like it's 1960. We need some sort of standard to include comments in code like footnotes, margin notes, and so on, that allow us to better explain what is going on without changing the actual readability of the code.

It would require us to move away from strict file-and-text-editing as the end all of programming, which makes many uncomfortable of course. And you get into lock-in issues.

Re:Writing Good Code Is a Lot Like Writing Prose by dragonwriter on Tuesday July 11, 2017 @09:44AM (#14744075)
> It's bizarre that we're still marking up code with comments like it's 1960. We need some sort of standard to include comments in code like footnotes, margin notes, and so on, that allow us to better explain what is going on without changing the actual readability of the code.

Actual comments already do that if the editor hides them by default; you don't need different syntax or abandoning pure-text representation, just the right editor features to do what you want.

Re:Writing Good Code Is a Lot Like Writing Prose by sametmax on Tuesday July 11, 2017 @08:51AM (#14743686)
I was really hoping we would have some common syntax for comments accross all languages. Something like doxygen + markdown, standardized that works for everyone, with a tool in all stdlibs to handle it.