• Artyom@lemm.ee
    link
    fedilink
    arrow-up
    39
    ·
    10 months ago

    A few weeks ago, on Monday morning, I was looking through a PR I was working on and decided to make a ticket to write a new function that would be super useful for my current work. I then leave for meetings for the day, then come back in the afternoon and find some time to write some code, and lo and behold, I see exactly the function I wanted was already written. I wrote it at 4:00 on Friday, docstring and everything, 72 hours before I wrote a ticket to create the function. Until rereading it, I had no memory of writing it.

    • palordrolap@kbin.social
      link
      fedilink
      arrow-up
      12
      ·
      10 months ago

      Personal project a while ago. Had an idea in my head that I needed to rewrite using a particular language feature but had been putting it off because I couldn’t quite wrap my head around the implementation details.

      Eventually decide to sit down and plug away at it. Find the code already uses the language feature.

      I had either written it with that language feature in the first place or had been back at some time I don’t remember and done the work I didn’t think I was capable of doing.

      I could still be convinced that it was done by pixies or the whatever might be the programming equivalent of shoemaker elves.

  • Auzy@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    On Friday, wrote some new helper code for the templates we use for development because I did a search of the code and couldn’t any such code there. Wasted 20mins writing it

    An hour later, found I wrote the functions but had simply put them in a different spot :/

      • vvvv@lemmy.mlOP
        link
        fedilink
        arrow-up
        9
        ·
        10 months ago

        Yes, that’s a more proper word. I think I meant that one. Maybe just I should just use bug. Thank you. English is not my first language.