Courses🔥 10th Anniversary 🔥AI WorkshopCompaniesPricingBlogConfAiBotSubscribeSign in
  • Courses
  • 🔥 10th Anniversary 🔥
  • 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
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium
10 years of Codely: 100 € discount on Premium

Multiple Returns in a Function: Good or Bad? - #Refactoring

24 December 2015 | screencasts

Why can it be bad to have multiple return points in a function? It is commonly said that "there should only be one return in a function." In this video, we will analyze the reasons behind this mantra and see why, to this day, it lacks foundation in most scenarios :)

Here is the link to the StackOverflow post mentioned in the video to delve deeper into the topic: "Where did the notion of “one return only” come from?." Thanks to Marc Cornellà for bringing this topic to light in a comment on the video about guard clauses, a video I recommend watching if you haven't seen it yet :D

Tags

Clean CodeCode SmellsIntermediateRefactoring
AnteriorInterface Segregation Principle - #SOLID
SiguienteHow they use #Git on GitHub - #scbcn

Pay according to your needs

lite (only monthly)

19 €
per month
  • Essential programming courses to build a solid foundation
  • Company invoice

standard

24,92 €
Save vs monthly of 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
Save 189 €

premium

33,25 €
Save vs monthly of 89 €
100 € anniversary discount
Annual payment of 399 €
per month
  • Exclusive AI courses 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