Sunday, 24 May 2020

Some questions

Hi,I have a few questions pertaining to stuff like structure and separation (of responsibility) etc. For almost two months now every time I open a project I've been wanting to do I just close it because I can't move forward cause I can't find a structure I enjoy (the joys of ADHD+indecisiveness+perfectionOCD).Say I want to make a site with domains/sections like: Streamers/Guides/AboutI really don't like MVC folder structure so I wanted to go with a doman structure iesrc\Streamers, src\Guides etc. But then for certain pages ie streamers I need an admin page so src\Streamers\Guides. Which seems fine but that means ie putting express pug files inside each domain folder and suddenly im suffering from pathing hell with ..\..\..\ littering my src files. Is this normal? Am I going about it right?Also what about calls.Eg when you open Streamers it routes to streamers.js, and it gets the list of streamers. Should that be a direct dbase call or should I create another node project with APIs for it to call?Last but not least, should I bite the bullet and pick up typescript? Will it make my nodelife easier when I'm not making overly complex websites/apps?Thanks and hope you all have a great weekend!

Submitted May 24, 2020 at 02:45PM by Kukibur

No comments:

Post a Comment