You are not logged in.
Pages: 1
I know the docs show some ways to use mORMot in legacy code, but I was wondering:
Has anyone used or have begun using mORMot to refactor a huge legacy code base with any tips / direction?
Anyone due consulting for pay on this sort of thing?
It's very hard to figure out where to stop.
99% of data access is via TTables (With nexusdb), all ui mixed with business logic. Every single issue you would expect from legacy Delphi done wrong
Offline
RAD was not wrong, it was fine for its purpose.
But mixing UI, logic and DB has been identified to be a factor limiting the project maintainability and expansion.
About general code refactoring, see https://www.slideshare.net/ArnaudBouche … conference
Idea is to identify software "seams", then encapsulate them with SOA and publish them, and also include testing.
There is a lot of practical steps in this presentation.
Also some general rules, like "don't rewrite everything" or "always add tests".
Offline
It's mostly a huge datamodule and all data aware controls. There's almost no classes and hard to ID seams.
So I was thinking of breaking the huge datamodule into smaller, then refactor what each micro datamodule touches into eventual SOA pieces?
Offline
This is the most important topic for mORMot to really take off, in my opinion.
Offline
Pages: 1