I usually use a 2017 15" MBP with 16GB RAM, but I've recently been using a 2018 MacBook Air with 8GB RAM. The MacBook Air is slower, but it isn't terrible - the main thing I miss is the screen real estate. Unless you're compiling huge programs or ones that stress the CPU continually, the bursty nature of compilation CPU loads will work in your favor - you can use a thin and light laptop. You'll definitely want more memory if you run multiple VMs, or if you run the iOS simulator.
If someone stole all my stuff and I had to start again with $1100, I'd buy the used MBP, a used 24" monitor and external keyboard and a trackpad. But I don't code on the go, I'm usually sat at a desk.
Generally, buy the machine YOU need now, not the one you think someone else will want in a few years time.