Lightning talk #6 – Refactoring steps

Paranthesis

Returning non-bools

Returning bools

Reusing data

Similar behavior in if/else branches

Similar behavior in if/else branches

Same behavior on both branches – move it outside the branches.

Condition that appears on all steps – Check it only once.

You may also like...

Leave a Reply