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

Why Refactoring Is The Best Tool To Write Better Code

Why Refactoring Is The Best Tool To Write Better Code

Refactoring is the process of modifying and restructuring code without changing its functionality. Most developers now think of old legacy applications and the process of upgrading them to current coding standards. That's refactoring too, but it is so much more.

Refactoring is a skill that you can integrate into your daily coding workflow. It lets you focus on making your code work before you can adapt it to your needs.

This talk is for every developer who wants to write better code. I will show you how to make refactoring a new skill of your own and how it benefits your whole coding workflow.

Christoph Rumpel

September 01, 2021
Tweet

More Decks by Christoph Rumpel

Other Decks in Technology

Transcript

  1. Hello Laracon

    View full-size slide

  2. @christophrumpel
    https://christoph-rumpel.com

    View full-size slide

  3. WHY REFACTORING IS
    THE BEST TOOL TO
    WRITE BETTER CODE

    View full-size slide

  4. WHY REFACTORING IS
    THE BEST TOOL TO
    WRITE BETTER CODE

    View full-size slide

  5. What Is Refactoring?

    View full-size slide

  6. What is "Refactoring" ?
    Working with legacy applications.
    "
    "

    View full-size slide

  7. What is "Refactoring" ?

    View full-size slide

  8. What is "Refactoring" ?

    View full-size slide

  9. What is "Refactoring" ?

    View full-size slide

  10. What is "Refactoring" ?

    View full-size slide

  11. What is "Refactoring" ?

    View full-size slide

  12. What is "Refactoring" ?
    Refactoring is the process of modifying and
    restructuring code without changing its functionality.
    "
    "

    View full-size slide

  13. Refactoring?

    View full-size slide

  14. Refactoring?

    View full-size slide

  15. Refactoring?

    View full-size slide

  16. Refactoring?

    View full-size slide

  17. What Is Better Code?

    View full-size slide

  18. What is "Better Code" ?
    More code is better code.
    "
    "

    View full-size slide

  19. SOLID
    Extendable
    Easy
    Secure
    What is "Better Code" ?
    Whatever you define

    View full-size slide

  20. Easy to read
    Self-explaining
    Expressive
    Consistent
    What is "Better Code" ?

    View full-size slide

  21. Simple Code
    "
    "
    What is "Better Code" ?

    View full-size slide

  22. Why do we need
    refactoring to write
    better code?

    View full-size slide

  23. Coding Without Refactoring
    Make your code work
    + easy to read
    + self-explaining
    + expressive
    + consistent
    = All together
    !

    View full-size slide

  24. Coding Without Refactoring
    More exhausting

    More time

    Wrong focus

    Rabbit holes #

    View full-size slide

  25. Coding With Refactoring
    Make your code work
    Easy to read (refactoring)
    Self-explaining (refactoring)
    Expressive (refactoring)
    Consistent (refactoring)





    View full-size slide

  26. Refactoring + Tests = ❤

    View full-size slide

  27. Refactoring = changing code
    Changing code = &
    Tests = '
    Make your life easier with Tests (
    Refactoring ❤ Tests

    View full-size slide

  28. Refactoring is part of
    my workflow now!

    View full-size slide

  29. HTTPS://LARAVELWORKFLOWS.COM

    View full-size slide