Hi r/node!I've been using Node for this big project at the moment and wanted to share my opinions on it and get some feedback from you guys, because there's always solution to things like this.I'm finding that it's really difficult to enforce and be consistent with how you organize and structure a Node project. I'm coming from fullstack frameworks like Laravel and Django where when you start a project you get a basic file structure and organization to follow (routes, models, controllers, services, etc...) there's a place for each of those things and often sample files you can refer to and follow the framework's standard. In Node you're truly dropped and have to figure the best way to structure things.Before starting the project, my team and I agreed to standards to follow and keep as much as possible, but as we all know with project management and software development, things might not go perfectly and some corners might have to be cut to meet deadlines or beat competition. I feel in those moment Node is so flexible that it allows basically many ways of handling something, which is nice for things you don't have to keep consistent or do really quickly, but makes it really hard to enforce every team members to follow something when you could do it the easy especially in tight deadlines (why take the long route when I could to this that way really easily).I feel like a Node framework/library that trades off flexibility for consistency and constraits a dev to go through some hoops before achieving something would make it a longer task, but since you HAVE to go through those hoops you stay consistent which I feel is really beneficial in the long run and minimize the possibility of creating tech debts.Recently I've learned about NestJS which I feel is a good step in the right direction, but I feel like there's an underlying issue that I can put my finger on that makes NodeJS suitable to being all over the place quickly with a large team with varying experience levels.Or maybe I just don't have the right team for this 😅What are your thoughts?PS: We've been using Typescript and Apollo Server for this project.
Submitted July 23, 2020 at 02:16AM by LordDrakota
No comments:
Post a Comment