News for hackers. Stuff that matters.
Re:CLion Nova Explodes onto the C and C++ Development Scene by fluoridation on Thursday November 09, 2023 @01:32PM (#38208872)
Sure, but like I said in a sibling comment, I don't believe that knowing the types of the objects is actually helpful in understanding a piece of code. You'll need to know the actual types to know its exact performance characteristics, but if you can't understand what the code does even at a high level when you can't see any types then there's a problem anyway.
Re:CLion Nova Explodes onto the C and C++ Development Scene by dataflow on Thursday November 09, 2023 @01:40PM (#38209010)
> but if you can't understand what the code does even at a high level when you can't see any types then there's a problem anyway.

Who says this implies you can't understand what the code does at a high level? Often you know the high level behavior but need to figure out how it works so you can update the code. If anything, the high level behavior is often easier to understand, since you have the API documentation etc. available.

And in the cases where that is the case, what does "there's a problem anyway" mean? That the reader is too stupid to figure it out?

Re:CLion Nova Explodes onto the C and C++ Development Scene by fluoridation on Thursday November 09, 2023 @01:50PM (#38209168)
No, that the code is poorly documented, or that the names are poorly chosen.
Re:CLion Nova Explodes onto the C and C++ Development Scene by dataflow on Thursday November 09, 2023 @02:05PM (#38209397)
Sometimes, but not necessarily. Even when that's the case (and nobody always gets all the names perfect in the first iteration), you still face the problem of understanding it before you can fix that, so throwing your hands up is not a solution.

Regardless, the rest of my comment stands.