• hperrin@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    It always gives me an uneasy feeling when I try to run code I just wrote and it works the first time.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      9 months ago
      /**
       * foobar(a, b)
       * foos up a with b.
       * Note: this should never work. Fooing is impossible, and the fact that this function achieves it serves only to prove God has a wicked sense of humor.
       */
      
  • TunaCowboy@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Coder you know can’t program, programs.

    You should be able to debug/profile/trace your way to understanding, otherwise that impostor feeling isn’t a syndrome.

  • ShortN0te@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    Happened a few times to me. Always make sure that you have saved every file correctly and that you compile the correct project. And that there are no cached files or somewhat somewhere.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      WTF! How does that even work?

      What does the compiler do when there are 5 implementations for the same name, and none fit the type system?