It is difficult for a company to successfully show that your LLC was at fault for some large dollar amount of damages, but that you the sole decision maker running that LLC, weren’t at fault through negligence or malpractice.
My point is not that you shouldn’t bother to protect yourself if you are worried about the risk, but that insurance, not an LLC is the best way to do it. By all means start an LLC too if you want.
The common advice of that every tiny business setup an LLC because it will save your house is wrong because it is only applicable to very specific circumstances that don’t apply to most sole proprietors. It’s also dangerous because most people that take this advice take it face value. Then they go online, start an LLC, and believe they are protected from all personal liability related to their business. When in fact they are protected from a very small fraction of likely potential liability.
An LLC can protect your personal assets from enforcement of contractual obligations. Say for example you agree to indemnify your client against patent infringement, and then through no fault of your own some of your code coincidentally happens to violate someone’s patent (and the patent holder finds out and successfully sues or settles with your client).
But don’t sign contracts like that in the first place. And it’s a good idea for contracts to have a clause allowing both parties to terminate the contract and to not make promises in your contract you can’t guarantee.
> As a software developer you’re unlikely to be sued over anything that can’t be classified as personal negligence or malpractice.
Unlikely doesn't mean never. And a client's definition of negligence might also be malicious.