In general you get to make the expenses of your business be pre-tax. Exactly how you count your home office/mortgage/bills has implications, and is likely your largest expenses. But your city/county may have additional requirements - eg wanting to tax your business use of the home. Only someone familiar with the area will know the right thing to do.
In some cases the various rules are so bad that it works out cheaper to not follow some and pay the resulting fines, than to do things the right way. Again your tax person will know.
Too late ;)
In the context of being an Independent Contractor however, my experience has been that very few companies are willing to directly hire a person as a 1099 Software Contractor. A majority of them have you come on as a "W-2 Contractor". What this means is that the Recruiting Company "forces" you to sign up with them as a "W-2 Contractor", and they in essence withhold taxes, and provide mostly Sh*ty benefits, and give you a lower rate than if you were an independent 1099 Contractor.
On the flip side, the Company at which you will be performing your work has none of the risks associated with 1099 Contractors, and can fire you at any time without any risk of a lawsuit from you, since their legal agreement is with the recruiting company that hired you as a "W-2 Contractor", and not with you directly.
Hope this makes sense.
I hate this situation and I wish some Jobs / Career startup company would address this pain point, i.e. software engineer forced to go through "W-2 Companies" and hence getting a lesser hourly rate and thrust with benefits that the contractor doesn't need (as his spouse may have medical benefits from a fulltime job etc). i.e. it would be cool if a startup career website could connect 1099 Independent Contractors with the Companies that need them, and get them the higher rates that are currently being "eaten" by the middle-men / brokers that masquerade as Recruiting Companies and make you get on a W-2 at a much much lower rate.
Contractors have less baggage, as long are the IRS doesn't decide to audit you and apply their rules for who is a contractor vs employee.
Of course self employed lawyers and accountants don't get caught in IR35
One thing I worry about is the USA government, that seems very keen on extracting taxes from non-rich people, will start plugging up some of the fair tax right offs that 1099 workers get.
The first part of this process, I think, has been the pressure on companies to make people work as W-2 workers. W-2 workers have fewer tax write offs.