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

  • Home
  • SEARCH
  • 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 1043185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:37:41+00:00 2026-05-16T15:37:41+00:00

I’m working a project to replace a Resource Management system (QuickTime Resource Manager on

  • 0

I’m working a project to replace a Resource Management system (QuickTime Resource Manager on Mac and Windows) that has been deprecated and I have been using the current model that Qt uses where data is retrieved from the resource file using a string key.

For example, I may have an image in my resource file, “HungryBear.png” stored in my resource file. Qt, and my proposed system, would get it in a way depicted by the psuedocode:

image = GetImageResource("BearPlugin/Images/HungryBear.png");

It is clear at that point what that image is, and where it can be found.

In our current system, we use numbers. The problems with numbers is that one has to hunt down the resource file (there can be many) to find out what image (or resource) it is.

An example of this:

oldActiveResourceFile = GetActiveResourceFile(); // think of a stack of resource files

SetActiveResourceFile("BearPlugin");

image = GetImageResource(1);

// Perhaps other resources are retrieved and other functions called
// Possibly introduce problems by calling functions that change "Active Resource File"

SetActiveResourceFile(oldActiveResourceFile);

The first method is what I have seen in current systems that access resource file data. I’ve been told that C# and Java uses it, I know that they do for string key-value pairs, etc.

However, a peer of mine has expressed concern about changing the current system of using these number IDs for the string ids that I’m proposing. There seem to be many benefits and they fix many of the issues we’ve had with the current system. I want to have supporting documentation that the proposed system is better and desirable, so my question is this:

Do you know of any research or discussion that demonstrates that using a string identifier (hierarchical) in code is better than using an arbitrary number?

NOTES

  1. I plan on using a zip file (possibly uncompressed) to contain the data files.
  2. We have a application-plugin environment. The application and each plugin can have its own resource files. Plugins may be able to access resource data in the application’s resource file.
  3. Here are some requirements that have been considered and I believe met:

    • Software Developers shall be able to uniquely identify resources.
    • Software Developers shall be able to name resources with meaningful names.
    • Resources shall be associated with the parts of the application that need them.
    • Localizers shall be able to easily identify resource files that have changed.
    • Localizers shall be able to use their own tools to modify resource files.
    • Customers shall be alerted in the event that the functionality they are using relies on deprecated calls.
  • 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-16T15:37:41+00:00Added an answer on May 16, 2026 at 3:37 pm

    The main drawbacks to using numerical resource IDs are discoverability (figuring out what resource 1234 is) and maintaining uniqueness of the IDs as you add more over time in large applications.

    The main drawback to using string names for resource IDs is that strings take up more memory at runtime. The .NET pattern for resources, for example, uses string names, and those string names tag along in the executable file at runtime.

    String names are easy to keep unique and self-documenting across large applications and years of revisions (using hierarchical paths as in your example), but the benefit is really only for human convenience. It would be nice if those strings could be boiled down to integer IDs for the final executable binary, since the resource pool is immutable at that point and the CPU would actually prefer integer IDs. .NET doesn’t work this way, but other platforms could.

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

Sidebar

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.