2. About me
- Passionate developer
- Active Student
- Technology entusiast
- Agile follower
- Dad
- And much more…
- Web Competence Manager in CDmon
3. History
PHP 4
- Scripting model
- Web Page Oriented
- Scripting language most often used
- Rapid growth
PHP 5
- Object Oriented Model
- Web Page Oriented / Application Oriended
- Compatibility with previous version
- Not as complet as other OO languages (Ruby, Java)
4. Future
PHP 6
- APC integrated by default
- Application Oriented
- More standard adaptations
- Performance
PHP 7
- Huge performance Improvements
- JIT Engine
- Standalone Multi-threading Web Server
- AST: Abstract Syntax Tree
- Asynchronous Programming
HHVM
- Facebook
- HACK Language
- JIT
- Performance
5. Old Paradigm
Cons
- Code is on html view
- No organization
- Like Wild West
- Very difficult to scale
- Can make use of functions
Pros
- Very rapid development
- Valid for small web page
Web Page Creation
Exercise 01
https://github.com/xevimaresma/PHPExerciseSeries
6. Old Paradigm
Cons
- No organization
- Like Wild West
- Very difficult to scale
- Can make use of functions
Pros
- Very rapid development
- Valid for small web page
- Less code on html view
Web Page Creation with isolated parts
Exercise 02
https://github.com/xevimaresma/PHPExerciseSeries
7. Old Paradigm
Encapsulating functions on Classes
Cons
- Like Wild West
- Very difficult to scale
- Can make use of Classes
- Spaghetti code generation
Pros
- Introduces OO
- Valid for medium web page
- Less code on html view
- More organization
Exercise 03
https://github.com/xevimaresma/PHPExerciseSeries
8. New Paradigm
Thinking in Application Mode
Cons
- First run costs
- Less Performance
- Doing code for optimization
Pros
- Full OOP
- Fully Scalable
- TDD
- High Maintainaibility
Exercise 04
https://github.com/xevimaresma/PHPExerciseSeries
9. New Paradigm
Frameworks to rescue!!!
Cons
- First run costs
- Less Performance
Pros
- Full OOP
- Fully Scalable
- TDD
- High Maintainaibility
- Focus on bussines basis
- Community mantained
Exercise 05
https://github.com/xevimaresma/PHPExerciseSeries
10. New Paradigm
API’S Revolution
Cons
- First run costs
- Less Performance
Pros
- Full OOP
- Fully Scalable
- TDD
- High Maintainaibility
- Focus on bussines basis
- Community mantained
- Multi-language Integration
Exercise 06
https://github.com/xevimaresma/PHPExerciseSeries
11. Utilities
Tools do hard work!!!
- Composer
- PHPStorm
- PHPUnit
- Jenkins
- Capistrano
- Behat
- To infinity and beyond!!!
12. Conclusion
- PHP is a bad language but have a powerfull platform
- Getting it right reduces maintenance costs
- Using existing components increases productivity
- Utilities are to improve maintenance and to reduce waste
- Testing is the basis of good growth
- API’s allow you to create isolated applications
- MAKE USE OF NEW PARADIGM