Live data from Hacker News

Ask HN: Must do's and must know's when switching to Windows?

news.ycombinator.com

31–40 of 58 posts

Re: Ask HN: Must do's and must know's when switching to Windows?

#31
I have both Windows and Linux installed on this machine. I try to stay away from Windows for anything closely related to programming. It's a pain in the ass. Once you have to touch the terminal, things start to get messy, and it's hard to ignore the terminal when programming. Granted, I use the terminal more than the average coder, but I still would never touch it. That said, to answer your question, you probably want to install the Bash on Ubuntu on Windows thing, which should allow you to run git, bash, etc. on Windows without having to use cygwin.

Re: Ask HN: Must do's and must know's when switching to Windows?

#32
post #8

Break your habits. Windows 10 has a very specific workflow that is highly efficient, trying to shoehorn Linux, Mac or Windows 7 workflows into it will frustrate you. Learning powershell is part of that.

> specific workflow that is highly efficient That's pretty subjective, right? I think plenty of folks would argue that they have a highly efficient workflow on other operating systems already. I would say the ability to pipe things around in UNIX is pretty efficient, or macOS' ability to drag almost anything almost anywhere is pretty efficient. Other than PowerShell, what makes Windows so efficient for you?

The small things that are generally a result of Windows trying to get out of my way. E.g. Launching or switching to pinned apps with Win+Number.

Re: Ask HN: Must do's and must know's when switching to Windows?

#34
post #19

Earlier quoted context omitted.

* VSCode: open source, multiplatform. * Powershell: open source, multiplatform. * .Net: open source, multiplatform. * MSSQL: running on Linux, but there's always Postgres. * Clang: works beautifully on Windows. * Node: first-class citizen. That statement is nothing more than dogma.

> * Node: first-class citizen. Yes, but what does it help when 99.9% of Node deployments is on *nix and they don't match the Windows dev environment 1:1?

True. Docker helps with that, though.

Re: Ask HN: Must do's and must know's when switching to Windows?

#37
post #5

Tried this recently as an exercise in broadening my horizons. - Expect not to be able to SSH into your machine, for example when you really need to remotely make that git push you forgot before you left work. - Expect either a very slow unix emulation through Cygwin, or a very glitchy one through the new Ubuntu subsystem for Windows. - Expect installing software to be a royal PITA, and expect to start trusting binary…

For SSH: https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win...

For "unix", you can actually run linux on windows now: https://msdn.microsoft.com/en-us/commandline/wsl/install_gui...

If you want to use windows store, it acts like any other walled garden store regarding "binary blobs", but personally I have never used this. The only software I have in windows is Steam which acts like an "app store" for games.

Now, I use Linux almost exclusively (there are one or two games I boot my gaming machine to windows to play), but it's actually gotten better over the years, not worse.

Just remember to block all the telemetry stuff in your firewall. https://github.com/crazy-max/WindowsSpyBlocker

Re: Ask HN: Must do's and must know's when switching to Windows?

#38
post #5

Tried this recently as an exercise in broadening my horizons. - Expect not to be able to SSH into your machine, for example when you really need to remotely make that git push you forgot before you left work. - Expect either a very slow unix emulation through Cygwin, or a very glitchy one through the new Ubuntu subsystem for Windows. - Expect installing software to be a royal PITA, and expect to start trusting binary…

It is pretty easy to SSH into a Windows PC. Install Cygwin, install OpenSSH, run the ssh-host-config script as an admin, and open the port in Windows Firewall. I use OpenSSH and rsync to transfer data from a Windows web server to a Linux database server, initiated from the Linux side via cron and logging into an Active Directory domain account using RSA public key authentication.

I have never noticed any performance problems with Cygwin.

Then again, for the given scenario, you could connect to the Windows PC via RDP.

Re: Ask HN: Must do's and must know's when switching to Windows?

#39
(Assuming Win 10)

- If you have a HiDPI screen, you may run into problems with older programs looking blurry. The fix is to right click on the .exe, click 'Properties', go to the 'Compatibility' tab, and check the box next to "Disable display scaling on high DPI settings".

- File extensions are hidden by default in the file manager. To turn them on, open File Explorer, go to the 'View' tab, and check the box next to "File name extensions".

- Use a text editor like Notepad++ or Visual Studio Code which lets you switch back and forth with your line endings and encodings; Some editors coughNotepadcough add a BOM to the front of your unicode documents. (As an aside, I've been using the FTP plugin for Notepad++ lately, and it is just a pleasure to use.)

- Between Powershell and WSL, there's rarely anything you can't do on the command line as long as you're willing to code switch a little. In particular, WSL works great for SSH. Cmder is a wrapper around ConEmu (mentioned elsewhere in the thread) and makes for a great terminal environment.

- Chocolatey is the closest thing Windows has to a package manager. (I'm still hoping that OneGet becomes a thing.)

- Other recommended programs: Everything search (life changing, bind it to a hotkey and never look back), Sumatra PDF, Glasswire, CCleaner, either Irfanview or Xnview, WinDirStat.

Re: Ask HN: Must do's and must know's when switching to Windows?

#40
Curious if anyone has used this at Github alirobe/reclaimWindows10.ps1 And what they think. I wish Redmond would give older laptop users an option to turn this off so it wouldn't spin up my hard drive. If I move to Linux this will be the reason ! https://gist.github.com/alirobe/7f3b34ad89a159e6daa1
Post reply on HN