What is a good name
to define these types of inputs?
- chk_questao1
- rdo_questao2
- txt_questao5
- slc_questao3
Which naming pattern is best? Is there any good practice?
What is a good name
to define these types of inputs?
Which naming pattern is best? Is there any good practice?
The current trend is not to use such prefixes. The reasons are several
<form>
, this means that a change to the screen will force a change in the service. With all this, I do not want to say that you should never adopt some kind of pattern with suffix and prefix, but you should consider the impact of it.
Perhaps in your particular project, given the set of tools and stack of technologies you use, this makes sense. Overall, within the context of the technologies I have knowledge of and the tools I use, I do not think it does.
I usually use the first three characters to set the field type and then the rest to the field itself, for example: sel_uf, chk_active, edt_name, edt_endereco ... and so on.
Legal your interest in following standards. This is very good for easier code maintenance.