Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Table module samples

I'm looking for some good open-source sample applications that use the Table Module pattern to organize the business logic (can be any language).

Any suggestions?


2 Answers

How about the App Pattern: Four-Tier Web Application Scenario (Table Module) from codeplex? I know this is an old post, but I stumbled across it whilst searching for some similar stuff for myself. So I thought an answer might help someone.

like image 165
Glenn Avatar answered May 16 '26 07:05

Glenn


By Martin Fowler:

A Table Module organizes domain logic with one class per table in the data-base, and a single instance of a class contains the various procedures that will act on the data.

I don't have any open source examples for you, BUT I think it is quite self-explanatory and easy to grasp.

Here are the signs of this pattern:

  1. One class per table
  2. Low code reuse
  3. High coupling
  4. Low cohesion

I think that it will be easier to find that code in old legacy code than in open source projects.

like image 42
Nikita Fedyashev Avatar answered May 16 '26 07:05

Nikita Fedyashev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!