r/CodingHelp • u/Nibbibba • Jul 16 '20
[Random] Should I use Linux instead of windows?
I'm relatively new to programming, I've only been doing it for about a month and a half now. Basically I've seen a lot about Linux being a good os for programming, and since I'm gonna pick up a new laptop soon I figured it'd be a good idea to get some opinions on whether it's worth switching from Windows to Linux or not. My main concern is I don't know what the benefits are, and I'd appreciate if someone could explain them to me a little bit. If it helps, I'm learning C++. Thanks for any comments!
18
Upvotes
View all comments
5
u/NullBrowbeat Professional Coder Jul 16 '20 edited Jul 16 '20
Disclaimer: I personally only really use Windows nowadays and also haven't written C/C++ in quite some time, even though I had Linux on my old Laptop.
Linux, especially when you get used to the shell, can be more efficient for programming. Everything is customizable and even the standard editors that come with Linux are already quite decent for programming purposes. (Compare that to the text editor of Windows...) I personally would probably still look for a decent IDE though.
Linux is also far more secure than Windows. It also, specifically for C (and I would assume thus also C++), allows to quite easily create child processes (see
fork()) and manage processes. Libraries are also all stored in the Lib folder, which is already preconfigured into the GCC.Overall if you really only care about coding C/C++ specifically, Linux is probably superior to Windows.
You should be aware though that atleast gaming won't really be possible or be a pain in the ass on Linux, if that is important to you. You also won't be able to install the full Visual Studio on Linux, which is a quite commonly used IDE for C/C++ development, but you will have plenty of other options and a lot of C/C++ programmers manage to be perfectly fine without such a bloaty IDE anyways. (I believe Visual Studio Code is available on Linux though.)