News for hackers. Stuff that matters.
Re:More developers use Linux than Mac, according to 2022 Sta... by smoldesu on Wednesday December 28, 2022 @02:04PM (#34164506)
> Mac just works

This still unfortunately depends on what you're using it for. If development is your main use-case, MacOS will most certainly not work. It's absolutely dumbfounding how many darwin-specific bugs exist in common software (especially in the age of M1), but the real problems simply come from setting up a decent dev environment. Shopping around to customize MacOS in the way I like it is much more time-consuming than cloning my Nix dotfiles and building an environment from scratch.

It's still possible to use a Mac as a development machine, but the edges around it have gotten really sharp. Most of the Mac devs I know are writing code in a Linux VM, these days.

Re:More developers use Linux than Mac, according to 2022 Sta... by dmitriid on Wednesday December 28, 2022 @03:03PM (#34165219)
> If development is your main use-case, MacOS will most certainly not work.

To quote Big Lebowski, "that's just, like, your opinion, man".

I've used MacOS for development since 2008. PHP, Erlang, JS/TS, Python, Java, C#... It certainly does work.

Almost every[1] dev conference you go to you see people on MacBooks (a tiny percentage running Linux on them). Often the majority of people will be on MacBooks.

> Most of the Mac devs I know are writing code in a Linux VM, these days.

I have the exact opposite experience.

[1] Well, it's an exaggeration and bias of course, but...

Re:More developers use Linux than Mac, according to 2022 Sta... by smoldesu on Wednesday December 28, 2022 @03:22PM (#34165447)
If your primary use-case is delivering developer conferences, Macbooks are a pretty compelling option. Linux multimedia has been comparatively quite bad, and at least you reserve the right to complain when a Macbook breaks last-minute.

For pure development stuff, though? You're torturing yourself on MacOS. For every pretty menubar you enjoy, there's a dead POSIX zombie underneath your floorboard or an encroaching platform limitation coming from the top-down. Then you have to deal with the fact that MacOS is by-far the least stable software target of the Big Three OSes, and managing your libaries/software without third-party software is a nightmare. By the time you install all your package managers, Emacs/Vim plugins, browser-of-choice, three or four versions of bash and Git, Via Xcode, most people ask themselves why there isn't a better way.

Ultimately everyone's experience is anecdotal, but survey says that developers are turning over a GNU leaf...

Re:More developers use Linux than Mac, according to 2022 Sta... by dmitriid on Wednesday December 28, 2022 @03:29PM (#34165525)
> If your primary use-case is delivering developer conferences

Ah yes. All developers that go to developer conferences are there to deliver those conferences (whatever that means).

> For pure development stuff, though? You're torturing yourself on MacOS.

And you're saying that with the full knowledge and authority because?...

To reiterate. I've been developing exclusively in MacOS since 2008 in a variety of programming languages for a variety of things.

> there's a dead POSIX zombie underneath your floorboard or an encroaching platform limitation coming from the top-down.

Demagoguery.

> and managing your libaries/software without third-party software is a nightmare

wat

> By the time you install all your package managers, Emacs/Vim plugins, browser-of-choice, three or four versions of bash and Git, Via Xcode, most people ask themselves why there isn't a better way.

wat

I spend about as much time installing this as you spend installing the same on... well, any machine. Because most of that doesn't come preloaded with Linux either. I do agree that XCdoe Commandline Tools are a joke. But how many times a week do you install them (and other tools)? Zero? I can spend 5 extra minutes on my setup once every four years or so.

No idea what the FUD is about "several versions of bash and git", I use a single git and zsh (which is now default on MacOS).

And yes, I stopped using emacs a long time ago (which I used for three years... you guessed it: on MacOS [1]) and switched to a proper IDE.

[1] This was my init.el https://gist.github.com/dmitriid/4078311

Re:More developers use Linux than Mac, according to 2022 Sta... by smoldesu on Wednesday December 28, 2022 @03:48PM (#34165765)
It's just tiring. MacOS was my daily driver up through Mojave, but there came a point where the smoothness of the user experience wasn't worth the limitations of the software. There are hoops I can jump through to make Docker faster, or mount my NTFS drives, or even use Linux inside MacOS, but all of it feels redundant. Everything I use MacOS for exists on Linux, too; why was I using MacOS?

Maybe I'm scarred or spurned or something. MacOS has not been kind to my workflow over time though, and going back to using Monterey for work was an exercise in frustration.

Re:More developers use Linux than Mac, according to 2022 Sta... by dmitriid on Wednesday December 28, 2022 @04:05PM (#34165931)
> Everything I use MacOS for exists on Linux, too; why was I using MacOS?

So. MacOS wasn't for you, and you extrapolated it to "if you are on MacOS, it doesn't work". Well, it keeps working for me (and a great number of other developers)

For example, over the past 6 years across two jobs I haven't used Docker except for running some tests (bringing up and tearing down MySQL databases or using Google's pubsub emulator). So while it is slow, it hasn't been slow enough for me to care. I haven't had the need to mount NTFS drives. I havent' had the need to use Linux inside MacOS (and the few times I needed it in the past decade VirtualBox has been enough).

On the other hand... I needed to set up a Linux VM on a NAS to run a small family website I built in Elixir + Phoenix. I'm deifnitely rusty in Linux but ooh boy. Good luck getting a relatively recent release onto a system which insists that everything must come from a packge manager and installed via sudo for the entire system. Thank god for asdf, but it was still a pain and a half (because asdf builds everything from source and figuring out the names for the required libs is a masochistic sort of fun).

So your mileage and mine definitely vary.

Re:More developers use Linux than Mac, according to 2022 Sta... by smoldesu on Wednesday December 28, 2022 @04:13PM (#34166038)
Look, the original thing I took issue with was the tired "Mac just works" routine. MacOS has changed, and it's much more opinionated now than it was 5 years ago. If your workflow didn't break, that's fine. Even still, MacOS needs a lot of modification before it's ready for development. It's a fine OS if you want to touch up photos or edit video for a living. For professional programmers, I am adamant that Linux is a more consistent experience than dealing with the issue du-jour in MacOS.
Re:More developers use Linux than Mac, according to 2022 Sta... by dmitriid on Wednesday December 28, 2022 @04:46PM (#34166416)
> Even still, MacOS needs a lot of modification before it's ready for development.

Just like every single OS. Your linux box doesn't come with most of the things you listed pre-installed and preconfigured: your vim/emacs plugins, your browser of choice, git, your speicifc versions of libraries etc. etc.

Edit: BTW there's a reason there are so many tools like pyenv, or SDKman, or asdf that first appear on Linux and then get ported to other systems. Because the rosy development paradise that is Linux is everything but.

> For professional programmers, I am adamant that Linux is a more consistent experience than dealing with the issue du-jour in MacOS.

Linux has it's own share of issues du jour that impact actual use of the operating system. And most of the issues I have with OS very rarely come down to the problem with the development tools/environments/what not. Hell, I switched to M1 as an experiment about a year after it came out... and everything just worked (big thanks to those who made stuff work under M1, but even non-converted tools kept working).

And I've personally seen many people switch away from Linux to MacOS precisely because they found the overall experience of being in MacOS better. Because even if you "just" develop stuff, you still want your machine to have all the human stuff: from reliable hibernation/sleep to good touchpads to crisp displays to media support to ... yes, "touch up photos or edit video" (not necessarily for a living).

Re:More developers use Linux than Mac, according to 2022 Sta... by thefourthchime on Wednesday December 28, 2022 @03:27PM (#34165494)
I've been a windows dev and cloud dev using a Mac laptop for 13 years exclusively. I see a lot of arguing over some minor in-the-weeds issues, but I don't see people talking about the big things.

* Best-in-class hardware. Touchpad, M1 power, and battery life.

* With that, best-in-class drivers, I never have to mess with them. Sleep mode actually works.

* If you're an iPhone user (which I am) being able to text with people from the desktop is invaluable.

Everything I did with Windows development I did in VMWare, just having a stable laptop and touchpad was 90% of it for me. Windows actually runs better in VMWare on Mac than on native hardware because the hardware and drivers on Mac are so much better.

These days I'm a cloud dev. Which for me means only three apps I need. VSCode, a browser, and a good *nix terminal. Mac does all three great.

Re:More developers use Linux than Mac, according to 2022 Sta... by smoldesu on Wednesday December 28, 2022 @03:35PM (#34165594)
Hardware's great, I won't deny that (for the most part). Apple had a few embarassing design fuckups, but I like their trackpads enough to add it to my desk setup. Expensive little bugger, but nice to have.

That being said, if all you need is VSCode, a browser, and a good *NIX terminal, then Asahi Linux should feel pretty much finished to you. Or any hardware that promises good Linux support, really. With KDE and a Magic Trackpad, I can get the gesture-driven workflow I loved in MacOS without the... well, MacOS part.

Ultimately, you should use whatever suits you. I'm unconvinced that MacOS remains the best option for most developers, though.

Re:More developers use Linux than Mac, according to 2022 Sta... by robertoandred on Wednesday December 28, 2022 @04:20PM (#34166121)
Developers should want a system that actually renders text well. Windows and Linux have never done that.
Re:More developers use Linux than Mac, according to 2022 Sta... by thefourthchime on Thursday December 29, 2022 @04:07PM (#34177938)
> then Asahi Linux should feel pretty much finished to you

I checked this out, am I right that this is prerelease alpha quality? I should really switch to this??