News for hackers. Stuff that matters.
Re:C++ Cheat Sheets by techas on Sunday March 06, 2022 @04:44PM (#30581557)
Off topic. Could you recommend an ide to work with c++?
Re:C++ Cheat Sheets by jll29 on Sunday March 06, 2022 @04:49PM (#30581615)
CLion from JetBrains and Microsoft Visual Code are the best commercial ones for Linux, NetBeans is a free (as in freedeom and open source) one (that also supports many other languages like Java and Python).

What I don't recommend is Eclipse - it's complex and confusing for beginners (but a bit faster than some others).

Re:C++ Cheat Sheets by MetricExpansion on Sunday March 06, 2022 @05:22PM (#30581863)
I didn’t think NetBeans supported C++ anymore?
Re:C++ Cheat Sheets by mdaniel on Sunday March 06, 2022 @07:47PM (#30582820)
Yeah, at least according to the repo it seems they now delegate to the ccls language server and just do syntax highlighting via the textmate plist grammars that are so commonly paired with language servers

* https://github.com/apache/netbeans/tree/12.3/cpplite#cpplite

* https://github.com/apache/netbeans/blob/12.3/cpplite/cpplite...

Re:C++ Cheat Sheets by ibobev on Sunday March 06, 2022 @04:48PM (#30581599)
Microsoft Visual Studio for Windows and QtCreator for Linux.
Re:C++ Cheat Sheets by CornCobs on Sunday March 06, 2022 @07:53PM (#30582858)
I find visual studio to be absolutely horrendous for C++. Refactoring doesn't work (even a simple rename symbol!) The errors aren't accurate, autocomplete seems to suggest every symbol from the stdlib before the class defined in the file itself and can't tell when it should suggest classes vs functions/variables.

Oh and of course compile errors are absolutely useless but I suppose that's a C++ thing in general. The error panel shows the (last? First?) Error in a chain of errors, which is always something deep in library code. E.g. accidentally tried to copy a non-copyable object using unique_ptr? You can't find the offending callsite, it just points you to xmemory and at best the class being wrongly used.

Re:C++ Cheat Sheets by ncmncm on Sunday March 06, 2022 @09:46PM (#30583677)
Compile errors will anyway be getting better as concept support gets built out.
Re:C++ Cheat Sheets by mpreda on Monday March 07, 2022 @12:49AM (#30584584)
qt-creator is a nice open-source IDE:

https://github.com/qt-creator/qt-creator

They offer binary releases, but it's also possible to compile from source without too much trouble. Written in C++, it's pretty snappy. Supports meson.

Re:C++ Cheat Sheets by dwrodri on Sunday March 06, 2022 @05:23PM (#30581873)
I can testify to JetBrains products, they're quite good. I haven't used CLion in a few years because I don't like depending on a dev tooling that costs money. I use VSCode because I hop between Python, Bash, Go, C, and C++. That being said, CLion definitely offers a much better debugging experience, even when VSCode has all the right plugins.
Re:C++ Cheat Sheets by mattgreenrocks on Sunday March 06, 2022 @06:15PM (#30582249)
CLion is quite good IME. Visual Studio, historically, has been excellent, but I haven’t used Windows full time in a decade.
Re:C++ Cheat Sheets by jcelerier on Sunday March 06, 2022 @05:21PM (#30581853)
I use Qt Creator on every platform
Re:C++ Cheat Sheets by whimsicalism on Sunday March 06, 2022 @05:31PM (#30581933)
CLion, VSCode, Vim - in order of decreasing tooling.
Re:C++ Cheat Sheets by harry8 on Sunday March 06, 2022 @10:49PM (#30584037)
vim with the YouCompleteMe plugin (which uses clang-complete) is pretty good.

Contrary to a sibling post eclipse CDT is fine (especially with vim bindings).

It depends what you want from your IDE maybe?