Video in progress

A team wants to write an internal "universal framework": generic CRUD for any entity, dynamic forms, business processes defined in configuration. What do you think of it?

With caution: this often leads to the "inner-platform effect", where a worse copy of Java and Spring gets built on top of Java and Spring. It speeds up the simple cases, but every non-standard requirement makes the framework more complex, and you end up with a system nobody understands.

📖 Answer

The typical story: the first 10 screens really do come out in 2 days. Then the requirements arrive:

  • "this field should only be visible when the status is X";
  • "check with an external service before saving";
  • "this list should also include a sum from another table".

For each one, the framework gets a new configuration key, a hook or an expression language. A year later there's if and loop inside JSON, with no debugging, no tests, no IDE help, and only the author understands it. If the author leaves, the system freezes.

My questions:

  1. How much real repetition is there? Are 80% of the screens truly the same, or do they only look that way at the start?
  2. Is there an existing tool? Spring Data REST, admin panel generators, low-code platforms: things we don't have to maintain ourselves.
  3. Is there an escape hatch? In a non-standard case can you write plain Java code, or does the framework force everything through itself?
  4. Who maintains it? A framework is a product. It needs docs, versions and an owner.

A better alternative is a library, not a framework: small helpers that you call (shared pagination, a filter builder, audit) and code generation. The output of code generation is plain Java: it can be read, debugged and changed by hand if needed.

If it gets built anyway: write down the exact scope (reference-data tables only), don't add an expression language, and make sure every screen can "break out" to plain code.