Discussions
TIP: using pseudo enums for constants
Disclaimer: I'm sure many of you are already doing something similar to this (or something better), I just though I would share in case others find it useful.
I used to have record id, field ids and other string constants littered throughout my code. With the new ability to change the id of records and fields I made a pass through my custom records (and their fields) and updating the ids to be more logical. While doing this I realized what a mess I had with all the constants sprinkled all over my code. My solution was to create a bunch of javascript enum-like structures to hold the values.
Steve Klett | Senior Developer
NetValue Technology