First logic. Logic is a fundamental skill when programming. It's most visible application is that of boolean expressions (e.g. a AND b OR c) which are utilized in the guards (/conditions) of selection statements (if, case) and repetitions. But (predicate) logic is also what forms the basis which allows you to reason about correctness of programs.
Second, it can train a problem solving mindset which is quite similar to how you tackle programming problems. In other words, it might influence your way of thinking (divide and conquer, abstraction, grouping and structuring, all those kind of things).
Finally, if you dive deeply enough into building redstone computers you will eventually learn something about computer architecture, which in turn will allow you to write more efficient programs because you understand how computers work. However, at this point you are spending more time studying this material than you actually spend on redstone.
Quote from ChurroV
That's not a stretch at all. That's exactly what logic gates are. An "And" gate is a conditional that goes something like this:
IF (input1 = on) and (input2 = on) THEN output = on ELSE output = off END IF
It's exactly conditionals. There's no stretch at all.
I understand the example, but no programmer would write it like that.
if (input1 == true) and (input2 == true) then
Would be written as:
if input1 and input2 then
Your entire example would actually be written as:
output = input1 and input2
4