Why Program Without Using 'Else' - Guard Clauses - #Refactoring #MoviolaCodelyTV

In this video, we will explain how you can use guard clauses to make your code more readable. After setting the stage and looking at what Code Smells and Refactoring are, we will now see how we can refactor code with too many levels of indentation, analyze the concept of "mental stack" that we, as developers, need to maintain when programming, and check how we can bring error handling closer to detection, all in order to enhance the readability of our code :)

Related Material

Video

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • Everything above
  • More benefits coming soon

We won’t increase the price while your subscription is active