Live data from Hacker News

From Mac to Linux: Web Development with Linux

medium.com

51–60 of 106 posts

Re: From Mac to Linux: Web Development with Linux

#51
The problem with most apt-based distributions is I've found that a lot of packages are out of date.

Try out a pacman-based distribution some time. The idea of a rolling distro is great in my mind and most of the packages in the repo are up to date. If something is missing there is usually an AUR.

If you use zsh with oh-my-zsh then you're going to have a much easier time finding whatever you need to install. Pacman has an autocomplete written up for it.

Also, everything is near-perfectly documented in the arch wiki.

Re: From Mac to Linux: Web Development with Linux

#52
post #36

Earlier quoted context omitted.

* Package management isn't a train-wreck (I always have troubles with brew whenever I have to move to a mac that I never have with linux). * There are substantial subtle differences between Mac and Linux that will eventually trip you up when leaping the divide between development and deployment. * The Mac often has ridiculously old versions of tools because of its GPL allergy. But hey, Macs are shiny and popular.

> Package management isn't a train-wreck (I always have > troubles with brew Really? What? > The Mac often has ridiculously old versions of tools > because of its GPL allergy. Brew! :) I would actually love to ditch macOS - I used Arch on my MBA for some time, but in the end it was better drivers and brew that brought me back. I seriously miss i3wm though. Brew is the best package manager I've ever used - so simple t…

I find Arch with AUR offers much more than Homebrew for my needs. There are even specialized repositories for specific uses like ArchStrike for "security professionals and enthusiasts". Using a tool like pacaur makes AUR even easier to use. And PKGBUILDs are not that hard to write!

Re: From Mac to Linux: Web Development with Linux

#53

Anybody have success with Linux on a Surface Pro 3 or 4? I am considering the purchase of a Surface Pro 3 i7 w/ 512GB for Linux web-dev.

https://wiki.archlinux.org/index.php/Microsoft_Surface_Pro_3

Follow these steps and you should have at least moderate success. Check out Manjaro, it's an easier to use arch-based distro.

Re: From Mac to Linux: Web Development with Linux

#54
post #30

To me a huge selling point of linux is i3wm. If you haven't used this thing yet, you absolutely have to try it out! It is the best tool that I have discovered since emacs. It allows me to easily and conveniently manage dozens of windows, and it's hard to describe how convenient that is until you get used to it. I usually have around 10 workspaces open: 1. Emacs with personal notes, goals, todo lists. 2. Emacs windows…

Similar here, but with dwm r/than i3 (which I've not tried). Looks basic in the extreme, but I can get far more done far more quickly than in a Windows or OS X desktop.

Re: From Mac to Linux: Web Development with Linux

#55
post #39

Earlier quoted context omitted.

so? most development should be done on desktop pcs with dual or triple monitor set ups.

Yeap, and 90% of mine is - but sometimes you are at a conference, doing something over the weekend, or on a plane, and an external monitor is not possible.

And your point is? spending the premium for a mac for this use case is a waste of your or the share holders money

Re: From Mac to Linux: Web Development with Linux

#56
post #30

To me a huge selling point of linux is i3wm. If you haven't used this thing yet, you absolutely have to try it out! It is the best tool that I have discovered since emacs. It allows me to easily and conveniently manage dozens of windows, and it's hard to describe how convenient that is until you get used to it. I usually have around 10 workspaces open: 1. Emacs with personal notes, goals, todo lists. 2. Emacs windows…

Understand the sensation. 5 years ago I used to do something similar with xfce+compiz' "spin the cube" with a suitable hotkey (ctrl+alt+direction). I actually wound up preferring this greatly to the dual monitor thing as I didn't have to maintain my neck at unnatural angles, spend more money, or have a stupidly large desk. The last few years I have been mostly on console (similar alt+direction) or OSX (kinda fullscreen or bust traditional WIMPpery). As I have made my mind up not to buy another Mac (laptop hardware is nice but very overpriced, just dies and is too expensive to repair... and I no longer need a laptop, now that bluetooth keyboard+tablet is a strong option), I will probably join you soon. :)

Re: From Mac to Linux: Web Development with Linux

#57
post #43
post #20

Earlier quoted context omitted.

