4 ms·
How do you know it's verbosity skewing results, and not a preference for certain languages depending on the size of the project?
by WilliamLP 17y ago
How do you know it's verbosity skewing results, and not a preference for certain languages depending on the size of the project?
- lallysingh 17y agoThe only way to account for that is to compensate for verbosity between languages. I'm not sure anyone wants to go there, it's not pretty.
- dangoldin 17y agoYou can potentially have a sample of programs implemented in many different languages and compare the length of each program across languages. With enough programs you should be able to get a good enough sample as long as they are diverse enough.
- silentbicycle 17y agoGood point. Also, I wonder how those would be weighted if you counted projects that consist of >90% identical code as the same project (for example, how many of those Ruby projects are thinly veiled forks of Rails?), filtered out projects that are less than (say) 10k of source, etc. Maybe more Python projects are on bitbucket because of Merucial. The 90% and 10k there are pretty arbitrary; just, those language stats need a lot more clarification before their meaning is clear.
- wizard_2 17y agoI wonder if you could pull all the projects into one repo, repack and figure out it's unique objects using git. I always wondered if a global object store was possible or even a good idea for a site like github. I guess that's a different project though.
- silentbicycle 17y agoFWIW, finding duplicated code (particularly in a language-independent manner!) is a surprisingly difficult problem. You need to scan not just for large copy-and-pasted blobs, but code chunks that have just had constants changed, variable names adjusted, indentation style changes, etc. I've been working on a tool for this in my spare time, and I hope to have it out sometime this summer.
- deleted 17y ago[deleted]