this post was submitted on 07 Jul 2024
537 points (93.0% liked)

linuxmemes

21282 readers
284 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    you are viewing a single comment's thread
    view the rest of the comments
    [–] MrPommeroy@lemmy.world 6 points 4 months ago (3 children)

    Probably because it's the scripting language equivalent to Clippy. Ref.: Approved "verbs"

    [–] pantyhosewimp@lemmynsfw.com 6 points 4 months ago (1 children)

    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”
    
    [–] PlexSheep@infosec.pub 1 points 4 months ago (1 children)

    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@lemmynsfw.com 2 points 4 months ago (1 children)

    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.

    [–] PlexSheep@infosec.pub 1 points 4 months ago (1 children)

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

    [–] pantyhosewimp@lemmynsfw.com 1 points 4 months ago

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

    [–] capital@lemmy.world 2 points 4 months ago (1 children)

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

    /shrug

    [–] MrPommeroy@lemmy.world 4 points 4 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).

    [–] lud@lemm.ee 1 points 4 months ago (1 children)

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

    [–] MrPommeroy@lemmy.world 2 points 4 months ago (1 children)

    No, but if you don't the UI will nag at you just like Clippy did, which is my point.

    [–] lud@lemm.ee 1 points 4 months ago

    Only if you haven't disabled or dismissed the "problem"