News for hackers. Stuff that matters.
Re:Poll HN: What operating system do you primarily develop on? by wongarsu on Monday January 24, 2022 @05:15AM (#30055630)
I used to develop on Linux, but eventually wanted something that "just works" so I switched back to Windows. Much less time spent tinkering and more time spent getting things done, and WSL saves me from having to learn Powershell (even if I only hear good things about it).

Never even considered MacOS as an option. Not as good for tinkering as Linux, and with 17% market share (both in my country and global average) it can't deliver the "everyone supports this, everything just works" that I got with Windows (it also doesn't help that Apple lately seems to happily break anything not sold by them)

Re:Poll HN: What operating system do you primarily develop on? by ulzeraj on Monday January 24, 2022 @05:33AM (#30055797)
> I used to develop on Linux, but eventually wanted something that "just works" so I switched back to Windows. Much less time spent tinkering and more time spent getting things done, and WSL saves me from having to learn Powershell (even if I only hear good things about it).

I must be the strange one here since WSL is a hardcore nope from me. Mainly because I've gave that setup a chance last year and then after two hours of work I've noticed Windows git or WSL changed all my carriage returns to CLRF and basically broke all scripts and pipelines.

Re:Poll HN: What operating system do you primarily develop on? by jftuga on Monday January 24, 2022 @08:07PM (#30066537)
I just finished off a program to show which files use CRLF and which use LF. It also shows results for TAB, NUL, BOM-8 and BOM-16:

https://github.com/jftuga/chars

You can use the -f switch to help with pipelines and -j for JSON output.

Re:Poll HN: What operating system do you primarily develop on? by ayushnix on Monday January 24, 2022 @07:33AM (#30056851)
> I used to develop on Linux, but eventually wanted something that "just works" so I switched back to Windows. Much less time spent tinkering and more time spent getting things done

I started recommending WSL on Windows to a few friends who wanted to get a taste of how Linux works after hearing praises about it although I've never actually used it myself. I recently realized that systemd doesn't work on WSL (without ugly hacks) and /mnt also mounts Windows disks.

I have stopped recommending WSL since then. Although I don't recommend anyone to use Linux either.

Re:Poll HN: What operating system do you primarily develop on? by wongarsu on Monday January 24, 2022 @07:52AM (#30056997)
WSL works pretty well for typical command line usage (your typical "grep | sort | uniq" stuff) or for "this command line tool only runs/compiles on linux" usecases. If you push it much more than the abstraction starts getting leaky and you have to get more involved (though WSL2 can be pushed a lot more, e.g. getting systemd running in WSL2 doesn't seem that bad [1]).

1: https://gist.github.com/djfdyuruiry/6720faa3f9fc59bfdf6284ee...

Re:Poll HN: What operating system do you primarily develop on? by kanetw on Sunday January 30, 2022 @11:57PM (#30144659)
systemd doesn't work on WSL? Blessed Microsoft.
Re:Poll HN: What operating system do you primarily develop on? by GlennS on Monday January 24, 2022 @05:22AM (#30055691)
17% market share for MacOS? That seems high?
Re:Poll HN: What operating system do you primarily develop on? by wongarsu on Monday January 24, 2022 @05:37AM (#30055832)
It's actually more like 15% globally, if you use statcounter.com numbers [1]. I was being generous by using the early 2021 numbers. Statista probably uses the same source [2]. Netmarketshare puts it at about 10% [3]

1: https://gs.statcounter.com/os-market-share/desktop/worldwide

2: https://www.statista.com/statistics/218089/global-market-sha...

3: https://netmarketshare.com/operating-system-market-share.asp...