You would be surprised what can happen with "agnostic runtimes" Running the same libraries, on the same base OS is invaluable to me - but that can depend on what you are developing. > Also, unless IT agrees to put beefy machines under each one's desk, the server is quite different from what developers can use anyway. With "the cloud", these days that is not necessarily true. a t2.large / m2.large are 2 cores, 8GB RAM…

> With "the cloud", these days that is not necessarily true. a t2.large / m2.large are 2 cores, 8GB RAM. - well within the reach of a basic laptop. Which is why we just connect to "cloud" and clone our own instance from a production server, if we really need to. > Never debug in production. No developer should have access to production. Maybe in a perfect world. On real life I have been in projects where developers w…

OK, the problems seem more culture based then.

All of these issues tie together.

Developers can't access production, so they start using production like environments, which allows for proper Ops work (Infrastructure as code - e.g. config management), which allows for easier setup of production like environments for developers ... and continue cycle.

Its hard to move to that, and takes time, but it really helps. I know it can seem overkill, especially for small teams, but the tech debt paydown that happens when you end up doing it in the future can be huge, and massively disruptive.

Re: From Mac to Linux: Web Development with Linux

#58
I recently switched to using a Mac (for work) after 5-6 years only using Linux. Again and again the most painful aspect of the Apple ecosystem is that Apple have already decided what is going to be best for me.

By default, it's impossible to use workspaces without frequent switches to the trackpad, which wouldn't be so bad, but without installing third party software it's not really possible to create shortcuts or start remapping keys either. Even once you've installed and started Kwm, Karabiner and Seil, the botched keyboard layout renders the Alt key useless for wm shortcuts. There's not even a keyboard shortcut that makes a window fullscreen without removing it from its workspace!

So much of the system lives in this unconfigurable space. As a Linux user, if my window manager isn't working for me, then I just install another one and start again with a fresh _and customizable_ blank slate.

Ironically the things that don't frustrate me about the chance from Linux to Mac are the things the author identified in the article. My editor works just the same in both OSes and Homebrew could be a lot worse.

And I get it, the OSX experience is a system that is averaged out to be comfortable and intuitive for everyone from musicians to graphic designers to programmers and business people. As a result, the user experience punishes power users the most.

If you primarily identify as a programmer and use a Mac on a day-to-day basis, go pick up a cheap Chromebook, throw a linux distro on it, and see how it feels. If it's not quite right, tweak it. If you get it working, great - you've just saved yourself ~$1000 and a vendor lock-in. If not, all you've lost is $150 and a few hours of your life.

Re: From Mac to Linux: Web Development with Linux

#59
post #28

Honestly, nice if that works easy for you when using just developer tools on the terminal or a text editor. As a web developer, though, you might end up using more than that. A Mac offers so much more commercial applications that just do not exist on any Linux distribution. Gimp is no replacement for Photoshop and Inkscape is not replacement for Illustrator, ... Btw, mostly everything you install with `apt-get` can b…

> Gimp is no replacement for Photoshop and Inkscape is not replacement for Illustrator Nor is Photoshop a replacement for the Gimp, or Illustrator a replacement for Inkscape. They are not cheap clones forever playing catchup to the commercial packages, but mature tools in their own right. Sure, the FOSS tools might miss some of the advanced features the proprietary tools have, but for web development both of them off…

Definitely. I prefer Illustrator for multi-page documents requiring irritatingly precise typography, and Inkscape for SVGs. Although I pretty much mastered Photoshop perhaps 20 years ago, I've gradually come to loathe it and happily use GIMP or Darktable instead.

Re: From Mac to Linux: Web Development with Linux

#60
post #30

To me a huge selling point of linux is i3wm. If you haven't used this thing yet, you absolutely have to try it out! It is the best tool that I have discovered since emacs. It allows me to easily and conveniently manage dozens of windows, and it's hard to describe how convenient that is until you get used to it. I usually have around 10 workspaces open: 1. Emacs with personal notes, goals, todo lists. 2. Emacs windows…

Does Mac have anything comparable to i3? Unfortunately Linux is not an option for me.

Try kwm[0]. It's not perfect, but as someone who's just switched in the opposite direction, it's the closest thing I've found to i3.

[0]: https://github.com/koekeishiya/kwm

Post reply on HN