GithubHelp home page GithubHelp logo

alexandrepiveteau / heig-amt-dependency-injection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softeng-heigvd/teaching-heigvd-amt-dependency-injection

0.0 1.0 0.0 5 KB

Exercise to illustrate DI

Java 100.00%

heig-amt-dependency-injection's Introduction

Dependency Injection

This repo contains code to study the notion of "dependency injection" from the ground up, without any framework.

What do we have in the code?

We have a "pseudo system", which allows us to create a fisherman. We can ask the fisherman to get some fish for us. To do that, he will need some equipment: boots, a boat, bait and of course a fishing rod. It's a wonderful world: whenever the fisherman uses his fishing rod, he will get fresh fish.

We have a unit test that validates the behavior of the system. Let's fix the problem!

Phase 1

  • Fork the repo
  • Open the project in the IDE
  • Run the test and see it fail
  • Read the code

Phase 2

  • Fix the code to make the test pass
  • Open a pull request

Phase 3

  • Review the solutions
  • Introduce the notion of dependency injection

heig-amt-dependency-injection's People

Contributors

wasadigi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.