Skip to content

Puffbox

Simon Dickson's gov-tech blog, active 2005-14. Because permalinks.

2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007 | 2006 | 2005

Code For The People company e-government news politics technology Uncategorised

api award barackobama barcampukgovweb bbc bis blogging blogs bonanza borisjohnson branding broaderbenefits buddypress budget cabinetoffice careandsupport chrischant civilservice coi commentariat commons conservatives consultation coveritlive crimemapping dailymail datasharing datastandards davidcameron defra democracy dfid directgov dius downingstreet drupal engagement facebook flickr foi foreignoffice francismaude freedata gds google gordonbrown governanceofbritain govuk guardian guidofawkes health hosting innovation internetexplorer labourparty libdems liveblog lynnefeatherstone maps marthalanefox mashup microsoft MPs mysociety nhs onepolitics opensource ordnancesurvey ournhs parliament petitions politics powerofinformation pressoffice puffbox rationalisation reshuffle rss simonwheatley skunkworks skynews statistics stephenhale stephgray telegraph toldyouso tomloosemore tomwatson transparency transport treasury twitter typepad video walesoffice wordcamp wordcampuk wordpress wordupwhitehall youtube

Privacy Policy

  • X
  • Link
  • LinkedIn
  • 15 Jan 2007
    e-government

    Inflation-busting web gadget

    If you’ve ever wanted to calculate the value of something in real terms, removing the effect of the inflation rate over time, it can be a real pain. So I finally got round to building a little web app which does precisely that – for prices as far back as 1750. Why? Because I fancied the challenge.

    You can use it in two ways. One is the ‘Time Machine’, taking the price of an item for a given year, and calculating the equivalent price for a different year, based solely on the effect of inflation. So for example, I remember CDs costing 12 quid each in the mid-80s. If they had kept pace with inflation, they should now be costing nearly double that.

    To calculate the ‘real terms’ movement in an item’s price, removing the effects of inflation, there’s also the ‘Up or down?’ tool. Type in a ‘before’ year and price, and an ‘after’ year and price, and the tool tells you the percentage rise or fall over that period.

    It’s all relatively simple, I suppose, but I’ve used it as an opportunity to experiment with some exciting new technologies: namely Scriptaculous, Prototype and a bit of Ajax. It uses some basic PHP to do the various data lookups behind the scenes, rather than any database. I’m especially pleased with the slider controls to let you select a year (with conventional text boxes if you don’t fancy that). The design is a bit old-school, but it wasn’t meant to be a design challenge. 🙂

    Update: It’s entirely coincidental that this should be on the same day that ONS launches its own interactive personal inflation calculator, with the aim of ‘(allowing) individuals to see how differences in spending patterns affect inflation rates.’ It’s all done in SVG, but I’m having real trouble using it in Firefox. Surely plain old HTML (souped up with ajax goodness), with a dash of Flash if necessary, would have been better?

    There are a few documents explaining all about it available from here but be warned, you’re going to face usability issues, with or without documentation. (Simon’s first law of usability: if it needs instructions, it’s too complicated. A two-page PDF is a pretty spectacular breach of this law.)

    Response

    1. stelt
      16 Jan 2007

      Flash is binary, proprietary and inaccessible in many ways.
      So it’s quite unlikely a dash of it would be better

Proudly Powered by WordPress