In our teaching practice, we work with students and consultants on making domain knowledge explicit in code. Not for the sake of syntax, performance or tooling, but because we regard software development as knowledge modelling in structural form.

But how often do we still confuse implementation with understanding?

We review commits as if we were assessing behaviour. We run code through linters, but without a semantic anchor. And we make design decisions on the basis of technical elegance, without it being clear what the system actually needs to know.


From logic to semantics

A functional implementation is no guarantee of correct meaning. On the contrary, most of the bugs we come across are semantic in nature:

  • A controller that routes correctly, but violates domain rules

  • A mapping that contains all the keys, but works at the wrong level of abstraction

  • A test that passes, while the behaviour under specific conditions would be absurd

That is why we teach our students that code is merely a projection of understanding, not proof of it. You can build a system that works without it understanding anything about the problem it solves.


Tools and techniques that make semantics explicit

In our curriculum, we use several methods to look deeper than syntax:

  1. Bounded Contexts (Domain-Driven Design) Not everything needs to mean the same thing everywhere. Semantic demarcation within domains prevents shifts in meaning.

  2. Command-Query Responsibility Segregation (CQRS) By strictly separating read and write operations, you make differences in semantic intent visible and testable.

  3. Design by Contract Enforcing pre- and postconditions makes expectations explicit, not only for error handling, but at the level of understanding.

  4. Conceptual refactoring Not renaming to clarify, but restructuring so that semantic models correspond better to the domain.


Why this is urgent

We live in a time in which AI systems deliver generated code, in which development time is under pressure, and in which frameworks take over more and more decisions. But that is precisely when we must stay alert to conceptual distortion. The code becomes more elegant, but the model behind it becomes more diffuse.

An example: an automated test system without formally defined domain expectations does not test functionality, it tests interface behaviour. And so nobody is sure any more what the system is supposed to do.

Without a semantic model, every system eventually becomes a black box.


Code as a cognitive artefact

Software is not infrastructure. It is a cognitive artefact: a model that carries meaning, must be transferable, and must be maintainable in terms of understanding.

We therefore treat software development as a design science, in which language, abstraction and semantics are at least as important as structure and performance.

That demands more than knowledge of patterns or libraries. It demands a deeper design discipline, in which we are willing to rewrite code because the model is wrong, not just because "it could be better".


In conclusion

The question we put to our students and consultants is increasingly this:

What does your code actually think the system is?

Because only when you have a clear answer to that can you test whether it is right.


This article was previously published on LinkedIn. The original is in Dutch.

All insights