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
PopularLaunch Week

standard

20,75 €
Save 171
Annual payment of 249
per month
  • Full course catalog
  • Receive job offers verified by Codely
  • Company invoice
Launch Week

premium

37,42 €
Save 139
Annual payment of 449
per month
  • All previous benefits
  • Early access to new courses
  • Discount on workshops

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