C Beats Java As Number One Language According To TIOBE Index 535
mikejuk writes "Every January it is traditional to compare the state of the languages as indicated by the TIOBE index. So what's up and what's down this year? There have been headlines that C# is the language of the year, but this is based on a new language index. What the TIOBE index shows is that Java is no longer number one as it has been beaten by C — yes C not C++ or even Objective C."
Re:...Bash? (Score:5, Insightful)
More like something is wrong with the measuring system being used.
Re:C? (Score:5, Insightful)
Re:C? (Score:5, Insightful)
Re:C? (Score:5, Insightful)
Re:Dying gasps (Score:5, Insightful)
Not really. While I agree that C is a bad language, it has no competition in low-level coding. With embedded systems gaining ground, more and more people will start to use it. Although C++ could take its role and it even fixes many of its shortcomings (e.g. namespaces), it's very easy to misuse, so most project leaders don't trust their collegues with it. What would people switch to? Forth, Pascal?
Re:Dying gasps (Score:5, Insightful)
But if you're starting new big applications for the PC in C, you're probably insane.
Re:Dying gasps (Score:2, Insightful)
If you think the failures are due to the language being selected, you're the problem, not C#.
TIOBE algorithms (Score:5, Insightful)
Clearly C is more popular as more people complain about it sucking.
C sucks -- About 321,000,000 results
bash sucks -- About 7,500,000 results
Java sucks -- About 5,810,000 results
c++ sucks -- About 898,000 results
objective c sucks -- About 293,000 results
C Just works (Score:5, Insightful)
But on a whole other level my claim with most higher level languages ranging from PHP to
But where C is a project killer is the whole weakest link in the chain thing. If you have a large project with many programmers as is typically found in a large business system working on many different modules that basically work on the same data set that a safer language like Java is far far better. I am pretty sure that if the business programmers working on projects that I have seen were to have used C instead of Java that those server systems would crash more than once a minute. You can still program pretty badly in Java but a decent programmer shouldn't blow the system apart. Whereas a decent C programmer might not be good enough for a large project.
So the story is not if C is better than say Java but what is the best language for any given problem set. I find broad systems, like those found in the typical business, with many programmers of various skill levels are idea for Java. But for deep system where you layer more and more difficulty on a single problem such as real-time robotic vision that C or C++ are far superior. A simple way to figure out what is the best language is to not compare strengths and weaknesses generally but how they apply to the problem at hand. In a large business system where horsepower is plentiful then garbage collection is good and pointers are only going to be a liability. But if you are pushing up to the limits of what the machine can do such as a game then a crazy pointer dance might be the only possible solution and thus demand C or even ASM.
Lastly do you want your OS programmed in Java?
Re:C? (Score:2, Insightful)
Those aren't clear advantages. Rather, they're a shortcut toward writing shitty code.
Re:C? (Score:4, Insightful)
The name of the fallacy you just demonstrated is "No True Scotsman".
Experiment (Score:2, Insightful)
Write "Hello World" or any other program you desire in C and in C++.
Now look at the executable size.
Run it through a profiler and see execution time.
Now ask yourself, which language would you want to use on a system that has very limited resources without breaking out the assembler?
C a bad language? Compared to what? (Score:5, Insightful)
C is a bad language to the extent that it lets do what you want, even if that means shooting yourself in the foot. A language that would marry C's strengths while providing safeguards against buffer overruns and other ills would be an oxymoron.
If you have a section of code that is particularly time critical, you could write it in assembly as many people do. I prefer to actually write it in C but check the assembly output from the compiler, and optimize the C source until I am happy with the result. In all cases I have been able to achieve my objectives this way without actually having to insert a block of assembly (not all compilers let you do that in-line). The resulting code is still very easy to read (for me down the road or anyone else) while being efficient.
C is not the Swiss army knife of software (even though if one language qualified, C would be the closest), but it has its areas of expertise. In the world of small embedded systems, there is simply no alternative worth considering (and few alternatives available.)
For desktop applications, not so great (and I speak of experience.)
Re:Dying gasps (Score:5, Insightful)
Just because the language doesn't hold your hand and make sure you don't mess up doesn't necessarily make it a "bad" language. C++ could never fully take C's role due to the name mangling that C++ requires. I use and like C++ but there are somethings that are best left to C. Especially if you're binding compiled code to some interpreted language (e.g. Perl, Python, or Ruby) to speed up some computationally intensive portion of an application.
Re:Yes, unfortunately TIOBE is bollocks. (Score:2, Insightful)
You keep using the word 'statistics', I don't think you know what it means.
Statistics excels in exactly this situation, when you don't have perfect data, but do have enough data to produce a flawed but useful analysis.
YANAS, IADAS (You are NOT a statistician, I AM definitely a statistician)
Re:...Bash? (Score:2, Insightful)
Yep, they use frequency of search on the internet for the language to estimate. Which means confusing, and easily broken languages like C, and infrequently used(and thus easily forgotten) languages like bash get a huge leg-up.
I think C is less confusing than Java, so to each their own. At work, we do tons and tons of scripting. I can't agree with your sentiment that it's only infrequently used languages. Maybe _you_ don't use them frequently, but many others do.
With that said, I do agree with your statement that their method for determining who is using what language is broken.
Re:Woohoo (Score:3, Insightful)
It's depressing that Objective-C, Ruby and VB.Net have gone up, and see C# go down...
It's depressing to see a Microsoft-proprietary language, that they're not even supporting on one of their most recent platforms, go down in popularity? Really?
Re:Dying gasps (Score:3, Insightful)
Object-oriented is good for projects that need to be maintained. But it comes with additional complexity that programmers need to learn and track. It's only feasible for very large projects with multiple developers working on multiplel branches of development, and even then, it requires a very good maintainer, or it's too easy to fuck everything up. The infrastructure necessary to do good OO quickly gets as expensive and as complex as the problem the OO paradigm is trying to solve.
Procedural is the simpliest. It's not the fanciest, but it works in most cases. It handles code reuse more than adequately, which is all that a programmer really is looking to minimize (less duplication means less typing). And it's quick.
With Java now in Oracle's hands, it's not surprising C is making a comeback.
Re:Dying gasps (Score:4, Insightful)
Let me shout it loud: Premature classification is the root of all evil!