29 karma · joined February 7, 2015
You as a developer, are paid to do the thing. Where money lies, only solutions exist no problems.
Both can exist at the same time and be usefull.
try {
throw new Error("catch me !"); // force try to fail
} catch (catchedError) {
console.log("inside catch");
// throw new Error("hmm");
} finally {
// always executed
console.log("inside finally");
}
// always executed
console.log("after try catch finally");
the finally statement can be useful when another error is thrown inside the catch block, in which case you have more serious problems in your codeYou can also disable JS entirely.
It is not taught enough in classic computer science classes (what I did) to reuse existing patterns/RAD/frameworks
Also it is to an extend automated: ui libraries, widgets, SQL/NOSQL, admin interfaces etc are existing and could be viewed, as automation.
I guess this can be useful, to load extra functionality at run time, in very big single page application.
> We say that history is written by the winners. That is sometimes true. We have no Carthaginian accounts of their war with Rome; few historians today have much sympathy for Hitler. But the thread that seems to connect many of the great histories of the pre-modern world is that they were written by the losers.