KBD

Keith Devens .com

Thursday, March 18, 2010 Flag waving
The wheels turn slow, but when they do, they grind. – Micah

Archive: August 22, 2002

← August 21, 2002August 23, 2002 →

Daily link icon Thursday, August 22, 2002

Interviewing a programmer

Slashdot: How Should You Interview a Programmer?. Lots of interesting stuff. An abnormally large number of comments on this post.

PHP code beautifier

Man, I was looking for this for a while earlier today. phpCodeBeautifier. Via PHP Everywhere.

I was trying to install PHPortal and for some crazy reason the author put everything on one line. Not everything, but almost. So this would have saved me some time earlier today as I was reformatting his code. I don't know how well it works, but now that I've blogged it I won't lose it Smiley Oh yeah, and "pretty print", to add some keywords I was looking for.

P.S. I was able to get the code readable enough by just using some regular expression search/replaces: s/{/{\n/, s/;/;\n/, and s/}/}\n/ for instance. Just those did what I needed Smiley

Tom DeLay is awesome

He made an awesome speech yesterday. I got to see most of it this morning on C-Span, while I only got to see short clips last night.

CMS To Do List

This is just me thinking out loud again....

CMS To Do List:

  • Have nice URLs
    • So use Mod_Rewrite
    • But see if you can make it optional so as to reduce the requirements
  • Be extensible
    • Modules
    • Templates
      • See if you can integrate Smarty
    • Have an API to access the database. No one touches the database directly.
  • Caching
    • Customizable schedule
      • Per page
      • According to a given action
        • When a comment is posted, regenerate the page
        • When a new weblog entry is posted, regenerate the page
  • Metadata
    • Each document has meta data. Automatically available to any user of the document.
    • As part of extensibility, each module author can store whatever meta data he wants to.
  • Default modules
  • You can stick comments (nested if you want) on anything.
  • Administration
    • Multi-user
    • Customizable permission levels
    • Site-wide data
      • Name of site, administrator e-mail, etc.
  • Any type of document is "revisionable".
    • You can store multiple revisions
    • Go back to an older one, etc.
  • Search: everything is searchable.
    • MySQL is nice to us with a full text search
  • Implementation details:
    • Everything that is user-editable is stored in the database.
      • That way you can edit everything through the web
      • All objects can be exposed through XML-RPC, I suppose
      • Also, an optional daemon will be available that will expose all objects through FTP.
    • Database independence?
      • Target MySQL first, for obvious reasons
      • ADOdb or PearDB?
  • Nice features:
    • You can use StructuredText in any kind of document.
    • This goes well with Wikis, but you can use it for your pages, weblog, etc.
  • And of course, it has to be fast or it's not worth it.

I just read PostNuke's module developer information. It was interesting to read, because I'm taking a completely different approach, at least to data storage.

Everything (except metadata and comments, most likely) will be stored in one "documents" table. Each "module" will "own" a document. What's nice is that if you have a weblog post and you want to reuse the content for something else, you can hit a button to copy it over and make it a wiki page, or an article, or a regular page on your site.

← August 21, 2002August 23, 2002 →
March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.047s.

(Used 7 db queries)