Here I am again making noise....
I know this has been addressed before, but it's been awhile....
What do you guys prefer to use?
Option 1 : Short General Names, Like "label1", "Panel22", etc ... no reference table
Option 2 : Same as above but with a table for reference, like "label1 - The Name of the game"
Option 3 : Long specific naming, like "the_name_of_the_game_label"
Not to mention that I'm an excellent typist, I write with 20 fingers ? ...
Short names were useful (or necessary) decades ago, when there were memory problems (even for sources) and there was no editor support (with B4X, I write "MyVar" and the next time just write M to get the MyVar text, by a TAB).
Generic names NEVER, NEVER, NEVER, NEVER, NEVER. Almost never short names, just very rare cases.
Began witth the first option to code, but after learning other languages and practices i am slowly migrating to the third option. Readability its key for team coding
Why all those "p_" and "Product"? Since the table name is Product, "name", "price", "id" and the rest of the fields are of course of product, no need to specify them.
Why all those "p_" and "Product"? Since the table name is Product, "name", "price", "id" and the rest of the fields are of course of product, no need to specify them.
so that with complex queries you can see directly from which table the column comes. You often have foreign key relationships because you have columns in your table from other tables, which are then linked.
Example:
Table: Users
u_id
u_name
Table: Messages
m_id
m_message
u_id
Table Users are connected with table messages via the User Id.
According to your syntax it would be in the table "Messages" then 2 times the name "ID", which does not work
so that with complex queries you can see directly from which table the column comes. You often have foreign key relationships because you have columns in your table from other tables, which are then linked.