Yes, there are reasonable alternatives to MBP for developers.
I know that I might be an outlier here, but I personally find using OS X to be a frustrating experience - the only positive I could personally see for developers vs windows was (was - past tense!) the unix command line (linux has historically always been a struggle (drivers etc), so I personally steer clear).
But now Win10 has a unix command line too so what is the point of getting a MBP? You pay excessive amounts for commodity hardware with a mac, then you're forced to use a horrible UI designed for your grandparents to use without getting confused. Yes, you can buy and install 100 extra apps to make the it more usable for serious users (BetterTouch, ShiftIt, uBar, iTerm etc etc), but then you're just throwing good money after bad. The UI is great if you're just watching netflix or reading your emails, but for anything serious where you're doing more than one thing at once I personally find it a really annoying experience. Current MBPs don't even turn on instantly like my previous 2 older MBPs did - it now takes a few seconds to wake up. The final nail in the coffin for macs for me is the awful, awful, awful keyboard on the new MBPs. I will concede though that the 2017 MBP is a nice physical item that feels solid and with good battery life though.
Personally I'd just get a cheap Win10 Pro (dont get Home edition - you cant run docker natively without Hyper-V which is only in Win 10 Pro IIRC - I think that without Hyper-V/Win10 Pro you have to run docker in a linux VM) no-name/rebadged-Clevo with the biggest CPU, RAM and M.2 SSD you can afford. They just work out of the box and will be half the price of an equivalently-speced mac. I use a i7/16GB/M.2 Win10 machine for personal stuff, then at work a 2017 MBP Pro and a absurdly over-speced linux desktop (many-cored xeons, 64gb ram etc) - they all feel about the same speed in day to day usage in intellij & vscode etc. Clevo laptops are nice since they are aimed at small-scale "builders" targeting gamers etc, so they are often high-spec and easy to open up and work on.
PS I've never had a laptop's hinge break on me, even the cheapest ones that I've dropped. If longevity is a concern, get a proper "thinkpad" branded one (but you'll pay a premium for this).
Good luck! The transition off of OSX will be painful (YMMV), but stick with it.