Many developers would agree that Windows is not known to be developer-friendly until you aren’t developing for the Windows ecosystem. Linux distros, on the other hand, are very good for development especially adding the fact that most of your build is going to run on Linux based servers.
Microsoft is continuously trying to fix it
They are continuously improving PowerShell, launched new Windows Terminal but they still can’t match the swiftness and community support of developing on Linux box. To pull around this issue, they have WSL.
In my previous post “Windows subsystem for Linux is of any use?", I heavily criticizes how it is unusable due to the lack of any GUI editor respecting it. But on the 3rd of May 2019, it changed. Microsoft released the Remote Development extension for the Visual Studio Code. Now all the flaws I stated in my previous article are invalid (it still has some flaws but it is at an acceptable level).
Note: JetBrains IDE also claims to support this, but I am yet to test it. My whole workflow is now in VS Code.
With this extension installed, now I can just type “code ." in Ubuntu terminal and VScode code will launch with WSL connected to it, so there are no configs to do.The terminal will be bash and by default, it will use git installed in ubuntu, will run language support and linters from binaries installed in ubuntu. There still may need to reinstall some extensions in remote mode, but you don’t have to figure it out. VS Code will automatically prompt you and can be done by a single click. With all this, there is WS2 around the corner which is supposed to improve remote development.
Now the question remains.
That if Linux is better for development then why don’t we use a Linux distro. That will be the right approach and easier for beginners. I’ll still recommend new developers to avoid this and use a Linux distro. But this approach is really helpful for those who use some software that doesn’t have good Linux counterpart or simply the hardware they are using is not well supported in Linux.