Brutkey

Royce Williams
@tychotithonus@infosec.exchange

What is your preferred conditional comment grammar style? (Assume "X" and "Y" may be of less-trivial length)


John Lusk
@tarheel@mstdn.io

@tychotithonus@infosec.exchange @Gustodon@mas.to

Depends. Depends, depends, depends.

If X isn't some horrible complex expression, I put # do Y
under the conditional (in the "then" fork).

If X is some complex condition that can be summarized in English (natural language), I still might break up the comment into # if X and # do Y.

And under the else fork, which may be far away, I basically assert # not X, so do Z. (Again, if X is complex.)

Negative Kelvin
@NegativeK@infosec.exchange

@tychotithonus@infosec.exchange Bit of an "I'm special" answer, but whichever needs the explanation more goes first. (Or is more prominent, which is usually first.)

Royce Williams
@tychotithonus@infosec.exchange

@NegativeK@infosec.exchange I don't mean to skew the results, but this is indeed likely the way ("whichever is more easily absorbed by the human reader, depending on context"). So I guess, in retrospect, the poll should say "all other things being equal"

Royce Williams
@tychotithonus@infosec.exchange

@NegativeK@infosec.exchange I don't mean to skew the results, but this is indeed likely the way ("whichever is more easily absorbed by the human reader, depending on context"). So I guess, in retrospect, the poll should say "all other things being equal"