Gas costs - When one is learning to program in a given language, you typically write a simple program often known as the "Hello World" program. Last week I bought a pair of books on Javascript and DHTML. These are two web technologies that enable web pages to update themselves without intervention from the remote web server. The webnotes and about pages use a lot of it. All computation and updating happens within the visitor's browser.
I was debating what my "Hello World" would be. I was thinking about how much people obsess about the cost of gas. While I admire concern for reducing emissions and dependency on foreign oil (and fossil fuels in general), I've often thought that fuel costs are a small percentage of the cost of using a car per month (or per mile, take your pick). So I decided to write a bit of code to dynamically compute that on the viewer's web browser. It's not finished yet so it may have some hiccups, but I'll polish it over the next couple of days. In particular I want to add a section that computes cost per mile.
In order for the form below to work, you must have Javascript enabled in your web browser. Most browsers have it enabled by default. To use the form, just edit any of the fields above the "Compute" button. I based some of the default values below on my 1998 Honda Accord EX-V6 (a cheapskate's Acura), as if I were going to sell it now. Note at the bottom it shows what happens to your overall costs every time gas goes up a dime. I was also thinking about computing what happens if somehow you were able to magically double your miles per gallon, since everyone is into hybrids these days. Just like gas price hikes, the impact isn't that big. There's numerous numbers games your could play with once you get the initial values in.
In my case insurance is cheap (I'm married, with children, in my late 30's, no insurance claims in over a decade and a half) but annual maintenance on the car is going up due to its age. My car is no econobox, fuel efficiency-wise, but it's not a Hummer H2. It seems to me that fluctuations in gas prices are insignificant compared to the impact of holding onto your car an extra year or two. People always seem to think that high gas prices really shaft the owners of monster SUVs, but their primary source of hurt is just the cost of the vehicle, especially if their vanity keeps them buying new ones every few years. High gas costs just put a little salt on their wounds.
Hah, I remember those "Hello World" programs. Had to do them for my C++,VB and Java classes.
Posted by: CHris at May 28, 2005 06:40 AMI don't know if you tried that "Hello World" link at Wikipedia. If you scroll down a bit it had lots of examples of "Hello World" in a variety of computer languages.
http://en.wikipedia.org/wiki/Hello_world
Posted by: Scott at May 28, 2005 06:51 AM