Tuesday, March 8, 2016

2 dangerous silent failures - IN PHP and JS

In PHP , PDO/MySQL can fail silently (with just a warning "MySQL has gone away"), after a connection timeout......

In JS, Promises (even RSVP ones) can eat your exceptions. You can fix this by adding a .catch() after .then() (in a chain). Otherwise, code stops at error, and the console is empty.

SILENT ERRORS - the worst nightmare of all programmers.

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...