"Stop sabotaging your career with long stints".
Very few developers are CEOs/CTOs. Even fewer have founded a successful startup or gotten acquired. Very rarely can one get a promotion or a raise by staying at one job for more than 3 years. The bigger your network is the more likely you will get an interesting job offer at a company where your past loyalty is irrelevant but your personal connection is.
My 2 cents.