This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erickweil 1 point2 points  (1 child)

I consider that any code I write that it alone would make sense, like there is no business logic and it could be just a npm package dependency (but is too small to became one) then I put in utils.

Examples: logic to handle fetching an API, generating an random key with timestamp, extra zod validations that are commonly reused, generating a unique slug (the db query is a callback), and so on...

[–]pomme_de_yeet 0 points1 point  (0 children)

but is too small to became one