Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

Hierarchies and tags are not an "xor" proposition.

I always use both at the same time.

Hierarchy gives you a way to organize things according to each others. I want hierarchy, because if I deal with thing A, I may have then to specifically have a look to child B or C.

It helps with context and granularity.

While tags allow you to attach multiple categories to things and filter according to that.

You can use a hierarchy as a poor man tag, but really, you should use both.


That's what I find amazing with Apple users.

They sell you a very expensive machine that doesn't work.

Your reaction?

Buy a more expensive one from the same provider!


It’s really something, isn’t it? I’ve never regretted my decision to switch from macOS to Linux over a decade ago. Having to restart a 64GB machine constantly because it runs out of memory? Meanwhile my 4GB Linux computer shows a 38-day uptime (only because I accidentally unplugged it last month) and my two Linux servers have uptimes of over a year.


I don’t know what you’re doing on a 4GB machine but I promise most workloads that create significant memory pressure would start creating problems for you, just like on macOS.

I use a dual xeon, 64GB Linux desktop which performs reasonably well.

A colleague runs a Linux machine with 16GB of ram. Compiling the same project can cause OOM issues for him and the kernel starts whacking processes.

Even if he closes all non-essential processes, his builds run 10x as long as mine due to memory constraints.

My main point here - let’s not pretend your 4GB machine is being used to do any intense local work.

The inverse of this is seen on my Intel MacBook Air and my colleague’s M1 MacBook Air. The compilation time for our code is 35 minutes or more on my machine and only 3 minutes on the M1.


> My main point here - let’s not pretend your 4GB machine is being used to do any intense local work.

That depends entirely on what you consider intense local work. Just because you are not compiling doesn’t mean running your 15 microservice stack locally is not intense.


Any memory intensive work. I thought his meaning was clear.


4 GB is maybe small nowadays, but memory-intensive is relative.

I'd argue that _most_ programmers or even data analysts don't need more than 8 GB to perform their actual work.

But realistically they need 16+ anyway because of opening 200 browser tabs, memory-heavy IDEs, etc. 32 or 64 is nice for sure, but definitely not needed for actual "work" workloads for the most part.


Having many browser tabs open (for research) is part of the 'actual work'.


They need 16+ anyway because of running 2 or 3 Electron apps.


Memory intensive work wasn't the topic of conversation. GGP's comment was about how often he had to reboot his laptop despite it's immense memory budget, not about how much faster it was at performing memory-intensive tasks.


Of course it will run out of memory if it's taking more than 16GB of ram.

Most Linux distro suggest you to setup swap so instead of crashing it could use the swap. I personally don't use swap, because if something is consuming too much ram I most likely want it dead.

I don't know what are you compiling, but requiring more than 16GB of ram for compiling something sounds lazy and unneeded. Likewise you can use a browser extension which reclaims ram from unused tabs.

I can understand the need to have 64gb to do video editing or rendering, but most of the times we need that much ram is because our software is badly written and we don't want to face the problem, not because of the complexity of what we're doing.


> I personally don't use swap, because if something is consuming too much ram I most likely want it dead.

Swap is still useful to move stuff out to disk that _never_ gets accessed again.


>A colleague runs a Linux machine with 16GB of ram. Compiling the same project can cause OOM issues for him and the kernel starts whacking processes.

Which distro and can't you configure this? (Genuinely interested)

Also if the MacBook is better, than you should use that device. It's your "conclusion".


I regret moving from macOS to Linux.

While the tooling and system stability are better, the desktop and app experiences are far worse. It’s buggy, half-baked, and crash.

I regularly hop distributions and do clean installs to see if that will fix it but they’re all the same — pop!_os might be slightly more stable in that regard.

I’ve been using Linux since 1992. I’ve had several year periods in the 90s and early 2000s where Linux was all I used.

I can ditch GNOME, KDE, and XFCE and go back to twm or i3 or fvwm or Window Maker, but I’ve moved beyond thoses experiences. I want a more functional desktop.

But, I see now why I paid more to put up with Apple.


Can you please explain what exactly you get from the Apple desktop you don't with any of those options? I'm currently forced onto a mac for work and I find it lacking in almost every way other than an ever so slight advantage in beauty.

So besides dpi-scaling issues linux is known for, whats the draw? Some hotkey that does a thing? Some visual candy? Smoothness in transitions?

Whatever it is, it's hard for me to imagine it being worth the tradeoff. I can't even name desktop workspaces on a Mac!

I'm reviewing the "new features" section on Monterey: https://www.apple.com/macos/monterey/features/ and I'm not seeing much other than a few known areas (multi-device support if you bought fully into the apple ecosystem, etc).

With most "I tried linux desktop" people it's a problem of DE/WM, but you seem to be beyond that so I'm genuinely curious.


> Can you please explain what exactly you get from the Apple desktop you don't with any of those options?

A more cohesive experience across the desktop and applications, eg.:

- The look and feel is uniform. Admittedly somewhat less so, these days now that the Apple Human Interface Guidelines are largely ignored.

- Mac apps and generally more stable.

- Mac apps generally have more features.

- The Mac apps I use generally tend to tie into the hardware (hw acceleration, drivers, etc) much better. The benefit of controlling the vertical, I suppose.

- The keyboard shortcuts both exist and are the same across apps.

- The design patterns.

- The AppleScript/x-callback-url, etc).

- Third party apps generally tend to fit well into the above.

On Linux, almost everybody seems to have their own ideas on how an app should be arranged. With full desktop environments, like GNOME and KDE lessen this, but it's still really, really common.

That said, my money is still on Linux and other open source OSes, because I don't want a single company telling me what I can and can't do.


yea like Mac not supporting Vulkan... or that Safari browser we have to make constant workarounds for, its the new IE5


You mean Safari, that browser that does not kill your battery?


MoltenVK is integrated into Vulkan now so Vulkan works fine on Mac


Not OP but I have extensive experience as a user of all three major desktop systems. Aqua, the macOS desktop, is by far the most stable and consistent, and in my experience the most usable and powerful as well.

A few things that stand out about it to me vs GNOME 3, KDE Plasma, Xfce, LXDE, and whatever the Windows interface is called:

- The consistency of the menu system, and being able to search and use the menus of any app from the keyboard with shift-cmd-?. This is like having Emacs M-x or Sublime/VSCode shift-cmd-P in every desktop app.

- Being able to assign custom keyboard shortcuts for any menu option in any app.

- Emacs keybindings for editing text in every text field (including on the web). I believe GNOME Tweaks is supposed to do this, but I could never get it to work reliably and universally like macOS.

- Native app ecosystem. Third-party Mac software is generally the most polished, though not quite as much exists as for Windows.

- System animations. This is a small one, but it makes things more fun and makes the whole system feel fluid and “organic,” for lack of a better term.


.


>When people say Linux just works fine for them I genuinely think like am I crazy or cursed or something?

People who do that generally don't use Gnome, but i3/swaywm/xmonad and multitude of tools where you're in control what happens.


