Over the last few years, I’ve found myself leaning on a useful new code smell I’ve stumbled across, one I call being "Polluted by the Precipitant."
TypeScript makes it easy to eliminate potential sources of error. We’ve been using some simple techniques to do this with permissions checking.
Dependencies are liabilities, and not all of them are worth the risk. The next time you're deciding whether to add one, ask yourself these six questions.
The next time you feel frustrated with someone else’s code that you need to change, first make sure you’re not actually the source of the problem.
Want flexible, extensible APIs that can work with a many concrete types at runtime? Use this pattern to create APIs that are precisely typed and flexible.