News for hackers. Stuff that matters.
Re:So you think you know C? by yitchelle on Tuesday November 08, 2016 @03:53PM (#12903833)
I think that this might be true in the early 2000's, I hope that we have moved on significantly by now. I know that the automotive folks are getting a lot better at code review, static analysis and unit testing.
Re:So you think you know C? by pjmlp on Tuesday November 08, 2016 @04:47PM (#12904243)
If you have time, enjoy this talk by Herb Sutter at CppCon 2015.

CppCon 2015: Herb Sutter "Writing Good C++14... By Default"

https://www.youtube.com/watch?v=hEx5DNLWGg

When he asks the audience how many use such type of tools regularity, he gets around 1% as result.

I see this with the other languages as well, such practices are still seen as extra costs, shuffled to the end of the projects.

Unless the customer has software development as core business, there the attitude is quite different.

Re:So you think you know C? by lomnakkus on Tuesday November 08, 2016 @05:02PM (#12904350)
Yeah, and keep in mind that the developers who even attend CppCon 2015 are probably in the top 10% (at least) in terms of interest in these types of things.

Very sad.

Re:So you think you know C? by MaulingMonkey on Tuesday November 08, 2016 @10:04PM (#12905786)
It might be that they're in the top 10% of interest in ramping up in these types of things. I'm sure I'm not alone in having little interest in attending a technical conference that mostly covers things I already know - I'm there either to learn, in which case I want new content - not rehashed content - or I'm there for other reasons. Low rates of already using these tools, then, may make a certain amount of sense. If they were already putting them to practice, they may be less likely to attend.

Or I could be way off base - I've never attended CppCon. And I do love me some ASAN when I need it ;)

Re:So you think you know C? by yitchelle on Tuesday November 08, 2016 @05:49PM (#12904653)
Indeed. If you contrast it against other engineering disciplines, even a closely related one like hardware engineering or FPGA engineering, the mindset is totally different. The amount of checks, reviews and many other practices is astounding.
Re:So you think you know C? by lomnakkus on Tuesday November 08, 2016 @06:13PM (#12904806)
... which is even more surprising given that many of these practices (in software) are almost-free. Granted, there aren't compile-time guarantees for most of these things, but with ASAN/UBSAN/etc. you'll certainly find the top 90% of your problems pretty fast.
Re:So you think you know C? by 2iuwqhd on Wednesday November 09, 2016 @07:59AM (#12909883)
In my experience diligent programming and going to conferences (or giving talks at conferences) are inversely correlated. Many conference pundits do little to no actual programming in the first place.
Re:So you think you know C? by lomnakkus on Thursday November 10, 2016 @06:03PM (#12925423)
I'm not sure exactly what you're driving at, but for conferences like CppCon (and similar), the driving factor is usually technical interest and not just a way to waste time away from work (while drinking every night or whatever[1]).

So... could you explain what you're insinuating so I could respond to that instead of just guessing?

[1] Not sure about CppCon, but all "technical" conferences I've personally been to did have a lot of late-night drinking, but that was secondary to the technical stuff.

Re:So you think you know C? by duerrp on Wednesday November 09, 2016 @01:34AM (#12906749)
Thanks for the tip, your link is missing an A at the end though...

https://www.youtube.com/watch?v=hEx5DNLWGgA

Re:So you think you know C? by throwaway96494 on Tuesday November 08, 2016 @04:40PM (#12904197)
I'm intimately familiar with an in-production, business-critical code base and there's not a single best-practice it doesn't breach. If the compiler, on it's most lenient setting, allows it, then it has been done. It's fortunately not in C, but it tries to compensate by being pretty big.