News for hackers. Stuff that matters.
Re:A Dictionary of Single-Letter Variable Names by evoke4908 on Sunday October 13, 2024 @10:00PM (#41833506)
> Someone shouldn’t have to use source inspection assistive coding tools to parse the code you write
Re:A Dictionary of Single-Letter Variable Names by ruszki on Sunday October 13, 2024 @10:26PM (#41833668)
This is nonsense. You can parse every code with simple Notepad, if you have time. You don’t need to use even search, if you wish.

Or you can make your life easier, and use tools which helps you.

Once again, regardless of codebase.

Re:A Dictionary of Single-Letter Variable Names by achierius on Sunday October 13, 2024 @10:48PM (#41833763)
"If you have time" is the operative point here. The idea is to make it efficient to quickly search for occurrences.

So then you get back to the LSP question -- but for larger codebases I can tell you, those don't always work as well as you'd hope. I don't use 'ii' but it's admittedly much easier to just `rg` for variables than hope my editor plugin decides to work today.

Re:A Dictionary of Single-Letter Variable Names by strken on Sunday October 13, 2024 @11:53PM (#41834030)
In general I agree with you, but in the specific case of loop variables, how much code do you need to search through? How big is your loop if you need to reach for rg to understand it?