4 ms·
Haha: https://www.dropbox.com/s/j7rwshax2e9zwln/Screenshot%202014-07-17%2011.13.10.png https://www.dropbox.com/s/j7rwshax2e9zwln/Screenshot%202014-... Not eve
by hugofirth 12y ago
Haha:
https://www.dropbox.com/s/j7rwshax2e9zwln/Screenshot%202014-07-17%2011.13.10.png https://www.dropbox.com/s/j7rwshax2e9zwln/Screenshot%202014-...
Not even PHP can come within a factor of 5 of C when it comes to ugly hacks.
EDIT: And its not exactly like there is a bias at work: http://goo.gl/ZezFiP http://goo.gl/ZezFiP
- torrent-of-ions 12y agoBut is it because C programmers make more ugly hacks or that C programmers are more likely to know when they are making an ugly hack?
- krapp 12y agoI think PHP is more or less just for the web, giving C programmers more ugly hack surface overall. Also PHP itself is an ugly hack of C anyway.
- spyder 12y agoThere is a bias because there is more C code. The number of repositories doesn't equal to the quantity of code and if you search for general things that are used in both languages frequently then there is always more C results, for example: https://github.com/search?p=1&q=if+&ref=searchresults&type=Code https://github.com/search?p=1&q=if+&ref=searchresults&type=C... https://github.com/search?p=1&q=return+&ref=searchresults&type=Code https://github.com/search?p=1&q=return+&ref=searchresults&ty...
- hugofirth 12y agoFair enough. If there is a bias towards C I would guess it was more due to the situations in which C gets used, than C itself. Talking to a friend who has to try and get the same C/C++ codebase to compile for 6 different platforms (consoles) has been an eye opening experience. That kind of environment is like a slightly warm petri dish for ugly hacks.