Please replace C/C++ with two different categories. C/C++ makes about as much sense as Java/JavaScript.
Please replace C/C++ with two different categories. C/C++ makes about as much sense as Java/JavaScript.
I agree. This is an active bug over on labs.ohloh.net.
If you want to take a crack at fixing it, you'd make a lot of friends here. :-)
Greetings Ciaran,
When I originally authored ohcount I decided to lump the languages together because I couldn't disambiguate some files purely based on their name and content. How should one classify a header file containing a few lines of C-looking code? Couldn't that also be compiled into a C++ project?
One idea might be to start splitting up C and C++ code on a line-by-line basis. This would be rather strange for some people, since a "pure C++" project would undoubtedly end up looking like it contained a fair amount of C.
In short, I support your cause but am at a loss for how it could be done.
Sorry to double-post on this, but I was bothered by your original assertion: "C/C++ makes as much sense..." I see your point, but imo your analogy's a little stretched.
From wikipedia:
C++: Bjarne Stroustrup developed C++ in 1979 at Bell Labs as an enhancement to the C programming language and named it "C with Classes".
Javascript: Despite the name, JavaScript is essentially unrelated to the Java programming language.
Alright. I've attached a crude first attempt at a patch to the bug.
Perhaps a better analogy would have been BASIC/VisualBasic.NET? There's a huge difference between most modern C++ code and the way things would be done in C; C++ stopped being used just as a collection of extensions to C a long time ago.
So it seems this has been fixed. Thanks! I suppose projects with "C/C++" code now need to be reindexed. Is this being done automatically or on a case-by-case basis?
Hi braden,
We're basically in a position now where everything on Ohloh needs to be recounted. This won't come quickly, so we're just going to start recounting from the oldest to the newest, as server resources allow. This will take several months.
I'm more than happy to bump any particular project to the front of the queue. Just let me know...
Robin
I just love it how C is language #42.
Has something happened with this?
When OpenVRML got bumped a few weeks ago, it was accurately portrayed as being almost entirely C++. But now the code analysis shows 52% C++ and 46% C. What happened here?
[edited]
I forgot when I initially posted this that I have a C library dependency that I've imported into my source tree. So while the numbers still seem a bit off, they're not as surprising as I'd initially thought.