Linux works fine for me, but I don’t use a desktop. I totally agree with you that they are disasters, with poor documentation and multiple conflicting ways to make settings.

Firefox crashing is probably a Firefox problem.

You can set the scaling to be anything you want on X, just set the Xft.dpi number in your .Xresources file.

One problem with your Hackintosh install is that it’s closed source, no? As far as you know it’s exfiltrating your financial information to China.


Desktop Linux is easily the least-stable OS I use with any regularity. It was my main OS from something like '01-'10, but after I finally gave OS X a try, and since Windows got its shit together some time late in the WinXP service pack cycle (or, arguably, Win2k, but that wouldn't run my games) and stopped crashing all the time, it's really hard to justify using desktop Linux.

Does the OS hard lock or completely crash? No... unless you have graphics drivers issues, which isn't unlikely. Then, oh man, yes, lots. X/Wayland crashes that restart the window server? Yep. Applications crashing pretty regularly or glitching out so badly they have to be restarted, including the basic applications distributed with the heavier DEs? Yep. And it turns out that your windowing environment crashing or the main program you're currently using crashing is really close to as bad as the whole machine blue-screening in Windows, from the perspective of the user. Using Linux makes me anxious, even though I very much know WTF I'm doing with it. MacOS and even (spits) Windows don't do that to me, any more. Now that I've experienced not feeling that way, I can't go back. I go years between work-lost crashes of any sort at all on MacOS. Linux, one month without such a thing would be miraculous.

If you build up from almost nothing and keep things very minimal and have very boring and stable old hardware, and do as much as possible from the command line, it can be kinda OK, but it's a lot of work to set something up like that, and ongoing effort every time you do something manually that'd be automatic or trivial on a more full-featured GUI desktop. If you start with something like Ubuntu or Fedora standard desktop installs, though, there's just too much that can go wrong, and it will, with some frequency.

I could tolerate some hardware or workflows not working and things generally being a little less convenient, maybe, if it were rock solid, but it's very far from that. The main problems seem to be that its entire graphics stack is incredibly fragile (Wayland doesn't seem to have done much, if anything, to fix that) and it's way too easy for a glitchy driver to screw up the whole system.


I've switched to Linux from Mac OS about 2 years ago, being frustrated by memory consumption, slowdowns and freezes. After trying a couple of distributions / DEs, I've settled on Manjaro (Arch based) and KDE. Delighted with flexibility, features and general performance and stability. While, before, I was constantly tempering with the environment and changing stuff and there was always "something missing", I've found myself not needing to touch configuration or change anything in my workflow for more than a year now...I did have some glitches and CPU usage issues when playing YT videos on Intel-based graphics, but have since been using Lenovo laptops with Ryzen 4000 and 5000, and it's been flawless without any tempering. P14s Gen 2 AMD (5850U + 32GB RAM) is the best laptop I have ever used (software development), and I change them A LOT...


AMD graphics on Linux nowadays are vastly more stable than anything else. NVIDIA is proprietary crap and Intel Graphics still have cross-platform bugs so often is almost comical.


The experience you are describing is more akin to what I remember being Linux in the '00s than nowadays. I run a machine with arguably a buggy Ryzen 1st gen motherboard (it's quite buggy on Windows too), and I have a very stable desktop experience with Arch Linux and KDE Plasma. The real game changer has been AMDGPU, I'm yet to have any sort of graphical issue with an RX 580 on Linux, and Plasma is arguably quite solid nowadays.

The only issue I had recently were audio issues which were both due to my buggy soundcard and a bug in Pipewire. Excluding that, I've had almost no issues with desktop Linux since 2017.


I think your experience is not universal. I would say windows has been far less reliable than linux on my thinkpad machine, but overall I have to say that I have yet to use an OS that never crashed on me, all software of this complexity is buggy.


macOS still crashes, has weird bugs and every 6 months they go and change a bunch of shit that either deprecates functionality, causes conflict with how things work or takes another handful of your privacy.

Grass isn't always greener.

Edit for an example, I'm stuck on Catalina because they tried deprecating functionality my firewall uses. And the window shifter shortcut key program I use won't work in Big Sur.


Sure, macOS still crashes, I didn't claim it doesn't. But macOS crashes with a lot less regularity for me.

I use Linux as my daily driver and the apps I use (GNOME Terminal, other terms, Spotify, Slack, Brave and Firefox, and the GNOME desktop itself) crash multiple, sometimes several times a day on my two (work, personal) machines.

This happens across diverse machines, as well as across multiple distributions (though again, pop!_os, so far seems much less trashy for whatever reason).


what are you doing to cause these crashes or what hardware?? i use manjaro and pop_o, makes no sense since i get less crashes then windows and my computer is on for days without anything crashing, other then me writing a bug and crashing my own stuff :) i do lots of work and gaming on them so i don't know why your experience is so different.


> and every 6 months they go and change a bunch of shit that either deprecates functionality, causes conflict with how things work or takes another handful of your privacy.

No, that's Microsoft Windows. Apple only does it annually.


Windows has some of the best backwards compatibility around. Stuff from the 90s still works on Windows. Meanwhile macOS deprecated all 32 bit programs.


Yes and many of the major Linux distros have discontinued or plan to discontinue official 32-bit/multilib support. Why? A lot of 32-bit libraries have serious vulnerabilities that no one is fixing. Essentially most of the world has transitioned to 64-bit except for a few key areas that are still trying to run libraries that are decades old.


The kinds of things the post above complained about breaking on macOS—third-party software that messes with system internals in unsupported ways—also break frequently on Windows. To say nothing of the first-party breakage of Microsoft constantly moving around settings, re-enabling or re-installing annoyances you turned off, and removing your ability to easily get rid of them, and adding new ones behind your back.

Microsoft really only tries to preserve basic compatibility for well-behaved applications that aren't tightly integrated with any OS components or specific hardware/drivers and aren't doing anything that Microsoft disapproves of. Anything that strays outside those boundaries will run into trouble, and a lot of software ends up falling outside those boundaries even if it didn't really need to.

Both operating systems are pretty bad at letting you wield control over your own computer. But macOS doesn't try as hard to obscure the BS or obstruct your attempts to tame it, and macOS actually lets you refuse updates that you don't want.


I'm sure I've gotten 100-days uptimes on my MacBook. Close the lid at night, it goes to sleep, open it up in the morning, and continue working.


I can’t get more than upper 30’s before it just starts doing too many odd things to work around


Yep, same for me. But the restart fixes it every time. That's why I set a timer that reminds me to restart after 20+ days.


Same here. I get ridiculous uptimes on mine. (And, yes, I defer SW updates…)


Only if you skip updates that require a reboot?


This has been my experience as well. I've had an M1 MacBook Pro since they came out and I've never had to reboot my machine outside of software updates that required me to. It has always just run.

I use my computer to write Elixir code, write music with Logic and Studio One, and edit photos/videos. Maybe none of those tasks trigger the problems other people are having.


Don't OS upgrades come out more often than that?


Refreshing just HN probably doesn't take too many resources.


Just to be clear: This perfectly fine experience you describe is also exactly the experience of 99% of Apple users, including me. You only hear the ones that complain.


The ones that don’t complain have low standards. When I switched, although OSX was pretty solid, it was trading frequently spinning beachballs for the first consistently responsive computer I’d ever used. I had come to regard macOS sluggishness as normal, as do most Mac users, because they haven’t experienced anything better.


> The ones that don’t complain have low standards.

> they haven’t experienced anything better.

I don't want to gratify this pointless flame any more than to say that I have used all of Windows (XP, Vista, 8, 8.1, 10), Debian, Fedora, Ubuntu, and macOS as my daily driver at one point or another, and I currently use macOS because I have yet to experience anything better. There is a simple explanation for your problems here: something is wrong with your system (or you are overtaxing it) if it beachballs constantly. This is not typical macOS behavior, especially not since they switched to SSDs. I actually haven’t seen a beachball in years.


I don't disagree with you, but you didn't exactly refute the point of 'low standards' just by using multiple OSes ;)


My standards are high enough that I choose to use macOS and not Linux or Windows. I make no other claims about them.


More like "specific enough" instead of "high enough". Use Apple all you want but don't lie to yourself by saying Windows isn't a better, more powerful, more stable operating system.

It just isn't as polished, and even that's debatable.


I switched to a 13" M1 after having a Dell XPS 15 as my daily driver. I had high standards and Apple blew them out of the water. I see some beach ball on occasion, but I slam the machine hard. (8gb ram). It has been more reliable than the XPS 15.


Better than a Dell XPS 15 is no standard at all. The Dell XPS 15 is an utterly terrible laptop that breaks if you close the lid and put it in your bag when you get up from your seat. It's a portable desktop falsely advertised as a laptop due to its many flaws. If the best that can be said for apple is better than Dell XPS 15, that is a really, really damning review. I hope it's vastly better than that for you.


> Better than a Dell XPS 15 is no standard at all.

so what is the laptop that would meet this standard for which you're making a judgement?

So far, apple hardware has been superior to any other manufacturer, even with their warts, and their anti-consumer practises (of not having replaceable batteries, etc).


Not OP, but I have to chime in here- Dell's XPS line somehow got a reputation that it absolutely did not deserve as a good laptop to run linux on (or a good laptop at all).

I've been perfectly happy with a surface book 2, and various Lenovo and HP laptops. They each have better and worse product lines. Currently rocking an HP elitebook for personal use and a MB Pro for work.

The hardware quality is more or less the same on both. With the pro, you get a moderately better touchpad, a bit thinner and metal chassis. On the other hand, crap keyboard and the abomination that is the touch bar, and no legacy ports.

Personally, I don't think I would buy Apple for myself ever again, but that's just me.


> Dell's XPS line somehow got a reputation that it absolutely did not deserve as a good laptop to run linux on

This is where it started... https://www.engadget.com/2009-05-24-dell-now-offering-studio...


It got the reputation because it is well deserved. The clickpad is far superior than macs and the software support is great


No one will ever convince me that a laptop with a web cam whose position is limited to looking straight up your nose is quality.

I primarily navigate by keyboard, so the difference between an acceptable and amazing trackpad is pretty minimal for my preferences. On the other hand, port wonkiness, temperamental wifi, okay keys, mediocre battery, driver issues and an utterly useless webcam convinced me to ditch the XPS the first chance I got. It's amazing I used it nearly 18 months.


The fact that we even have to debate about which laptop is good for Linux or not makes me not want to bother. I switched to Mac 12 years ago, and I never had to bother thinking about choosing hardware since. It just works.


>So far, apple hardware has been superior to any other manufacturer, even with their warts, and their anti-consumer practises (of not having replaceable batteries, etc).

Milage may vary with other manufacturers, it doesn't look like you would change to another manufacturer. Which is ok.

Check business notebooks, from HP or Lenovo. (I forgot one particular Dell series.)


Ok... so what's the laptop that can compete with the new 14 and 16 Macbook Pros then and doesn't have some stupid flaw? The issue with waking up in bags seems to be caused by Modern Standby which is on most new Windows laptops?


I would go with a Lenovo or HP machine before a Dell. Even if they all have the sleep issue (I don't know if that's the case), both Lenovo and HP have better build quality.


I've had multiple Asus laptops (UX305, UX330 and most recently S435UA) and all of them ran Fedora flawlessly out of the box. Granted, none of them had Nvidia GPUs which is the usual pain point of desktop Linux.


I was going to say just disable modern standby because that was totally a thing until spring 2020 when the registry key to disable it was removed.

Microsoft is basically a toy OS run by incompetents without reasonable QA unfit to be anything but a launcher for stream.


HP Z-book, some Lenovo Thinkpads and some consumer Lenovo and HP notebooks.


I have had the opposite experience. Switched from a MB Pro that kept getting progressively worse over the course of a year (keys giving, overheating, lock ups) requiring rather annoying applecare interactions to an XPS 15. Granted it is not quite as pretty look at, but blows the mbpro out of the water performance and stability wise.


That doesn't mean linux is any better. I built a brand new ryzen x5800 machine late last year, running linux mint. When I first built it, the computer has had duplicate unremovable mouse cursors appearing on the screen. And my trackpad sometimes randomly became unresponsive (or one time, the up and down directions flipped!). And neither suspending nor hybernating worked - the machine wouldn't come back up.

All these problems have since gone away thanks to software updates and (importantly) a BIOS update. It turned out my USB controller wasn't being configured correctly by the motherboard. If I didn't happen to check for BIOS updates, I'd still have lots of problems.

And that was still a better experience than the HP laptop I bought a couple of years ago. That laptop had so much HP crap preinstalled that it sat on 30% CPU usage at all times out of the box. The biggest offender was some HP process doing microphone noise reduction. It ran all the time regardless of whether or not the microphone was being used - and utterly demolished the machine's battery life.

Apple is far from perfect, but they have a better reputation than most vendors for a reason. And their technical support is are excellent. I've had thousands of dollars of free hardware repairs & replacements over the years when things have broken in my apple machines. I wish they didn't break so much; and I wish they prioritised fixing software bugs over adding features internally. (APFS aside, I would trade the last 5 years of macOS features for better stability and performance in a heartbeat.) But there's a reason they're so well liked on HN. They're still pretty excellent in comparison to the competition.


Tell that to my tech lead who spent more than 8k buying and repairing his macbook due to constant motherboard issues. I love macs but don't dare to try them due to soooo many people in my circles seem to have very frequent HW issues with them. It seems to be either in the shop being repaired or having issues with connecting bluetooth stuff. I'm used to Thinkpad reliability so not looking forward to trade that up for some pretty pixels. My lenovo laptops had 0 issues in the past ten years. Zero. But now I'm web development and I need a mac for Safari to test locally.


I manage a fleet of macs. I have not seen any issues like that. I'd ask what your friends are doing to their computers to be seeing such a disproportionate amount of hardware issues.


How well does macOS run on your home-built Ryzen machine?


