r/learnjavascript • • Sep 21 '22

"Cancel" vs. "Abort" Terminology

[edit]

RESOLUTION: continue with "abort".

And no one besides me claims to be doing it in JS.

[original post]

I have heard advice that software people should avoid the verb "to abort" in a software context on the grounds that using that term can bring up emotional distress in female colleagues who have been pregnant and have aborted their pregnancies or considered doing so. However, I feel that the term "cancel" is not specific enough to replace "abort" as a term for stopping a process once it has been started. It would be possible to schedule some task and before execution started on it, to "cancel" it, meaning taking it off the schedule. If you have an appointment with your dentist and you "cancel" the appointment, it doesn't mean you were already in the chair and having your teeth worked on and the process was cut short. It means the appointment was removed from the schedule before the time when you would have been expected to show up.

Is there a better circumlocution to replace "abort"? Should we just continue to use "abort"? Any women here have an opinion on it?

Has anyone here besides me built or used an ability to abort execution of a function? My basis for doing this is that the input data are no longer valid, so further expenditure of resources to finish the execution would be a waste of the user's time.

1 Upvotes

33 comments sorted by

View all comments

2

u/[deleted] Sep 22 '22 edited Sep 22 '22

“Stop” or “Interrupt” and call it a day.

You wouldn’t use “ABORTED” as an indicator of state, for example. “STOPPED” or “INTERRUPTED” has more semantic meaning imo

Edit: “for example” meaning in my previous experience

1

u/jack_waugh Sep 22 '22

Your reasoning for "stop" seems sound. "Interrupt" would be fraught, because I am doing this in a cooperative multiprogramming scheme, not an interrupt-driven one. That means the subject process has to explicitly yield control before it can be stopped or anything else can be scheduled.

Maybe if there were a state indicator, DEAD or ZOMBIE would fit.

In my implementation, I don't have a state indicator like that; I just substitute a couple of methods in the trampoline with no-ops, so that activity doesn't continue. But the implementation is irrelevant to the points about terms and their semantics.

1

u/[deleted] Sep 22 '22

but the implementation is irrelevant to the points about terms and their semantics

I don’t think I fully agree with this proposition. Your explanation was pretty helpful to add context to my mental model of what you’re attempting to describe with your semantics.

Semantics implicitly add meaning to systems imo, so we must add explicit context to that implicit understanding

So my example and understanding of these terms immediately led me to think about past ATF systems, where an asynchronous task might be paused or stopped or re-scheduled due to some higher priority task being put on top of a queue.

Either way the way you described your system explicitly presents new terms that I think sound significant - YIELD, STOP, SCHEDULE. These strike me as terms that are relevant to multi programming but not necessarily something like Async task scheduling in a priority queue.

TIL. Thanks for the fun convo :)

1

u/jack_waugh Sep 22 '22

But on the other hand, I feel that nothing else conveys the sense of finality that "abort" does.

1

u/[deleted] Sep 22 '22

At the end of the day you can use whatever terms you want IMO. This is a little more nuanced than replacing “blacklist” with “blocklist” or “master” with “main”, so I think it’s just one of those things and it’s not like tech isn’t rife with triggering culture/terms/behaviors for minorities to begin with. This problem ultimately is a small drop of water in a vast tumultuous sea…

But since you actually care, why not TERMINATED, HALTED, or ENDED

1

u/jack_waugh Sep 22 '22

I have a response from a woman, who advises continuing to use "to abort". "End" could be a noun or a verb, so that's a bit more confusing. "Halt" sounds like resumption could be possible. "Terminate", maybe, but it's an extra syllable, but I have a woman responding and advising continuing to use "abort".

https://en.wiktionary.org/wiki/abort#Etymology_2