Earlier quoted context omitted.
>Compare compiling C++ code with Visual Studio vs. gcc. That is not a valid comparison as Visual Studio is an IDE and gcc is the compiler. It would be no different if you were using CLion from Jetbrains on Linux to do C/C++ work. The compiling would be handled all through the IDE. You are more than able to get down and handle building C++ from command line by using cl
I know you can use cl.exe directly, but it is not the same. For example, you can't even suppress its output completely. https://social.msdn.microsoft.com/Forums/vstudio/en-US/9eabe...
Ask HN: Why use Linux for coding?
31–40 of 46 posts
Re: Ask HN: Why use Linux for coding?
#32To the degree there is a better operating system for starting to program, the operating system a beginner uses is orders of magnitude less important than just sitting down and writing code. The best operating system for learning to code is the operating system you are using. The only certain thing Linux is the best operating system for is learning Linux. Learning Linux is not learning to code. It is not a step on the…
I disagree with this comment because, while everything said is technically true, it ignores the fact that it's a big trade-off. Going with "the operating system you are using" does optimise quite a few things; these are the "pros" of this approach, things like: - not burdening yourself with the learning curve of a new OS at the same time as you undergo the learning curve of programming - being able to ease the progra…
Re: Ask HN: Why use Linux for coding?
#33Ceding some control for putative convenience might -- MIGHT -- have been justifiable in the 90s. But it's 2018, Linux graphical shells are on fleek (if that's your thing), and your only excuse is if there's some app you NEED which requires Windows and doesn't work with Wine. Which isn't a problem for developers, except on a few proprietary platforms (like iOS).
Defaulting to Linux as you learn to develop software will build the skills you'll need to remediate the "software to do X is not available on Linux" problem should you come across it.
Re: Ask HN: Why use Linux for coding?
#34(duplicate of https://news.ycombinator.com/item?id=16384949 from an hour ago) Linux and starting to learn programming: if your goal is to learn programming (python) then the operating system doesn't matter. I'd concentrate on popular Python libraries. Switching from Windows to Linux will only grow the number of unknown systems/pieces to feel uncomfortable with and add distraction. It's fun to learn, just separate fro…
Re: Ask HN: Why use Linux for coding?
#35Re: Ask HN: Why use Linux for coding?
#36The reason Linux is used a lot is that a lot of software development is writing web applications which typically run on Linux on servers. You can explore Linux on your Windows machine using tools like VirtualBox to create a virtual machine running Linux. You don't need to dual-boot, reformat your system, or spend any money to learn it.
What flavor of Linux should you learn? It doesn't matter for just starting out. You could post a question and get lots of technical arguments about one vs the other.
For a lot of technical topics, the same concept applies - you are in a learning phase, pick a common one (programming language, operating system, etc.) and learn using that. Once you reach a comfort level and feel confident you can "get things done", investigate differences between what you learned and other options out there.
Re: Ask HN: Why use Linux for coding?
#37Re: Ask HN: Why use Linux for coding?
#38Re: Ask HN: Why use Linux for coding?
#39Earlier quoted context omitted.
I know you can use cl.exe directly, but it is not the same. For example, you can't even suppress its output completely. https://social.msdn.microsoft.com/Forums/vstudio/en-US/9eabe...
As much as I dislike MSVC, I'm still not sure that's a fair comparison. I've used cl.exe in large, complex makefiles to build programs that could also change CC and CXX to gcc or clang. And as far as output suppression goes, couldn't you pipe it somewhere else? I've had to do the same trick on Linux utils (pipe to /dev/null).
Re: Ask HN: Why use Linux for coding?
#40But to actually answer your question, one of the things I like about developing on Linux is deploying onto a Linux server is a lot easier.