HackerTrans
TopNewTrendsCommentsPastAskShowJobs

throwaway744678

no profile record

comments

throwaway744678
·4년 전·discuss
This does not match my experience here. Can you back that claim a bit?
throwaway744678
·5년 전·discuss
You are not alone! This is completely unclear: the next guy reading your code will definitely "fix" the halting condition. I'd either handle i == 0 outside of the loop, or use something like:

    for (size_t j = size; j > 0; --j) {
        size_t i = j - 1;
        // etc.
Or even:

    for (size_t j = 0; j <= size; ++j) {
        size_t i = size - j;
        // etc.
throwaway744678
·5년 전·discuss
The (implied) benefits you get is that you can work on interesting things, and probably get much more freedom in your day job. Looks very fine to me if done on a voluntary basis.
throwaway744678
·6년 전·discuss
I can't tell if this is sarcasm, but anyways: obviously an actual chessboard is indeed 3d - as are all physical objects in our world. Yet a chessboard is effectively a 2d space: any piece position is completely defined by a row and a column.