Children are optional on an individual basis, but not on a societal basis. A society that does not produce sufficient numbers of children now will collapse in a few decades when the ratio of retirees to working age adults becomes too high.
That’s okay. Societies that continue to have fucktons of children will also collapse in a few decades, but in a markedly different way, with a lot more suffering.
I don't make much by developer pay standards and have not found having a child as being that expensive. Food, shelter, clothing, education - all within my limits right now. I guess it depends what your standards are.