Extending a PHP class with plugins

October 31, 2010 by nuno costa 3 comments

It’s has been a while since I post anything useful or technical. My last posts all have ben sponsored by some one!

When I was writing the new version of phMagick I had a few requirements in mind

It should be:

  • Compatible with previous versions
  • Easy to incorporate patches and new features the community sends back
  • Small footprint (let the user choose what features he needs)

Having one big class would defeat the last 2 requirements, it would be too costly to manage contributions, and obviously there is no way to include just the features needed!

I tried some workarounds to php lack of multi inheritance support, but the code was just becoming to messy!

I come up with a solutions to “extend” a class by using a plugin system.

continue reading »

cheap web hosting

September 30, 2010 by nuno costa no comments

If you are reading this you are probably looking to host your new blog or web site, although there are many free services that allow you to establish your online presence you do not have control over your blog and the its configuration.

The best and only way to maintain full control over your blog is to own the space where it is hosted.

Many web hosting services offer low prices and great features, but how to choose from such a vast offer?

continue reading »

The worlds greatest violinist, Alex Depue

May 23, 2010 by nuno costa 2 comments

This blows me away each time I watch it. See what you think.

continue reading »

I know you are nervous, but don’t be stupid

by nuno costa no comments

Recently I had to interview a few candidates, I work in a international company and the interviews are done in English, even if the candidate and I spoke the same language.

Being interviewed is stressful enough even more if it isn’t conducted in your native language.

You are nervous and still need to find the correct words it’s not for every one!

 

Typically the candidate is interviewed by two or three persons which can be pretty intimidating.

I know you are nervous and out of your comfort zone (that’s the idea!!). I’ve seen candidates stutter, trembling, sweat and taking a huge time to answer a question.

 

Fo me the hardest thing being forced to end the interview only because the candidate is not by far suitable. That’s probably due to bad phone screening, but the fact is that is a waste of my time and the candidates time to continue the process.

 

So here are a few tips to help you reach the end of an interview

continue reading »

cheap web hosting list

April 14, 2010 by nuno costa no comments

If you are reading this you are probably looking to host your new blog or web site, although there are many free services that allow you to establish your online presence you do not have control over your blog and the its configuration.

The best and only way to maintain full control over your blog is to own the space where it is hosted.

Many web hosting services offer low prices and great features, but how to choose from such a vast offer?

Will you be making the research? Are you willing to search and collect information on all the hosting services available? Will you include shares hosting, cloud hosting, vpn, dedicated servers?

continue reading »

« Newer PostsOlder Posts »

More from francodacosta.com

© francodacosta.com - All rights reserved