News for hackers. Stuff that matters.
Re:How to C in 2016 by clock_tower on Friday January 08, 2016 @09:13PM (#10869743)
Well, there's a trick to writing C++ with no crashes and no memory corruption: never allocate memory using pointers. If you store all your data in stack variables and STL containers, C++ becomes a _much_ more forgiving language (especially if you also avoid templates and operator overloading).

I imagine that this poster and his team took a similar approach with C: avoiding the dangerous features, or just finding ways to factor them out.

Re:How to C in 2016 by humanrebar on Saturday January 09, 2016 @08:58AM (#10871245)
Even if you do all the things you said, you can still crash a C++ program. Iterator invalidation is very easy to do on accident, for example.