-
Use find<Noun> when implementing method that does query for the user and returns results based upon some query.
For example, when catalog page, when we are getting products based upon some filters, we could use findProducts as method name. -
Use fetch<Noun> when implementing method that fetches the related data based upon some specified identifiers in background. For example, when fetching related information for products in order, if we are doing a separate API call for getting product information method can have name fetchProducts. Here method will be provided identifier based upon which it will fetch records.
-
Use get<Noun> when implementing method that fetches data for displaying purpose.
For example, getCategories method could get all the categories that could be used for header of any ecommerce website
-
Notifications
You must be signed in to change notification settings - Fork 0
License
adityasharma7/clean-coding
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published