Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bort@sopuli.xyz to Programmer Humor@programming.dev · 1 year ago

STOP DOING DEPENDENCY INJECTION

sopuli.xyz

message-square
79
fedilink
401

STOP DOING DEPENDENCY INJECTION

sopuli.xyz

bort@sopuli.xyz to Programmer Humor@programming.dev · 1 year ago
message-square
79
fedilink
  • passepartout@feddit.de
    link
    fedilink
    arrow-up
    21
    arrow-down
    6
    ·
    edit-2
    1 year ago

    Wouldn’t want to write a webserver / database connection / scheduler / etc. from scratch. Spring Boot plus lombok turns 2k lines of code into 100.

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      22
      arrow-down
      3
      ·
      1 year ago

      … Looks both ways…

      Python does the same in 10 lines of code.

      … Ducks under a table to avoid the ensuring flames …

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        1 year ago

        I replaced the P in my LAMP stand with Python and I’ve never been happier.

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          Same here.

      • VantaBrandon@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        They say he’s still ducking to this day

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Yep. That’s why we call it “duck typing” in Python.

    • expr@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Sure… That"s what libraries are for. No one hand-rolls that stuff. You can do all of that just fine (and, actually, in a lot less code, mostly because Java is so fucking verbose) without using the nightmare that is Spring.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.38K users / day
  • 4.66K users / week
  • 9.29K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.31K Posts
  • 43.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org