|
|
|
|
|
by tikhonj
4852 days ago
|
|
If by "no place" you mean "first paragraph", you're right: > I quickly got into the habit of writing all of my boolean statements with these, instead of the more conventional && and ||, because my code became so much readable. And I definitely agree with danso and disagree with the blog on this issue: the operators gives more structure to the code and makes it much easier to parse at a glance. With the 'and' version, I have to actually read the code to figure out what its doing; with the '&&' version, I can get the basic idea just from the code's "shape" (for lack of a better word). I think being able to quickly grasp the idea at a glance is far more important than having code look like English. |
|