moonboot labs social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bort@sopuli.xyz to Programmer Humor@programming.dev · 6 months ago

STOP DOING DEPENDENCY INJECTION

sopuli.xyz

message-square
73
fedilink
398

STOP DOING DEPENDENCY INJECTION

sopuli.xyz

bort@sopuli.xyz to Programmer Humor@programming.dev · 6 months ago
message-square
73
fedilink
  • passepartout@feddit.de
    link
    fedilink
    arrow-up
    20
    arrow-down
    6
    ·
    edit-2
    6 months 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
      ·
      6 months 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
        ·
        6 months 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
          ·
          6 months ago

          Same here.

      • VantaBrandon@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        6 months ago

        They say he’s still ducking to this day

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          6 months ago

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

    • expr@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      6 months 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.

  • 50 users / day
  • 767 users / week
  • 3.42K users / month
  • 16.8K users / 6 months
  • 2 local subscribers
  • 19.4K subscribers
  • 1.01K Posts
  • 38K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org