• rockerface🇺🇦@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    60
    ·
    15 hours ago

    To be fair, the apprentice spell is technically formulated as just “Explode”. It’s just that without an argument specified, it defaults to the largest target within range, which by default incudes the entire solar system.

    • baines@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      11
      ·
      10 hours ago

      oh god early career, coding on a 20 year old program

      using makefiles to compile while on a remote host

      lack of target resulted in trying to programatically delete the remote hosts root

      thank good i did not have the permission

      why is defaulting like this a thing instead of a syntax error?

      • merc@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        99% of the time it’s fine, because 99% of the time the person who wrote the Makefile undertands Makefiles and knows that the first thing you do is define a default target. A default target that’s chosen reasonably is a very nice feature of make because there are no standard names for targets, and no easy way to find out the names of targets other than trying to read the Makefile, which can be a pain in the ass.

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      15
      ·
      12 hours ago

      Apprentice mages usually begin by aiming at their own feet and yelling the incantation, some immediately turn to aim at the sun “just because”