KBD

Keith Devens .com

Thursday, December 4, 2008 Flag waving
I was always told, that if I ain't gonna be part of the greatest, I gotta be the greatest... – Busta Rhymes
← s/experimental/extension/Escher in Lego →

Daily link icon Sunday, January 12, 2003

PHP stuff

Via PHPEverywhere, news about PHP 5, some of which I hadn't heard before. Also via PHPEverywhere, an article on How to use the PEAR ITX templating system. After reading it, I'm definitely sticking with Smarty.

I also have to check out phpApp, via revjim, and dbForm, via Dean Peters.

← s/experimental/extension/Escher in Lego →

Comments XML gif

Diego A. wrote:

What were the top things you did not like about the Pear ITX templating system?

∴ Diego A. | 12-Jan-2003 10:07pm est | #1261

Keith (http://www.keithdevens.com/) wrote:

I'm in a hurry, so real quick off the top of my head:

  • A templating system has to have compiled templates. JSP is compiled into actual Java code as a Servlet, for example. Smarty compiles into real PHP code. No way I'm putting up with the overhead of parsing a template (Not even in C (fast), but in PHP (slow)) on every request.
  • I didn't like the block system. The author's statement about it that even within a block, if a variable has the same name as another one in a different block ITX can still get confused made me really comfortable about the design of the system.
  • The only advantage it had over Smarty seemed to be that the author claimed it was "smaller" and "lighter". It may have fewer features, but it's clearly "heavier" because it has to parse the template on every invocation.

Smarty has caching built in (a plus). The article mentioned something about it, and seemed to indicate that Smarty's system wasn't adequate because it only had time-based expiration, but I don't think it outlined why this was bad nor any alternative to this that ITX offers.

Anyway, all that was enough for me to not be interested in ITX. Plus, I'd never heard of it before, while Smarty is very well known. Smarty wasn't too "heavy" for me, and wasn't difficult to install at all, although getting the permissions right was a little bit hairy, but not difficult once you know the answer (thanks to revjim Smiley).

Keith | 12-Jan-2003 10:49pm est | http://www.keithdevens.com/ | #1262

Diego A. wrote:

Wonderful. I guess Smarty will have to do. Do you like anything from pat (Php Application Tools)? In the past, I wanted to use most of their stuff, but -after a while i came to the conclusion that Smarty, ADOdb, and your XML-RPC implementation takes care most of the more important stuff.

∴ Diego A. | 13-Jan-2003 1:56pm est | #1264

Keith (http://www.keithdevens.com/) wrote:

Thanks for the link, some of the stuff looks neat. I'll have to look at it in more detail later.

Keith | 13-Jan-2003 11:31pm est | http://www.keithdevens.com/ | #1265

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)
:

December 2008
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 4 posts

Recent comments XML

Girls, please don't get breast implants

I have 34 A breast but at 22 years​old they seem to be growing again​which ...

76.64.120.153: Dec 3, 10:00am

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Generated in about 0.193s.

(Used 8 db queries)

mobile phone