• @pantyhosewimp
      link
      72 months ago

      Boy oh boy would you hate AppleScript. This is what I have to type to throw files in the trash instead of deleting them.

      tell application ”Finder” to delete POSIX file “/full/fucking/path/to/file
      • @[email protected]
        link
        fedilink
        22 months ago

        Why do you need to “tell” some “application”? Why do you need a “finder” if you know the absolute path already? Does this imply that “finder” always runs, ready to be told something?

        • @pantyhosewimp
          link
          22 months ago

          Finder is macOS equivalent of Windows Explorer (maybe, it’s been a while). I assume Linux desktop suites have various similar processes. In other words, a second optional layer (with more features) to access runtime libc file manipulation api.

          • @[email protected]
            link
            fedilink
            12 months ago

            Explorers in Linux don’t work like this. They are just some app you can move your files with.

            • @pantyhosewimp
              link
              12 months ago

              Yes. Finder is just some app you can move files with on macOS.

    • capital
      link
      fedilink
      22 months ago

      I really appreciate the consistency. People also dog it for being verbose to write but it makes it so much more legible.

      /shrug

      • @[email protected]
        link
        fedilink
        42 months ago

        I usually write verbose code and use self-documenting function names, but to have such a limited set of verbs available can be frustrating. They could at least have used a proper dictionary and included all verbs. Then have a map of synonyms that are preferred, like instead of ‘create’ they prefer ‘new’ (which isn’t even a verb).

    • @[email protected]
      link
      fedilink
      12 months ago

      You don’t have to follow best practices though. You can name shit pretty much whatever you want.