Rename all functions to have similar naming conventions.
Associated Product Ticket
Process
Determine naming conventions and then make sure that all functions are changed in entire project.
This includes all exports and imports(requires).
Naming Conventions:
in Controller: long descriptive function names.
ex:
getAllCustomersgetOneCustomerpostNewCustomer // We decided to combine POST and PUT into the same function, so we'll just have one function called update[table name]
ex:
updateCustomer
in Model: very short function names.
ex:
getAllgetOnepostNew // We decided to combine POST and PUT into the same function, so we'll just have one function called updateupdateOne
ex:
update
Expected Result
Nice-looking, consistent code across entire project.
Context
Rename all functions to have similar naming conventions.
Associated Product Ticket
Process
Determine naming conventions and then make sure that all functions are changed in entire project. This includes all exports and imports(requires).
Naming Conventions:
in Controller: long descriptive function names. ex:
getAllCustomers
getOneCustomer
// We decided to combine POST and PUT into the same function, so we'll just have one function calledpostNewCustomer
update[table name]
ex:updateCustomer
in Model: very short function names. ex:
getAll
getOne
// We decided to combine POST and PUT into the same function, so we'll just have one function calledpostNew
update
ex:updateOne
update
Expected Result
Nice-looking, consistent code across entire project.