Inspire yourself by Symfony2 to create better code

1,249 views

Published on

Symfony2 is now released and, as the first version of symfony, it's a framework that advocates a lot of best practices. Any developer who works on a Symfony2 application should follow the same rules, in order to keep the project on the right tracks. With the help of Symfony2's code and my personal experience, I will try in this session to bend your mind to some principles like Separation of Concerns and pragmatism, in order to achieve successful projects.

Published in: Technology, Sports
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,249
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • Bridges are independent of the third party library and of the component so that component stays uncoupled. This is also a prevention measure for the component to not become bloated.
  • Inspire yourself by Symfony2 to create better code

    1. 1. http://www.flickr.com/photos/joeshlabotnik/4857173373/
    2. 2. •••
    3. 3. –––
    4. 4. •••
    5. 5. •• – – – – – –
    6. 6. •••
    7. 7. •••
    8. 8.
    9. 9. •••
    10. 10. •••
    11. 11. •• –
    12. 12. Interfaces160140 13712010080604020 4 0 symfony 1.4 Symfony2
    13. 13. ••••
    14. 14. •••• – – –
    15. 15. ••• –
    16. 16. •• – –
    17. 17. ••••
    18. 18. • –••
    19. 19. // src/Symfony/Component/Yaml/Exception/ExceptionInterface.phpnamespace SymfonyComponentYamlException;interface ExceptionInterface{}// src/Symfony/Component/Yaml/Exception/DumpException.phpnamespace SymfonyComponentYamlException;class DumpException extends RuntimeException implements ExceptionInterface{}
    20. 20. •••
    21. 21. •••
    22. 22. • – – – –
    23. 23. •••••
    24. 24. •••
    25. 25. •••
    26. 26. •••••
    27. 27. • – –
    28. 28. ••
    29. 29. • – – –•
    30. 30. ••
    31. 31. Consumer (Symfony) OAuth2 ProviderConsumer Consumer (ZF) (Silex)
    32. 32. •••• – – –

    ×