Abuse of forms

18th of April, 2008 Håvard Comments are closed WWW , Thoughts ,

The most common way to get input from users when dealing with web pages is through forms of some sort. At the same time there are an amazing number of forms that has been designed without the user in mind at all. This is where a site starts to remove itself from the very reason they exists; their users. After a few years doing web programming and being an active user of the Internet I've both done some rather nasty mistakes myself and I've seen some of the school-examples of how not to do forms. Web pages are about one thing, and one alone; to serve your visitors. It's a one way street where it's all about making the most out of the short moment that your users are interested in your site.

From the web developer perspective I can understand why these solutions are used; they're easy to control. Computers don't know what to expect so they will accept more or less everything -- databases won't.

If a user is typing her phone number with spaces or land code a simple integer-field in your database won't do much good. But that's your problem, not the users. Chances are that they couldn't care less about your database setup, nor should they! Most users will type their phone number in a way that they can easily check to see if it's correct. Some of them will even type it with spaces in order to make it easier for you to read when you're trying to contact them. After all, the user did bother to fill out a form and likely she wants to get something in return -- like a call.

The key to a good form is to be as simple and concise as possible. Fill out this form and then move on. Simplicity is key! If you've done a good job with your forms the users might even not notice that they've filled out a form. Sharing information, such as e-mail address or a phone number, is key to starting a dialogue. Once that first step has been taken the rest should be easy -- the user has shown interest.

Small snippets of code work miracles, if they're only good for you and your database chances are that they're no good at all. Technology is only useful when it's helping people. Remember that you and your site are dependent on your visitors. Why not be nice to them?

Snippets

12th of April, 2008 Håvard Comments are closed WWW , javascript , php ,

Every time I start on a new coding project I roam through past projects, hunting for useful snippets of code that'll solve whatever it is that I'm currently doing in a faster and more efficient way. This goes for both CSS-hacks, PHP-hacks and JavaScript-hacks. However, roaming through all the different projects for just the right code snippet takes too much time away from what I'm currently doing and there's a limit to how much scavenging I feel like doing.

No more of the scavenging! I've collected some of my most useful code snippets, gathered them in one place for everyone to see and enjoy. Some of the code snippets are from PHP.net user comments and some are hand crafted by yours truly. Feel free to browse the collection and if you have any useful additions to it I would love to hear about them in a comment. 

I have tried my best to give credit where due, but nobody's perfect and I would really appreciate it if anyone has any comments as to where the snippets are from. Feel free to use the snippets wherever you like, a small comment as to where you found the snippet would be considered as an added bonus on my part.  Have look-see at http://hvassing.com/snippets/.

Comments about improvements, critique or additional snippets would be much appreciated.

Login. If you can.

14th of March, 2008 Håvard 2 comments WWW , Randomness ,

I'm currently working on a web project that will become the company's online office with all their internal information stored and documentation for each of the projects they are working on. There aren't many requirements for this project, it just have to work. No hassle. No thinking. Just work. The login is simple, but what about if they should forget their passwords, or even their username?

Basecamp - Login Basecamp - Forgot username or password

Beanstalk - Login Beanstalk - Forgot password

Mint v1 - Login Mint v1 - Forgot password

Mint v2 - Login Mint v2 - Forgot password

Wordpress.com - Login Wordpress.com - Forgot password

Wordpress 2.3 - Login Wordpress 2.3 - Forgot password

Buy a word

28th of February, 2008 Håvard 3 comments Links , Randomness ,

You can buy pretty much anything you like these days -- even words. If I'd had any sort of imagination or even a hint of creativity I would've bought a word like serendipity like Pamela did, or Caramba in honour of Bart. I ended up buying Ceres, after the Roman goddess of agriculture, and gave it to my brothers company, Ceres Engineering Ltd.. They're not doing anything even remotely close to agriculture, but rather creating and innovation.

In Roman mythology, Ceres was the goddess of growing plants (particularly cereals) and of motherly love. Her name derives from the Proto-Indo-European root "ker", meaning "to grow", which is also the root for the words "create" and "increase".

The second word I bought was backpack, which I gave to Jason Fried, the company founder of 37Signals. Not sure why, just seemed like a good idea to give it to him rather than having someone else buying it and sell it for a hefty sum later on.

John Gruber bought Fireball (go figure) and Jiminy. What did you buy?

Side notes

  • Equation bookshelf (1)

    I’m so going to make me one of these during my vacation!

    Equation bookshelf

    ‘Equation Bookshelf’ is a simple idea of to divide things in priority order… put together the books that you need immediately or more important between (parentheses)! Set others between [square brackets] and{braces}.

    From: http://estudiobreder.blogspot.com/2007/11/equation-bookshelf.html

  • Trying something new (2)

    Just for the fun of it, I’ll by trying out Google AdSense on the site for a limited period of time. If it’s a success I’ll keep it there, if it’s just a hassle and nothing good comes out of it - it’ll be gone like the wind in no time!

    In the beginning it’ll be located on the left hand side of the site, just below the search-field. If anyone has any thoughts about how it works or if it doesn’t work at all - just let me know.

  • I wish…

    I wish I was this creative http://vimeo.com/280260.

  • Helvetica, the film

    I just pre-ordered Deluxe Limited Edition DVD of the movie about the typeface Helvetica. It will only be made a thousand copies of this limited edition, and it includes a lot of fancy stuff as well. The question that keeps coming back to me is; why would anyone want to make a movie about a typeface.

    If you like typography and graphic design, have a look at The Helvetica Film and maybe pre-order a copy of your own.

    Helvetica is a feature-length independent film about typography, graphic design and global visual culture.

  • 8 weeks worth of spam…

    8 weeks worth of spam is approximately 7795 comments, that’s close to 140 spam comments per day. Chances are that I’ll have to moderate them one by one, as the “Awaiting Moderation”-page times out when trying to bulk moderate the comments. Jolly…

  • iTunes 7.2 out

    Apple just released iTunes 7.2 which includes some enhancements for DRM-free music.
    With iTunes 7.2, preview and purchase iTunes Plus music—new higher-quality, DRM-free music downloads from participating music labels.
    The update is a part of the new iTunes Plus — see the press release.
    Apple® today launched iTunes® Plus—DRM-free music tracks featuring high quality 256 kbps AAC encoding [...]