Huh? What point are you trying to make? I don't care how well macOS runs on my machine. I care how well any given computer gets out of the way and lets me get my work done. Today that means intellij, the rust compiler, firefox and nodejs. I want to spend my day working. Not futzing around with HP bloatware. Not rebooting due to apple memory leaks. And not guessing why my keyboard needs to be reconnected.


In your story, you built a machine, and Linux didn’t work well on it at first. Later, it worked fine. Meanwhile, macOS never did and probably never will run on it. And you introduce this story as an illustration of how “Linux isn’t any better.” So, to borrow your words: Huh? What point are you trying to make?


In my story linux didn't work well at first. Then with some time and work, it worked fine. An HP windows laptop didn't work well at first - but after I spent some time removing the HP bloatware, it worked "fine". This article says that mac laptops aren't working well because of memory leaks. But in a few months Apple will probably fix their software bugs and they'll work fine too.

You said:

> The [mac users] that don’t complain have low standards

I agree with you. I'd go even further and say most users have low standards, because the out-of-the-box experience with most modern computers is pretty bad. Apple users should absolutely complain more when the out-of-the-box experience with their computer isn't perfect. We all should.

Apple customers keep buying apple computers despite their issues not because we have low standards. We do it because the alternatives are even worse.


“most users have low standards”

I think you’re probably right about this. It’s like we’ve been trained to have low expectations.


As an avid linux user I can tell you. Linux users aren't "trained" to have low expectations. They are trained to be masochists that enjoy pain. The raw amount of configuration, fixes and setup work that has to go into making some linux distros work is astronomical.

If nonlinux users are trained to have low expectations, Linux users are trained to rape themselves constantly.


I see your point of view a lot but I don't think configuring a system is that hard and I think it's preferable, compared to have tons of complexity preconfigured without your knowledge.

Here's my experience with Arch Linux: 1) You install what you need to install 2) You read the doc and configure to your liking, learning what the system can and cannot do and how it works with everything else 3) Things generally work as documented and you go your merry way 4) When something break or doesn't work, you have the knowledge or a general idea of what to fix

Compared to proprietary systems where there is no documentation and little configuration, when things break or misbehave you're essentially screwed. Will you wait for an official fix or look online for reverse engineers? You bought a black box and you can't just open it and fix it.

I'd rather spend a day learning about my system during the installation and having it work for years, instead of buying yet another black box I can't open.


>I'd rather spend a day learning about my system during the installation and having it work for years, instead of buying yet another black box I can't open.

Learning linux doesn't take a day. Second off those black boxes statistically are more reliable than linux EVEN when you account for all the things you talked about.

The reason for this is simple. Microsoft has a business advantage and unfairly strong arms hardware manufacturers to make their stuff work with windows. This unfair advantage makes the windows user experience better and more reliable than GNU linux whos' developers constantly have to play catch up with hardware.


It's is sad isn't it?

In the last 20 years PC hardware has become ridiculously faster - and yet the user experience seems to have changed little.

I saw an article ages ago whereby Microsoft apparently had a dependencies approval gateway. If you made any change based on Windows you had to remove/reduce your dependencies or make a good case for not doing so.

I was hoping that would catch on.


The point he's trying to make is linux on a Ryzen isn't as good as MacOS on an M1. The user experience is inferior. That is his point and his point is fact. Hope you understand now.


user experience is inferior? how so? what nonsense, i have heard countless stories on dumb things Apple forces on its users while on Linux you can just use Vulkan... Imagine if your app can't contact Apple servers they don't launch or take minutes to open...and when they do work they are recording information... why on earth do people still use closed source software. Now we have to deal with Safari crap... like we used to deal with IE5, having to have workarounds for browser standards Apple refuses to follow or implement.


Don't waste your breath, let them be 'happy' in their little cult. I think Apple users are often mad because subconsciously they know they are taken a fool.


It's not a cult. I use all three operating systems and I'm highly proficient using linux. My distro of choice is Manjaro and NixOS and I have a lot of experience with debian and ubuntu as well.

Each operating system has benefits and downsides. For user experience linux is definitively the worst. Definitively. The differences are so large that it's almost comical how someone on this planet can't see the difference. If you can't see this then you are the one that is part of a cult.


Feels super ironic you choose to describe Apple users as a "cult" in a reply to a guy that sneaks his "Safari is the new IE5" in every response... ;)


> user experience is inferior? how so?

I use linux every day for work and:

- Hidpi support is spotty (its getting better but still a bit spotty)

- Smooth scrolling in applications is inconsistent at best

- The keyboard shortcuts for moving the text cursor around are inconsistent between programs

- Hardware support is much more of a crap shoot. Linux has a harder job than macos in trying to support every combination of janky hardware out there. But as a user, I don't really care. I just know that if I buy a mac, the OS will work perfectly with the hardware on offer. That isn't true on linux.

- Lots of useful software isn't available on linux. Eg, I love Monodraw, but thats macos only.

- App distribution on Linux is a mess. Apt? RPM? Snap? Flatpack? Etc etc. I have 2 copies of discord installed for some reason, and I have no idea what the difference is between them.

Etcetera..

Linux gives you the choice and freedom to spend an unlimited number of hours customizing everything. With linux I'm in complete control and I love that. On macos, things usually just work out of the box. I love that too.

No OS is perfect. There's tradeoffs with everything. If you don't understand other people's preferences, that doesn't make you right. It makes you ignorant.


Linux can't even run on the M1.

He's obviously comparing a linux PC experience with an apple OSX experience. It's a completely valid comparison but you're just being mean an inappropriate.


Linux does run on the M1. Not great, yet, but it's getting there.


My bad. You're right. So let's compare Linux on the M1 with OSX on the M1. Which one has the better user experience?


Apparently it runs just fine a little fiddling. https://github.com/mikigal/ryzen-hackintosh


> "The ones that don't complain have low standards.... most Mac users... haven’t experienced anything better."

That's a pretty broad brush you're painting with right there.


It's in reply to "99% of all Mac users are happy" - which brush is more broad?


"100% of the 1%" is less nuanced than "99%".


Lol. Sorry your own experience was bad. Doesn't mean everyone had the same experience as you though.

I ran windows, then linux for ~4 years as a daily driver, switched to mac about a year ago.

I do back end/front end development full time for work + work on many performance sensitive personal projects, and couldn't be happier with the OS.

It's almost like different users have different experiences based on their use cases...


> The ones that don’t complain have low standards.

Wow, well, thanks a lot. I've been developing on both the Mac and Linux for years and I don't have this issue on any of the multiple MBPs I use, including my personal 2013 model. I'm not saying I have no problems on the Mac, but they're not worse than the issues I had with Linux, especially on laptops.


I work daily in Linux, OSX, and Windows. If there was significant differences in responsiveness for day to day usage, I would notice.

OSX is plenty responsive, and I basically never see beachballs.

It's not a matter of low standards.


Is this sort of sweeping generalization really necessary? I can tell you that it's not true in any case. I'm one of those Mac users that doesn't complain about performance, because I rarely see the spinning beach ball.


