Ruby Web Server with SSI
For a class I had to write a threaded webserver that would insert a banner at the top of each page (bonus if it was randomly selected) and some dynamic content at the bottom. I chose to do it in Ruby, and was rewarded with about 100 lines less of code than the Java version. See the Java version starting point other students used here: http://fragments.turtlemeat.com/javawebserver.php. It could be a little cleaner, but it’s not too bad. Continue reading