Archive for the ‘Web Development’ Category

The Fun in Metadata

Tuesday, September 27th, 2011
No Gravatar

If you think about your experiences on the internet, you might find that some of the more deeply engaging ones haven’t always depended exclusively on the content you’re consuming.

It’s an elusive concept, that in the world of web development we refer to as metadata. Loosely described, metadata is information and insight into data and how it moves around. Metadata might be the time you visited, how many pages you went to during your visit, what country you’re from or which links brought you to each page. It doesn’t focus on the “what” and “why” so much as the “who”, “where”, “when” and “how”. As web developers, we typically focus on using metadata to return marketing information about visitors or to improve how well web sites are described for search engines.

Symfony 1.4, Component Caching and SOAP

Thursday, August 18th, 2011
No Gravatar

I recently found myself having to get some data from a SOAP service onto a Symfony 1.4 site.  The data consisted of a simple title, location and posting date of the two most recent records from the service.

When accessing a SOAP service – especially when your API access is metered – it’s often a good idea to set up a local cache of the data.  That way you’re not burning your page load times with server-side HTTP requests, using up precious request allotments or concurrent connection limits.  Which means you have to mirror or abstract the remote inside of your app.
Initially my design consisted of creating a local Doctrine 1.2 data model, a handful of application configuration options and then adding some methods to the model and table classes to fetch locally and update the database with forced or timed expiries.

Compressing Transparent PNGs for the Web

Thursday, August 11th, 2011
No Gravatar

Today is a very exciting day: HTML5 Boilterplate v2 came out and I discovered that transparent PNGs don’t have to be massive.

There was one change from h5bp from v1 to v2 that would be easy to overlook: “We feel tools like imagealpha and pngquant, and techniques like using 8-bit PNGs are more useful than using stopgap fixes like belatedpng.”

What’s this? pngquant? Huh? It turns out pngquant is an OS X only GUI for pngnq. What is pngnq? From the pngnq website: “Pngnq is a tool for quantizing PNG images in RGBA format.” I don’t know what that means but it sure can make a difference in your transparent PNG’s file size.

What is Responsive Web Design?

Tuesday, April 19th, 2011
No Gravatar

Your website is being viewed on a huge variety of resolutions, whether your design is ready for it or not. Every day mobile devices are becoming more connected and commonly used to browse the internet. In the past, website owners would strive to have their website displayed the same on as many screens as possible. As smaller and larger screens become more common, it’s becoming important to have your website display in a way optimized for the screen. The question remains: How do we give each size screen its own optimal user experience without creating multiple designs for each project? The answer is through Responsive Web Design.

Simplifying the drawing of forms in Symfony

Friday, February 18th, 2011
No Gravatar

Implementing forms in 2011 is still a challenge, even with a framework like Symfony helping you along. sfForm is great for defining widgets and validators but it sucks at outputting practical markup.

Practical Markup

For me, the ideal markup for a form field looks like:

This gives me a lot of flexiblity for styling. Unfortunately I was never able to find a way to acheive this using formatters, and so I continued on writing very verbose forms. Luckily I grew weary of this and decided to see if I could create a helper to ease the output of forms. The following is what I cam up with:

Curiosity vs Risk

Monday, November 15th, 2010
No Gravatar

Curiosity killed the cat, right? I bet if the cat had anything to say about it, his mindset was still worth it.

I was recently thinking about what drove me to become a programmer when I was asked if it’s hard to write code. I realized that the range of understanding necessary to stop any career from being akin to magic is narrow. With some basic understanding of something, you can start learning the rest of it. I came to the conclusion that programming was one of many occupations that could be a natural good choice for my curious personality.

A JavaScript Implementation of Symfony’s url_for()

Friday, October 15th, 2010
No Gravatar

While developing a UI that makes heavy use of use of JavaScript I found myself sending and receiving Doctrine_Record‘s as JSON. It became tedious making URL’s available for various Symfony actions in JavaScript so I sought to find a way to create a helper like Symfony’s url_for() in JavaScript. This post describes how I made Symfony’s routing available in JavaScript.

Website Design – Right in the Browser

Friday, October 8th, 2010
No Gravatar

Several of my colleagues at the Web Shop have recently independently stumbled upon a couple of articles that talk about an innovative concept: Designing websites right in the web browser. The topic managed to find its way into several conversations here over the last little while, and I thought I would keep the conversation going, and bring it online to potentially include a larger number of people in the conversation.