Common MySQL Queries – For when you can’t remember how to do “that thing”

Software Development has a habit of throwing up the same problems again and again. Subtle variations abound, but I have always believed that with a few core programming techniques most problems can be solved. In an eighty/twenty world, only twenty percent of problems are interesting and only twenty percent of those require a truly original or innovative solution.

The trick is identifying the underlying problem, or design pattern, that you are dealing with and then applying your tried and tested algorithm. Of course, it helps a great deal if you can remember the precise code for that algorithm.

That’s where sites like “Common MySQL Queries” come in. A fantastic repository of general purpose algorithms for common, and not so common, problems, it is something that any developer working with MySQL should have bookmarked. The majority of the code is portable to other RDBMS platforms, but it is “cut and paste” simple for MySQL.

This has been a public service announcement on behalf of people who can’t remember how to “do that thing they did last time”.

#tweetcoding = A piece of flash code in 140 characters or less

In these days of bloated software that requires multi-gigabyte installs, websites that take an age to load even on a 24 mbit connection, and keyrings that have more storage capacity that it was original thought was required to hold the world’s knowledge … it’s nice to see some standing up for elegant, efficient coding.

Congratulations to all of the #tweetcoding round 1 winners.