@funfunfunction
  @funfunfunction
Fun Fun Function | Dependency Injection basics- Fun Fun Function @funfunfunction | Uploaded January 2017 | Updated October 2024, 2 hours ago.
πŸ’– Support the show by becoming a Patreon
patreon.com/funfunfunction

Dependency injection (here shown using JavaScript) is a software design pattern that is primarily to make code unit testable, by moving the responsibility for getting dependencies outside the code that depends on it. It does require some restructuring of your application, which feels a bit wrong to do just to get testability, but it’s an otherwise remarkably simple pattern that gets the job done.

πŸ”— Code from the episode
gist.github.com/mpj/c55dc66bc2cfd389dbbd25ab5092d4f3

πŸ”— Promises in JavaScript video
youtube.com/watch?v=2d7s3spWAzo

πŸ”— Fetch API video
youtube.com/watch?v=g6-ZwZmRncs

πŸ”— Composition over inheritance (Other video referenced at the end)
youtube.com/watch?v=GhbhD1HR5vk&index=1&list=PL0zVEGEvSaeHBZFy6Q8731rcwk0Gtuxub

πŸ”— Mocha (test runner for JavaScript)
mochajs.org

πŸ”— node.js (run JavaScript in the command line)
nodejs.org/en

πŸ”— npm (package manager for JavaScript)
npmjs.com

πŸ”— Music: Peacock by 7 minutes dead
youtube.com/watch?v=Mi-xOhMqrkg

πŸ”— Music: Funky One by Incompetech
incompetech.com/music/royalty-free/index.html?keywords=Funky+One

πŸ”— FIGHT by Tokyo Machine
youtube.com/watch?v=qvBlHBHUTMs

πŸ’› Follow on Twitch
We record the show live Mondays 7 AM PT
twitch.tv/funfunfunction

πŸ’› Fun Fun Forum
Private discussion forum with other viewers in between shows. https://www.funfunforum.com. Available to patron members, become one at patreon.com/funfunfunction

πŸ’› mpj on Twitter
twitter.com/mpjme

πŸ’› CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:
circleci.funfunfunction.com

πŸ’› Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:
quokka.funfunfunction.com

πŸ’› FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly YouTube shows on programming πŸ… thanks to its consistency and quality reaching 200,000+ developers.

πŸ€¦β€β™‚οΈ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.

Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.

πŸ“Ή Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.

⏯ On Fridays, an edited version of the show is adapted for and published on YouTube.

Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Software Development, Project Management
Dependency Injection basics- Fun Fun FunctionBetter code sharing through monorepos?highland.js and the problem with debugging streamsStructuring a Web App with a Continuous Integration Workflow (CI/CD)Hate-driven development - Lets code an editor P4 - FunFunFunction #63Time boxing and pomodoro timers - Twitch stream highlightWhy not use linters for code style? - Twitch stream highlightPromises - Part 8 of Functional Programming in JavaScriptKeeping up with the frameworks - Twitch stream highlightTrying CSS Grid for the first time (Adam Argyle)Unit testing in JavaScript Part 4 - Mocking basicsTeaching programming to children and teachersΒ - Fun Fun Forum Spotlight

Dependency Injection basics- Fun Fun Function @funfunfunction

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER