The logic used in programming itself is very simple, and the lowest level is logic algebra, with or without, with or without. Ordinary programming needs basic logic, that is, addition, subtraction, multiplication and division to judge recursion, which is not complicated in itself.
From my experience, computer programming is at best a code farmer. Real computer professionals do algorithms. These people can do very well, most of them are from the department of mathematics, and the better the mathematics, the more powerful it is. For them, it doesn't matter how good they are at programming. The algorithm has been worked out, and someone must implement it.
Only by learning math well can you stand at the top of the computer world.