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. Hello

    View Slide

  2. View Slide

  3. Is there a
    great divide?

    View Slide

  4. styling
    data
    a11y
    perf

    View Slide

  5. Different jobs ?

    View Slide

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

    View Slide

  7. JS-JS-JS
    vs
    HTML-CSS-JS

    View Slide

  8. Different
    belief system

    View Slide

  9. Best practices

    View Slide

  10. Separation of
    concerns

    View Slide

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

    View Slide

  12. SEPARATION OF CONCERNS
    CSS-in-JS

    View Slide

  13. SEPARATION OF CONCERNS

    View Slide

  14. SEPARATION OF CONCERNS

    View Slide

  15. SPAs

    View Slide

  16. Semantic tags

    View Slide

  17. ARIA

    View Slide

  18. DRY

    View Slide

  19. KISS

    View Slide

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

    View Slide

  21. YAGNI

    View Slide

  22. Don't reinvent
    the wheel

    View Slide

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

    View Slide

  24. YAGNI
    Owning your code
    can be good

    View Slide

  25. 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 Slide

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

    View Slide

  27. but …

    View Slide

  28. they are not
    necessarily accurate
    for your context

    View Slide

  29. Your postulate
    might be different

    View Slide

  30. Reassess over time

    View Slide

  31. Best doesn't
    mean forever

    View Slide

  32. Best doesn't
    mean forever

    View Slide

  33. View Slide

  34. Thank you

    View Slide

  35. Matthias Le Brun
    @bloodyowl
    Questions ?

    View Slide