3 ms·
Here is my favorite: https://github.com/ClickHouse/ClickHouse/blob/master/utils/check-style/check-style#L251 https://github.com/ClickHouse/ClickHouse/blob/maste
by zX41ZdbW 5y ago
Here is my favorite: https://github.com/ClickHouse/ClickHouse/blob/master/utils/check-style/check-style#L251 https://github.com/ClickHouse/ClickHouse/blob/master/utils/c...
"Too many exclamation marks"
- darknavi 5y agoI wonder how they picked three as too many. Why not two? > Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out.
- irrational 5y agoThis is the obvious answer.
- deleted 5y ago[deleted]
- chucksmash 5y ago`!!thing` is a fairly common JS idiom for "I have a truthy/falsy thing and I want true or false."
- rbonvall 5y agoMaybe because of the use of the "double bang" pattern to convert a value to boolean: !!41 === true !!0 === false
- accoil 5y agoTwo really does seem too many. I worry about these times when any passing coder can ni-gate at will.
- ljm 5y agoI enjoy seeing a nice shell script. This one is easy to follow and is consistently formatted.