Skip to content

elewa-academy/js-notional-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

The notional machine is a mental model your brain builds to understand what JavaScript does during program execution. These notional machines don't need to be precise down to the physical chips, instead they need to accurately describe what is relevant to the task at hand. At the beginning this list includes:

  • How JS steps through a file
  • Source code vs. runtime application
  • Variable initialization & reassignment
  • Functions:
    • Definition vs. Execution
    • Are Objects and executable procedures
    • Scope vs. Context
  • Execution contexts ("Frames" in pythontutor)
  • ...

Your brain will construct an understanding of how JS works whether or not you intentionally guide it, it's what brains do. As great as this sounds it is really very dangerous. JavaScript is complicated and it is very easy to come up with explanations that work for simple Codewars but are not accurate. You won't notice at first, but as soon as you try to move on you will find it nearly impossible to understand what's going on. Unlearning and relearning how JavaScript executes is very difficult and will take a lot of time.

To help you build your Notional Machine, we've provided you with a step-through template meant to be used in conjunction with PythonTutor (for JavaScript) & interesting code samples. With this template + PythonTutor you will learn to step through code just like JavaScript does, all while building your own study reference for the future.

So stick to it! These step-throughs aren't glamorous but they will help you learn JS better and faster than you thought was possible.



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published