I'm at a bit of a crossroads as I work on a small learning project using vanilla JavaScript. I've dabbled in TypeScript and React before, but I want to dive deeper into the fundamentals this time. My goals are to understand the web technologies better, structure my code effectively, and learn the pros and cons of using libraries and frameworks versus going it alone with the core technologies. I'm uncertain about the best resources to advance my knowledge. Should I focus on clean code, architecture, or design patterns? Also, is it acceptable to use JSON or objects in my code instead of a database for this project? I really want to know what the next steps are for enhancing my understanding and making effective decisions. Any advice would be greatly appreciated!
4 Answers
Learning with vanilla JS is a fantastic choice! For your project, you can definitely use JSON files instead of a database; that's a great way to keep it simple. Just create a module for your data and import it where needed.
As for architecture, focus on making your functions small and single-purpose. If something feels too complicated, break it down. You'll find that learning this way is more intuitive than getting caught up in debates over OOP vs. functional programming.
Regarding books, I'd suggest reading MDN docs cover to cover; they're dry but incredibly informative. Get "JavaScript: The Good Parts" when you're ready for a shorter read. Understanding concepts like event delegation and the event loop will really demystify frameworks like React and Vue for you!
Real projects are the best way to learn! Try seeking out small tasks or freelance gigs that push you to develop your skills. If you can, working on something with a client can elevate your learning experience dramatically.
Database-wise, Postgres is powerful and worth exploring, but for your current project, sticking with JSON is perfectly fine!
You may want to check out "You Don't Know JS" by Kyle Simpson and "The Hard Parts of JavaScript" by Will Sentance. Both courses are excellent and have really helped me grasp the complexities of JS. Also, keep exploring blogs and resources as you learn; they can provide invaluable insights into best practices! You seem to be trying to absorb a lot at once, so pace yourself to avoid getting overwhelmed.
Wes Bos has a great JavaScript course that could enhance your skills while focusing on practical applications of plain JS. It's perfect for gaining confidence and solid fundamentals before jumping back into frameworks later!

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically