KBD

Keith Devens .com

Sunday, July 20, 2008 Flag waving
And we know that in all things God works for the good of those who love him, who have been... – Paul (Romans 8:28)
← Kung-Fu WisdomTwo types of Smallville episodes →

Daily link icon Sunday, March 30, 2003

WebWork tutorial

Via Raible Designs, check out this WebWork Tutorial. It does make it look easy.

After reading this I think I'm just about conceptually ready to write the "Actions" parts of my CMS that do form processing, validation, etc. Then I'll finally be able to write the backend for my CMS.

Some of the things in that tutorial make me jealous of some of the features PHP doesn't have. Like clean iterators. Instead of being able to say

#foreach($error in $errors)

I have to say stuff like:

while($error = $errors->next()){

but PHP5 will allow you to make standard iterators.

Other stuff that PHP 5 will have that I want are interfaces/abstract classes and access protection (PPP). In my CMS I've been wanting to have similar classes derive from a base class (all Modules are derived from Module, all Iterators are derived from Iterator), etc. Regarding the Actions in this article, I'd like to have all actions inherit from a base Action class so that all Action subclasses are forced to implement methods like "validate", etc. But there's so much less incentive when there's nothing to force a derived class to implement methods in an abstract base class or interface.

So yeah, I'm looking forward to PHP 5.

← Kung-Fu WisdomTwo types of Smallville episodes →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

July 2008
SunMonTueWedThuFriSat
 12345
6789101112
13141516171819
20212223242526
2728293031 



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

Spider solitaire

To answer an earlier question, I am​almost certain every game can be​beat. ...

Jared: Jul 16, 2:20pm

I hate Norton Antivirus

I HATE NORTON ANTIVIRUS IT SUCKS I​GOT AVG IT ROX! AGES TO DELETE​NORTON AN...

wade: Jul 15, 1:44am

Generated in about 0.117s.

(Used 8 db queries)

mobile phone