Modular vs. diagrammatic reasoning