Re:Greppability is an underrated code metric
by neves on Wednesday September 04, 2024 @02:44PM
(#41449088)
> - You're remoting via SSH and have access to code there (say it's a python server).
VSCode SSH Extension for the win.
Re:Greppability is an underrated code metric
by einpoklum on Thursday September 05, 2024 @06:31AM
(#41455291)
> You need a better IDE.
No IDE will resolve this if the same code is preprocessed more than once to produce different files; or if you often build with different and conflicting preprocessing values; or if your build uses a tool your IDE doesn't know about; or if some of the preprocessing and compilation occurs at runtime.
> Go grab a coffee
So, you're saying "wait".
> Jetbrains all products pack, baby.
JetBrains CLion won't even try to properly index C/C++ files which aren't officially part of the project.
Plus, if you have errors in some places - which occurs while you're editing your code - then that breaks very badly with JetBrains IDEs. e.g. missing closing paren or #endif
Re:Greppability is an underrated code metric
by chipsrafferty on Thursday September 05, 2024 @05:03PM
(#41460391)
"I've not personally found the things you mentioned to ever be a problem, therefore they aren't actually real problems and you just need to get good"
You need a better IDE.
> - You just opened the project for the first time.
Go grab a coffee
> - It's in a language you don't daily drive
Jetbrains all products pack, baby.
> - You haven't even downloaded the project and are checking things out in github (or some similar site for your project).
On GitHub, press `.` to open it in a web-based vscode. Download it & open it in your IDE while you are doing this.
> - You're remoting via SSH and have access to code there (say it's a python server).
Don't do this. Check the git hash that was deployed and checkout the code locally.