Site icon Being Software Craftsman (DFTBA)

Be symmetric while writing methods

When working with class or module sometimes you would need equal and opposite operations. The methods should be symmetric. Please make sure they are not added causally that would add non symmetric verbs.

Not symmetric

If you are adding symmetric methods, then make sure they feel symmetric one.

Symmetric



Exit mobile version