However, selling teaching services to the public sector, where price is determined by what a group thinks feels right rather than demonstrated value, can be quite lucrative and on par with the typical software engineering job.
It is true that software engineers have more moonshot opportunities. You will find more software engineers raking in millions of dollars per year than you will teachers. But only a scant few engineers end up in that position. The vast majority of software engineers will land around the same range teachers in the public sector will (with some regional variability, I'm sure).
Where in America can a teacher make 100k+ with <5 YoE?
That just can't be true. No disrespect meant, but I'm not sure if you are under rating what the vast amount of software engineers make or over rating what teachers make. Would you care to clarify with annual take home estimates for both?
Maybe some college professors make what engineers make. That could be true. That is very likely.
Developer salaries are harder to come by, not being officially published in a cohesive form, but levels.fyi suggests a median income of $147,000 (total comp). In my opinion, levels.fyi skews towards big tech, ignoring the little mom and pops that pay peanuts. Other sources suggest the average is closer to $80-90k, depending on who you ask. In the interest of fairness, I'm going to pick the largest number I can find.
Again, not having officially published data, contractual terms are hard to establish, but I think it is reasonable to assume that most developer jobs will expect somewhere around 2000 hours per year – your typical 40 hour work week. In my experience, this is the norm. While I see a growing number of places that allow fewer hours, they come with a commensurate cut in pay. This puts the median developer at $73 per hour.
It is recognized that median and average are not the same, but given the distribution of teacher salaries, median and average should be close to equivalent. For all intents and purposes I think we can consider them to be equivalent in this case. It is not like there is a teacher on the payroll making millions to skew the numbers or something. The pay bands are known.
So, we're in the same ballpark. Within a few dollars of each other. But, as before, I won't be surprised if there is variance across locations. Pay scales can differ significantly from one place to another.
Note this is a based on salary. I would assume delelopers have better total compensation, but there are loan repayment and other things that might affect a teacher.
Here is the US salary guideline :
Teacher salary: $61,820 per year based on an estimated 998,800 jobs reported on taxes.
https://www.bls.gov/ooh/education-training-and-library/high-...
Software Developers : Salary $110,000 based on an estimated 1,847,900 jobs reported on taxes
https://www.bls.gov/ooh/computer-and-information-technology/...
What country are we talking about?