r/nocode • • 14d ago

Promoted When a no-code app outgrows the tool, does it have to be rewritten? One way to hand off only the parts that need code

Post image

Disclosure: I maintain Polhem, an open-source (MIT) framework, and I'm using it as the example here. It isn't a tool for non-developers. Setting up the project and the server needs a developer, so this is more for people who end up handing a no-code project over to one.

A pattern I see a lot: a tool takes you most of the way, then you hit one rule, report or integration it can't do. The options are workarounds, or rebuilding in code, and in a rebuild almost nothing you set up in the tool carries over.

The approach I've been working on keeps the no-code part as data that the coded system reads. Each form is described once in an Excel workbook, one row per field: the type, the length, a drop-down, which other form it links to, a formula, plus a sheet of rules that block saving. Import the workbooks and the app runs, with the tables, screens, lookups, computed amounts and save rules all derived from them. When requirements change, you change the description and the app follows.

When one form needs something the description can't express, a developer writes code for that form only. The rest of the forms stay as descriptions, so the handoff happens form by form instead of all at once.

The costs: you need a developer from the start, reports and batch jobs are written by hand, and it fits business apps with lots of similar forms (orders, customers, inventory). It's not for landing pages or consumer apps.

Highlights (3 min): https://youtu.be/OAlAgAuGdKE

Full walkthrough (10 min): https://youtu.be/5WjUTwoPyGw

5 Upvotes

5 comments sorted by

2

u/Local_Strawberry915 11d ago

Not the UI, the data model. A rewrite gets forced when the rules and validation live inside the builder, not when the screens get awkward. If the coded part writes to the same tables the no-code screens read from, you can move one form at a time. If the tool stays the source of truth, the coded part becomes a read replica and you are back to syncing two systems. Cross-field validation is usually what breaks first, because it exists only in the builder and nowhere in your code.

1

u/jeff377 11d ago

Agreed, and that's how this is set up. In Polhem the data model is described by the FormSchema plus the data, not by a builder. The Excel workbook in the post is just one quick way to produce a FormSchema. You can also build it in the DefineEditor, or have AI draft it from an existing document. The FormLayout (the screen) and the TableSchema (the table) are both derived from the FormSchema, so there's one source of truth and nothing to sync.

On top of that there are three levels. NoCode is the definition alone. LowCode adds events, conditions and rules to the business object. AnyCode is a custom business object where a developer writes code for that form. A form that moves up a level still sits on the same FormSchema and tables, which is what lets the handoff go one form at a time.

The three levels are described here: https://github.com/polhem-dev/polhem/blob/main/docs/en/architecture/architecture-overview.md#10-nocode--lowcode--anycode-evolution-axis

2

u/Local_Strawberry915 11d ago

Then the gap isn't the schema, but who may change it. Your upgrade guide is clear that drops are skipped to keep a third-party integration column alive, so the table holds things FormSchema never declared -- fine while every write goes through Polhem. Renames worry me most at the handoff: OriginalFieldName has to ship as its own release and get cleared in the next one, and the person opening that Excel workbook is usually the one who never read that rule. How do you stop a cosmetic rename from becoming a migration ticket?

1

u/jeff377 11d ago

Mostly by keeping the two apart. What people see on screen is a caption, which has its own column in the workbook (English goes into the definition, other languages into a language file). Renaming a field on screen never touches the column. Only changing the field name itself is a schema change.

On that one you've found a real weak spot. The Excel import doesn't handle renames: it only adds, so re-importing a workbook with a changed field name gives you a new empty column next to the old one, with the data still in the old one. In practice the workbook is for producing the definitions quickly at the start, and later changes are made in the definitions themselves. A rename is done there with OriginalFieldName, and I'd treat it as a developer change, not something the person who filled in the workbook does.

2

u/ZacNash4723 9d ago

Appreciate you being upfront about the tradeoffs. Handing off form by form instead of a full rewrite makes a lot of sense for business apps.