News for hackers. Stuff that matters.
Re:How to convince any C developer to dump gcc and use clang by sruffell on Sunday March 07, 2010 @01:50AM (#1173003)
I spend most of my time writing C code, but like to work with Python when I get the chance. There isn't anything like pylint for Ruby? A dynamic runtime doesn't necessarily mean you have to give up static analysis.
Re:How to convince any C developer to dump gcc and use clang by riffraff on Sunday March 07, 2010 @03:58AM (#1173108)
roody, rufus, reek, flay, flog, probably more. Sadly, in the current state of the ruby community it's even hard to find a library that will run with ruby's own warnings enabled.
Re:How to convince any C developer to dump gcc and use clang by eru on Sunday March 07, 2010 @03:57PM (#1173994)
Isn't clean code valued in the Ruby community?

As a contrast, I had the impression that the Python guys care more about this in their code. They also avoid eval and other runtime code generation. (Though I do not if that's related.) It seems these two languages are further apart than in their culture than anything else.

Re:How to convince any C developer to dump gcc and use clang by riffraff on Sunday March 07, 2010 @11:20PM (#1174643)
clean code, yes, but some of the warnings are actually generated in situations where the code won't be cleaner (e.g. lazy initializing an instance variable not declared in the initialization method) and since quite a lot of the most common libraries have _a lot_ of warnings, it becomes unlikely that you will have them enabled in your app, and so the thing self propagates
Re:How to convince any C developer to dump gcc and use clang by eru on Monday March 08, 2010 @05:16AM (#1175077)
OK. So people should suppress the warning in those cases, so as not to desensitize?
Re:How to convince any C developer to dump gcc and use clang by riffraff on Wednesday March 10, 2010 @03:56AM (#1180507)
well, I do, but I understand why people don't. The likely better solution would be to have structured warnings you can enable/disable by, selector such as warning class, declaring namespace, using namespace or whatever, but that seems quite unlikely :)