RE: https://mamot.fr/@Khrys/116226030767910474

As predicted, humans are being turned into accountability sinks for #AI. AI code doesn’t work? You're fired!

"After outages, Amazon to make senior engineers sign off on AI-assisted changes"

@pluralistic

@elasticsoul @pluralistic Bets that the seniors start not signing off on code they aren't positive really works, with vague comments like "Overly complex, please simplify." or "Insufficient error checking. Please improve."?
@tknarr @elasticsoul @pluralistic
Start with where it puts the curly braces, and tab vs. space indents.
@RealGene @elasticsoul @pluralistic Yes on the first. Using tabs for indentation is an automatic "Fire this person." offense for me. Visual space should always match number of characters.
@tknarr I use tabs because I want $number_of_chars = $levels_of_indentation, with easy single-operation increase/decrease of level of indentation.
@developing_agent And when indentation isn't an even multiple of tabs, as when aligning a multi-line expression in an assignment?

@tknarr Because this *isn't* a structural construct (like if/for/etc) I indent up to the level of indentation of that block, then if I *really* need to make things align I fill in the remaining space with spaces. (tabs, if I don't)

This ensures that the block as a whole still indents/unindents correctly with tabs. I am never, ever going to adjust the level of indent of *part* of an expression in this way, so the use of spaces for intra-block expression alignment padding doesn't matter.

@tknarr if this expression by the unholy machinations of mathematics DOES become so gnarly that heavy use of brackets becomes mandatory...

...then I've just invented a new code block surrounded by a different kind of bracket, put the complete expression on a new line inside them, indent with tabs like it's a regular code block, and continue to apply the rules recursively as normal.

@tknarr with \t for tabs and s for spaces:
@tknarr In this example #1 uses a mix of tabs and spaces to get *perfect* alignment, but tbh I mostly just use tabs like #2 until it's close enough. Life is often too short to always get character-perfect alignment on a broken expression that usually contains elements of different sizes anyway.
@developing_agent @tknarr Yeah, #1 and #2 are pure chaotic evil though. Tabs *only* to the basic level of indentation, then spaces for alignment is the only way if you're going to use tabs for indentation.
@pdcawley @tknarr I mostly use #2 because life is short and using a single kind of character is simple. I don't bother adding spaces as a whole other kind of character to worry about just to close a 3 character gap.
@pdcawley @tknarr Using spaces at all is usually a special occasion when I'm working with something like a matrix where things *must* be aligned.