Hacker News new | past | comments | ask | show | jobs | submit login

There's a link on the page to this essay by Dijkstra: http://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1012...

It's overall badly (at least foggily) written, but I find this quote really on point:

>The moral of the story is clear: real programmers don't reason about their programs, for reasoning isn't macho. They rather get their substitute for intellectual satisfaction from not quite understanding what they are doing in their daring irresponsibility and from the subsequent excitement of chasing the bugs they should not have introduced in the first place.

And that, ladies and gentlemen, is why I think people think C/C++ is an acceptable tool for anything besides drivers and kernels, for which they're only acceptable because there's no better alternative. Sure, pointer-pointers is a magnificent idea! I'll totally keep that under control!




You could actually argue the opposite.

People who can use C++ need to reason about their programs because otherwise they're going to shoot their foot off. You can be irresponsible in a language like python and get away with it because you're not going to cause the issues you would in C++.

I think that, to some extent, this is true. If you don't know what you're doing I find it's easier to code yourself into a corner in C++ than something like python.

(Disclaimer: I haven't used C++ in a decade)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: