Use of commas in a New Yorker article

In the February 11, 2019 edition of The New Yorker, there is a weird profile of the writer Dan Mallory. Can someone help me explain the grammar of the commas I have bolded below? Why is there a comma after "disdain"? Why the comma before the words "and worked"? Presumably The New Yorker must have its reasons:

As if impatient for advancement, Mallory often used his boss’s office late at night, and worked on her computer. On a few occasions in 2007, after Mallory had announced that he would soon be leaving the company to take up doctoral studies at Oxford, people found plastic cups, filled with urine, in and near Linda Marrow’s office. These registered as messages of disdain, or as territorial marking. Mallory was suspected of responsibility but was not challenged. No similar cups were found after he quit. (Mallory, through a spokesperson, said, “I was not responsible for this.”)


Solution 1:

The comma before the coordinating conjunction or

These registered as messages of disdain, or as territorial marking.

is a prosodic comma, not a grammatical one, that is, one dictated by a pattern of speech imitated in print rather than rules of grammar, which this usage superficially violates. Commas come before coordinating conjunctions only when they introduce an independent clause or optionally — the so-called Oxford comma — the last element in a series.

I finally just sat, at which time he realized that he had not even offered me a seat. “Excuse me, monsieur, I didn’t even offer you a seat or something to drink or eat. Would you like some coffee or tea or perhaps something stronger?” He hardly paused for a breath. — Max Ciampoli, Linda Ciampoli, Churchill's Secret Agent: A Novel Based on a True Story, 2010.

But what if the man offering refreshment did take a breath? Then it would look something like this:

“What do you say to a cup of tea, or perhaps something stronger after your run, eh? and then a wash, and tea when you come down,” Markham acknowledged that at the moment the “something stronger” certainly seemed to meet the situation. — Montague Summers, The Grimoire and Other Supernatural Stories, 1936, 288.

Perhaps the person speaking to Markham only thought of offering him an alcoholic beverage after having said “cup of tea,” or wished to elevate its topicality by a pause. Given Markham’s reaction, it’s probably the latter. The comma in and then a wash, and tea when you come down is also prosodic, not grammatical.

Though joined by a coordinating conjunction, messages of disdain and — since the author is talking about human behavior — territorial marking are not of equal topicality, so the comma introduces a slight pause to accent the unexpectedness of the second element. Other punctuation choices:

These registered as messages of disdain — or as territorial marking.
These registered as messages of disdain (or as territorial marking).

would draw more attention to the notion of Mallory marking his territory like a tomcat than the author wishes.

Though technically incorrect, one finds such commas fairly often with compound predicates:

Once the tent was set up I took a hike with Sophie along a trail bordering the lake, and then decided to take a shortcut across country in the direction of the tent. — David Laursen, Going to (And With) the Dogs, 2008.

Here, the comma accents the difference in time between taking a hike and then deciding on another route back.

Similar concerns dictate comma placement in this sentence:

He took a bite of his bread and drank some of his water, and then decided he would sleep for a few minutes. — Adam Pfeffer, To Change the World and Other Stories, 2008, 54.

Both writers imitate a pause one would introduce when telling the story aloud. Repeating the subject pronoun merely to make the comma grammatical seems overly fastidious. I didn’t realize it until now, but I did the same prosodic comma trick above in the sentence:

Perhaps the person speaking to Markham only thought of offering him an alcoholic beverage after having said “cup of tea,” or wished to elevate its topicality by a pause.

I would hesitate calling the subject of the verb wished an elided he to justify the comma, as it is a claim one could equally make for

He took a bite of his bread and [he] drank some of his water.

where no careful writer would insert a comma.

Your first example, however,

As if impatient for advancement, Mallory often used his boss’s office late at night, and worked on her computer.

I would consider a comma error because using the boss’s office and working on her computer are simultaneous actions of equal topicality. There would be no pause in speech while narrating these actions, so a prosodic comma would be unwarranted.

I would also say working at her computer, since working on her computer might suggest he was repairing it.

Solution 2:

Commas are so complicated that, depending on the count, there are seven, twelve, or even more rules to take into account. The New Yorker is renowned for being glib with their commas. So yes, they probably have their reasons.

The first instance connects two independent clauses. But wait, you may think, "worked on her computer" has no subject. It has an elided subject, or a subject via ellipsis, here marked in parenthesis:

(1) Mallory often used his boss's office late at night, (2) and (he) worked on her computer.

The conflicting rule is that two items in a list (two actions or two things) don't need a comma. However, the comma signals that (2) is being understood as an independent clause and a subsequent or consequent action to using the boss's office, rather than as a mere second predicate.

The second instance functions as an aside or explanation, to clarify that "as territorial marking" is not a mere second item in a list but an explanation or extension of the first option ("messages of disdain"). This comma usage has been mentioned here before. It likely signals that the territorial marking is an integral part of the disdain, rather than a second theory independent of being interpreted as disdainful.