Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where do you add utility functions and constants? #112

Open
paulwongx opened this issue Aug 9, 2021 · 1 comment
Open

Where do you add utility functions and constants? #112

paulwongx opened this issue Aug 9, 2021 · 1 comment

Comments

@paulwongx
Copy link

Where do you put files for:

  1. Utility functions like formatting a date
  2. Constants
@santiq
Copy link
Owner

santiq commented Aug 9, 2021

For constants, I generally use the config file.
And for utility functions, I usually create a service, or put them in a related service, generally as a static function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants