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 »
Blog
SVN trunk, branches and tags
- Published on
- February 8th, 2010
- by
- Jean-Michel Feurprier
Tags: beginners, how-to, SVN, tips
Posted in tips and tricks, tools | 17 Comments »
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 »
Tags: php, tips
Posted in php5, tips and tricks | 2 Comments »
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 »
Tags: architecture, beginners, externals, how-to, SVN
Posted in tips and tricks, tools | No Comments »
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:
Tags: caching, how-to, optimization, php, profiling
Posted in concepts and principles, design patterns, php, tips and tricks | 5 Comments »
Archives
Categories
- concepts and principles (1)
- OOP (1)
- design patterns (1)
- php (2)
- php5 (1)
- tips and tricks (4)
- tools (2)
powered by WordPress
