Whenever I need to start something on my own I look for these two paths: If I'm using a big library/framework like React.js, I tend to copy what the community is doing; If I'm on something smaller I will be using the module pattern. I know that once I get a better understanding on this subject I will be able to make better decisions, but for now I'm completely lost.
Should I look for superior education on this? Do I need a mentor on this subject? Am I just stupid? Is this really that hard to understand?