2 ms·
> They let people concentrate on the actual business logic, not sprinkling little bit of business and error handling logic all over the place This can lead to
by MaxBarraclough 2y ago
> They let people concentrate on the actual business logic, not sprinkling little bit of business and error handling logic all over the place
This can lead to trouble if the programmer doesn't keep in mind that various (but perhaps not all) operations can throw. In particular, proper behaviour in the exceptional case may require a more specific order of operations than is needed for proper behaviour in the normal case.
Raymond Chen did a great blog post on this in 2005, Cleaner, more elegant, and harder to recognize. [0][1]
[0] https://devblogs.microsoft.com/oldnewthing/20050114-00/?p=36693 https://devblogs.microsoft.com/oldnewthing/20050114-00/?p=36...
[1] https://news.ycombinator.com/item?id=406391 https://news.ycombinator.com/item?id=406391