670 karma · joined June 6, 2010
Without chemicals, life itself would be unprofitable.
Nested ternarys can be quite readable if they are formatted like nested if-then-elses.
Here's an example from some awk code I wrote about 15 years ago.
vval = ((k > 1 \
? substr(vval, 1, k-1) \
: "" \
) \
substr(vv, length(vpfx)+1, 1) \
vvn \
(k1 <= length(vval) \
? substr(vval, k1) \
: "" \
) \
);
Well, at least I find it readable.It keeps its info in a SQLite database, so, if I had to, I could move it to an iPhone, but it would probably take a lot of work which I am not willing to do now.
If there was an easy way of moving the notes, maybe.
I knew that the organization most often responsible for terrorist plots on American soil was the FBI, and I decided to take advantage of this.
https://www.amazon.com/gp/product/B0006ACWEQ/ref=ppx_yo_dt_b...
A COBOL program basically divided into the following four divisions: Identification division. Environment division. Data division. Procedure division.