I haven't seen a spinning beachball on MacOS in years. I'm not even sure it still exists anymore. But also only rarely have a sluggish system, with or without a spinning beachball.


Definitely still exists. I get it in emacs sometimes (god only knows why).


Good to know! I definitely have not seen it in years! (two 2015 Macbooks running Catalina with 16GB).


what are spinning beach balls? i don't understand? like BSOD ?


A cursor indicating the frontmost application is unresponsive.


You are confusing your own personal experience for the standard experience of macOS users. Personally, beachballs are so rare for me in the past few years that I'm always amazed when I see one.


Who am I to deny somebody the opportunity to feel superior? It’s a form of community service.


Thanks for telling me that I have low standards. Amazing considering MacBooks on my desk.


Maybe not constantly but I have to restart my 64 GB Linux machine because it runs out of memory. Linux's OOM killer is terrible. I literally have to wait half an hour while my desktop is frozen for the OOM killer to kick in. And no, spamming the key combo for invoking the OOM killer once this happens doesn't help.


Use earlyoom or another oom daemon for a 1000x better experience and consider figuring out what is leaking. Do you use gnome? It used to have a bad leak that was supposed to have been fixed.


I think it's mostly firefox just holding things in memory since so much is free. Eventually it just all adds up and eventually I try to compile something and then it will run out of memory.

Yes, I can go setup an oom daemon, but Linux should handle this for me out of the box (ideally with some sort of logic to avoid killing something like X taking down every single program I have open). Getting stuck for half an hour or longer is just not acceptable to let happen.


Thanks I'll try that. The behavior when memory is low is easily the worst part of desktop Linux


I never regretted moving from Linux to Mac also a decade ago. Mac has been fairly smooth for me, still on a 2013 mbp that just needed a battery replacement. Linux, however, was pain, quite often.


its a lot different now, unless your running it on proprietary hardware without official driver support, like the random stuff laptops have these days, but now we have many companies making laptops for Linux so it has improved a lot. Why give money to a company to use their software when you can use open software and help fix and improve something everyone can use for free.


On the other hand my Linux computer struggles to go 10 days without a reboot due to the graphics driver bugging out, while my old MBA basically never needed rebooting.


Funny, I moved from Linux to Mac because I got so sick of no good laptops with full support for Linux and it's never ending subsystems for audio, webcams, trackpads, etc. And not like Linux UIs are known for being efficient and memory friendly either.


try viewing 2000 image files on Ubuntu desktop (20.04). It was so slow that I wrote a web interface to do the job instead.


This sounds appealing until you remember that you can't get all the nice apps in Linux.


Hahaha the old “if your workload just looked like my workload” argument.

I like how x86 is a power sucking hog for the performance and enthusiasts response is to go out and buy more power sucking hogs!

Someone wasn’t around when Linux could figure out what to do with a USB device. Spectre? Meltdown? What are those?

It’s almost as if engineering is hard and being a critic is easy.

Kind of like numbers, language allows for a never ending, so big in a sense, corpus of little ideas.


Amen. I can't think of another brand that fosters so much "I'll spend more money here" compared to "I'll use a different brand."


These issues notwithstanding, the total user experience of owning a Mac laptop is far superior to any Linux or Windows machine I've tried, at least in the past 3 years or so.

Two concrete examples: trackpad feels like shit on both Windows and Linux, installing or updating drivers and some apps on Windows constantly switches back to legacy modes to display the installers (with different fonts, no subpixel smoothing etc.). If it's not a deal breaker, it is annoying as hell and something that almost never happens on my Mac.


OP was describing very high-spec hardware which locks up and becomes unresponsive under their normal workload, potentially losing work or wasting their time. That seems like a much more significant issue than inconsistent font display or the feel of the input device.

Your experience must differ, but if I spent $2000+ on a device only to find that was locking up (due to poor memory management in a standard component!) under my standard workload, I would be livid. I would probably return it, and then tell the next 10 people I meet about my poor experience.

That said, I have run across a Windows 7 bug where the font manager would repeatedly fail and leave its cache/log on disk, only to restart and repeat until the hard disk was just about full. Complaints about the poor state of software engineering as a discipline go back to the beginning.


> These issues notwithstanding, the total user experience of owning a Mac laptop is far superior to any Linux or Windows machine I've tried, at least in the past 3 years or so.

That.

I don't love Apple. They're a corporation, so at best our interests temporarily align. Loving them would be absurd. I really really want them to have strong competitors. I'd love to be back on an open source OS full-time, like I was for many years.

Unfortunately, they're so far ahead of the competition, that they screw up, sometimes even in a few ways at the same time, and people come out saying "LOL and Apple fanboys won't switch to Linux even now", and that's true... but it's because I'd be trading a few problems for a few score problems.

I ran Linux on laptops and desktops for about a decade, as my main computers. Ubuntu near the end, Gentoo for about five years, Mandrake really early on, a little time with Fedora somewhere in there, a sprinkling of Debian. I still try it out every year or two! I wish it weren't, but it's still much, much worse, and in the best case slows me down and gets in my way more than a "bad" Apple machine with a "bad" version of an OS X / MacOS, barring actual faulty hardware.


^ This. It's not that I don't want to switch to a different company, it's just everything else is a worse, overall experience. I'm on Windows every week or so, and while it feels much faster than Mac, on the same hardware, there are just too many little things that annoy me. (have tried a few Linux flavours too, not really a contender for my use case)


As a counterpoint, I was a Linux user for ~20 years (eventually with a macOS dev machine on my desk as well).

I got so sick of troubleshooting issues myself, I switched to Windows 7 and have never had to troubleshoot my OS since then. I don't google Windows issues, I don't have crashes, nothing.

It's nice to have a machine that I can just work on and not constantly debug.

(I 100% expect privacy advocates to admonish me for this, but I use hardware I assembled myself and block MS telemetry.)


In a world without MacOS, I'd probably be running Linux on a really beefy Windows machine under virtualization, for work. Desktop Linux is so much more stable and pleasant to use in a VM with Windows or MacOS handling the actual hardware. Still a bit unstable, but not nearly as bad.


libinput with Wayland on a MacBook Pro puts its trackpad handling on par with macOS.


I'm dailying Wayland on Ubuntu, but it feels like there's always a "it'll be really good soon" promise to Wayland.


yea it takes time but eventually open software will be better, just look at how well Blender is doing and even Darktable is way way better then Adobe Lightroom can't understand why anyone uses that anymore while a free alternative that is better is out there.


That's how much we hate Windows and desktop Linux.


Good thing you can afford the kind of expense that the luxury of that hate is costing you then, I guess.


For a professional developer the difference in cost is not that much bigger.


Well, generally speaking Windows and Mac developers are in such demand that hardware is quite a small expense compared to how much they make.

Is the experience very different for Linux developers?


It's very weird to be talking about "windows, mac or linux" developers.

Desktop application development today is maybe about 1-5% of all development, while overwhelming majority of backend development - the largest category - targets Linux.


Percentage of the way to being as good as all desktop operating systems ought, at a minimum, to be:

Windows: 70%

