News for hackers. Stuff that matters.
Re:Index, Count, Offset, Size by JSR_FDED on Saturday February 21, 2026 @02:05AM (#47098237)
Using the same length of related variable names is definitely a good thing.

Just lining things up neatly helps spot bugs.

It’s the one thing I don’t like about strict formatters, I can no longer use spaces to line things up.

Re:Index, Count, Offset, Size by craig552uk on Saturday February 21, 2026 @04:18AM (#47098960)
I've never yet seen a linter option for assignment alignment, but would definitely use it if it were available
Re:Index, Count, Offset, Size by ivanjermakov on Saturday February 21, 2026 @05:10AM (#47099277)
AlignConsecutiveAssignments in clang-format might be the right fit.

https://clang.llvm.org/docs/ClangFormatStyleOptions.html

Re:Index, Count, Offset, Size by skydhash on Saturday February 21, 2026 @06:15AM (#47099696)
I know prettier can isolate a code section from changes by adding comments. And I think others can too.