11:05, Wednesday 9 Aug., 2000

This objects/methods things is a bloody pain. Web application design is a bloody pain. UI -- that's a bloody pain too. Steps, or, a web application howto:

  1. User interface
    Think about what the user wants to be able to do. Make it really simple. Don't even consider what programming the bastard thing will then entail.
  2. Front end scripts
    The code on the front end should be barely more than augmented html. At this point you consider where your loops are and decide on your method calls for your back end. Do not at any point think about the programming. No referencing of data-structures; no subroutines. Simple simple simple.
  3. Database
    Now shift your attention to the database. Think about what data you have, where the relations are, and design tables which will minimise accesses, remove any replication of data, and inevitably bear no resemblence at all to the user interface. Still: Don't think about the programming.
  4. SQL
    You have to pull and update database data with elegant SQL that, again, minimises database accesses. Good database accesses are very important: There are risks here in data integrity so look out. The importance of it means you can't distract yourself by thinking about the back end yet.
  5. Back end
    Finally! On one side you have a user-interface designed for the user, and therefore the object methods you're going to use are already defined, with no thought to how you're going to program the damn thing. On the other side, your database structure is already decided. Your job is to tie the two together, making best use of abstraction and inheritance to allow easy extensibility. You may now begin thinking about the programming.

Apparently the payoff is magnificent, but to be honest I can think of things I'd prefer to be doing.

Interconnected

A weblog by Matt Webb, CEO of BERG.

You're probably looking for my email address or the syndication feed.

You can get updates to this blog on Twitter: follow @intrcnnctd.

I'm @genmon on Twitter. Also find me on Flickr and LinkedIn.

Continue reading...

The 8 latest posts are named FuelBand for alpha waves, Science questions, Belief and desire, After I die, Decision fatigue, Instagram as an island economy, A slow savings account, and Peak Attention and the DuPont Equation.
Read them.

Archives

2012 May, April, March, February, January. 2011 May, March, February, January. 2010 December, January. 2009 February. 2008 December, November, September, August, July, June, May, April, March, February, January. 2007 December, November, October, September, July, June, May, March, February, January. 2006 December, November, October, September, August, July, June, May, April, March, February, January. 2005 December, November, October, September, August, July, June, May, April, March, February, January. 2004 December, November, October, September, August, July, June, May, April. 2003 December, November, October, September, August, July, June, May, April, March, February, January. 2002 December, November, October, September, August, July, June, May, April, March, February, January. 2001 December, November, October, September, August, July, June, May, April, March, February, January. 2000 December, November, October, September, August, July, June, May, April, March, February.

Interconnected is copyright 2000—2011 Matt Webb.