Linux: 20-80% depending on your hardware, what you're doing with it, and how lucky you got with the current kernel & libraries your distro is running.

MacOS: 90%

So when Apple fucks up really bad and MacOS temporarily drops to 70%, no, I still don't switch. Every desktop operating system is shitty, but there are degrees of shitty.

And yes, I use all three pretty regularly.


Crashing while doing your work is not "drops to 70%". That is the problem we were discussing and that is not a minor inconvenience.


Oh look the main speaker for the Mac folk!


Probably because other brands don’t do anything novel to warrant such loyalty. Apples hardware and software stack is undeniably unique which in turn makes it a brand that people will put up with issues because well, it has things other systems don’t.


Because Windows is so much worse. I'm now required to use Windows for a project, and it is a pain to use that system every extra minute.


You might get a better experience running Windows in a VM. Reports are that it is faster that way.


It's because they do so many anti-consumer things to lock their victims in.

Changing brands becomes more of an ordeal than staying.


Tesla. So many people seem to have problems with the cars/lack of quality only to say “still love the car” or “it’s my xxx number Tesla and they’re still doing [problem]”


Apple has few and long-lived product identifiers; as such it is possible for specific problems to become well known.

It's extraordinary to find more than a handful of anecdotes about any particular model number of consumer Windows laptop that happens to be on sale at Best Buy today. There are so many, and they cycle so rapidly.


What other machine can you buy to run Xcode on?

Also, I get along just fine with the last few Macs I have had...


That seems like another symptom of the same problem. Apple locked me into their ecosystem...but that is their right, after all it is their platform. Apple sold me faulty hardware/software but I have to buy more Apple products (new hardware, support) since I am locked in and cannot do my work on non-Apple hardware. Their behavior may not be illegal (IANAL) but I find it quite user hostile. The main problem I see with all this is that since Apple is getting away with it, more and more companies are trying the same tactics and normalizing user lock-in and charging extra to fix faulty hardware and software.


As someone who hasn't been in the Mac ecosystem since his and his mom's iMac both broke in the same way in high school, how does the Mac ecosystem lock you in?


Comment just above mentions the need to use macs because of xcode.


As far as I know you need to use Xcode to distribute the software, or to write macOS-native software. I have written plenty of Java Swing apps without touching Xcode at all.


To be fair to the OP, the "more expensive" machine is also probably the fastest laptop on the planet at compiling code, so there's also that.


You can use alternative toolchains like like cctools-port[1] and xcbuild[2]. See, for example, this article [3] on how to build Swift UI apps for iOS using Linux.

[1] https://github.com/tpoechtrager/cctools-port

[2] https://github.com/apple-cross-toolchain/xcbuild

[3] https://thi.im/posts/cross-compiling-for-ios-part-1-build-sw...


Wow, they make it so easy!/s


How about the Mac Mini?


Or Hackintosh. Hey, GP asked 'what machine'. Didn't require it to be an Apple.


I’ve given this thought for an older MBP of mine that can’t upgrade to latest OS so that it can be used as a CI.

My issue with that is 1. Can I trust the hackintosh to not be compromised and 2. Uploading an IPA via hackintosh feels like bananas.


If you use say Proxmox and create your own macOS image and compile your own Opencore then you should be OK. You can do same on VirtualBox. (On a PC, cause I doubt older MBPs have the necessary stuff like VT-d.)

Of course, once Apple kills off x86-64 macOS it is going to become more complicated.


Hackintosh's are dead as soon as Apple stops supporting Intel chips.


That won't be for a very long time. There's a lot of Mac Pros out there. They're still supporting the 8-year old 2013 Mac Pro, the trashcan one. They sold a lot of the revised Mac Pro to animation studios and such. I wouldn't count on support for those being dropped for at least ten years.


That would be the same for OPs use case. He’s using a M1 MacBook Pro so nothing would change. The M1 devices don’t support more than 16 GB RAM, too.


The recently released M1 MacBook pros go up to 64GB.


I want to buy a 16" M1 Max because it looks awesome...but my base-model 13" M1 is a beast of a machine and I use it every day for dev work. It has only 8gb of ram but it still chews through everything. And I got it for a great price brand new considering how much I've been using it since launch. In my own experience so far, if I buy that expensive 16" M1 Max it will be because I want it.

Note that I've had Dell XPS laptops that were configured with the same price point as a Macbook and while nice...those devices definitely didn't have the same attention to quality that I've experienced with Apple products. So it seems unfair to make such a broad criticism against Apple users at large!


So that's how people should react to a software bug?, move to a new OS and try to get as close as you can to all the apps you were using for years...


Find me one laptop with a trackpad that works as well as a MacBook and we can talk.

I use a MacBook trackpad to make diagrams, for 3D modeling using Blender and FreeCAD, to draw schematics and route PCBs with KiCAD, and whatever else you’d otherwise do with a mouse, and it just doesn’t get in the way.

Over the years, I’ve been forced to use work supplied top-end Thinkpads, HP, and Dell laptops and none come even close to even the trackpad of my long retired, lowly 2009 MacBook Air 11”.

I don’t really care whether I use macOS, Linux or Windows: they all run the same applications. I also don’t care about the price of a laptop: what does it matter that a tool that I use day in day out for years costs $1000 more?

I care that it’s usable.

MacBooks are usable for things I use them for. The other laptops are not.


This right here, I got a Razer Blade from work last year, and found the touchpad so awful I assumed there must’ve been bad drivers installed. 3 driver installs later and I realized it just wasn’t as good as the MacBook trackpad, and I’d just need to pack a mouse everywhere I bring this laptop.


> Hundreds of millions of people, they must be crazy or very stupid! I must be right and they are the ones in the wrong!

That's how you sound.


Your mistake is thinking that that machine "doesn't work". It obviously works for them.


thats the users every company wants!


It’s not that amazing…

What is the alternative platform that runs Xcode but with the memory leak bugs fixed?


I think most everyone knows that this is a software bug that will be fixed.


I love my 2017 mbp and I so want to tell every person posting workarounds for their $2000 brick please return it! Tim Apple won’t fix anything with all the $$$ in his eyes flowing in.

A finance professor once told me “if you don’t vote with your wallet you don’t get to complain”


Have you tried not buying their shit?


Where did your comment come from, nothing in the parent comment is related to what you're saying.


Wasnt apple fined for slowing down iphones?

Looks like the 16gb model is now artificially made obsolete as well - you are supposed to buy the 64gb one.


For slowing down iPhones when the battery was low and not telling the user about it.


For slowing down older iPhones


I find the defense of Apple in this case absolutely fascinating.

You know how I can tell that Apple made that change not with the user in mind?

By the fact that until a 3rd party proved Apple was throttling older phones, Apple never publicly stated they were doing this. I’m fact, they vehemently denied it.

I saw this on a personal level, where my mother who took 2 trips abroad about a year apart, with the same phone (and she had a lot of disk space in both trips and she hardly installs any apps) found the phone an absolute pleasure to take pictures during the first trip, kept missing shots while waiting for the camera app to load in the second one.

