Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP Annotations - Purely code or magic?

PHP Annotations - Purely code or magic?

As developers we seek for the best and most productive way to write code. To help us, we use a bunch of tools, components, libraries and packages, and not always we try to understand what happens deep in the third party code though.
Easily we can run commands like composer require, brew install or npm install to get libraries and frameworks ready to use, we do not need to worry about how the functionally is abstracted from some component either which implementations it follows, with that, this talk seeks to understand and desmistify a functionality that is widely used and abstracted from libraries and frameworks but very criticized by the community, the “Magic Annotations”.

Joel Medeiros

August 26, 2020
Tweet

More Decks by Joel Medeiros

Other Decks in Programming

Transcript

  1. Curious and passionate about innovation, technology and agile teams that

    seeks to learn everyday how technology can impact people lives. /joelmedeiros WHO am I? /_joelmedeiros
  2. Something that describes an aspect of the subject through metadata

    in runtime. In other words, the annotation effects on a class, method or object are only when it is executed “ ” @rdohms
  3. ENGINE TOKENIZATION Token Args document “mydoc.txt” errorlog true Process document

    with argument “mydoc.txt” Process errorlog with param true INPUT OUTPUT PROCESS REMAINING METHOD INSTRUCTIONS PATTERNS PROCESSMENT RESULT