This article summarizes commonly used software techniques that can be harmful, particularly when implementing a server or other large application. It discusses their drawbacks and when using them is nevertheless appropriate, and outlines alternatives that are usually preferable, with links to articles that go into greater depth.
Greg Utas
Tag: methodology
Software development explained with cars
Guard Clauses – Stop using Else in your code
A different approach to if/else decision trees, using guard clauses where you return from your method when a clause is not met.
Source: Stop Using Else in Your Programs – Better Programming – Medium
You must be logged in to post a comment.