News for hackers. Stuff that matters.
Re:Why C++ sucks (2016 edition) by alkonaut on Monday February 22, 2016 @04:26AM (#11149598)
> C++ really has only one downside. It's hard to learn

I don't think the article lists just one downside. For example It's also undeniably hard to parse, making it harder than necessary impossible to implement efficient refactoring tools and other parser dependent tools, for example.

> It has both amazing safeguards against programmer error and the ability to break all of them if you need to.

C++ has two main design constraints -- it comes from C and its abstractions should cost nothing. Those two have enormous benefits and drawbacks. Performance is one thing. Other languages that don't have those design goals/constraints have different benefits and drawbacks. It's easier to make a small shell util or in perl/python than in C++. It's easier to make a formally verified system in a functional lang than in C++ and so on. "The best tool for everywhere" meaning "if you need to use the same language to solve all N problems then C++ is best of the major and widely used languages" might be true, but it's also a pretty poor metric.

Re:Why C++ sucks (2016 edition) by jcelerier on Monday February 22, 2016 @05:58AM (#11149960)
> For example It's also undeniably hard to parse, making it harder than necessary impossible to implement efficient refactoring tools and other parser dependent tools, for example.

http://clang.llvm.org/docs/Tooling.html

Re:Why C++ sucks (2016 edition) by autoreleasepool on Monday February 22, 2016 @09:12AM (#11150853)
I'm curious, what languages have better support for tooling than C++?
Re:Why C++ sucks (2016 edition) by Sindisil on Monday February 22, 2016 @09:48AM (#11151067)
Java is an obvious example.
Re:Why C++ sucks (2016 edition) by autoreleasepool on Monday February 22, 2016 @01:20PM (#11152987)
I can think of several areas where Java support for tooling is unobviously superior when compared to C++.

The SDK for the Arduino is good example, so is the Unreal game engine, the tooling support in Xcode for iPhone Apps, the support for static analysis via Clang, the auto formatting support via clang-format, the support in Windows eith Visual Studio, the support for autocompletion in UNIX text editors such as Vim and Emacs with the YouCompleteMe daemon and client (which leverages clang).

So if Java is an example of superior tooling, it's not really an "obvious" one

Re:Why C++ sucks (2016 edition) by hnbro on Monday February 22, 2016 @07:15PM (#11155436)
perhaps "unobvious" to you, but that's something which is empirically (if subjectively) resolvable, no?
Re:Why C++ sucks (2016 edition) by autoreleasepool on Monday February 22, 2016 @08:39PM (#11155823)
My bro, it's truly an honor to have my first HN comment stalker. I feel like I finally made it
Re:Why C++ sucks (2016 edition) by hnbro on Tuesday February 23, 2016 @11:21AM (#11159927)
a coincidence, but whatever.