Jacob forgot how to do rubber duck debugging, so he's explaining it to us to figure out where the bug is.
@chrissaltmarsh6777
Жыл бұрын
I've been doing this for many years (I'm 73) and it works. You find yourself about to say something daft, and there it is - damn, that is what is wrong! Mind you, I find talking to a plant better.
@SimGunther
Жыл бұрын
You can also "talk to the drawing". Just draw the high level mindmap of the code and see if it makes sense or if needs to be fixed/simplified. It can be a whiteboard, a piece of paper, or a drawing application, but draw anything and you might also see your drawing skills improve over time.
@vectoralphaSec
Жыл бұрын
Yes rubber duck debugging is a really well known and trusted debugging technique. Know about it for years. I don't have a rubber duck but i do have a lot of Pokemon plushies though. I use my little Squirtle and Turtwig plushies for debugging.
@Mnogojazyk
Жыл бұрын
Thanks for the trip. I apply an editor's trick: set aside the work for several hours at least, and do something else. When I resume working on the problem, it usually turns up faster because my attention has been diverted onto the other things, but my brain is actually still working on the problem. Is this perfect? Nope, not by any stretch of the imagination is it perfect. But it helps. By the way, when I find the problem, I quote a line from "Spock's Brain," an episode of the original Star Trek series: "Brain and brain! What is brain?!"
@loc4725
Жыл бұрын
Taking a break away from the monitor. Just walking away, relaxing and staring at a blank wall whilst thinking about the code and the possible execution paths often works for me.
@mrcrackerist
Жыл бұрын
My daughter has the same duck... I usually take a 5 minute break and it helps me a lot.
@zyghom
Жыл бұрын
recently my kids asked me why I am talking and to who when I am programming... now I know: I need to buy a duck, so I will be able to answer to them without suspicions ;-)
@Error_00101
Жыл бұрын
This method is not too different from how I learned to solve engineering problems! My teacher said just talk about the project to yourself (or in your case to the duck) while you are stuck on something. Fast foreward to now: I still do it and at the beginning i got a few confused looks but nearly everybody comes to me for solving complex problems. When I explained to them what i was doing their looks got even more confused, but hey the method works.
@rustycherkas8229
Жыл бұрын
IQ is an abbreviation of "I quack"... Always good to talk with an intelligent partner.
@Vulto166
Жыл бұрын
I have a Linux tux as my little friend. It helps a lot.
@casperes0912
Жыл бұрын
I talk to Seal. Seal's good. She's helped many times
@johnpawlicki1184
Жыл бұрын
I agree wholeheartedly! I have done this many many times during my career. When happens many times I realize that something I am saying makes no sense. XLNT!
@CaptainWumbo
Жыл бұрын
I never heard of this but I used to always go on walks and I solved many problems that way, whether it was how I wanted to archetect something or what I could do to solve a bug or anything. You can iterate quickly in your mind if you know the domain well. It's easy to get tunnel vision or chase red herrings if you're staring at the code. There's some research to suggest looking long distances helps us to think more broadly and creatively.
@joegoosebass3958
Жыл бұрын
Hey Jacob, can you create a video to show us how to hook up static / dynamic libraries via an IDE (MacOS with Xcode for example) maybe do an example hooking up SDL2 or GTK3. Thanks
@nic3point0
Жыл бұрын
I usually talk to myself, I will try this. I need to find a toy for my desk I can talk too.
@ToySeeker
Жыл бұрын
🦆 Listening intently, love this! 😂
@gerdsfargen6687
Жыл бұрын
Dude you rock! You are one great teacher. What helped you to organise your thoughts as you navigated tricky concepts, Professor?
@DavidOrtiz-pw8pp
Жыл бұрын
My secret is to live with other people that also have to code about similar things so it is one day for me the following day for you. And sometimes it is true that it is quite effective, some thing that you were struggling is solved in no time
@slugbtye
Жыл бұрын
Any thoughts on zig? Would love here your take/ would love to see a zig series from your point of view :)
@oldfinnishfarmer
Жыл бұрын
Oh yeah, i am using screen cleaning monkey figure. And one hedgehog toy too haha!
@CodeActice
Жыл бұрын
I prefer to talk to myself, it works for me!
@tomsawyer283
Жыл бұрын
Jacob love your content but this could of been more concise. It’s when you explain your code line by line to another person (even better if they don’t have a programming background) or think/speak a loud said code. It’s forces you to analyze your code and not skip over stuff, giving you a potential better perspective on what, where, and why said bug(a) are occurring.
@raptoress6131
Жыл бұрын
As long as the duck doesn't start talking back.
@JacobSorber
Жыл бұрын
Yeah, I should have mentioned that as a secondary benefit. If the duck starts talking back, it's time to get some sleep. 😀
@darvidtorres
Жыл бұрын
Where can I get myself a large duck like that?
@antoineleduc7611
Жыл бұрын
I like to talk to a friend rather than a duck They don’t understand shit but it helps me :D
@berk473
Жыл бұрын
Nice one😂. Thank you
@dimitrioskalfakis
Жыл бұрын
yes, it is called self-psychoanalysis.
@johanngerell
Жыл бұрын
it's funny because it's true
@HansBezemer
Жыл бұрын
In my 45 years of programming I never used a duck, I must admit. I've found (and fixed) bugs in various unconventional ways, but not this one. I does remind me, however, of the Feynman learning techniques - so there might be something to it (as a fan of Feynman - how original for a nerd!).
@nopens
Жыл бұрын
Warning. I have 5 ducks now. Each bigger than the previous. Help. Actually ducks never helped me because i know its a trick. Instead i open a forum or a chat with someone and type out my problem in a way, describing it step by step as if person on the other end never wrote a single line of code. I never send it, but it helps to see the problem from new perspective. And helps more often than not.
@maxaafbackname5562
Жыл бұрын
So we have duck-typing. Now we have duck-debugging. What's next...?
@MECHANISMUS
Жыл бұрын
Does it relate to the paired dev practice?
@JacobSorber
Жыл бұрын
Both involve vocalizing. But pair programming has the added benefit of a second set of eyes that ideally has better programming skills than a rubber duck.
@mrJety89
Жыл бұрын
Use the dialectic method like a normal person would. Question Answer Question Answer Question Answer Do it step by step, and test every little step you take.
@ohwow2074
Жыл бұрын
I don't have one of these. I talk to my brain lol. And it works like I'm really talking to real people as I do during a day.
@directx872
Жыл бұрын
chat gpt is even better because it answers back
@TracyNorrell
Жыл бұрын
Hol'up! Maybe this is why my family runs away when I come out of my office!
@allocator7520
Жыл бұрын
I talk to my pillow ;-;
@31redorange08
Жыл бұрын
The cuts in this one are excessive, multiple per sentence. Fine to listen to, but hard to watch.
@gmcfarla
Жыл бұрын
This process really works! We use it at my work a lot. I've written a silly rap song about it: kzitem.info/news/bejne/qpWo3YqEoqp3oYY. Thanks for discussing this process, and for sharing Sir Quacksalot with us!
@zxuiji
Жыл бұрын
Reinforcing stereotypes, lol just lol XD On a separate note, I'd rather talk to god since he's the one giving us all our intelligence, yeah I know many of you refuse to believe he exists without seeing a physical manifestation of him (jesus christ is one such manifestation btw), however that would limit your understanding of him as just like a mirror can only present the surface level details of a person and not their organs etc, a physical manifestation can only present surface level details of god too. As for why he doesn't strike down criminals etc, if he starts striking down 1 sinner, be they a criminal in our eyes or not, then he has to strike down ALL of us to be fair/just. Now putting aside that common question, going back to the limited understanding I think god is information - not the words, numbers, etc we use to represent that information (though that is indeed part of him) but the information itself, that is to say information is sentient and that is why trying to look for a physical manifestation is only limiting your understanding of him.
@uanbu6539
Жыл бұрын
Hi I'm interested in starting embedded. I have a strong understanding of the c++ language but don't know where or how to start my embedded journey. Please may I ask for your advice regarding this?
Пікірлер: 44