News for hackers. Stuff that matters.
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.