News for hackers. Stuff that matters.
Re:Carmack on not being a power editor user by GuB-42 on Sunday September 06, 2020 @06:48PM (#24395254)
Btw, Carmack mention the debugger as an essential tool. That's my main issue developing C/C++ on Linux. I prefer working on Linux for many reasons but if there is a negative, that's it.

I found every debugger-editor integration to be terrible, at least compared to Visual Studio on Windows. gdb is very powerful, but its UI is primitive, and that includes tui. And most integration basically just assigns shortcuts to commands and show you the current line in the source file. Something as simple as stepping inside a function and watching local variables change can be a problem. Also, no "edit and continue". Someone will probably tell me that I am doing it wrong but if you do, please tell me what I can do to get a Visual Studio 6 level of experience.

Of course, I can get around it, the answer fits in one word: "printf". But I don't want it to be like that, it doesn't have to be, most good IDEs do it right. Note that I use gdb, but for me, it is the big gun, when other weapons have failed. Even for crashes, I tend to go with valgrind first if I can.

Re:Carmack on not being a power editor user by brundolf on Sunday September 06, 2020 @07:11PM (#24395394)
I recommend giving VSCode a try. It's at the same level of polish as Visual Studio (it has fewer years of refinement, but also fewer years of feature-bloat) and because it's Electron, it works equally well on all three OSes. I haven't used it for C(++) but I've used its debugger integration with both Node and Rust and been pretty happy, at least with the basic debugging features that I end up using.
Re:Carmack on not being a power editor user by chiffre on Sunday September 06, 2020 @10:11PM (#24396121)
(1) Visual Studio Code - I work with it on Debian & Ubuntu versions from 16.04 to 20.04, also works well with WSL/Ubuntu on Windows;

(2) + C/C++ extension for VSCode from Microsoft (installed separately);

(3) + sudo apt-get install clang-format.

  You may want to adjust some settings e.g. set C_Cpp.default.cppStandard to C++17.
Re:Carmack on not being a power editor user by joshvm on Sunday September 06, 2020 @08:59PM (#24395892)
Qt creator is really not bad for non Qt projects. It can be set up with cmake quite easily. It's also FOSS. Maybe I'm used to it from working with Qt a lot, but I prefer it to VS Code for debugging (GUI interface to define configs rather than fiddling with launch.json).
Re:Carmack on not being a power editor user by qppo on Sunday September 06, 2020 @06:57PM (#24395306)
Have you tried CLion or VS Code?