5/4/2026 at 9:30:51 PM
One of my first jobs was a small software company writing software for a small number of clients, in MS basic PDS.The lead developer didn't like to bother with formatting code, so I wrote a tool called makenice to format his nasty spaghetti gibberish into something with good indents and layout to make it easier for us normal people to parse.
He was furious, literally spun in circles about it right in the office in front of everyone, so I wrote makenasty to format code into the way he appeared to like.
I only shared makenasty/nice with a couple of the team, who loved it, as it allowed easy conversion between something readable and something the team lead like.
He never knew about makenasty.
by CrzyLngPwd
5/4/2026 at 10:05:49 PM
Outside of the naming - this is a perfectly sane thing to do for developer comfort and can usually be accomplished with simple transformations.There are often limitations (like manually added indentation/spacing for alignment) but as long as you're very intentional about what changes you'll allow and have a good understanding of the language it can be an extremely safe operation.
by munk-a
5/5/2026 at 5:03:14 AM
I think git’s naming is actually pretty reasonable: smudge (on checkout) & clean (on stage).by e28eta
5/5/2026 at 4:57:14 PM
Oh smudge and clean are excellent names. My singly held objection to the OP was that they called one of the scripts "makenasty" instead of like "makemunkastyle" or something more neutral. I think it's an excellent idea I'd just avoid being judgemental in naming. You can consider my deep love of BSD braces super nasty but I'd prefer you didn't label it that way.by munk-a
5/4/2026 at 10:13:43 PM
If he didn't bother formatting code, it would seem impossible to create a tool that formatted code the way he preferred.by nitwit005
5/4/2026 at 10:18:18 PM
Sounds like he did format code, and even had opinions on how it should be formatted, but OP disagreed.by singpolyma3
5/4/2026 at 11:41:56 PM
reminds me of rob pike mentioning gofmt's style is "no one's favorite"by jameson
5/5/2026 at 1:28:53 PM
The full quote:> Gofmt's style is no one's favorite, yet gofmt is everyone's favorite - Rob Pike https://go-proverbs.github.io/#:~:text=Gofmt%27s%20style%20i...
The best part about gofmt is there is no discussion about how to format Go code. The style itself is fine, skipping endless hours of pointless debate is priceless.
by infogulch
5/5/2026 at 7:59:07 AM
Having K&R brackets be a syntactical requirement and everything else is a syntax error is okay with me though.by ErroneousBosh
5/5/2026 at 12:20:43 PM
K&R, ride or die.by drob518
5/4/2026 at 10:48:00 PM
I find a lot of these conflicts I can't resolve when everybody agrees that the pain of ugly/unnecessary diffs is greater than the pain of minor formatting disagreements.by Terr_
5/5/2026 at 3:47:00 PM
its because some people learned to put meaning into different ways to layout dense expressions, or different kinds of comments in difference contexts.python was "weird" at first to C-tribe, because of the strict layout used to eliminate some of the syntax tokens. These stories come from a time before "order over all" in some factory code base was seen as Universally a virtue of some kind
by mistrial9
5/4/2026 at 11:29:38 PM
This kind of passive-aggressive bullshit is exactly what's wrong with tech. People don't decide things: they just passively resist, and authority ends up being a muddle of truncated information flows.by ethical_source
5/5/2026 at 6:42:16 AM
If someone sharing an old war story with what I felt was a positive and joking tone triggered you this bad, I feel bad for anyone working with you.Nothing in tech is worth going through life miserable. Nothing.
by wutwutwat
5/5/2026 at 11:33:57 AM
[dead]by brentcrude