Posts by jeff377

@jeff377

Jeff Tsai

Software Architect · Creator of Polhem (.NET)
Taipei medium.com/@jeff377 Joined October 2026
1k Points • 59 Badges • 7 Connections • 8 Followers • 6 Following

Posts by jeff377

jeff377 • • in Articles • 14 min read
A failed call comes in two kinds. One is a business rule stopping something in the normal course of things, an order with no customer selected, a status that cannot move that way, and that message is written for the user. The other is an exception th...
post-cover-34857
jeff377 • • in Articles • 12 min read
The previous post, JSON-RPC 2.0: Protocol Choice and the Request Pipelinehttps://coderlegion.com/34683/day-16-json-rpc-2-0-protocol-choice-and-the-request-pipeline, was about how a call is handled once it reaches the server. The same contract needs s...
post-cover-34759
jeff377 • • in Articles • 13 min read
The previous post, API Contract Layering and the Type Registryhttps://coderlegion.com/34577/day-15-api-contract-layering-and-the-type-registry, was about how the framework knows which type to build once a call arrives. The question one step earlier i...
post-cover-34683
jeff377 • • in Articles • 12 min read
The extension points from the previous post, Extension Points on a Business Object and When to Override Themhttps://coderlegion.com/34413/day-14-extension-points-on-a-business-object-and-when-to-override-them, all hang on one concrete business object...
post-cover-34577
jeff377 • • in Articles • 14 min read
Behavior a definition can express needs no code written at all. The ones it cannot express are what needs taking over: what to check before this document is submitted, who to notify after it is saved, and under what circumstances a delete is not allo...
post-cover-34413
jeff377 • • in Articles • 12 min read
Every request in an ERP system has to answer two things first: who is calling, and which company they are in. Without the framework managing that centrally, those two questions grow into the opening of every stretch of business logic, as boilerplate ...
post-cover-34243
jeff377 • • in Articles • 12 min read
Opening one form means the framework reads more than one definition: FormSchema, TableSchema, FormLayout, ProgramSettings and LanguageResource, none of them optional. These definitions still change after go live, but they change rarely while the syst...
post-cover-34140
jeff377 • • in Articles • 12 min read
How FormSchema Drives SQLhttps://coderlegion.com/33442/day-5-how-formschema-drives-sql drew the boundary of the definition-driven route: relationships across tables are always single column equality, and what they join to is always a physical table. ...
post-cover-34008
jeff377 • • in Articles • 13 min read
"Supports SQL Server, PostgreSQL, MySQL, Oracle and SQLite" is one line in a specification. Inside a framework it is a question that has to be answered before anything else: what exactly is being abstracted for them. Neither direction works: Wrappi...
post-cover-33941
jeff377 • • in Articles • 13 min read
One request travels front end, API, business object, repository, database, and every layer has to receive the same record. What most systems put here are types they wrote themselves: an Entity per table, a DTO on each side, and a layer of Mapper conf...
post-cover-33856
jeff377 • • in Articles • 10 min read
What the last few posts grew out of definitions were concrete products: tables, CRUD statements, screens on four front ends. Today's item builds nothing. It takes the expressions written into the definition and evaluates them, either writing the resu...
post-cover-33784
jeff377 • • in Articles • 13 min read
TableSchema and Database Structure Upgradeshttps://coderlegion.com/33644/day-6-tableschema-and-database-structure-upgrades ended at physical tables, where one change means moving data and working out beforehand whether you need downtime. Today is bac...
post-cover-33685
jeff377 • • in Articles • 13 min read
Yesterday's SQL was all about accessing data. Today is about something else: where those tables came from in the first place. Which columns a table has, how long each one is, and which ones get an index, are authoritative in TableSchema. The physica...
post-cover-33644
jeff377 • • in Articles • 13 min read
The previous post, The Purpose and Classification of Definition Fileshttps://coderlegion.com/33352/day-4-the-purpose-and-classification-of-definition-files, laid the definition files out one by one, and FormSchema is the hub among them. Today, a conc...
post-cover-33442
jeff377 • • in Articles • 13 min read
"Definitions are the single source of truth" sounds like there is one file holding all of the truth. Open a project's definition directory and what you actually see is thirteen definition types. Some are a single file at the root, and some are one fi...
post-cover-33352
jeff377 • • in Articles • 14 min read
The first two posts were about the argument. Today the case study comes on stage. The case study is Northwind, Microsoft's sample database that has been passed down since the Access era. The reason for choosing it is practical: customers, suppliers,...
post-cover-33268
jeff377 • • in Articles • 12 min read
The previous post, Why ERP Needs a Definition-Driven Frameworkhttps://coderlegion.com/33030/day-1-why-erp-needs-a-definition-driven-framework, ended by promising this one would be about which decisions a framework should make on its users' behalf. T...
post-cover-33157
jeff377 • • in Articles • 5 min read
> The complexity of an ERP is not in how hard any single feature is. It is in how many times the same fact gets restated, multiplied by how many tables, multiplied again by how many customizations. A thirty-post series written for iThome Ironman 202...
post-cover-33029
jeff377 • • in Articles • 15 min read
This is the first post in a thirty-part series, ERP Architect's Notes: Designing a Definition-Driven Framework. What follows is not about building one form with some framework. It is about designing a framework that can drive hundreds of forms: whic...
post-cover-33030
jeff377 • • in Articles • 11 min read
JSON-RPC 2.0 is a small specification: the client sends {"jsonrpc":"2.0","method":"...","params":{...},"id":1}, and the server answers with a result or an error. REST makes you decide on routes, HTTP verbs and status codes; JSON-RPC only cares about ...
post-cover-32964
chevron_left