DEV Community

Discussion on: What Are The Best Software Engineering Principles?

Collapse
 
w3bist profile image
Webist

Zero upfront design here.

Covering following roles does the job.

  • Interface class
  • A Machinery Object (a do'er)
  • A Consumable Object (e.g. input)
  • An InterActor Object (e.g. adapter, handler)

All class properties private, no getter-setter and other magic tricks.