News for hackers. Stuff that matters.
Re:Why I Left Google by yummyfajitas on Friday June 01, 2012 @08:49AM (#4053085)
C++ also has a great feature which a lot of more modern languages (Java, Python) have forgotten about: const correctness.

    class Foo {
        type_t getValue() const;
    }
When I call foo.getValue(), I can be certain [1] that foo has not been mutated.

[1] In C++, things like memset((void*)this, val, 1024) are always possible.

Re:Why I Left Google by heretohelp on Friday June 01, 2012 @04:39PM (#4055629)
>const correctness

I love that C++ programmers still believe in the false gods of the const keyword.

Zen: reflect upon the meaning of a const volatile pointer.

-> exits stage right