Questions tagged [architectural-patterns]
An architectural pattern is a general reusable solution related to the high level structure of software systems. For reusable solutions having a more specific scope (e.g. individual classes/components and their interactions), prefer the tag 'design-patterns'.
1 questions from the last 7 days
2
votes
3
answers
327
views
Should I use namespace imports or named imports for my services?
I'm refactoring a express backend and dividing everything into controller, service and repository.
I find that using:
import * as UserService from "./userService";
let {user} = await ...