Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:58:42+00:00 2026-05-24T04:58:42+00:00

i am making an object-oriented app in coldfusion, and so i have really broken

  • 0

i am making an object-oriented app in coldfusion, and so i have really broken down the code. so, i have really long namespaces for my components; for example:

folder1.folder2.plugin1.datatypes.Object

i seem to be repeating a lot of stuff, but at the same time, some of these things are acting like “modules”. what i mean by this is that “folder2” in the example really contains, for lack of a better term, “stand-alone” components/applications (think of them like plugins). so, aside from them calling other plugins’ resources, they act on their own. but, due to the folder structure, i still have to refer to them all as folder1.folder2…. and so on.

so, let us assume that the “folder1.folder2.” could change on a whim. (this will not happen, but since “plugin1” would define a stand-alone component, it does not care what “folder1” or “folder2” contains, if they even exist).

when i am writing code within the plugin, is there anyway i can shorten the namespace string; is there such a thing as “relative” namespaceing, just like using relative href links?

such a thing would save me a lot of time, but would also help ensure these things are more stand-alone as they would not be tied to their encapsulating folder structure…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:58:43+00:00Added an answer on May 24, 2026 at 4:58 am

    You could use ColdFusion mappings, specifically per-application mappings in Application.cfc.

    You do this in Application.cfc

    <cfset this.mappings["/com"] = expandPath("folder1/folder2/plugin1") />
    

    The you could reference components by doing com.datatypes.object.

    Cannot recall when per-app mappings came about, but its been there for a few releases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any example implementation of making individual object props readOnly/non-configurable? I mean
I have a code as follow in making an object: var myObject = {
I know object oriented PHP and Java, and I can code Javascript fairly well
I'm trying to learn the code igniter library and object oriented PHP in general
In Alex Martelli's response to Making a Python script Object-Oriented , he mentions that
For a long time I have been throwing around the idea of making my
Delphi 2006 introduced new capabilities for records, making them more 'object-oriented'. In which situations
I'm making the switch to a more object-oriented approach to ASP.NET web applications in
I'm making a little game in C. I try to program in an object-oriented
I am making a custom form object in Django which has an overrided __init__

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.