Earlier quoted context omitted.
If you’re building software that is intended to be used for longer than a year then it should be capitalized. The argument on HN is always just complaining that it’s unfavorable to devs; but it’s perfectly reasonable with regards to actual tax principles.
Almost all other payroll is deductible. Why is salary for someone building a house deductible, but salary for someone building a for loop a capital expense Look into when this started and why and you might understand it
If the “house” (or the for loop) is sold and gone, it’s not an asset and the cost of the goods sold — salaries included - is an expense.
If the “house” (or the for loop) is kept and used, it’s an asset and the cost of producing the asset — salaries included - is capitalized.
(There are differences betweeen the “house” and the for loop but not at the extremes which are clear. I imagine by “house” you mean some building that makes sense in a commercial or industrial context like a warehouse.)