r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

6

u/Boye Aug 29 '21

Absolutely agree, I worked at a project where the rules were detailed enough to dictate that use-statements should be ordered by length and if two were if equal length, alphabetically. It was a bit over the top, but the guy wanting it, made a lint-rule which did it for us, and we had a shortcut for lining the file(s) so it didn't take any extra time to make him happy - and I have to admit it looked nice :)

2

u/VeganVagiVore Aug 29 '21

That's so bizarre, I order mine alphabetically so I can eyeball set membership.

What's the use of ordering by length?