Annotating with Annotations

  • DPC 2012 Unconference (Amsterdam, NL)
  • June 8, 2012

What exactly are annotations? How can they change the way you code and make life simpler? Annotations allow you to implement new functionality into code using “notes” this allows you to easily maintain your own architecture but benefit from external tools. Let’s look at how annotations are used today in PHP and how we can develop our own solutions based on the existing libraries.

Slides

comments powered by Disqus

Related Posts

Feedalizr.com - Cliente FriendFeed para o Desktop

Feedalizr.com - Cliente FriendFeed para o Desktop

  • April 15, 2008

Aproveitando minha recente entrada no SWAT Team, essa semana foi lançada uma interessante ferramenta idealizada por membros da equipe, tanto daqui como da Africa do Sul.

Read More
1º PHPDF Roadshow

1º PHPDF Roadshow

  • April 26, 2007

PHPDF-RoadshowSerá realizado no dia 19 de maio o 1º PHPDF Roadshow, primeiro grande evento de PHP do Centro-Oeste e a inauguração oficial do PHPDF, comunidade de desenvolvedores do Distrito Federal.

Read More
Using User-Defined Varibles in MySQL

Using User-Defined Varibles in MySQL

  • September 28, 2006

Cast the first stone he who never made a mistake modeling a database! Every now and then in your career you will be face to face with a problem like this: due to the nature of a table’s data you created a table without a primary key, or using a composed key. So far so good, but due to an upgrade you see the need to have a unique key identifying all the registers in your table, in my case it was due to a AJAX interface.

So what now? You have a table full of data, and of course, as Murphy’s law will tell you, that data cannot be erased. MySQL will prevent you from turning a filled to a primary key if it finds duplicated values in the table. Quite a brain twister, but I did a little research and found a rather simple solution to the matter.

UPDATE: So it actually came to my atention that a query I had already tried does the job in an even simpler form, but my modelling tool executed the commands out of sync and that why i had problems. So this article stays on as a good example of how to use mysql variables.

Read More