awful.systems
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bugsmith to Programming@programming.dev • 1 year ago

What even is “Dependency Injection”? (a practical example using Go)

medium.com

message-square
4
fedilink
18
external-link

What even is “Dependency Injection”? (a practical example using Go)

medium.com

bugsmith to Programming@programming.dev • 1 year ago
message-square
4
fedilink
Just a moment...
medium.com
external-link
  • @KindaABigDyl@programming.dev
    link
    fedilink
    1•1 year ago

    I didn’t know Go had interfaces. Neat

    • @VoterFrog@lemmy.world
      link
      fedilink
      3•1 year ago

      It does and they’re kinda weird (if you’re used to more like Java-style interfaces). It flips the dependency between the interface and implementor on its head. Worth looking it up, it’s interesting.

Programming@programming.dev

!programming@programming.dev

remote_follow_modal_title

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 669 users / day
  • 1.78K users / week
  • 3.12K users / month
  • 6.6K users / 6 months
  • 20.3K subscribers
  • 1.77K Posts
  • 22.4K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • @MaungaHikoi@lemmy.nz
  • @UlrikHD@programming.dev
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org