11
jkuhl
3y

SINGLE

RESPONSIBILITY

FUNCTIONS

HOLY GARBAGE UNTESTABLE DIFFICULT TO DEBUG JFC SHIT.

FUNCTIONS DO ONE THING AND DO ONE THING WELL. LEARN IT, LIVE IT, LOVE IT, OR JUMP INTO A LAKE

that is all.

Comments
  • 2
    But devRant is not open source. Or, perhaps, you've found the source code of it? Please share.
  • 2
    @vintprox unless you're are joking, he is referring to some UI code which sucked Donkey's ugly balls and added devRant tag without awareness
  • 2
    @asgs you know what? I have to agree to your statement.
  • 4
    Functions do many things, and many things well.

    You drop a massive multidimensional array into it, and spit out half the front end..... no? That's not what we do anymore? Fuck! Someone missed the memo 😤
  • 1
    Are you sure, that violations of the single responsibility principle are the actual problem in your team?
Add Comment