3 ms·
Duplicating my comment from the other discussion of this article: > In Java, 70% of duplicates were due to code generation. For C++ is was 18%, for Python 85%,
by AnimalMuppet 9y ago
Duplicating my comment from the other discussion of this article:
> In Java, 70% of duplicates were due to code generation. For C++ is was 18%, for Python 85%, for JavaScript 70%.
C++ is the real outlier there. That could be because C++ code is much harder to generate, but I don't buy that it's that much harder than Java. Or it could be because C++ templates aren't considered "code generation". Or it could be because C++ doesn't get used for projects with that much boilerplate code. Or...
- to3m 9y agoA C++ project that features generated code will probably run the generator during the build process - and possibly build it too, if it's written in C++ itself - and so the generated code might well not end up in the repo.