devxlogo

Maintaining Constants

I like to use the Constant.txt file Microsoft has been kind enoughto provide. For a new project, copy Constant.txt to a new filesuch as MyConst.txt. Place MyConst.txt in the same directory asthe MAK file and then include MyConst.txt in the project. In debugmode open MyConst.txt and do a FIND on the string Global and replacewith ‘Global. MyConst.txt is changed to a large comment file.

When a new constant is required, check MyConst.txt to see if Microsofthas defined it. If it is there, then create it by removing thequote. This keeps all of the Microsoft constants in context andmakes the program easier to maintain.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Seven Service Boundary Mistakes That Create Technical Debt

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.