Regardless of your personal feelings toward Internet porn, the sysadmins overseeing adult websites know a thing or two about scripting and scalability. For example, keep your database clean, embrace open source for as many commodity components as possible, and only use the latest technology if it adds actual value to your site, not just for the sake of using it.