5 ms·
// Object.map: returns a new object with the predicate applied to each value That is not what a predicate is.
by platz 10y ago
// Object.map: returns a new object with the predicate applied to each value
That is not what a predicate is.
- _RPM 10y agoMight it not be appropriate to explain what a predicate is, since you don't agree with her definition?
- minitech 10y agoIt's common knowledge and you can easily look it up. https://en.wiktionary.org/wiki/predicate https://en.wiktionary.org/wiki/predicate Copied here nevertheless: > 2. (logic) A term of a statement, where the statement may be true or false depending on whether the thing referred to by the values of the statement's variables has the property signified by that (predicative) term. > 3. (computing) An operator or function that returns either true or false.
- _RPM 10y agoMaybe it is common knowledge for you. I could have looked it up, but I don't like seeing non constructive criticism.
- weego 10y agoHighlighting a factually incorrect statement is not criticism. Criticism assumes a different point of view. Granted he could have put it as a GitHub issue, but how about we avoid anti-intellectualism.
- pvg 10y agoCriticism assumes a different point of view. It doesn't, really. Criticizing poor choice of terminology is still criticism.
- platz 10y agoIt is entirely constructive. I just prefer brevity more than you do. But you would've still downvoted me even if i'd provided a link, no?
- eli 10y agoIt's a fine line between brevity and rudeness.
- simplify 10y agoThat is not what constructive is.
- ars 10y agoThe point of making a comment is not showing off your knowledge, it's being useful to the reader. You comment was not useful (or at least not as useful as it could be). Put in more effort next time - a comment is written once, but read many times.
- deleted 10y ago[deleted]
- zghst 10y agoIt is valid to simply point out mistakes like these. It only takes a few seconds of effort, a few mins to fix and move on from. Instead we want to make this simple statement an emotional battleground and berate OP for not doing the author's brainwork.
- jccalhoun 10y agoit may be valid but it assumes everyone reading the comment knows what a predicate is in this context.
- GrinningFool 10y agoI'd say it makes no such assumption - in fact it tells the reader that it's not valid. The reader may then choose to educate him or herself as necessary.
- deleted 10y ago[deleted]
- akst 10y ago> It's common knowledge In mathematics sure, but not everyone has had the same level of exposure to mathematics in software.
- XaspR8d 10y ago> 1. (grammar) The part of the sentence (or clause) which states something about the subject or the object of the sentence. It's likely OP was using this definition, which in a programming context is effectively synonymous with "unary function". Not trying to restart any discussion here, just wanted to clarify for any future visitors.