Programming Tip #2: Avoid globals for dependencies; instead inject them as function arguments.

jesterxl

Jesse Warden

Posted on April 30, 2022

Programming Tip #2: Avoid globals for dependencies; instead inject them as function arguments.

Programming Tip #2: In JavaScript, Python, and Lua, avoid globals for dependencies; instead inject them as function arguments.

Image description

Learn More from Justin Searls and Dave Farley below.

💖 💪 🙅 🚩
jesterxl
Jesse Warden

Posted on April 30, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related