this post was submitted on 27 Feb 2025
97 points (99.0% liked)

Programmer Humor

33658 readers
700 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 2 days ago (5 children)

For a moment I wondered why the Rust code was so much more readable than I remembered.

This would make a nice VS Codium plugin to deal with all the visual clutter. I actually like this.

[–] Tlaloc_Temporal 1 points 1 day ago (2 children)

I wish I could do this with every IDE. Get rid of all the semicolons and most curly braces and replace them with structural whitespace. You could even save the files with the punctuation and compile that to whitespace when editing.

[–] [email protected] 5 points 1 day ago* (last edited 1 day ago) (2 children)

You people are insane. Languages with meaningful whitespace are my personal hell. Don't you value being able to space/tab/newline as you please?

[–] [email protected] 1 points 1 hour ago

Used to, but now that I realise what the real hell is, i.e. collaboration with others who might (and will) have different ideas about how code should be formatted, I'd rather leave that job to an autoformatter, too much mental overhead for little gain when there's a tool that can enforce a single style across the whole codebase with a simple command, or better yet, a git hook. If anyone complains I can point to the tool and say "sorry, take it up with it, not me"

[–] Tlaloc_Temporal 1 points 1 day ago

I already do, it strengthens the structure of the code in my mind.

[–] PeriodicallyPedantic 4 points 1 day ago* (last edited 1 day ago)

For a long time we've said it's important to separate semantics and presentation (eg html vs css).

I've always wondered why we never followed our own advice when creating new programming languages. Let the IDE present whatever TF you want, and in the background it's simply building an Abstract Syntax Tree and serializing that to a file in whatever serialization format it prefers.

I've dreamed of making my own data-flow language that follows that principle, but I have neither the knowledge of compilers nor the free time to try.

load more comments (2 replies)