News for hackers. Stuff that matters.
Re:Python is now the most popular introductory language at t... by eru on Monday July 07, 2014 @10:06PM (#8002697)
And C++ is horrible for security. By default it inherits C's no-checks-at-all, give-me-performance-or-give-me-death mentality.
Re:Python is now the most popular introductory language at t... by pjmlp on Tuesday July 08, 2014 @05:06AM (#8003616)
While true, at least modern C++ provides the tools to write secure code, if one wishes to do so.

Whereas with bare C, there is no hope.

Re:Python is now the most popular introductory language at t... by eru on Wednesday July 09, 2014 @08:11AM (#8009195)
You could add Valgrind and static analysis to your C. (You'd have to do something like this to C++, too.)
Re:Python is now the most popular introductory language at t... by pjmlp on Wednesday July 09, 2014 @03:17PM (#8011674)
Valgrind is bandage sadly only available to GNU/Linux developers with lots of RAM to spare. Not fully available, if at all, when other systems need to be targeted.

Fully agree with static analysis.

My point is that at least with C++ you get the help of stronger type checking, RAII and automatic memory management via the available collections.

But of course, the C compatibility is both an advantage in terms of helped adoption, but also a weight in terms of being able to write secure code.

Re:Python is now the most popular introductory language at t... by eru on Wednesday July 09, 2014 @11:12PM (#8013392)
Agreed, the C compatibility and piling off features on top is a serious legacy.