6 ms·
1, 4, and 5 are all called for in certain circumstances. I've seen a lot of 2 in shell scripts that aren't under version control, and it's necessary. Though I
by sprout 16y ago
1, 4, and 5 are all called for in certain circumstances.
I've seen a lot of 2 in shell scripts that aren't under version control, and it's necessary. Though I once slimmed a script I didn't write down from about 1000 to 200 where a lot of that was comments and duplicated functions. (As in, the script would repeatedly define the same function with a different name and a different path hard-coded in, and then call each function in turn.)
The only one that I would say is in a class you legitimately should never do is #3, but no one would ever write that comment except to be flippant.