TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stroustrup: C++ is a waste of time

12 pointsby psibiover 11 years ago

5 comments

vsbuffaloover 11 years ago
This is a well-known hoax: <a href="http://stackoverflow.com/questions/648998/is-c-a-waste-of-time" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;648998&#x2F;is-c-a-waste-of-ti...</a><p>Personally, I still found it enjoyable to read. It raises some real problems with C++.
Doublonover 11 years ago
Nice file name. &#x27;joke_19980216_01.txt&#x27;
elipseyover 11 years ago
funny. i was totally trolled for the first paragraph or two.<p>did anyone else immediately have to go check how big hello world builds?<p>elipse@lappy:~&#x2F;Desktop$ echo &quot;#include&lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; \&quot;hello world\&quot;; } &quot; &gt; hello.cpp elipse@lappy:~&#x2F;Desktop$ g++ hello.cpp elipse@lappy:~&#x2F;Desktop$ ls -lh a.out -rwxr-xr-x 1 elipse elipse 8.8K Dec 6 13:46 a.out elipse@lappy:~&#x2F;Desktop$<p>not half a meg, but still kinda big if you stop and think about it, but the c way with printf was only a couple of hundred bytes smaller...
resuover 11 years ago
Can&#x27;t tell if serious...
评论 #6862535 未加载
michaelochurchover 11 years ago
Clear hoax, but I do find it interesting, because C++ engineers do seem to be outearning people in more high-level languages, which is surprising not because it&#x27;s low-level but because it&#x27;s a <i>bad</i> language at its level of abstraction (C, on the other hand, fits its level well). I don&#x27;t know of anyone cracking $250k in anything other than C++ (usually in low-latency trading) or Java.<p>It does seem, for now, that using a painful language increases one&#x27;s compensation potential at least at the high end. I suspect that that will change in the future, but it may not happen quickly.