bort@sopuli.xyz to Programmer Humor@programming.dev · 7 months agoSTOP DOING DEPENDENCY INJECTIONsopuli.xyzimagemessage-square49fedilinkarrow-up118arrow-down10
arrow-up118arrow-down1imageSTOP DOING DEPENDENCY INJECTIONsopuli.xyzbort@sopuli.xyz to Programmer Humor@programming.dev · 7 months agomessage-square49fedilink
minus-squarepassepartout@feddit.delinkfedilinkarrow-up0arrow-down1·edit-27 months agoWouldn’t want to write a webserver / database connection / scheduler / etc. from scratch. Spring Boot plus lombok turns 2k lines of code into 100.
minus-squareexpr@programming.devlinkfedilinkarrow-up1·7 months agoSure… 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.
minus-squareMajorHavoc@programming.devlinkfedilinkarrow-up0·7 months ago… Looks both ways… Python does the same in 10 lines of code. … Ducks under a table to avoid the ensuring flames …
minus-squareVantaBrandon@lemmy.worldlinkfedilinkarrow-up0·7 months agoThey say he’s still ducking to this day
minus-squareMajorHavoc@programming.devlinkfedilinkarrow-up1·7 months agoYep. That’s why we call it “duck typing” in Python.
Wouldn’t want to write a webserver / database connection / scheduler / etc. from scratch. Spring Boot plus lombok turns 2k lines of code into 100.
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.
… Looks both ways…
Python does the same in 10 lines of code.
… Ducks under a table to avoid the ensuring flames …
They say he’s still ducking to this day
Yep. That’s why we call it “duck typing” in Python.