by senorprogrammer · 18y ago · 0 comments
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.