This.
And, even better, fully separated bicycle paths using land unsuitable for other uses (like river banks and freeway green space.)
Most cost-effective transport infrastructure there is for urban areas. Melbourne, Australia, has a lot.
There are a lot of asshole cyclists. But there are also a lot of asshole motorists and pedestrians. I suspect they are mostly the exact same persons.