Coderify
  • Home
Subscribe
Tagged

refactoring

A collection of 1 post

Guard Clause - simplify your ifs
ruby

Guard Clause - simplify your ifs

There is an easy way to make ifs look simpler and easier to understand. The solution is Guard Clauses. Generally, what you do is, you return early for a specific condition.

Bartosz GÅ‚owacki Apr 21, 2021 • 1 min read
Coderify © 2022
Powered by Ghost