DEV Community

Adam Chain
Adam Chain

Posted on

Practice javascript via first principle thinking, not syntax memorization

I'm a brand new coder. I started my first JavaScript course on Udemy on November 13. Quickly, I realized that I grasp new concepts via understanding the reasoning behind where and why specific pieces of code belong, rather than just memorizing syntax. Knowing how to write every JavaScript component correctly is valuable, but it doesn't automatically = understanding how to structure a program, determine execution order, or manage control flow. For me, grasping the "why" is essential to mastering the "how."

To apply this learning philosophy, I created my first public program—a tool that generates project guidelines with these principles in mind. Powered by OpenAI's API and structured outputs, it allows you to specify the JavaScript concepts you want to practice (e.g., setTimeout, eventListener). The program provides step-by-step instructions using the "why" teaching method and even generates PDF/TXT guidelines to help you follow along as you build.

Open on GitHub

*I built this for myself but, based on demand from my new coding friends, I decided to make it public. All feedback is appreciated.

Example output:

Image description

Top comments (0)