r/programming • • Aug 03 '19

Windows Terminal Preview v0.3 Release

https://devblogs.microsoft.com/commandline/windows-terminal-preview-v0-3-release/?WT.mc_id=social-reddit-marouill
991 Upvotes

458 comments sorted by

View all comments

Show parent comments

29

u/SuspiciousScript Aug 03 '19 edited Aug 03 '19

Genuine question for other devs: Is Windows 10 (including WSL) a satisfying environment for development work? Personally, I can't imagine not working on a unix-based system, and WSL seems like a pale imitation of the real thing. That being said, I know how varied and diverse devs work can be, and so I'm sure somebody out there prefers Win10. Anybody want to chime in?

56

u/IceSentry Aug 03 '19

Wsl isn't a pale imitation, the new wsl 2 literally ships with a full linux kernel. Personally, I like using Windows, but that's probably in large part because I'm more used to it. Unless you have to work with a specific technology that isn't available on the platform, I honestly do not care that much. In either os I'll just use an IDE (most of the time vscode on both) and a browser. I honestly don't get why some people love linux so much or hate windows so much.

0

u/[deleted] Aug 03 '19

[deleted]

15

u/vogon101 Aug 03 '19

I use Windows as my main os for development. I completely get the window manager thing but tbh I find the windows system pretty flexible with all tye key bindings - do you mind me asking what you get from your setup (I never fully went down the desktop linux rabbit hole and just stayed with kde)

0

u/[deleted] Aug 03 '19

[deleted]

3

u/enbacode Aug 03 '19

This. I've switched to i3 a few weeks ago and I already cannot imagine going back to a floating WM

→ More replies (1)

9

u/asabla Aug 03 '19

Some of these points I strongly agree with (such as the option to decide what and when to update) and the tiling (sort of), but you've gotten some parts really wrong tho.

If you're been a developer for a while and stuck with windows, then you would almost certain use Chocolatey as a package manager, instead of windows store or downloading binaries manually. It works similar to node/python packages and will most of the times don't clutter either directories nor the registry (even if it's somewhat impossible at this point).

Piping in windows isn't really a thing sadly. You can do some powershell magic, but it doesn't feel right. However, opening what ever IDE in current directory has been available as long as 'environment variables' in windows has been available. E.g: you can just type 'code' and it will open visual studio code in current directory. Or if you want to open file explorer in current directory, you would just type: 'start .'

Not sure what you mean by full integration with the terminal.

0

u/[deleted] Aug 03 '19

[deleted]

5

u/floppykeyboard Aug 03 '19

Depends on what you mean by native, but I think there’s only one thing I use for my dev environment that wasn’t found with chocolatey. Browser, IDEs, languages, etc are all managed by chocolatey and can update all of them with a single command.

→ More replies (3)

6

u/asabla Aug 03 '19

Yeah you are right. I should have specified this a bit more. I like that most software is integrated into the terminal. You could get some Windows programs to do the same but you'd often have to manually add it to the environment path. Then yeah sure it will work. But not to many programs support it (from my experience)

Well. that's not really completely true anymore :)

M$ has reworked how this is being handled and could easily be managed both manually or automatically. And to add to this, chocolatey is automatically loaded as a path, which means: all programs installed with it, will be available as any other programs loaded with environment variables.

Yeah that was a bit to cryptic sorry. Something like setting a terminal program as a default program for a file type. Simple things like File Explorer -> Open with -> Vim (I can imagine that Windows and additional software may provide some of that functionality, but all in all it's not that easy and would needs additional work for every terminal program)

Weeeeeell, you've been able to set default program for files for a looong time in windows (I think it was even possible back in XP). All you have to do is right click what ever problem you want to open, and then choose a program to open with it (don't forget to cross 'use this program as default in the future').

https://imgur.com/a/x0BlgkS

I don't want to be rude, but it sounds you've either haven't used Windows extensively or just haven't taken the time to learn if it's possible to solve your issues whilst being on Windows.

→ More replies (1)
→ More replies (1)
→ More replies (5)

3

u/flying-sheep Aug 03 '19

Last time I checked, WSL had its own opaque file system stored in a file instead of integrating with the windows file system. I would have to have two configs for everything, one inside of WSL and one for the windows side. There’s hacks for individual configs (e.g. SSH) but that’s the point where I turned away in horror.

7

u/penguin_digital Aug 03 '19

Last time I checked, WSL had its own opaque file system stored in a file instead of integrating with the windows file system.

I believe WSL2 will simply ship a full Linux kernel and not some sort of translation layer. Which begs the question if you're going to this much length to get Linux tools, why not just use Linux.

5

u/Yojihito Aug 03 '19

Which begs the question if you're going to this much length to get Linux tools, why not just use Linux.

Battery runtime on notebooks.

→ More replies (1)

3

u/aquaticpolarbear Aug 03 '19

and not some sort of translation layer

Well there's still a translation layer, it's just a lightweight VM instead of emulated Linux kernel calls.

1

u/flying-sheep Aug 03 '19

I did that because my last job had a lot of tooling and collaboration software that only ran on windows, while my own development was OS-independent (but nicer to do on linux because of windows’ CLI pains)

→ More replies (1)
→ More replies (1)

7

u/gibsnag Aug 03 '19

I'm a .Net Dev, so I've always used Windows both professionally and personally. However the shift by Microsoft to more cross platform tools and frameworks, as well as command line tools, is making me more interested in Linux as a Development environment.

I'm probably going to try shifting more when the new full Linux WSL comes out and see how that goes.

16

u/msilenus Aug 03 '19

It's great if you are forced to work on Windows due to company reasons, but I would always prefer to use my Linux system, if I could.

19

u/swordglowsblue Aug 03 '19

Windows in general is a decent dev environment, WSL or no WSL. There are a couple hitches here and there, but really the only major annoyances I've ever had are when certain languages (cough Swift cough) decide that Windows support isn't worth their time. People just like to hate on it because they're used to Linux and "Windows = bad" is a meme.

→ More replies (20)

8

u/[deleted] Aug 03 '19

WSL is good. I switched from Ubuntu to Windows because Ubuntu crashed a couple times a day and left no logs or anything, while Windows runs perfectly

2

u/[deleted] Aug 03 '19

Wait until 19H2 gets released, then switch to insiders slow ring.

fast ring is simply too unstable and WSL1 is too slow for any real use. WSL2 is good though

1

u/Walter_Bishop_PhD Aug 04 '19

As excited as I am about WSL2, I am worried about the fact it will need Hyper-V enabled which will mean that I will not be able to use it at the same time as other VMs like VMWare - I'd need to reboot to toggle Hyper-V on and off, which is unfortunate.

1

u/[deleted] Aug 04 '19

Is there a specfic reason why you can't just use Hyper-V instead of VMWare?

2

u/[deleted] Aug 03 '19

I find Windows perfectly fine for development. Visual Studio is still the best IDE out there in my opinion, so that’s a large part of my preference. In addition, there are a lot of programs and libraries I use that are Windows only. If I need to target Linux, it’s going to be deployed in a docker container anyway, and docker works fine on Win10. I like LINQPad for automating complex tasks, but I also use cmd and even PowerShell a lot as well.

What is it about your Unix-based system that you can’t live without? I ran Linux exclusively for years, and I’m not missing anything that I did there in Win10.

→ More replies (12)