A programmer's true friend

avatar
(Edited)

cl7kbwxsv01su14m7ez31em6s_Is_it_the_discovery_of_a_new_passion.webp

For some time now I have been trying to come up with a good idea on what topic I would like to write to everyone so as to develop more regularity despite the many duties I have to perform. So the idea was born for what I love, which is programming, I remember how many people liked it when I published information on creating a bot for Cartel, so I would like to create a small programming corner and publish programming trivia and mini tutorials.

image.png

Rubber ducky method

Today I would like to touch on a topic that is quite interesting, and probably unknown to many people. We're going to talk about the rubber ducky method, which is the programmer's biggest helper. Let's perhaps start by citing what this method is all about:

"In software engineering, rubber duck debugging (or rubberducking) is a method of debugging code by articulating a problem in spoken or written natural language. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug their code by forcing themselves to explain it, line-by-line, to the duck. Many other terms exist for this technique, often involving different (usually) inanimate objects, or pets such as a dog or a cat.

Many programmers have had the experience of explaining a problem to someone else, possibly even to someone who knows nothing about programming and then hitting upon the solution in the process of explaining the problem. In describing what the code is supposed to do and observing what it actually does, any incongruity between these two becomes apparent. More generally, teaching a subject forces its evaluation from different perspectives and can provide a deeper understanding. By using an inanimate object, the programmer can try to accomplish this without having to interrupt anyone else. This approach has been taught in computer science and software engineering courses." - check for more info

image.png

As you can see, it's quite funny, because the programmer actually, instead of talking to another programmer about his code so as not to take up his time, simply turns to a rubber duck and explains everything to it step by step. Of course, it doesn't have to be a 1:1 duck, but any object or animal, or even another human who doesn't understand anything. Surprisingly, this is a very effective method, because it is always easier to find a mistake by thinking "out loud".

I remember that at the time when the pandemic started I was also sometimes such a duck for my friends because we would go on discord, they would tell me their problems with the code and in the course of the story, they would find the answer to their questions themselves, thanking me for my help. At which, of course, I didn't answer anything, but only listened to what they had to say.

Here, thinking longer, we enter the psychological zone and the way humans work, it is really amazing and shows, in my opinion, that man is a herd animal because even though he can unravel a task on his own, he feels a strong need to express his thoughts out loud and share them.

image.png

And that's all thank you for stopping by to view this article



image.png

I also invite everyone who has not yet joined our 1UP Community to see what we are up to!


For the best experience view this post on Liketu



0
0
0.000
12 comments
avatar

Very interesting my friend not heard of this term before but it makes total sense thanks for sharing on Listnerds @kwskicky
!ALIVE
!PGM
!CTP
!BBH

0
0
0.000
avatar

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT - 0.1 THG - tokens to @benthomaswwd

remaining commands 1

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-0.1 THGAMING-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0
0
0.000
avatar

I know I can do anything better if I have to teach it to others or explain it. My math understanding took off when I started teaching it. My knitting skills deepened when I taught others and had to think about exactly what I was doing.

Rubber ducky is a nice term. When I programmed we talked about making a program "idiot proof" by trying to figure out all the ways a non-programmer might misunderstand/misuse a program. (I am an ancient FORTRAN programmer.) !HBIT

0
0
0.000
avatar

Never thought that you could speak code until I saw your mail on ListNerds.
I've been working with a few small projects that involved coding (mainly Android and Arduino) in the past but never heard about this.
I will try this sometimes, who knows, it might work. 😊
Also, I am wondering if you could help me and be my duck one day in the future. 😁

!CTP !PIZZA

0
0
0.000
avatar

Great post! I'm currently working on my website, this should be helpful

0
0
0.000
avatar

This is actually quite interesting ... I practice my videos and speeches alone at times, but a rubber duck would work as well!

0
0
0.000