Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js database field naming conventions

Two choices:

> use camelCase everywhere, but keep using snake_case only for
server-generated attributes
 
> always manually convert to camelCase after you get the data
back from the network, and use camelCase everywhere.
If you have to pick a global convention on both sides,
JavaScript should win - ie, camelCase.
 
PREVIOUS NEXT
Tagged: #js #database #field #naming #conventions
ADD COMMENT
Topic
Name
9+7 =