Assertion
How to use assertion to debug JavaScript: write your own assert function that throws an exception when an expression evaluates to false.
Why string concatenation can hurt JavaScript performance and how Array.join() and string.concat() compare when joining many strings together.
A roundup of ten MySQL tips and tricks from DevChunks, covering performance, backups, benchmarking, partitioning, security and remote access.
How to remove obsolete privileges and unused accounts in MySQL with DROP USER and an INFORMATION_SCHEMA query that finds grants for missing databases.
How to enable and control remote access in MySQL: edit my.cnf, grant access per host, open TCP port 3306 with iptables, then test the connection.
Practical steps to secure a MySQL server: patch the OS and MySQL, set strong passwords, remove unused accounts and restrict TCP/IP connections.
How tightening up your MySQL schema improves performance: choose correct field sizes, normalise sensibly, then denormalise only where needed.
How table partitioning in MySQL improves performance, the difference between horizontal and vertical partitioning, and an example CREATE TABLE.
How to isolate slow MySQL processes using mysqlreport, the slow query log and mysqlsla so you can find and rewrite your worst performing queries.
How to benchmark a MySQL application using the Benchmark() function and the sql-bench and crash-me scripts to find and fix performance bottlenecks.
How to automate MySQL database backups with the AutoMySQLBackup script, schedule it with cron, and test that your backups actually restore.
How to improve MySQL performance as your data grows, starting with hardware and RAM, then optimising your code, queries and connection use.