[]RSS

[ Here: About | Archives+Tags | Artwork | Resumé | Contact ] [ Elsewhere: Comic | Projects | Philosophy | Work ]

Page load time optimization

[Comment]

October 31st, 2006 in Links

A clear analysis of page load time optimization techniques. The most interesting bit I found:

“consider evenly spreading those objects over four hostnames … (resulting in) average latency dropping to about 1/4 of what it was before”

Tufte and the web?

[Comment]

October 30th, 2006 in Links

Translating Tufte to the web.

Securing SSH

[Comment]

October 30th, 2006 in Links

A reasonable set of tips for securing ssh (via marc.abramowitz).

Ubuntu and Firefox

[Comment]

October 29th, 2006 in Links

Mark Shuttleworth explains Ubuntu’s position on the Firefox licensing issue. I’m glad Ubuntu took the time to work it out.

Wordpress 2.0.5 released

[Comment]

October 29th, 2006 in Links

Wordpress 2.0.5 was released today (some of the changes).

Geeky six word shorts

[Comment]

October 29th, 2006 in Links

More uber-short stories, this time they’re six word shorts about programming languages.

MySQLi newsgroup

[Comment]

October 29th, 2006 in Links

Google groups has a MySQLi group.

Php database interfaces

[Comment]

October 29th, 2006 in Php. Weblog

bambooLet’s face it, the default Php MySQL interfaces are pretty weak. A few of the shortcomings:

  • No prepared statements
  • In lacking prepared statements, requires the use of escaping functions for any SQL containing POST/GET variables
  • Read functions overwrite duplicate column names in returned data when reading rows from joined tables
  • Has a very verbose API, with many long parameter lists
  • Is not class based, so everyone bakes their own abstraction

Compared to the Perl DBI, for example, Php’s mysql_ functions are absolutely horrid. Luckily there are many great alternatives, as I discovered this weekend with a bit of research.

The PDO

Php’s PDO functions are similar to Perl’s DBI, sporting a reasonable API and supporting a number of databases.

Php’s improved MySQL functions

Php has an improved set of MySQL functions (the mysqli_ functions) that add both a simple class wrapper and a parallel, improved API. The new API supports prepared statements, and has a cleaner interface layout. The new APIs still munge the fetch_assoc functions (they still overwrite), but are otherwise a great improvement.

The improved MySQL functions are only available in Php 5, and I’ve read warnings that it’s a pain to run both the msql_ and mysqli_ functions from one Php installation.

Pear’s MDB2

The MDB2 package from the Pear repository replaces their previous DB package, and provides a similar interface to Perl’s DBI. I find the interface a bit bigger than my needs present, but it is a very complete and mature abstraction.

In the real world

All of these libraries are available on most platforms and from most reasonable webhosts (like Dreamhost).

My first choice so far is the improved mysqli_ class/functions, then the built-in PDO library. I’ll spend a few weeks with them and then post a follow-up.

“Getting Real” from 37Signals

[Comment]

October 28th, 2006 in Links

If you haven’t read Getting Real from , you should. It’s the way of thinking about business and software, with a sense of balance that’s downright respectable.

HOWTO: Scare off good developers

[Comment]

October 28th, 2006 in Links

A few ways to scare off good devs. The short version: developers are smart, they’ll see your impositions and mis truths quickly.

Next page [>>]