code as material,
code as medium,

versus

algorithm as material,
algorithm as medium,

versus

rule as material,
rule as medium.