CoursesAI WorkshopCompaniesPricingBlogConfAiBotSign inSubscribe
  • Courses
  • AI Workshop
  • Companies
  • Pricing
  • Blog
  • ConfAiBot
Subscribe
  • Courses
  • Companies
  • Communities
  • Blog
  • Gift card
  • Help
  • Shop
  • ConfAiBot
  • Contact
  • Legal notice
  • General conditions
  • Privacy policy
  • Cookies policy

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

26 November 2015 | screencasts

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

  • Replace Nested Conditional with Guard Clauses (Article by Martin Fowler)
  • Replace Nested Conditional with Guard Clauses (Example of the process to follow from Refactoring.guru)

Video

Tags

Code SmellsMoviolaCodelyTVIntermediate LevelPHPRefactoring
AnteriorInterview with Pol Romans | Developer at Mosaic Consulting
SiguienteCan you use #TDD to design software? - Emerging Designs #NaveMisterioCodelyTV

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
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89 €
Annual payment of 499 €
per month
  • All previous benefits
  • Early access to new courses
  • Discount on workshops

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