• couch1potato@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    You can easily tell when a mathematician has written code because it’s typically hot garbage in terms of readability.

    I feel personally attacked lol

    • Bobby Turkalino@lemmy.yachts
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      I worked with a physicist who wrote code that was so unreadable, it actually made me laugh. He would often include his initials in variable names, even though he was pretty much the only person working in the code base. His functions usually included a flags argument, which was a list of (usually undocumented) integers that you could pass in to change the behavior of the function. For example, one time one of his functions wasn’t giving the expected output, so I asked him and he replied “oh did you put 32 in the flags list?” Like he just didn’t understand that you shouldn’t need to read the entire contents of a function in order to understand how to use it.

      Inb4 “well why didn’t you help him?” he was in his 70s and vehemently refused any advice.

      • Grandwolf319@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        12 days ago

        His functions usually included a flags argument, which was a list of (usually undocumented) integers that you could pass in to change the behavior of the function.

        This hurt to read