Visit Sponsor

Written by 11:56 pm Application Architecture, For N00bs, Object Oriented, Software Development

Hard Coding Scopes In CFCs Is A No No!

Now Hear This!

This is a public service announcement. If you hard code scopes inside your CFCs (request, application, session), stop today.

I know it might be ‘easier’ or ‘cleaner’ or less lines of code, but you are really painting yourself into a corner when you do this.

An object (CFC) should not know or have access to ANYTHING outside of itself, its configuration and its immediate dependent objects.

If you want to question/argue with me on this, go for it. (Just go Read Up On Information Hiding before you do).

That Is All

Visited 1 times, 1 visit(s) today
[mc4wp_form id="5878"]
Close