I believe there is a person who named this pattern or practice and would like to know the correct nomenclature to avoid confusion.
object.propertyA.propertyB
becomes
object.propertyB
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.
Sign up to join this communityI believe there is a person who named this pattern or practice and would like to know the correct nomenclature to avoid confusion.
object.propertyA.propertyB
becomes
object.propertyB
This is commonly referred as Law of Demeter
Here are a few guidelines (as per Wikipedia page):
Some more reading: http://wiki.c2.com/?LawOfDemeter