Posts Tagged web development

Progressively enhancing your CFWheels form with nested properties and jQuery

We all find ourselves in this situation from time to time: we want to code a form that contains a “main” record and a collection of “nested” records. We want some JavaScript-powered form controls to add to and remove from that collection of nested records. Clicking the submit button then saves the whole thing.

This post will cover a fairly standard CFWheels solution using nested properties and a sprinkling of jQuery.

Read the rest of this entry ›

Never output anything to a browser without using a formatting filter

Cross-site scripting (XSS) vulnerabilities can be quite a serious problem if you’re not careful. And if you’re using a framework like CFWheels, you need to be extra careful to protect your output from rendering malicious content.

In this post, I suggest that you must always use a formatting function like EncodeForHtml, DateFormat, or NumberFormat when outputting any dynamic value.

Read the rest of this entry ›

2 types of web developers

I’ve had this sense that there are 2 different types of web developers: artists and robots. “Artists” can think abstractly and design solutions that really feel good. “Robots” obsess over details that often don’t end up mattering to anyone other than themselves.

There are trade-offs to working with either though. Read on to find out what they are.

Read the rest of this entry ›

CAPTCHAs with a purpose

reCAPTCHAAs a user of the Web, you’re probably familiar with CAPTCHAs. They’re the little word puzzle with the squiggly letters that you are required to type in when signing up for various services.

It’s estimated that 60 million CAPTCHAs are solved around the world each day. In light of this, Carnegie Mellon has created a program called reCAPTCHA that actually puts all of this superfluous work to use.

Read on to see what this is all about and how you can help out.

Read the rest of this entry ›

Netflix and its 2 week design iterations


User Interface Engineering wrote an excellent article about how Netflix publishes changes to their site every 2 weeks. Highly recommended. I’m envious of Netflix.

Read the rest of this entry ›