News for hackers. Stuff that matters.
Re:The tools and tech I use to run a one-woman hardware company by a1369209993 on Tuesday May 18, 2021 @06:52PM (#27202305)
> there's one other person, a production assistant, and two cats.

A bit pedandic, but since we're talking about grammar anyway, that should probably be:

> there's one other person (a production assistant), and two cats.

As written, it sounds like the production assistant is separate from the person.

Re:The tools and tech I use to run a one-woman hardware company by iudqnolq on Tuesday May 18, 2021 @07:41PM (#27202756)
A bit pedantic, but a parenthetical can be indicated by em dashes, parentheses, or commas.

https://www.bartleby.com/141/strunk.html (rule 3)

Re:The tools and tech I use to run a one-woman hardware company by CydeWeys on Tuesday May 18, 2021 @08:39PM (#27203203)
That's fine in isolation, but mixing that inside a comma-separated list is not a good idea.
Re:The tools and tech I use to run a one-woman hardware company by iudqnolq on Tuesday May 18, 2021 @08:43PM (#27203243)
I agree, but that's a matter of style. It's technically correct. I did say pedantic.
Re:The tools and tech I use to run a one-woman hardware company by a1369209993 on Tuesday May 18, 2021 @10:22PM (#27203822)
Well, it's technically incorrect in that same way that

  system("echo "Hello, World!"");
is incorrect - it mixes syntax in a ambiguous/incompatible way. It's a bit more amenable to silent autocorrect though, so YMMV.
Re:The tools and tech I use to run a one-woman hardware company by lmm on Wednesday May 19, 2021 @02:20AM (#27205207)
It's not. There is a C specification that requires quotes to be escaped within strings; there is no such specification for English. One can write English sentences that require arbitrarily distant pieces of context to be parsed correctly (much like perl, where one can write lines which may or may not be comments based on the state of some other part of the program), and such sentences may be unwise, but are by no means incorrect.
Re:The tools and tech I use to run a one-woman hardware company by pabs3 on Tuesday May 18, 2021 @11:17PM (#27204139)
system() in general is incorrect, there are much better ways to run other programs, like posix_spawn, fork+exec, libpipeline etc.
Re:The tools and tech I use to run a one-woman hardware company by a1369209993 on Wednesday May 19, 2021 @12:34AM (#27204616)
For a non-constant argument, sure, but I was talking about the malformed string literal.
Re:The tools and tech I use to run a one-woman hardware company by pabs3 on Wednesday May 19, 2021 @01:19AM (#27204841)
Even for a constant argument; it is better to just start the program than to start the shell and tell it to start the program like system() does.

Ack about the string literal.

Re:The tools and tech I use to run a one-woman hardware company by open0 on Tuesday May 18, 2021 @11:25PM (#27204182)
This phenomena where two nouns are placed side by side is called apposition:

https://en.wikipedia.org/wiki/Apposition#Restrictive_versus_...

So the source of the confusion is that, in English, non-restrictive appositives typically are indicated with commas, but so are lists of conjuncts.

Re:The tools and tech I use to run a one-woman hardware company by chalst on Wednesday May 19, 2021 @03:48AM (#27205745)
> As written, it sounds like the production assistant is separate from the person.

Of course you are the best judge of what English usage is ambiguous to you, but your suggestion of introducing a comma there is at odds with the convention that you can tell whether a noun following a conjunction is a subject (i e., starting a new independent clause) or an object (ie. the conjunction is bringing together two objects into one collection) by whether it follows a comma. I think your proposed cure is worse than the disease; personally I didn't find lvh's sentence at all difficult to parse.

https://www.grammarly.com/blog/comma-before-and/

Re:The tools and tech I use to run a one-woman hardware company by felipemnoa on Tuesday May 18, 2021 @07:14PM (#27202531)
>>As written, it sounds like the production assistant is separate from the person.

Interesting, when I first read it I did understand that the production assistant was the person he was talking about. But yes, I can see why it could be confusing.

Re:The tools and tech I use to run a one-woman hardware company by lvh on Tuesday May 18, 2021 @07:11PM (#27202502)
Thanks, I've edited my comment.
Re:The tools and tech I use to run a one-woman hardware company by sodality2 on Tuesday May 18, 2021 @07:07PM (#27202465)
Alternatively:

> there's one other person- a production assistant- and two cats.

Re:The tools and tech I use to run a one-woman hardware company by dvt on Tuesday May 18, 2021 @07:17PM (#27202555)
Because we're being pedantic, what you'd want is an em dash (—), not a hyphen (-). You would also omit the spaces.

> there's one other person—a production assistant—and two cats.

Re:The tools and tech I use to run a one-woman hardware company by a1369209993 on Tuesday May 18, 2021 @08:04PM (#27202952)
Or a spaced hyphen ( - ), if you want to stick with ASCII/keyboard characters.

> there's one other person - a production assistant - and two cats.