Slide 1

Slide 1 text

by your friend: ! Ryan Weaver @weaverryan Symfony Grows Up: The Developer Experience

Slide 2

Slide 2 text

KnpUniversity.com github.com/weaverryan Who is this Hipster? > Lead for the Symfony documentation
 > KnpLabs US - Symfony Consulting, training, Kumbaya ! > Writer for KnpUniversity.com Tutorials > Husband of the much more talented @leannapelham

Slide 3

Slide 3 text

Ephemeralization* @weaverryan

Slide 4

Slide 4 text

* shamelessly “borrowed” from David Zuelke http://bit.ly/dzuelke-ephem

Slide 5

Slide 5 text

R. Buckminster Fuller

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

do more and more with less and less until eventually you can do everything with nothing “

Slide 8

Slide 8 text

Think of Measuring Distance Tools let us measure further, and with less effort by the human measuring

Slide 9

Slide 9 text

https://www.flickr.com/photos/chandramarsono/4324373384

Slide 10

Slide 10 text

https://www.flickr.com/photos/krawcowicz/4153762400

Slide 11

Slide 11 text

limited by site https://www.flickr.com/photos/40132991@N07/3715292940

Slide 12

Slide 12 text

https://www.flickr.com/photos/avlxyz/4999120709

Slide 13

Slide 13 text

Easiest scaling ever Simplest Deployment Process @weaverryan The complexity is hidden. The visible pieces are simple.

Slide 14

Slide 14 text

Do More, With Less

Slide 15

Slide 15 text

Less is not about size

Slide 16

Slide 16 text

Less …
 ! …effort
 …drain on my patience ! …drain on my energy ! …design on this slide

Slide 17

Slide 17 text

Accomplish more SnapChat, but with less time, energy and barriers

Slide 18

Slide 18 text

UX @weaverryan

Slide 19

Slide 19 text

Do More, With Less

Slide 20

Slide 20 text

Less is not (necessarily) about code written

Slide 21

Slide 21 text

Less… ! ! …Dev Time ! …Learning Curve ! …Complexity

Slide 22

Slide 22 text

Build BIGGER and more interesting applications, but with less time, less effort and less barriers

Slide 23

Slide 23 text

DX @weaverryan

Slide 24

Slide 24 text

Complexity: Consisting of many different and connected parts

Slide 25

Slide 25 text

Simple vs Easy @weaverryan

Slide 26

Slide 26 text

Simple Easily Understood

Slide 27

Slide 27 text

Easy Achieved without great effort

Slide 28

Slide 28 text

Losing Weight @weaverryan Simple: Eat well and exercise ! Not Easy: Waking up at 6am every morning to run!

Slide 29

Slide 29 text

Drupal’s Hook system @weaverryan Not Simple: I don’t know what’s going on or how it works ! Easy: Just create a function!

Slide 30

Slide 30 text

Installing a Bundle @weaverryan Installing a bundle may be easy because the documentation was simple (i.e. direct, clear, uncluttered)

Slide 31

Slide 31 text

@weaverryan Symfony is simple: define a URL, create a function, return a Response

Slide 32

Slide 32 text

@weaverryan Symfony aims to be simple and clear above all else Once something is simple, you can make it easy (but not in reverse - that’s “magic”

Slide 33

Slide 33 text

Developer Experience Initiative @weaverryan

Slide 34

Slide 34 text

2.0-2.5

Slide 35

Slide 35 text

Loooong Names src/MyCompany/ContentBundle/Controller/ ContentAdminController.php use SymfonyLive\FabienBundle\Entity \Product $this- >render('SymfonyLiveFabienBundle:Product:new.html.twig')

Slide 36

Slide 36 text

Many Files app/config/routing.yml src/SymfonyLive/FabienBundle/config/routing.yml src/SymfonyLive/FabienBundle/Controller/ BestPracticesController.php src/SymfonyLive/FabienBundle/Service/BestPracticeanator.php app/config/config.yml src/SymfonyLive/FabienBundle/config/services.yml src/SymfonyLive/FabienBundle/Resources/views/BestPractices/ index.html.twig

Slide 37

Slide 37 text

Scattered Files app/config/routing.yml src/SymfonyLive/FabienBundle/config/routing.yml src/SymfonyLive/JMikolaBundle/config/routing.yml src/SymfonyLive/HHamonBundle/config/routing.yml app/Resources/views/base.html.twig src/SymfonyLive/FabienBundle/Resources/views/BestPractices/ index.html.twig src/SymfonyLive/JMikolaBundle/Resources/views/Wurst/sausage.html.twig src/SymfonyLive/HHamonBundle/Resources/views/HowToTravel/ inStyle.html.twig web/assets/css/layout.css web/bundles/symfonylivefabien/css/merging.css web/bundles/symfonylivejmikola/css/wurst.css web/bundles/hhamon/js/JetLagSuperSuperman.js

Slide 38

Slide 38 text

Bad Bundle README’s ! :( @weaverryan

Slide 39

Slide 39 text

Pre-DX VichUploaderBundle docs

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

The DX initiative asks…

Slide 42

Slide 42 text

How could this problem have been solved in a simpler way? “

Slide 43

Slide 43 text

How could we do this new thing, with less code, less effort and less barriers “

Slide 44

Slide 44 text

The DX Initiative Process @weaverryan

Slide 45

Slide 45 text

You say: “this kinda sucks” One @weaverryan

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

We (all) work to fix it Two @weaverryan

Slide 48

Slide 48 text

Hi! I can improve that for you!

Slide 49

Slide 49 text

Celebrate! Three

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

Repeat Four @weaverryan

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

not done yet…

Slide 61

Slide 61 text

Stay Strong!

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

New composer require behavior

Slide 66

Slide 66 text

New Installation! (not yet merged)

Slide 67

Slide 67 text

File structure before best practices

Slide 68

Slide 68 text

File structure after best practices

Slide 69

Slide 69 text

Up Next for DX @weaverryan

Slide 70

Slide 70 text

0) Symfony @weaverryan

Slide 71

Slide 71 text

1) Community Bundles @weaverryan

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

2) Blogs and Documentation for the most common problems @weaverryan

Slide 74

Slide 74 text

You drive DX… * So open issues on any repository with a [DX] at the beginning of the title

Slide 75

Slide 75 text

…and move us towards Ephemeralization @weaverryan

Slide 76

Slide 76 text

… so we can accomplish so much more with less @weaverryan

Slide 77

Slide 77 text

Thanks! Ryan Weaver @weaverryan KnpUniversity.com PHP , Behat, Twig, OO, etc Tutorial Screencasts