3 ms·
Looking at the paper, it seems like most of the duplication is coming from folks who commit copies of library code into their repos. I think there are valid rea
by cousin_it 9y ago
Looking at the paper, it seems like most of the duplication is coming from folks who commit copies of library code into their repos. I think there are valid reasons to do that, and anyway it's not something that can be solved by programming language design.
Apart from that, most of the duplication is auto-generated project skeletons for frameworks like Django or Angular. I dislike frameworks as much as the next guy, but there's value in having a standard folder structure across different projects. So not a case for programming language design either.
Another widespread case of code generation that wasn't covered in the post is cross-language definition of structs or APIs. That's also not a case for programming language design, because the whole point is interoperating between languages.
In summary, we don't yet have a strong idea how analyzing code duplication or generation can lead to better programming language design. The conclusion might still be true, but you need to work a bit harder for it.