top | item 37829358

(no title)

brickers | 2 years ago

Re: data from another of your own systems. If there’s an interface between them that suggests you probably want those systems decoupled. Maybe in the future you replace one system with another you don’t control - ideally it would be nice not to have to make code changes because of that.

Re: asserting on user input. If you assert only then what happens on bad inputs when asserts are switched off in prod? Seems like an outcome you’d like to control at the time rather than allow to propagate (by writing bad data to a db and only being discovered months later, for example).

discuss

order

0xDEAFBEAD|2 years ago

>what happens on bad inputs when asserts are switched off in prod

Good point