by pg · 18y ago · 0 comments
I wonder if he's talking about some problem that happens with people who've converted from other languages, and that's why I don't understand it.
The observation stems from seeing reams of web app code that take in form data (or raw database data) and then proceed to move it around the app without encapsulating it in any way. The result is functions like:
function display_user( user_first_name, user_last_name...user_valid)
Look at twenty or thirty functions like that in an app and one starts to think "perhaps you need a user object?"
I certainly didn't mean to suggest we should all start tightly coupling all our classes together willy-nilly.
I suspect the issue here is making good decisions about which entities/modules/functions/objects/thingummies should know a, which should know b, and which should know c.