And on taking the phone to the Genius Bar multiple times, she was gaslighted each time as the Genius showed her their diagnostic results which showed that no, her phone was in perfect health (minus a slight degradation in battery life).

Of course, a few months later the entire world learnt that, in fact, her phone had slowed down, and Apple was lying. What’s interesting is that Apple diagnostics tools (which should probably have a speed test?) also reported everything as being just fine.


Stop trying to spin it Apple's illegal behavior. The change was clearly unnecessary because once they rolled it back the phones kept on functioning just fine.

Modern hardware can and should last ten years. Accept no excuses.


For slowing down iPhones that would otherwise shut off due to degraded battery health, without notifying users.

It was a measure to increase product longevity (e.g a slow phone was seen as better than a phone that shut off randomly when voltage dropped)


If the goal was to increase product longevity why did Apple only admit this wonderful measure only after it was proven by a 3rd party?

If this was such an altruistic measure why would the geniuses at the Genius Bar deny that my mothers phone had slowed down and throw diagnostic tests at our faces? Why was the exasperated Genius, who could clearly tell that the phone was slow indeed but his successful diagnostics meant there was nothing he can do, reduced to swiping up all the apps on the phone to kill them, when we both knew that if iOS was working properly that should do nothing?


It was also a measure that forced some users to upgrade.

My iPhone 5 got so slow and Apple was so unhelpful that I ended up replacing it. That was my first and last iPhone.


The battery that they made not replaceable. Interesting how it all fits together.


It is replaceable, and pretty cheap to get replaced at Apple too. I think it was like $29 or something to replace?

But even without Apple, that particular battery was pretty easy to replace


The $29 battery replacement program was only introduced after Apple was sued: https://www.macworld.com/article/230860/iphone-29-battery-re...

Also: users were not warned about this "feature", many (most?) didn't know why their phones slowed down, and there was no way to disable the behaviour.


Ah yeah, it was $50 before it was dropped to $29.

And I already mentioned in my initial comment that they didn't notify users. That's what the lawsuit in France was over, the lack of notice. I believe an OS update did eventually let users switch off the behaviour, and view their battery health.


It is replaceable. It's just not replaceable without a screwdriver.


why not just allow replacing batteries like phones did before?... seems like a dumb excuses to get people to buy a phone every year, make it impossible to replace the parts and slow down the phone. glue, solder, hardware lock parts etc etc until the phone is not even your property anymore.


the battery in that series of phones was replaceable quite easily, if you felt comfortable opening up the phone.


First lines of the article:

"Credit cards make money through net interest, interchange, fees, and marketing contributions."

I love you.


Another long shot: contact starlink team and see if they can sponsor you. It's could be great PR for them.


Doubt they can do that. I believe people in Myanmar tried. Paraphrasing here, but they can't do it yet.


I disagree, I loved unity. I miss it a lot while using gnome shell.

Tried to use it anyway, but it's unmaintained and instable now.


I think unity matured nicely, but natty in particular was just about unusable.


Because they can. They have no competition.

Like MS in the 90'.

Don't worry, in 20 years, all their PR will say they are your best friend again. They will be the underdog for some unforseen reason, and will suddenly call for respecting your private life, encrypting everything and give power to the user.

The way MS does it for open source today.

It's the circle of life for corporations.


Yup like oil and car companies going "green(TM)"


This by no mean a defense of Googke et al...

To be fair, we (the public) have been complacent and complicit. We so often opt for convenience and "personalization" and "free" without pausing to consider the implications. We write it all off as inevitable even though that's not the case. Google and such will take that continue to nudge it further and further in their favor.

"The Age of Surveillance Capitalism" is an amazing - and sometimes boring :) - dive of both depth and breadth. It altered my lens for the better.

https://theintercept.com/2019/02/02/shoshana-zuboff-age-of-s...


Perhaps now people understand why they were booted from China.


China: "Crushing people under an iron fist is our job, not yours Google"


Google never wanted to enter that market under the current conditions.

( Give up your IP)


The opposite is true: ad companies will often not count all the legit impressions, until you start putting monitoring and call them out.

Ads are just a dirty business at this point.


Has it ever not been?


If you read the excellent Bernays' propaganda (https://en.wikipedia.org/wiki/Propaganda_(book)), you can have dive into how advertising was perceived in 1920.

While I don't buy that this is the only view at the time, and that there was no dirt to find, I believe that there was a time were ads were imagined as a way to inform the consumers, or at least convey some kind of information to them.

Unfortunately, the market doesn't optimize for what's right, only for what's profitable. The too may or may not aligned at first, but give it enough time, and it will deviate.


obligatory ref to "Century of the Self" four-part documentary


Just personally, I’m not super opposed to ads sold on television networks that come over my antenna that basically just market to specific demographics.

Billboards a bit problematic if they distract drivers but otherwise don’t bother me much either.


I've seen a genius use of face analysis lately: nvidia new video codec for chat.

https://developer.nvidia.com/ai-video-compression

Basically it creates an AI model of your face, send that to the other party, and then when you move, it only sends key face points. The other party uses the AI model to create a virtual hi-res picture of you, thispersondoesnotexist style, except it looks perfectly like you. Then it uses the face points to move it the way you move.

The result: it consumes almost no bandwidth and you get the experience of a hi-res video call.

Of course, then I realized the trap: it's a perfect honey pot to get everyone to scan their face.

This is, IMO, what's going to happen with the VR. Big companies like Facebook/Meta are going to use the online avatar as a motivator to let them scan everything that can identify you. It will make the virtual you so realistic! Scan your face, your cat, your whole flat!

People will jump on that, with no thinking about the consequences what so ever. After all, they are crazy about the way services like snapchat can change your face on a video.

It's already game over. Like with Ken of the North star, we don't know it, but we are already owned.


The latest iPhones came with a LIDAR feature installed. Literally people paying for technology that can scan a room and report back to (who knows) anyone that has access to the device's telemetry. In the future, apps like TikTok, FaceBook, Meta and whatever can simply access the scanner, or the data storage from the device and have access to a wealth of information on any user they want.

Facial recognition is just the surface of a festering violation of individual user privacy. Once these companies manage to capture data, it has value for years into the future even if it is shut down at any point later.

Indeed, our privacy rights have already been violated and owned... Privacy should be protected by law at the source of data collection -- THE DEVICE LEVEL -- not just at the app level. Phones, Cameras, ATMs, Cars, etc... The devices and apps that we pay for and use (respectively), should not enable data collection that can be used against us in any way for extortion or manipulation, especially in incriminating circumstances. Current law provides for protections about this to an extent, but courts are still not educated and active enough, and the laws are fairly weak in specificity to properly enforce those standards.

I obey the law, but even the simplest data gathered by companies on us can become a means of manipulation or extortion that companies can use over time against us covertly. Think about private/personal data use in determining bank loans, job opportunities, court cases, and in health insurance. Possibly the biggest crime is that we're eagerly lining up to pay for the devices and sign up for apps that aid the corruption at higher costs overall than ever.


