In a lot of older developed systems, I see a lot of Textual based Primary keys used for lookup values in tables. E.G. Order Status R = Ready, S = Shipped, C = Complete or in our product codes table CF = Cage, OBS = Barrel etc.
In today’s programming world, is it necessary to use textual keys for these types of values? Given the advent of the combo box, it is a lot easier to use a numerical key and simply show the description to the user in the combo box.
There are a lot of spin off issues that arise because of this. For example, if you use a hidden numerical key, the user isn't aware of the actual data they are entering, thus causing maintenance problems later down the line. On the other hand, this makes programming easier, especially when the combo boxes only allow single column of information to be displayed. Also, it makes the programmers job easier because you don’t have to manually maintain the primary key data.
I would love some feedback on this, I am developing a system and this practice has raised some questions.
In today’s programming world, is it necessary to use textual keys for these types of values? Given the advent of the combo box, it is a lot easier to use a numerical key and simply show the description to the user in the combo box.
There are a lot of spin off issues that arise because of this. For example, if you use a hidden numerical key, the user isn't aware of the actual data they are entering, thus causing maintenance problems later down the line. On the other hand, this makes programming easier, especially when the combo boxes only allow single column of information to be displayed. Also, it makes the programmers job easier because you don’t have to manually maintain the primary key data.
I would love some feedback on this, I am developing a system and this practice has raised some questions.