HackerTrans
TopNewTrendsCommentsPastAskShowJobs

desdiv

no profile record

comments

desdiv
·5 yıl önce·discuss
He has his upwork profile linked in his HN profile. Sounds like he has a niche and he's very very good at it.
desdiv
·5 yıl önce·discuss
I foresee two problems with that:

Problem 1:

If i is used multiple times inside the loop, then you might need to make a temporary variable for it, making it confusing:

for (size_t i_plus_one = size; i_plus_one > 0; i_plus_one--) {

size_t i = i_plus_one - 1;

f(i);

g(i);

h(i);

...

(The alternative is a bunch of i-1 all over the place, which is also confusing.)

Problem 2:

If operations inside the loop is short, then the extra "i-1" arithmetic could result in unacceptable performance penalties.
desdiv
·7 yıl önce·discuss
Softbank made the vast majority of its profits off a lucky bet on Alibaba back in 2000 (not unlike Yahoo). So using your analogy, saddad got rich off lotto cards and the son is just copying Dad.