CoursesAI WorkshopCompaniesPricingBlogConfAiBotSubscribeSign in
  • Courses
  • AI Workshop
  • Companies
  • Pricing
  • Blog
  • ConfAiBot
Subscribe
  • Courses
  • Companies
  • Communities
  • Blog
  • Gift card
  • Newsletter
  • 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

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
  • Essential programming courses to build a solid foundation
  • Company invoice
Popular

standard

24,92 €
Save 49 €
Annual payment of 299 €
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89 €
Annual payment of 499 €
per month
  • Exclusive courses on AI and emerging technologies to keep you always up to date
  • Early access to new courses
  • Discount on workshops
  • Receive job offers verified by Codely
  • Company invoice

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