r/cpp_questions • • Jul 28 '23
OPEN Is the CLion IDE or Code::Blocks IDE better?
I'm considering switching from Code::Blocks to CLion. I've been using Code::Blocks for years, my friend has been hyping up CLion. Is it better?
2
Upvotes
21
u/Narase33 Jul 28 '23
Yes, by far
19
u/the_poope Jul 28 '23
Code::Blocks is a program written by a few programmers in their free time. As is the case with most hobby open-source projects, they work in a mostly unstructured way with no central direction or leadership.
CLion is written by a large group of professional programmers that work 8-9 hours on it every day, guided by professional managers that set structured goals based on analytics and user feedback.
I have yet to see a hobby open-source consumer product being better than a commercial equivalent. That being said, there are many open-source programs that are good, definitely good enough, especially when you take the price into account. Code::Blocks may be one of them.
11
u/senju_bandit Jul 28 '23
CLion is the best ide for cpp dev . Some might say VS and that’s good too . But I think CLion is awesome .
5
u/jaskij Jul 28 '23
If you want something free, QtCreator beats Code::Blocks, and yes, it works for non-Qt projects. CLion beats them both.
5
u/ALucaRd_hellsing_ Jul 28 '23
Clion is my personal favorite for c++, code blocks doesn't even come close.
2
u/[deleted] Jul 28 '23
Fancy a challenge? Emacs with eglot is pretty good ;)
1
u/[deleted] Jul 28 '23
If you don't mind putting many many hours in configuring, then neovim with lsp clangd/ccls and many other plugins is my preferred way to code C++ (or any other language for that matter, on any platform) :)
But of those 2, I only have experience with CLion, but I guess it is much better.
Most ppl in my company use VSCode with lsp clangd and some extra plugins for all their coding tasks, which is free (but expect to give up some privacy, not sure how this is with CLion)
On the other hand, whatever works for you is fine. I've seen very competent programmers using very basic tools in a basic way and being a lot faster than bad programmers. Meaning, the editing environment is not what makes the biggest difference in productivity, but making good decisions fast. Though, the editing environment certainly plays a role, and for me makes a lot of difference in how enjoyable the editing experience itself is.
CLion is free for some time when first starting to use it, so I'd say, just try it out.
1
u/Kriss-de-Valnor Jul 28 '23
CLION lover here. The UI is clean, it’s quite fast, has plenty of powerful refactoring tool, you can launch your tests without plugins, setup is way easier than VSCode, you can share your code easily with a remote colleagues, can work from a remote computer…it now comes with AI, has good integration of vcpkg, cmake helpers…
1
u/davidalmarinho Jul 28 '23
Yes it is, it really is. Others pretty good options that you can also considere (since CLion is paid) are visual studio, vscode or neovim.
1
u/casualPlayerThink Jul 28 '23
In short: Yes.
In long: it depends on your needs. If you are willing to learn, use cross-compilation, make, and such, then nothing better on the market.
1
u/peterrindal Jul 28 '23
Visual studio is better ;)
1
u/RufusAcrospin Jul 28 '23
I’m using Code::Blocks.
At one point I started to test CLion, but the fact that they have no intuitive way (i.e. via UI) to setup a project but using cmake made me stop evaluating it.
I can’t stand cmake.
1
u/noooit Jul 28 '23
It has nice integrations if you use cmake + google test, plus it has full remote build.
But I wouldn't definitely pay for it. clangd with any supported editor is enough.
1
u/3uclide Jul 28 '23
I have recently start dev on Ubuntu. Pretty much first time on a non windows os.
I started with VSCode because the ecosystems is great, a lot of nice extensions.
It got less nice once I wanted to debug. I could not easily figure out the address of my variable (adding & would not work)
I then switched to CLion where I can easily see my variable addresses. UX is great, but there is a LOT less plugins/extensions. Im also using Meson which does not have a great aupport.
I would go back to VSCode if I can figure out the variable addresses
That made me realised that Visual Studio is so much better than those 2. I might go back to windows and use WSL.
1
u/davidc538 Jul 28 '23
Either neovim or vscode with clangd is best imo
1
u/According-Award-814 Jul 28 '23
I never had a good time on code blocks (linux)
vscode and clion are the only ones I can stand. neovim is pretty good if you're not doing C++
1
u/hakonemachi Jul 29 '23
I used to do with VS code. But later switched to a paid version of Clion. Loving it much better than VS code.
1
u/Giorgos_G Jul 29 '23
Had been using QtCreator for some years, pretty good. Then I tried VSCode, took a while to configure everything with various extensions, but once you set it up works great and is highly configurable. For now it is my go to. I had never tried CLion though, I want to give it a try at some point
0
u/[deleted] Jul 28 '23
[deleted] — view deleted comment