12
sgoel01
7y

Am I the only one here who doesn't use rubber duck for debugging ? Does it really help ?

Comments
  • 0
    Really? talking to urself is some kind of rubber duck debugging 🤣
  • 0
    @CSaratakij But how does a rubber duck help ???
  • 0
    And I am too afraid to ask this at this point if time...
  • 1
    The idea is there is something constantly judging you, silently upset that you gave that variable a bad name, wrote the method sloppy, used JavaScript instead of typescript, stuff like that.
  • 2
    When dealing with problems, talking about it helps. That is common sense.

    Some people noticed that it is not required that the other person is an active part of the conversation, and for some, talking to a mute and deaf asian janitor or their favorite teacup works just as good.

    The duck is what some used and that spreaded and became rubberducking. Use whatever you like.
  • 1
    Once I had a problem with a part of code and I couldn't point my finger at the problem. Some part of the logic was wrong. I could have solved the problem using a lot of print statements. But instead...

    I turned to my friend and started explaining the logic. Now he wasn't interested in listening to my explanation, so he just nodded. Half way through my explanation, I realised what I did wrong.

    Everything was ok but this entire scenario resulted in wasting my friends time and my struggle to ignore the look on his face which clearly said "Why the fuck are you wasting my time?" wasn't easy. Active participation of the partner wasn't needed here. So programmers generally use rubber ducks as their partners in debugging the code to avoid such scenarios.

    And also they say that ducks are the best programmers.
  • 1
    Me neither!
  • 1
    I either talk to myself (when alone), pick up my cat or explain it to my gf. Most of the time I realize why it isn't working. If nothing helps I start reading every line and write a comment describing what it does.
  • 1
    I usually find the right solutions while writing comprehensive stackoverflow questions.
  • 0
    @dested fuck anyone judging me for not wanting to waste my time on useless extraneous code in TS
  • 0
    Mostly I use my duck for things like "WHY, MR. DUCK? WHY WON'T THIS WORK? WHY DO YOU SIT THERE SMILING AT ME LIKE YOU KNOW SOMETHING I DON'T? WHERE DID I GO WRONG?"
  • 1
    I talk to myself. Not sure if it worst than talking to a duck but i got some strange looks 🤓
Add Comment