Writing junk in a text file isn't the hard part.
It can be very hard to determine if an isolated patch that goes from one broken state to a different broken state is on net an improvement. Even if you were to count compile errors and attempt to minimize them, some compile errors can demonstrate fatal flaws in the design while others are minor syntax issues. It's much easier to say that broken tests are very bad and should be avoided completely, as then it's easier to ensure that no patch makes things worse than it was before.
The diffusion model of software engineering
That doesn't mean we can usefully build software that is a big, tangled mess.
I mean by definition something that doesn't build and run doesn't have any browser-like functionality at all.