Other advantages of the NVIDIA system is that it can "fix" things about your face in the reconstruction. It can synthesize eye contact, cover for you when you're looking at your phone, synthesize a little smirk at a bad joke even if you just rolled your eyes.


Since iOS 14 FaceTime can make you look like you are looking at the camera instead of the screen below it.

Settings -> FaceTime -> Eye Contact


It's also going to normalized it.

Removing imperfections will become the norm, the way photoshoping magazing covers is, with all the social consequences.

In fact, people will confuse what the machine think we look like, with what we actually look like, and I'm bracing for the bias that it will create.


I already met someone I’ve been talking to on Zoom for 2 years and he’s just fucking massive. I expected him to just be a normal size guy but he’s like 6 foot 8 and the whole dynamic would have been very different if we had started in person.


This wouldn't work for a lot of people, especially visual ones like Deaf people. I have learnt to read cues in faces. This was useful to understand my children, for example.

So not so genius after all I am afraid.


> Of course, then I realized the trap: it's a perfect honey pot to get everyone to scan their face.

This isn't a massive database containing scanned faces. This is really just the next generation of compression. It was only logical that neural nets would be involved in the next gen of image/video compression.


Think how many people already gave this data to Apple to unlock their phones.


Since F# is typed, have a look at FastApi in Python. It's a better inspiration than flask: it uses dep injection with typing to configure your endpoints. It's very flexible, infinity composable, and such a nice experience.

Django's API is now clearly dated. I still use it massively though, because it's insanely productive for CRUD apps, which are 99% of my client requests.

They made some hard choices about the auth and db layer, and they are imperfect, but when left to do the choice myself in other frameworks, I often miss Django. You really value all it gives you once you've lost it.


Thank you for mentioning FastAPI. Looks awesome. Recently I started using Flask, as Django feels like too much overhead for smaller projects. FastAPI looks like a good alternative to Flask.


> Django feels like too much overhead for smaller projects

It depends. My advice is always: stick to django no matter what, unless you are a seasoned web devs. I've seen too many flask projects with terrible architecture decisions and security holes because flask assumes (by nature) you can take those decisions.

Those decisions are not easy to take. They require a deep knowledge of the field.

So yes, one may chose flask or fast api as a lighter alternative, provided they know very well what they are doing, or that the consequences of not knowing are small. The later is not always simple to evaluate however, especially if you are not experienced. You don't know what you don't know after all.

If somebody doesn't know if they are an experienced web dev, or the consequences of their choices, they should use Django.

It will save them from SQL injection, XSS, Cross request forgery and click hijacking. It will provide an pluggable auth backend should you need it later. It will force you to put some parts of your code in separate sillows. This is a good thing for most people.


Frankly if you go with the most popular extensions: Flask-SQLAlchemy, Flask-Login and Flask-Admin you will have more or less all the features of Django with a nicer API, better documentation and more flexibility


I've been using all of them, and no, not at all. Flask-admin is a far cry from the django admin. It's also buggy sometimes.

Flask-SQLalchemy is not well integrated at all. E.G: try to play with it in the shell, the session management is annoying as hell.

As of flak-login, it doesn't have a tenth of the

Also you forgot: csrf handling, i18n, xss, click hijacking, cache backends, and so on. That's again, more plugins you have to select.

And that's a lot to configure, learn doc, then upgrade when the times come, on top of that.

All of them will, obviously, not be compatible with SQLA 2 next year, because the projects are not a whole, so it's going to be even more fun on the months to come.

I really think a beginner should not use that.


This is a good summary. Sometimes I too forget how much stuff Django provides out of the box for free. But now it is an old and boring tech, apparently. Oh well.


agree it depends, and I haven't looked at Django for years - so can't comment on it.

However, I have been using FastAPI with Jinja2 & htmx to create web APIs and UIs for some of our services. Individually, they're great; collectively they're a joy. I'm no front end dev, but even I can put together functional, decent-looking apps in a few hundred lines of code. They bare comparison to angular apps that can easily be an order of magnitude more code.


I just wanted to mention that I considered FastApi but the amount of reflection and magic required to go this route was a bit too much to my liking in F#. Just a personal preference.

I mostly agree with you on Django though. But as you said - most apps are CRUD apps.


There are many misconceptions about async python I keep seing again and again. I'd like to offer an alternative point of view:

- async python is faster, but for a very specific niche of workload. Most tasks you do don't fit that workload at all. Which mean most of the time, you should NOT use async Python. And it's ok. Don't make your code complicated when you don't need it. Chose a tech for the need, not the hype.

- async python is not just for performances. It helps with making some specific kind of concurrency easy to reason about, because the context switch is explicit, and the chain of event can appear linearly in the code, thanks to await.

- it's ok to have some sync processes and some async processes. It's not one or the other.

- async is not a replacement for threads or processes. In fact, there are good use cases for having several processes, each with several threads, each with one event loop. Which also means that if you benchmark your WSGI code with 16 workers, you should do so as well with your aWSGI one.

The corollary to this is that some web site loads are very well suited for async (e.g: an SPA with a lot of connectivity which delegates long running code to other services), but a lot are not. If each request makes a long SQL query, seeks the hard drive, dynamically performs i18n and adds some calculation on top, it may very well block the event loop for too long, killing any benefit.

So when would you use async python ?

- For performances, when you need to maintain numerous long connections. E.G: doing websockets ? Use asyncio. Serving static files without nginx ? Use asyncio. Want to create a web crawler and your memory budget does not allow to open 10000 threads ? Use asyncio.

- For the interface, use the async/await keywords everywhere you need need inversion of control for I/O. It's not just about perf here, it's also a mechanism to delegate arbitrary parts of your code with a common standard interface around a fancy state machine + scheduler. You can use that to abstract all your I/O and switch backends at will, while offering callback inlining.

But again, you have awesome threading and multiprocessing pools with python. Not to mention tools like zeromq, scrapy or celery, which do a lot for you. Don't run to async just because "it's faster".

Having async by default in frameworks like fastpi opens up a ton of possibility though. Live settings, pub/sub between processes, websockets...


> It helps with making some specific kind of concurrency easy to reason about, because the context switch is explicit

Assuming you're disagreeing with this, yeah, I've seeing "easier concurrency" be a massive footgun because you have code that's safe as long as an await doesn't get added in the wrong place.


I am not, I've been using the wrong working.

I would say it's pretty hard to add an await in the wrong place, although not impossible. I think it's easier to:

- forget an await

- forget a asyncio.wait or a asyncio.gather

The later is very common, and is being addressed by the structured concurrency movement we've seen with Trio and the likes. This should end up in mainline python eventually because it is, indeed, a problem.

However, it's still way easier to shot yourself in the foot with concurrency and threads than with asyncio.

However, it is harder to startup with asyncio than with threads, because there is more to learn just to boot.


> forget an await

Do you use a typechecker?


Always. But not using an await is not a type error. It's perfectly valid to not call await. There are valid reasons to do it.


I can’t tell if your first list is misconceptions or your rebuttals to misconceptions. You said it’s misconceptions but I think it’s your rebuttals.


You are right, I edited it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: