Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

Mountains, reporting and the developers bias

http://www.alistapart.com/articles/mountaintop/

Kind of cool.  I’m still trying to think of a valid application for it, but it’s undeniably cool.  I can’t see how it would work with any kind of dynamic content, and that’s the only place it would be justifiable – if there is static content, use static images which fit with your design, save your masters with layers, and all is good sans special CSS code (which, might I add, is actually more time consuming than manually editing four images if you’re using layers appropriately) and browser quirks when it comes to standards compliance (although I believe that this particular thing should work on pretty much anything under the sun without any significant problems… please, feel free to prove me wrong).

If it IS dynamic, and you’re using a sitewide CSS definition, then, well, you’re screwed if you ever want to use it for anything else than the purpose for which it was originally defined (i.e. a thematic kind of graphic, such as that  – revealing an application for the potential inclusion of page-specific CSS code (worth looking at, I shall examine that one more closely later, if I remember to), but doing little else.

I wonder if it’d be possible to use that for really cool graphs with PHP… thinking of course of using GD and various things to plot points… I can’t for the life of me remember if it does GIF output (the only reliable cross-browser image format with transparency – PNG is technically superior, of course, but a certain browser… has issues rendering transparency with it correctly) with transparency.  It handles transparency internally (i.e. in processing stages) well enough, though, so graphs could always be overlaid on fancy background images (much the same way as my dynamic news titles simply consist of text with transparency overlaid upon a static background image).  And that, of course, nullifies the validity of using CSS for special backgrounds.

This has some interesting applications, especially in the field of traffic reporting, marketing and the like – the difference between using a simple, default, black on white PowerPoint presentation and a styled, themed, coloured one is, of course, the interest it attracts.  Now, graphs can get pretty boring.  And editing graphs to put into a document of any kind (I only say PowerPoint because that is something that is on my mind at the minute) can be somewhat tedious – unless, of course, the graphs come pre-generated and styled appropriately for use with predefined document styles.  Which this allows to happen.

Even if it were something as simple as a corporate watermark (i.e. if a web developer was to report on the success of a website or other electronic promotional venture) for use in reports – GD is well equipped to handle this.  Coloured backgrounds, and even images as backgrounds, don’t require any significant complication of the process.Reports that clients can access without any intervention required, generated on the fly (no month-old data here – site hits and session lengths and membership applications and whatever else is required may be stored in a database – this is a concept I had working over 12 months ago, but haven’t done anything with yet), complete with branding and in accordance with whatever document styles either the client or the development house dictates.

Sound cool?  Yeah, only to the web developer geeks out there, and those in marketing.  I’m a fair way from the subject of CSS right now, aren’t I?  Just goes to show, there is more than one way to solve a problem… my server-side bias has led me be inclined towards this solution.