Hisham is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

I hate the paranoia around trimming trailing whitespace.

I remember a time when people weren't pedantic about it.

It started with Linux kernel devs because of their patches-over-email development method (email lost whitespace)

Then Linus coded that pedantism into Git.

And it spread like wildfire: editors started painting trailing whitespace RED.

Now everyone HATES trailing whitespace and when I ask them why they go blank for a second, then "...because Git and $EDITOR complain about it"

@hisham_hm I don't like trailing whitespace because it's completely invisible cruft. Sure, it harms nobody, but it's there, and because it's not surrounded on either side, there is no way to tell without selecting it. I have held an exception for indented blank lines, but that's changing because of the editors.

@impiaaa I love using indented blank lines, it's my #1 use-case for trailing whitespace (their presence has even been occasionally useful to me when scripting some edits over codebases).

Indeed, editors are getting more and more opinionated, clearly changing people's code writing habits. I'm not sure if that's always a good thing.

Hisham @hisham_hm

@impiaaa But then again, I'm opinionated and wrote my own editor in which my opinions are encoded, so... ¯\_(ツ)_/¯

· Web · 1 · 2