Going Bare - Writing the web without a framework - ZendCon 2017

Going Bare - Writing the web without a framework - ZendCon 2017

Talk given at ZendCon 2017

If you've only ever experienced web development through a web framework, you're missing out. Have you ever been tempted to rewrite a codebase in your favorite framework? That's a smell that you need to come to this session. Being comfortable developing without a framework is a crucial skill to have for refactoring legacy applications. In this session you'll see how to harness the power of going "frameworkless" so you'll feel empowered to make better decisions in your next web project. Be set free from your web-framework ball and chain.

8c090cc1ccd623a146ddd9159b1bf7e2?s=128

Sammy Kaye Powers

October 25, 2017
Tweet

Transcript

  1. 6.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Bootstrapping / ˈbo ͞ otˌstraˌpiNG / Define:

    (…at least for this talk) Code that acts as an entry point into an app.
  2. 7.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Boilerplate / ˈboilərˌplāt / Define: The “glue”

    code that ties components together. (…at least for this talk)
  3. 10.

    joind.in/talk/d9895 @SammyK #ZendCon2017 The of going bare skill • Writing

    bootstrap & boilerplate • Choosing exact components • Use different paradigms (Get to know the component ecosystem) (Like singleton, et al) (Gives you more control over how components interact)
  4. 14.
  5. 63.
  6. 76.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Install a console component $ composer require

    symfony/console (or maybe you like zendframework/zend-console)
  7. 91.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Singleton •Ensures one & only one instance

    •Global access (static function) •Initialization on first use
  8. 97.

    joind.in/talk/d9895 @SammyK #ZendCon2017 •Ensures one & only one instance •Global

    access (static function) •Initialization on first use
  9. 135.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Framework pros to maintain …most the time

    it’s really not that bad No bootstrap & boilerplate code
  10. 136.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Framework pros The code is …so are

    the components you use when going bare battle tested
  11. 139.
  12. 143.

    joind.in/talk/d9895 @SammyK #ZendCon2017 #3 You’ll spend most of your time

    on bootstrapping instead of on domain code It takes a little longer at first but you’ll get faster with practice
  13. 144.
  14. 149.

    joind.in/talk/d9895 @SammyK #ZendCon2017 Create a PHP application without a framework

    Patrick Louys https://github.com/PatrickLouys/no- framework-tutorial
  15. 152.