11 February 2017

The Conjunction "And"

I try and follow a rule when writing: If the sentence contains the conjunction "and" I see if I can split the sentence into two, or more sentences. An "and" indicates that I am trying to convey more than one aspect/purpose of an idea in the sentence.

I am an advocate of intentional naming. Intentional names can result in long names. If a function name contains an "and", it is an indication that the function is intended to do more than one thing.  It breaks the rule that a function should "do only one thing and do it well" - also known as the Hedgehog Principle.



No comments: