by cdnsteve · 11y ago · 0 comments
I love my command line and linux like commands and tools. - Homebrew - Bash scripts - Docker (Windows 10 currently not supported) - Vagrant
I just feel the tooling for MS isn't in the direction I am. I still have a Windows 7 desktop and it's just not the same.
Under VirtualBox my development environment can match my production environment almost completely. There's no awkward "but here's how you do it in Windows/OSX" that mostly works but often doesn't in some subtle way. I haven't tried Windows 10 yet but this setup has worked very well under Windows 7 and 8.1 so I expect it will be fine under 10 since it's just an evolution. I've used this setup in OSX and Windows and it goes more smoothly in Windows.
One of the keys to it is that you use SMB to mount your VM disk as a local drive to the host, so you get the benefit of any Windows editor.
Two years ago I was using VMware in W7, but ended up dual booting Linux since the lag was so annoying.
Basically you run a server in your Linux VM that Atom/Nuclide (running in Windows) connects to, and it lets you edit files in the VM as if your project folder were local. For those who like a GUI, I think it's worth looking at to save yourself the hassle of VirtualBox guest tools, etc. that never seem to work reliably. And frankly, I've never been particularly happy with the performance of a virtualized Linux GUI, though most of that blame goes to Ubuntu and its apparently impossible to get rid of (in some locations) fading animations.
Anyway, neat tool, worth checking out. You set up a VM to match whatever you'll be deploying to and then work on files in the VM from an editor in Windows. When it works smoothly it's really cool.
>> I love my command line and linux like commands and tools. - Homebrew - Bash scripts - Docker (Windows 10 currently not supported) - Vagrant
I switched from OSX to Windows last year. I thought I'd miss stuff, but you don't.
There are package managers like chocolatey to replace homebrew.
I use Cmder as my terminal and it works a lot like Mac's terminal. It was probably the key app that made my transition easy.
I use Vagrant on Windows and it works fine.
Can't say much about bash scripts or Docker though, since I rarely run those locally.
On Linux I just install build-essentials and everything works fine. On Windows I had to install a specific version of VS and fiddle around with the path to get things running. But maybe there is something like the build-essentials package in chocolatey?
The terminal command history also feels strange. But I like cls more than clear, haha :D
Yes, that is a legitimate source of pain, but thankfully that's usually a once-and-you're-done problem (for me at least).
When I switched to Windows as my full-time platform, I found Scott Hanselman's Developer's Tool list immensely helpful with my transition.
http://www.hanselman.com/blog/ScottHanselmans2014UltimateDev...
The only difficulty is that msys doesn't support parallel make, so builds are fairly slow, but my program's small and I do most of my development on Linux, so I don't care.
(As an additional bonus --- gcc supports C99!)
If it's C++, I did learn cmake, and now I use the same script for Ubuntu and for Win7/VS2008 and Win8.1/VS2012, and so far I just don't care about compilation issues anymore. Sadly the VS site only has VS2015 now.
But yes, the first time you have to check the VS version and add all the proper env vars for the cmake scripts to find the libraries.
But anyway, it is much better than when I used mingw and made makefiles by hand.
I lurk on a few sci.comp mailing lists, and the number and nature of problems that the Windows people have with compiling is crazy compared to Linux where the OS actually has a package manager and stuff Just Works.
As for cmake, I don't think it's any better than (gnu)make. I've seen big projects with complex buildsystems (eg. PETSc from Argonne) switch to cmake and then switch back again to make quite quickly. A frequent "problem" with make, I think, is that people learn just enough about makefiles to compile HelloWorld.cpp and then use that knowledge for everything.
Not really - there are some big differences to keep in mind.
If your shared folders have symlinks, they won't work within the VM unless you're using Virtualbox's native shared folders, which is dog slow.
Permissions are also messed up if your VM is on an NTFS HDD - all files and all folders will basically be 755/777 within the VM.
There are plenty more tradeoffs.
I used Windows a little while ago, and I couldn't do any work without firing up a VM. I missed my environment, but if I did everything in a virtual machine, I could accomplish what I needed.
Eventually I gave up. I was actually doing my development in linux and windows was just acting as a VM host. It's almost comical that I ever said I did development in Windows.
Most of the apps I use are cross platform GUI apps like Sublime, Evernote, SourceTree, etc.
What advantages does this provide over the Windows 10 terminal? Windows 10 fixed all of my biggest gripes with cmd.exe
- The console host application on Windows 10 finally doesn't suck. Resizeable, copy-paste supported, word wrap text selection, etc.
- It seems like they're trying to make their dev tools use a lot less "black box magic", the kind that that's wonderful when it works right and impossible to debug when it goes wrong. At an ASP.NET workshop recently, Scott Hanselman went to great pains to emphasize that everything he was doing in the VS GUI could also be done from the command line.
- Nuget keeps improving. It's still not a replacement for apt or even Homebrew, but they're listening to feedback and making the changes people request. I feel like in another year or so it could be a real contender.
Edit: Formatting
- Drivers are a pain in the ass for Android devices on Windows. You always need to install one when you first connect a device.
- The linux like commands are awesome on OsX and not something I can give up easily.
- Some very important tools are OsX only : ColorSnapper2, Sketch, Zeplin (it does have a webapp though)
PowerShell = bash, Chocolatey = homebrew, Windows Server Containers = docker, Hyper-V+powershell = vagrant, DSC = ansible etc etc.
I don't use Windows 10 for reference though. Still on 8.1 until they fix a few things and release a version-matched server platform.
While a great fan of PowerShell in theory, in practice it seems to be extremely cumbersome. Sort of the opposite of bash and other Unix shells, which suck in theory and are very useful/convenient/powerful in practice.
The whole design of PS is meant to make it so you can "guess" the names of cmdlets you've never used before. Everything is Verb-Noun, Get-Service, New-Service, Restart-Service, Stop-Service, etc.
Discoverability is valued over succinctness.
A recent example, looking for errors in windows logs:
Get-Childitem "C:\Windows\" -recurse -Include *.log ` | Select-String "Error" -ErrorAction SilentlyContinue ` | Group-Object filename | Sort-Object count -descending
Closest *NIX analogue I can think of would be grep -r Error /var/log/ | sort
English is an arguably fine speaking language but an awful programming one.I love what Powershell can do, but gods do I hate typing it.
Cumbersome. To create my own cmdlet that does the cool stuff Powershell can do (as far as piping) my choices are a terrible language like ps1 or .NET.
On Unix I can use pretty much whatever I want because the shell isn't tied to a specific runtime.
Get-Content = gc or cat
for example
In contrast, I was a desktop (laptop) Linux user until a year or so ago, and found my skills almost entirely transferable to OS X.
The biggest aid was finding a terminal emulator that worked like Mac's Terminal.
Also you can still run EMET on Windows.
So far I have mixed feelings about tablets. I like the "tablet" part but not the "it is cryptographically sercured from doing anything that might upset a government, corporation, or business model" part.
Obviously nobody outside of Microsoft will know if that remains true with the Surface Pro 4.
it is a painful install process, but that should change completely with ubuntu 15.10
I have a powershell console open on Win10 just as often as I have the terminal open on OS X. It's just a different dialect of command line than what some folks are used to
Microsoft explicitly has made Windows10 Docker compatible.
One notable thing from the blog side was significant issues with RoR, but otherwise I think there's a lot of good.
VMs are 100% the way to go, but I am consistently frustrated by incompatibility, especially with the nodejs ecosystem. Windows users are a huge minority so tools are rarely built with a non *Nix environment in mind.
I prefer this over OS X on Apple hardware because I can get the exact Unix experience that I want without having to fight with Apple about who is in control of the machine. Perhaps more importantly, I get the desktop experience that I love, which is Windows.
One good reason is window managers , with windows 10 window manager I get almost perfect tiling window manager functionality , but with tabs ?
Didn't know about super putty - switching today.