October 25, 2006 at 21:26
· Posted in firefox, wordpress
Now Firefox 2.0 is officially released, the Microsummaries concept my gain substantial traction. Time for me to review a few shortcomings of the wp-microsummary plugin.
Most improvements and changes are cosmetic – there is no need to upgrade if the plugin works for you.
See also my initial post about this plugin.
Popularity: 20%
Tweet This
Delicious
Reddit This Post
Stumble This Post
Permalink
October 17, 2006 at 23:18
· Posted in webdev
Amongst all the improvements in PHP 5 is the concept of Reflection. If you’re a Java person, you will be familiar with this concept.
In just a few words, Reflection means that Objects are open to (self-) inspection, so that you can interrogate an object for all kinds of properties at runtime.
Now if you have classes with getter (and setter) methods, there are some very elegant techniques with reflection. Normally, these getters and setters are used to give access to the data contained in the object. Good Object Oriented practice makes use of these Data Objects to build a clean boundary between the data and implementation details.
So, let’s assume that you have painfully crafted a class definition with accessors and you want to serialize the contained data as JSON over the wire. Of course, you can write a getJsonString() method for every class. But Reflection gives you a much nicer option.
An example of serialization into JSON, entirely based on Reflection:
Read the rest of this entry »
Popularity: 43%
Tweet This
Delicious
Reddit This Post
Stumble This Post
Tags: ajax, Java, JSON stream, php
Permalink