Blog

SVN trunk, branches and tags

Published on
February 8th, 2010
by
Jean-Michel Feurprier

In this post, I provide details about how I personnaly handle SVN trunk, branches and tags. This approach is also known as “branch always”, with minor differences. This might not be the best approach, but it will give beginners some explanations on what trunk, branches and tags are, and how to handle them.
Read the rest of this entry »

method_exists() vs. is_callable()

Published on
January 3rd, 2010
by
Jean-Michel Feurprier

One thing I often see when re-factoring PHP applications, is the improper use of the method_exists() function, and I think this needs a little bit of clarification.
Read the rest of this entry »

Simple introduction to SVN externals

Published on
December 10th, 2009
by
Jean-Michel Feurprier

Not so long ago, we’ve had to include a third-party library into a new project (using SVN). Our first idea (the one which did not imply thinking) was to SVN-export library files from the remote repository, paste them into the project, SVN-add them, then SVN-commit files.

Having to keep these library files up-to-date with official patches and improvements sounded like a full-time job.
This solution sucked.
A lot.
Read the rest of this entry »

Improving performance with return values caching

Published on
February 4th, 2009
by
Jean-Michel Feurprier

Many functions (and methods) in a project will often provide the same return value for the same arguments, like:

  • mathematical functions:
function SomeMaths($x)
{
	return $x + pow($x, 3.2) - cos($x);
}
  • functions which retrieve content from a file:

Read the rest of this entry »

powered by WordPress