logoalt Hacker News

insanitybittoday at 11:10 AM5 repliesview on HN

I've never had discussions about code formatting in PRs, this seems like a made up problem or something that predates my career.


Replies

BigTTYGothGFtoday at 3:59 PM

> something that predates my career

That's because everybody uses linters nowadays, which was the original point.

show 1 reply
pdpitoday at 11:13 AM

It's not by accident that tabs vs spaces is one of the stereotypical great debates in programming.

show 1 reply
microtonaltoday at 11:13 AM

These used to happen all the time. In one (otherwise great) programming course in university you would even get points subtracted if you did not follow the lecturer's preferred style.

(I think that in their case it was partially because uniformity made correcting faster.)

show 1 reply
time0uttoday at 11:22 AM

Silicon Valley (the TV show) memed about it with its tabs vs spaces bit. It used to be a thing for sure. It has been a good 10 or 15 years since I had such a discussion. Automated linting and formatting tools largely killed it in my experience.

show 1 reply
petesergeanttoday at 12:51 PM

> this seems like a made up problem or something that predates my career

I can believe the latter, and I can assure you this was a Big Deal back in the day. There's a reason Go ships with gofmt, and gofmt was somewhat revolutionary for being a built-in "you gotta do it like this" back in the day.

show 1 reply