News for hackers. Stuff that matters.
Re:Dear Apple by tlrobinson on Sunday February 19, 2017 @01:40PM (#13681147)
Can you give some examples of advantages of doing ROR development on Linux vs Mac?
Re:Dear Apple by majewsky on Sunday February 19, 2017 @04:46PM (#13682197)
Not the grandparent, but I can share one example: Our team deploys OpenStack and is developing a custom dashboard in Rails. I'm more of a backend guy, although I also do my fair share of frontend development. But I had a ticket in my sprint, just a tiny UI bug, but I was busy in the backend, so I asked a junior dev to take care of it. He cloned the repo, then proceeded to fight with rbenv and postgres and what not on his Mac for a full 2 days, until he gave up and spun up a Linux VM on OpenStack to work on the Rails app in there. Sure enough, he got up and running in there in under an hour.

Shit like this is why I do all my development in a VirtualBox with Arch Linux. While my co-workers argue about the best way to install Docker on their Macs, I just `pacman -S docker && systemctl start docker` and get on with my life.

Re:Dear Apple by manmal on Sunday February 19, 2017 @05:48PM (#13682626)
He likely had some old Macports or whatever binaries lying around in his $PATH (it was that for me the last time some libs didn't compile). Would Linux be immune to that, if you had 2 concurrent pkg managers?

You could probably run vanilla macOS in a VM without running into any problems.

Re:Dear Apple by majewsky on Sunday February 19, 2017 @07:04PM (#13683071)
> He likely had some old Macports or whatever binaries lying around in his $PATH (it was that for me the last time some libs didn't compile).

He only ever used Homebrew as far as I know.

> Would Linux be immune to that, if you had 2 concurrent pkg managers?

How would that ever happen?

Re:Dear Apple by Longhanks on Sunday February 19, 2017 @05:35PM (#13682532)
Replace Mac with Windows and you've got the same problem. It's the junior's fault for trying to fight the system.
Re:Dear Apple by majewsky on Sunday February 19, 2017 @08:10PM (#13683413)
The difference is that on Windows, most developers expect Unix applications to just not work. (The fine print: I can't comment on WSL.) But macOS was always sold (by other developers) as "the intuitive UI plus the power of Unix", so I'd expect to get Unix applications going with a negligible amount of yak-shaving, esp. something like Rails that is used by latte-sipping Mac hipsters across the world.
Re:Dear Apple by ben_jones on Sunday February 19, 2017 @02:08PM (#13681306)
Not a RoR dev but I imagine his deployment environment is also linux, and many of the tools he uses likely run better on Linux (as OSS usually targets linux first). Correct me if I'm wrong but Docker for example, although I think they brought parity recently, was always easier to get going on Linux then Mac.
Re:Dear Apple by majewsky on Sunday February 19, 2017 @04:47PM (#13682202)
Docker is, in fact, impossible to get going on Mac OS. When you see "Docker for Mac", it's launching a Linux VM under the hood, and patching you through to that VM's Docker daemon.
Re:Dear Apple by Mandatum on Sunday February 19, 2017 @11:02PM (#13684197)
Is that still the case? If so, that's crazy - as bad as the old Windows installs with vbox. However that being said, if that is still the case, they must have a wrapper on top of it since I didn't notice much of a difference at all between OSX docker usage and Ubuntu.
Re:Dear Apple by ajdlinux on Monday February 20, 2017 @12:03AM (#13684428)
It's not crazy, it's kinda hard to implement containerisation yourself in a proprietary OS kernel that you don't control...

However, as of fairly recently, IIUC Docker for Mac uses macOS's native hypervisor framework rather than relying on VirtualBox as it used to.

Re:Dear Apple by meesterdude on Sunday February 19, 2017 @02:04PM (#13681287)
doing dev in linux, the commands you run locally are the same ones you run in production. You install the same packages and control them in the same manner. I'm more comfortable in production because production is very similar to my local machine.

my dev machine is a VM, which gives me a ton of other benefits, like portability, resizability, backups, versioning, and overall stability. I can (and have) given devs my VM to get up and running immediately on a complex project, without having to do a lot of setup.

With each OSX update, usually stuff broke, needed to be reinstalled, or performed differently. With Linux, that is not the case. And with a linux VM, I can ride out host upgrades and keep plugging away with a machine i know works - or attempt an upgrade on a cloned VM and have a trivial way to backtrack if it fails.

Re:Dear Apple by michaelmrose on Sunday February 19, 2017 @01:45PM (#13681175)
I'm not the original commentor but a better package manager has got to be in that list.
Re:Dear Apple by nurettin on Sunday February 19, 2017 @02:14PM (#13681341)
Why isn't brew good enough?
Re:Dear Apple by AsyncAwait on Sunday February 19, 2017 @04:37PM (#13682149)
Homebrew is rather limited in what it can control, i.e. in Linux almost everything is under the control of your package manager, there's no tracking, updates roll faster if you're on something like Arch and the overall user interface makes more sense.

I've also found that homebrew packages sometimes don't contain the necessary header files for development, (i.e. imagemagick), so you're forced to switch to MacPorts just for that and it's altogether more painful than on Linux.

It also simply just doesn't feel like a lot of the tools target macOS, there's an outdated bash shipped by default and Apple even broke curl recently[1].

1 - https://daniel.haxx.se/blog/2016/10/11/poll-on-mac-10-12-is-...

Re:Dear Apple by antfarm on Monday February 20, 2017 @10:01AM (#13687804)
Have you checked /usr/local/Cellar/imagemagick/7.0.4-10/include/ImageMagick-7/MagickCore/ ?