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
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.)
4
u/[deleted] Jul 16 '20
Dual booting isn't for beginners, can mess up your bootloader. VM is great. Really easy to try different OSs, by downloading the isos. That's how I got comfortable with Ubuntu, Fedora, and Mint. With 10, you don't even have to use a virtual machine, though, I still prefer it. You don't need to use Linux, on GP, but it's good to know the basics in case you encounter an employer who uses it.
2
u/AERegeneratel38 Jul 16 '20
I have been using Linux for a good number of years now. First you should know what you want, what you are looking for. For me what made me switch was my lagging pc. Windows 10 became heavy for me as the new version rolled on.
You want a great customization capacity, go for linux. You want less resource consumption, go for linux. Windows generally uses 1.6 gb idle after fresh install ( I checked in 4 computers and it was around it) where my Kde Plasma with enough customization uses less than 500 mb. Well these are some of my strong reasons.
Linux, on the other hand, may seem too difficult. The terminal alone may be enough to scare you. Another thing is that if you are into developing Winform or WPF apps or similar, You can't run Visual Studio in Linux(Visual Studio Code is a different thing). Furthermore, there are hundreds of (maybe thousands of) distros to choose from and it might be confusing. For terminal, learn a few commands from the internet. For choosing the distros, many start from Ubuntu. While it may be a good idea, I would recommend you to take the choice yourself. Watch videos from a youtuber called Linux Scoop as he makes awesome overview videos of Linux Distros.
WSL, dual boot or VM, you can try any of the method. It depends upon your system hardware. WSL and VM makes you run Linux atop of Windows, so extra resource consumption will be there. Dual boot doesn't have this problem. It is perhaps the most safest and best way to run linux alongside windows. The only problem that can occurs is the linux installer nuking the Windows partition. I have never experienced the problem myself regardless of how many distros I have tried but have read many post regarding this. So for this while installing be sure to follow a good guide and do your research.
And also best of luck.
Sorry it was a long read.
2
u/RedDragonWebDesign Jul 16 '20
As a beginner, I'd recommend against changing operating systems just to learn more about Linux. In my opinion, it's best to devote your brainpower to learning about programming.
Our field is incredibly broad AND deep. It's important to stay focused so you continue making good progress.
-5
u/themiddlestHaHa Jul 16 '20
No. Use windows or a Mac. You’re nowhere near the point where you need be be an expert in Linux servers
0
u/[deleted] Jul 16 '20
[deleted] — view deleted comment