Implicit Evaluation with PHP

Implicit Evaluation with PHP Archives: Compatibility

next page ·

15 March 2007

Comparing monolithic controllers with task-based controllers

While learning to program with MVCs, design questions like “what should be covered in a given controller” and “how many controllers do I need?” arise. After reading this, you’ll learn how to determine the answers to questions like those.

continue reading... » 0 Comments

31 October 2006

Modifying Recursive Data Structures in PHP

I’ve been working on code to allow pure HTML pages to be used as the source code of templates. Compiling this HTML mandates the use of a recursive data structure to form a tree of HTML tags and to preserve the textual content of the page. It’s reasonably easy to do in PHP5 because of […]

continue reading... » 2 Comments

2 October 2006

PHP and Perl Comparison

Today’s post is more practical than usual. A few weeks ago, I discovered a functional comparison between PHP and Perl authored by Professor Alva Couch of Tufts University. It struck me as a very useful resource, so I updated the PHP column to PHP5 (it was PHP3) and added all the function documentation I could […]

continue reading... » One Comment

26 September 2006

Variable Numbers of Arguments in PHP

There is a problem which infrequently appears in nearly every programming language: calling a function with a variable number of arguments. It is interesting from both sides of development: if you’re writing a function, how will you collect variable numbers of arguments? If you’re consuming a function, how will you provide the arguments?
Much of the […]

continue reading... » 0 Comments

20 September 2006

Difference between a post and a submission

ASP.net features, by default, a wonderful thing called a viewstate which I wrote about on Monday. However, viewstate is just one technology ASP.net uses to make development on that platform easy. Another is the postback. Postbacks aren’t really a technology at all, just a re-factoring of the general submission patter that’s been around since CGI […]

continue reading... » 0 Comments

18 September 2006

A Viewstate for PHP

One of ASP.net’s most attractive features is the viewstate. It is a convienent way to store arbitrary data in a persistent mechanism. In fact, it’s rather like PHP’s $_SESSION array.
There is, however, one difference. $_SESSION is unique to a user but is reused across pages. With only one window to your website, the two preform […]

continue reading... » 0 Comments

14 September 2006

Objects and Arrays in PHP

In PHP, Objects and Arrays are very similar. Objects can easily be cast as an array with get_object_vars, and a simple foreach loop can easily construct an stdObject from an array. Their similarities mean there is little you can do with one that you cannot do with the other. Some of the differences (at first […]

continue reading... » One Comment

26 January 2006

Re: Commentary on “Lisp is Sin”

A nice look at Lisp v C#. Yup, you can do it in C# just like you can do it in Lisp, but look at all the ugly syntax additions it takes to do it.
Lisp doesn’t let you do something no other language lets you do, but it keeps your code clean while doing it.
Read […]

continue reading... » 0 Comments

3 January 2006

steike.com Php Closures

I thought this was interesting…Read more at steike.com/PhpClosures . Basically, the author is trying to use functions in PHP as a first class entity but PHP’s function scoping doesn’t really allow it, because PHP functions aren’t quite first class.
I suspect this […]

continue reading... » 0 Comments

11 December 2005

C# 3.0 with LINQ Followup

My first night’s coding with LINQ for PHP is complete. It’s not perfect, and still has major scoping issues, but has basic SQL-like functionality.
What’s missing?

There’s no way to preform a join on the source arrays. What’s more, is the name for the source array is discarded internally.
We don’t support logical operators in the “where” clause […]

continue reading... » 0 Comments

next page ·