Speaking as one of millions of pleasant, sensitive nerds, I find this offensive.
625 karma · joined September 8, 2010
Speaking as one of millions of pleasant, sensitive nerds, I find this offensive.
I disagree. Just because the rel="prev"/rel="next" commands provide the ability to browse forward and backward through a series of documents doesn't mean that the only possible entry point is the beginning of the series. It doesn't mean that there even is a single well-defined first entry in the series. There's nothing to stop a series of links connecting into a closed loop, or to stop a single page from having multiple rel="prev" links because it appears in multiple series, or multiple rel="next" links because a previously linear series bifurcates and the user has multiple choices.
for ( int i=0 ; i < this.MyControl.TabPages.Count ; )
{
this.MyControl.TabPages.Remove ( this.MyControl.TabPages[i] );
}I find that removing all mention of Y combinators made the whole thing a lot easier to read.
Everything else is a pleasant bonus. It amazes me that so much can be written without even touching on this.
if (argc != 3) {
printf ("Wrong number of arguments");
// throw an exception or return NULL or something
}
if (!fname) {
printf ("File name cannot be null");
// throw an exception or return NULL or something
}
/* Do stuff */
The important thing, to my mind, is the absence of an else block.The else block in this case is executed when "NULL != fname" is false. That's an unnecessary double negative and takes a nonzero amount of mental effort to unscramble. The example I gave reverses this. This would also be acceptable:
if(fname) {
g = fopen(fname, "w+");
} else {
g = tmpfile();
}
(I also don't regard either statement as an "exceptional condition", they both seem equally likely to me.) if(NULL != fname) {
g = fopen(fname, "w+");
} else {
g = tmpfile();
}
Better: if(NULL == fname) {
g = tmpfile();
} else {
g = fopen(fname, "w+");
}It's a really unnerving day when you realise that the whole thing is run by human beings.
You have two companies. Both predict X growth. One provides a full model which backs up their prediction. The other flat-out states that they made the number up. Which would you pick? It doesn't actually matter - the point is that their operations are more transparent and your choice is more informed.
(So do I ;\))