]> Sergey Matveev's repositories - stargrave-blog.git/commitdiff
Понравилось исправление баги
authorSergey Matveev <stargrave@stargrave.org>
Thu, 28 May 2020 15:12:53 +0000 (18:12 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 28 May 2020 15:12:53 +0000 (18:12 +0300)
В одной рассылке увидел:

    > int x, y, sum;  // x, y, and sum are integers (numbers)
    > sum = x - y;    // sum up x and y

    You're being too generous to college trained monkeys (aka "coders" vs.
    "programmer") they would fix the bug as follows:

              sum = x - ( -y );


No differences found