|
|
|
|
|
by rixed
3189 days ago
|
|
Figure 2 suggests another possible bias favoring functional, managed languages: a lot of errors for C/C++ are related to concurrency and performance. But those are mostly non-bugs for other languages, since when concurrency or performance are a requirement then most of those studied languages would not be considered anyway. It seems similar to the paradox that makes the best medicine appear to have a lower survival rate just because it's given to most serious patients. |
|
Similarly, again for performance reason, your average C program will have more concurrency than your average python program, therefore also more bugs.
Another way to put it: you use C when you have a complex problem to solve and python when you have a simple problem to solve (unless you are a masochist or a purist I suppose). So, one reason those languages have more bugs may just be that the programs themselves are more prone to errors (which might only be slightly related to size, if at all)