There's some sentiment these days on HN about this but personally I think it's hogwash. No platform is perfect, but macOS to me is as close as you can get to a developer's dream workstation / laptop.
Remember all those years when we dreamed of a Unix with a proper UI? Well, it exists. Windows doesn't even come close.
I'd rather go Linux before Windows as a developer and hacker.
I know this varies based on industry and countries, but about 95% of developers I work with on a daily basis use Macs. These are everything from Go devs, JS devs to people working on ancient Java EE codebases.
A disclaimer; I haven't actually tried Catalina yet, all my Macs are still on Mojave.