Re:How Developers Choose Names
by hallway_monitor on Sunday April 18, 2021 @10:37AM
(#26852852)
If you don't have refactoring that can rename functions across your code base, now you have two problems
[ Parent
| on HN ]
In 16 years as a developer, I have never seen this beyond the scope of a single project/language. Once things cross boundaries it stops.
I've hit this many times.
Microservices and JSON APIs.
Common library code (eg. common session handling) incorporated into dozens of microservices.
Monorepos (which actually make this problem somewhat easier).
Re:How Developers Choose Names
by dividedbyzero on Sunday April 18, 2021 @10:52AM
(#26852993)
Even within those bounds, I found it doesn't always work terribly well (depending on the language, tooling and project complexity)
Re:How Developers Choose Names
by marshmellman on Sunday April 18, 2021 @03:59PM
(#26855781)
What boundary would be involved in the handleClick example? Or are you speaking more generally about renames across API contracts?
Here is a great example that came up last week. Almost exactly like the OP. (It is even an onclick!)
I have a C# .net MVC web project. All of the JS, .cshtml templates and C# controllers are in the same visual studio solution. So it has complete vision into the code.
So the boundary is from cshtml template to javascript function and then another one from the js function (ajax call) to C# controller.
Visual studio has complete vision, but loses the connection at each boundary, so intellisense says that the C# controller function is never called.
I am not criticizing Visual Studio, it is a great tool, but this is a hard problem.