Live data from Hacker News

From Mac to Linux: Web Development with Linux

medium.com

1–10 of 106 posts

Re: From Mac to Linux: Web Development with Linux

#4
post #3

So what is so much better on Linux than Mac? You can use nvm, etc

Using the same OS that you deploy to

To be honest - kernel will be the same (some times not though). OS will be most likely different.

Better say that environment will be the same, I guess.

That being said - as an ex-Linux user (for about 10 years) I see now real reason for this kind of switch. You can have the same (or almost the same) env on you macOS.

Re: From Mac to Linux: Web Development with Linux

#5
The apt-get install for damn near anything is a big one (for Debian based distros obviously) in my opinion. I think the access to build tools and packages is big too. I had case recently where I needed to make a one line change to an Apache module; wget the source, make the change, configure, make, make install, exactly the same as on the prod server.

Unfortunately the author delves into text editors, which can be flame inducing.

Re: From Mac to Linux: Web Development with Linux

#6
post #4
post #3

Earlier quoted context omitted.

Using the same OS that you deploy to

To be honest - kernel will be the same (some times not though). OS will be most likely different. Better say that environment will be the same, I guess. That being said - as an ex-Linux user (for about 10 years) I see now real reason for this kind of switch. You can have the same (or almost the same) env on you macOS.

If we take the most popular linux choice for servers and desktop - Ubuntu as an example - that means using identical kernel/packages/libraries for your development and production. You cannot achieve that with MacOS as your dev OS.

Re: From Mac to Linux: Web Development with Linux

#7
Well TBH, I did go the other way around and I have to say that the advantages of MacOS are for me much more worth it.

All what the articles says I do achieve simply by using docker and I have all the nice integrations around. I can have any target environment setup and switch between them in seconds. And since I can mount my code directories directly into the docker containers I don't need to do any complicated scp like deployments.

Well, but in the end it's a matter of personal taste. I am happy where I am :-)

Re: From Mac to Linux: Web Development with Linux

#8

So what is so much better on Linux than Mac? You can use nvm, etc

The user interface. The package manager that handles everything. Not being locked to Apple's ecosystem, e.g. needing to install Xcode to get your CLI ecosystem working. Not having yearly updates that change everything. Using an open source operating system and not being bound to Apple hardware.

Re: From Mac to Linux: Web Development with Linux

#9
post #4

Earlier quoted context omitted.

To be honest - kernel will be the same (some times not though). OS will be most likely different. Better say that environment will be the same, I guess. That being said - as an ex-Linux user (for about 10 years) I see now real reason for this kind of switch. You can have the same (or almost the same) env on you macOS.

If we take the most popular linux choice for servers and desktop - Ubuntu as an example - that means using identical kernel/packages/libraries for your development and production. You cannot achieve that with MacOS as your dev OS.

Desktop - most likely, server - I wouldn't be so sure.

Kernel - obviously, as I said earlier. As for packages and libs - Brew + something like pip\rvm\whatever will most likely solve this for you. You won't have the same lib, because it was build for a different env, but the way it works should stay the same. If not - I'd rather consider using different lib.

This + docker(or something similar) as someone already mentioned.

Re: From Mac to Linux: Web Development with Linux

#10
post #4

Earlier quoted context omitted.

To be honest - kernel will be the same (some times not though). OS will be most likely different. Better say that environment will be the same, I guess. That being said - as an ex-Linux user (for about 10 years) I see now real reason for this kind of switch. You can have the same (or almost the same) env on you macOS.

If we take the most popular linux choice for servers and desktop - Ubuntu as an example - that means using identical kernel/packages/libraries for your development and production. You cannot achieve that with MacOS as your dev OS.

You can with vagrant + parallels/virtual box/vmware.
Post reply on HN