Dave's Brain

Browse - Programming Tips - How was Dave's Brain implemented?

Date: 2006nov6
Keyword: daves

Q.  How was Dave's Brain implemented?

A.  The articles are stored in folders that group them into
categories.  They are mostly plain text files.  The application,
written in PHP, pretties up the text files based on a few simple
rules when displaying them.

It's LAMP without the MySql which makes LAP, I guess.

That's pretty much it.  Simple is good.

The searching is reasonably fast because there aren't that many files
and because Linux probably has the files cached.

There are an number of amazing things that come for free when you
use a filesystem has a "database":

- Each file must have a unique name
- You can easily edit or spellcheck any file
- Your program can easily read any file
- They are listed in alphabetical order by default

We employ OpenID for the login.  We used the SimpleOpenID php
class from http://www.fivestores.com
OpenID has a number of nice features:

- Maybe the user already has an OpenID (user friendly)

- If the user doesn't have an OpenID we thing they are more
  likely to go to the trouble of getting an OpenID than
  a Dave's Brain login.

- We don't need to keep a database of users

- We don't need to make pages for users to register, recover
  their passwords, edit their profile, etc.

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.