You are viewing a single thread.
View all comments View context
6 points

Probably because it’s the scripting language equivalent to Clippy. Ref.: Approved “verbs”

permalink
report
parent
reply
7 points

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
permalink
report
parent
reply
1 point

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?

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
1 point

🤣

permalink
report
parent
reply
2 points

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

/shrug

permalink
report
parent
reply
4 points

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).

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
1 point

Only if you haven’t disabled or dismissed the “problem”

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 8.3K

    Monthly active users

  • 1.1K

    Posts

  • 61K

    Comments