• 0 Posts
  • 45 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle







  • HamsterRage@lemmy.catoLemmy Shitpost@lemmy.worldNew tech discovered
    link
    fedilink
    arrow-up
    30
    arrow-down
    3
    ·
    3 months ago

    I think it’s a bit more than that. I think that the idea is that you simplify the problem so that the rubber duck could understand it. Or at least reformulate it in order to communicate it clearly.

    It’s the simplification, reformulation or reorganisation that helps to get the breakthrough.

    Just thinking out loud isn’t quite the same thing.



  • It goes really well with YAGNI. Also DRY without YAGNI is a recipe for premature over-architecting.

    This is also one of the main benefits of TDD. There was a really good video that I can’t find again of a demonstration of how TDD leads you to different solutions than you thought you use when you started. Because you code exclusively for one single requirement at a time, adding or changing just enough code to meet each new requirement without breaking the earlier tests. The design then evolves.











  • Keep in mind that it has been decades since I last used Kermit, but I’m pretty sure the use case it was originally designed for was…

    Connect to a serial port, which had a modem attached. Talk to the modem and get it to dial a number. Presumably, the remote end answered and the port attached to its modem would issue a login prompt. Negotiate the login and then issue a bunch of commands to change directories and then launch Kermit on the remote system. After that Kermit to Kermit communications took over until you terminated the session. Finally, log off the remote system and hang up the modem.

    All of this stuff could be done via scripts. I seem to remember that it would actually wait for a response, and then parse the response in the script. I don’t remember ever doing polling loops.

    If you’re on a *nix box of some type, it’s totally possible to open up a serial port for manual I/O even in something like a bash script. Even if you have to reverse telnet to a terminal server.