0xfadedace
Re:How to reduce the cognitive load of your code
on Tuesday March 29, 2016 @11:07PM (#11386685)
A convention I've seen in Java libraries and that I'm fond of is:
public sort() {
preconds()
try {
doSort()
} catch (ex) {
handle(ex)
}
postconds()
}
private doSort() throws Exception {
// core impl
}