KBD

Keith Devens .com

Saturday, November 22, 2008 Flag waving
Je n'ai fait celle-ci plus longue que parce que je n'ai pas eu le loisir de la... – Blaise Pascal (Lettres Provinciales)

Archive: November 15, 2003

← November 14, 2003November 16, 2003 →

Daily link icon Saturday, November 15, 2003

It's like beating your head against a wall...

I don't know why I thought things would be different in this round of trying to fuck with PHP until it does what I want.

Now Smarty is doing weird and unexpected things on me. I'm trying to use arrays, and it's "flattening" them... whenever I want to do an operation on the array (such as a foreach loop, or displaying the array variable with a modifier applied to it), it's mapping over the elements of the array rather than letting me use the whole array at once. I've looked at the code and this is exactly what it's programmed to be doing.

This totally blows my mind. Why does everything having to do with PHP just suck?


Seriously, does anyone have anything to say that can make me feel better? Because I think PHP is permanently damaging my brain chemistry.

The sky is falling!

Aaaah!! The sky is falling!

I've been planning on writing a short essay on why I don't think weblog spam in particular, and spam in general, is such a huge problem, long term. Maybe I'll do it here later...

Woo... huge hack!

Man, I don't believe the hack I just had to do to make Smarty to do what I want. I didn't have to modify any of Smarty's code, but it involved a Smarty prefilter that parses a given template for all variable references, then writes out PHP code to execute in the template that calls my CMS to dynamically generate and assign template variables to Smarty corresponding to those variables.

But, this enables the right MVC separation I elaborated earlier. The prefilter overhead is only involved on the initial template parse, and there's really not much overhead for much else. Plus, all this kludgy code I had to write only took a few dozen lines. So all in all it's not too bad.

Manual RSS generation

Manual RSS generation? You have to click a button to regenerate your RSS? Seems like a step back from every other blogging tool that does it automatically.

← November 14, 2003November 16, 2003 →
November 2008
SunMonTueWedThuFriSat
 1
2345678
9101112131415
16171819202122
23242526272829
30 



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

Calif. Supreme Court to take up gay marriage ban

I would argue the point is not​definitional.  While the word​marriage is su...

Justin: Nov 20, 4:37pm

Java join function

Meh, don't have null strings in​your string arrays imo, but you're​welcome ...

Keith: Nov 19, 7:51pm

Girls, please don't get breast implants

sorry but another thing i have to​make a comment on about you​men...the men...

happynow: Nov 17, 11:36pm

Books by Vincent Cheung

to all Cheung​fans:

read:

http://www.progin​osko.com/aquascum/cheung.h...

Zamir: Nov 16, 9:07am

Generated in about 0.33s.

(Used 7 db queries)

mobile phone