In that case, I'd suggest `p_rd` (well, IMO, just `rd` would suffice) and `p_wr`. Then they're both fairly unambiguous abbreviations.
I think p_wt is better than p_wr. Honestly though, aligning the length of variable names is, in my humble opinion, retarded - he should have went for p_read and p_write.
"aligning the length of variable names is, in my humble opinion, retarded"
I feel the same way.
I'd probably go with just 'r' and 'w', or 'src' and 'dst'
I like having the variables the same length from an aesthetic point, but my brain also flags 'rite' as being spelled wrong and that detracts (albeit slightly) from reading and understanding the code.
Yes, but less readable. This is a trivial, sure, but I really dislike seeing misspelled variables. My favorite, of course, is $cue, which usually (but not always) means that the variable in question is related to a queue.
Yes that's what I figured, but still that's only in one place (in the declaration).
and more ambiguous if attempting to read quickly. "p_r" is the same on both, and they're the same length, it'd be easy to confuse one for the other.