Implicit Evaluation with PHP

Implicit Evaluation with PHP Archives: December 2005

·

15 December 2005

I Always Screw Up Some Mundane Detail

Most medium- or large-sized projects are multi-layered if not multi-tiered. There is an interface tier, a logic tier and a data tier. In an MVC-based application, the interface equates to the various views, the data tier is one component of the model and the logic is most of the controller. Building all the basic objects, […]

continue reading... » 0 Comments

12 December 2005

My Day Job Precludes Me From Keeping It Real

XQuery for PHP will have to sit for idle for a few days, as I won’t develop it at work (licensing; ownership; job priorities; etc) so instead, I’d like to discuss a pitfall of implicit evaluation.
One thing implicit evaluation allows you to do, which I avoid, is drastically reducing the amount of code you write. […]

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

9 December 2005

C# 3.0 with LINQ

I was reading about new features due in C# 3.0 in the next few years. LINQ seems to be the biggest new feature, so I started looking at it. It is by no means simple, but it is similar to a slightly rearranged SQL query. Microsoft has made a number of examples available at http://msdn.microsoft.com/vcsharp/future/linqsamples/default.aspx. […]

continue reading... » One Comment

6 December 2005

What is Implicit Evaluation

This article covers implicit PHP evaluation. There is also an article on traditional PHP evaluation (dynamic evaluation using eval) if you’d prefer.
Evaluation is a technique, which, simply refers to evaluating code at runtime. Microsoft Excel does this when a formula is entered in a cell. Many programming languages offer this functionality through various avenues: Mozilla-based […]

continue reading... » 0 Comments

·