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"
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"
@tknarr @RealGene @elasticsoul @pluralistic
Tabs are better for visually impaired individuals. Instead of “SPACE SPACE SPACE SPACE {“ it’s a simple “TAB {“. Learning about that is what made me change my mind about tabs v. spaces.
Realistically at this point, if your editor can’t automatically manage tabs vs spaces, you should get a new code editor.
@spaceinvader @tknarr @RealGene @elasticsoul @pluralistic tabs also allow the reader to adjust the tab width to a level that improves their visual scanning, and adapt to different window/screen sizes. E.g. wide indents when docked to my 43” monitor, narrow indents when the laptop is undocked.
Spaces as indent pushes what works for the author and their specific situation onto all the readers. Optimizing for the wrong use case (code gets read more often than it’s written, and by more people).
@tknarr @spaceinvader @RealGene @elasticsoul @pluralistic not at all. Take a look at “Smart Tabs”. Good editors, like SublimeText support them natively (open issue on VS Code).
You use tabs for indenting (1 per indent level), then switch to spaces if the line is a continuation and you need to align with text on the previous line. You can then change tab width without breaking formatting.
See: https://lea.verou.me/blog/2012/01/why-tabs-are-clearly-superior/
@tknarr @spaceinvader @RealGene @elasticsoul @pluralistic note this doesn’t work well for aligning comments at the ends of lines, you still need spaces there. Only tabs at the beginning of lines, and only to match the indent level.
Frankly, IMO editors should adopt a real “tab stop” model. After non-whitespace, tabs should skip to align with the tabs on previous lines. The whole “skip to the next even multiple” model was broken from day one.