I'm happy that I switched from electrical engineering to software engineering. I feel like the prospects are better and still feel that way even though things are rough right now.
I regret being scared during my first 5 years as a software engineer. I've stayed in jobs too long. Going forward, once I get that feeling that I've outgrown a role I know its time to start looking for the next thing. No more lingering for that extra year. I'm in my mid 30s and so am feeling the age pressure to make my next couple big moves soon before I'm looked at as too old to be an "IC with a bright future" haha.