News for hackers. Stuff that matters.
Re:Ask HN: Why use Linux for coding? by brudgers on Thursday February 15, 2018 @12:36PM (#16385867)
To 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 path to learning to code. Mostly, it is a distraction from getting started. There is time to learn Linux later...http://norvig.com/21-days.html

Good luck.

Re:Ask HN: Why use Linux for coding? by craftyguy on Thursday February 15, 2018 @01:17PM (#16386234)
I disagree. The best operating system to use for learning to program is the operating system that stays out of your way, allows you to easily install your dev environment, and allows you to keep things reasonably up to date. For me, that's using Linux.

The last thing I want to do when learning a new programming language is waste a lot of time trying to install all of the dependencies/libs/compilers, being nagged by the OS to reboot because updates were installed, having cortana randomly pop up (it's like the modern day clippy), and deal with a host of other things that windows does to get in your way.

Re:Ask HN: Why use Linux for coding? by brudgers on Thursday February 15, 2018 @03:28PM (#16387310)
Over time, a person's needs change. The argument that Linux is the best operating system for learning is equivalent to one that Emacs/Vim/Eclipse/VScode/PyCharm/etc. is the best editor/IDE for learning to program or that Python/Javascript/C/VB/PHP/Java/etc. is the best language for learning to program.

The important part of learning to program is sitting down to program and sticking with it despite its difficulty. Developing habits of mind is what makes a person a programmer. A lot of beginning programming resources are OS agnostic because they run on the web and Firefox/Chrome/Edge/Safari/etc. are fungible (and of course HTML/CSS/Javascript are also OS agnostic).

Re:Ask HN: Why use Linux for coding? by collyw on Thursday February 15, 2018 @01:34PM (#16386351)
I have god 15 years of experience and generally only a small part of my time is spent "programming". A lot is about setting up servers, databases, setting up my dev environment set up to reproduce bugs. Assuming you are writing software that runs on a Linux based server it's pretty useful to know how it works.
Re:Ask HN: Why use Linux for coding? by lucideer on Thursday February 15, 2018 @01:38PM (#16386383)
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 programming effort by taking advantage of microefficiencies you've already gained from friend use of the OS.

- etc.

This has to be weighed against potential cons though:

- how long do you intend to program for (presumably some large multiple of the time it would take to learn a new OS)

- what is the actual difference in overhead of using development tools on the two OSes–if you're repeatedly undergoing a little extra overhead for every dev task on your current OS, this builds up over time

- if you intend to simply defer learning Linux to a later date, what's involved in switching your dev setup over? Will there be habits and disinformation to unlearn in the process?

Re:Ask HN: Why use Linux for coding? by brudgers on Thursday February 15, 2018 @03:34PM (#16387373)
A beginner, by virtue of being a beginner, does not have the experience to evaluate the tradeoffs as applied to their unique circumstances. On the other hand, sticking with the goal of learning to program is going to mean overcoming a mountain of technical issues no matter what. Overcoming technical issues and persevering through difficult problems is the heart of programming.