Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Clang is better than GCC. Parent comment
We were all talking about better ways to use memcmp(), such as whether to use the "!= 0" or not, or my memeq() wrapper.
Those are all good things to consider if memcmp() is the right solution in the first place.
I only had the "aha" moment after I took a break for a long walk and dinner.
I should do that more often before assuming I have the right answer... :-)
Maybe this is an example of what they call an XY Problem:
https://en.wikipedia.org/wiki/XY_problem
There are no comments on this comment yet.
We were all talking about better ways to use memcmp(), such as whether to use the "!= 0" or not, or my memeq() wrapper.
Those are all good things to consider if memcmp() is the right solution in the first place.
I only had the "aha" moment after I took a break for a long walk and dinner.
I should do that more often before assuming I have the right answer... :-)
Maybe this is an example of what they call an XY Problem:
https://en.wikipedia.org/wiki/XY_problem