8000 GitHub - fatso83/learning-resources
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fatso83/learning-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Learning Resources

These are some of the resources that I find stands the test of time, typically deeply influencing me at some point and/or standing as great reference pieces that are worth revisiting in a world filled with constant flux.

After 15 years, I have seen how many of my favorite articles and resources have started vanishing, and so I thought I would save the ones I could, trying to attribute the original owner as best I could.

I will try to add some context for each entry.

Dependency Injection and writing testable code

I got my first professional job in software in late 2010 and quickly got interested in unit testing and related topics such as dependency injection (DI). I found the annotations and "magic" used everywhere hindered my understanding of what was really going on.

DIY DI by Chad Parry

One influental guy at Google that wrote a ton of articles about the topic at the time (2008-2010) was Miško Hevery of Google (Google Guice, Angular, Qwik, ...).

In his blog he recommended a set of documents by Chad Parry on "DIY DI". This was finally the simple, down-to-earth explanation I had been looking for! And it really resonated with me, showing how easy DI really is under the hood.

It does away with all the magic in favor of moving all construction the static main method and a bunch of providers and factories (glue code), ensuring no business code is constructing its own dependencies.

Chad's original blog entry is still online, with all files, but in case it goes down I made a copy of the original pdf. For easy viewing I manually created a Markdown version of the pdf and unzipped the code examples.

Related:

Testing Through the Domain: the example (Anders Sveen)

A full repository on Github with working code and Markdown documents explaining the intent and workings of how to do effective testing through the domain using Fakes. Really cleared up some misconceptions for me and made it much easier to adopt and understand. Also goes for full manual DI, but instead of the factories of the DIY DI approach he has choses to use a DI Container that holds all the dependencies.

Related:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0