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

Best practices

Best practices

Should we trust "best practices"? A take on dogmatism in the development industry.

Matthias Le Brun

February 27, 2019
Tweet

More Decks by Matthias Le Brun

Other Decks in Programming

Transcript

  1. Is there a
    great divide?

    View full-size slide

  2. styling
    data
    a11y
    perf

    View full-size slide

  3. Different jobs ?

    View full-size slide

  4. styling
    data
    a11y
    perf
    Every company has
    its own definition

    View full-size slide

  5. JS-JS-JS
    vs
    HTML-CSS-JS

    View full-size slide

  6. Different
    belief system

    View full-size slide

  7. Best practices

    View full-size slide

  8. Separation of
    concerns

    View full-size slide

  9. SEPARATION OF CONCERNS
    Is the separation
    worth it now ?

    View full-size slide

  10. SEPARATION OF CONCERNS
    CSS-in-JS

    View full-size slide

  11. SEPARATION OF CONCERNS

    View full-size slide

  12. SEPARATION OF CONCERNS

    View full-size slide

  13. Semantic tags

    View full-size slide

  14. a.map(f).map(g)
    vs
    a.map(x !=> g(f(x))
    KISS

    View full-size slide

  15. Don't reinvent
    the wheel

    View full-size slide

  16. DON'T REINVENT THE WHEEL
    Reinventing
    isn't bad

    View full-size slide

  17. YAGNI
    Owning your code
    can be good

    View full-size slide

  18. Organise your files this way
    Make smart and dumb components
    Use redux with ducks
    Write tests first
    You must respect HTTP verbs
    Premature optimisation is root the root of all evil

    View full-size slide

  19. And there's
    some truth
    to all of them

    View full-size slide

  20. they are not
    necessarily accurate
    for your context

    View full-size slide

  21. Your postulate
    might be different

    View full-size slide

  22. Reassess over time

    View full-size slide

  23. Best doesn't
    mean forever

    View full-size slide

  24. Best doesn't
    mean forever

    View full-size slide

  25. Matthias Le Brun
    @bloodyowl
    Questions ?

    View full-size slide