Jump to content
PeterPanettone

Open Url From Current Line

Recommended Posts

Early return benefits:

  • The contract clauses of the method are clearly defined at the top of the method code.
  • If you made it past the contract clauses, your code is safe to run
  • You can easily add or remove contract clauses without breaking the code (or having to add yet another layer of indentation)

I used to be a nester, but I evolved.

Share this post


Link to post
35 minutes ago, Lars Fosdal said:

I used to be a nester, but I evolved.

👍 

Sometimes we need to overcome our habits hindering us.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×