4 ms·
Lambda functions and closures in C++. E-gads man! Wasn't the language complex enough already! I have to say: I love it. C++ has always been my favorite languag
by DanielBMarkham 19y ago
Lambda functions and closures in C++. E-gads man! Wasn't the language complex enough already!
I have to say: I love it. C++ has always been my favorite language that I don't program in. It's like kung-fu for programmers. You can attack any problem. But most times we don't need kung-fu.
There's nothing like "getting in the zone" with a good C++ program. It's a thing of beauty. And if you're doing stuff that you have to use the tool, like writing drivers, low-level stuff, doing some "break the rules" programming, it's the best there is. I wrote a shell extender for windows many years ago in C++. I got to change the desktop and file system to work the way I wanted it to. Very neat stuff.
The sad fact is that most of the time you can make more money writing something with a much higher level language. And you can make it faster and adapt to the market faster. So C++ is a tougher language to use for startups, in my opinion (although it is still my favorite)
Can you imagine the trouble you can get into with macros, lambda functions, and unsafe pointers? How about throwing i some operator overloading? It's like a playground for nuclear weapons.
- mynameishere 19y agoC++ is a pita and it's no surprise that it's actually the highest compensated language to work in, at least here: http://www.indeed.com/salary?q1=lisp&l1=&q2=c%2B%2B&l2=&q3=java&l3=&q4=c%23&l4=&q5=python&l5=&q6=ruby&l6=&q7=smalltalk&l7=&q8=php&l8=&q9=cobol&l9=&q10=perl&l10=&q11=haskell&l11= http://www.indeed.com/salary?q1=lisp&l1=&q2=c%2B%2B&... I suppose the reason is that it can only realistically justify its existence at the bleeding edge (eg, with graphic engines, drivers, etc) where the work is inherently difficult as well.