Linked by Thom Holwerda on Mon 3rd Sep 2012 20:46 UTC, submitted by MOS6510
General Development I like this one: "By definition, a program is an entity that is run by the computer. It talks directly to the CPU and the OS. Code that does not talk directly to the CPU and the OS, but is instead run by some other program that does talk directly to the CPU and the OS, is not a program; it's a script." Here's the other eleven.
Thread beginning with comment 533960
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[9]: C++
by satsujinka on Wed 5th Sep 2012 15:15 UTC in reply to "RE[8]: C++"
satsujinka
Member since:
2010-03-11

Do you not read? I quite clearly stated that a set is a minor modification to a list. Since you're too dense to understand that, I'll spell out the change:
Take your list's add method and wrap it in the following if:
if(!list.contains(item))

I haven't been pointing out bad habits of C++ developers. I've been talking about how C++ is too wide a target for team building. I've been talking about how C++ reinvented I/O tools. I've been talking about how the STL is mostly duplicate work. No where have I been talking about C++ developers.

See but everyone makes mistakes applies just as much to C++. Maybe vectors stop you from causing buffer overflows, but there's still plenty of logic errors left over. And considering vectors are harder to use (with C++ iterators clouding things up even more) the chance of logic errors increases. (I'm sure if I brought up the fact that there's plenty of buffer overflows in C++ programs, you'd just deflect it as them not using the correct container. Which is un-testable either way.)

If you're really about security and aren't just putting on a security circus, you'd realize that any security critical software must be triple checked (at least) by other developers. This is plenty of opportunity to check that the original dev. was using correct practices (as I've already enumerated.) This is plenty of time to check for logic errors. Just having a language provide you with "safe" containers does not make their usage safe. If you believe it does, then I'm afraid to tell you, but it's you that has the wrong attitude.

Reply Parent Score: 1