March 2015
Intermediate to advanced
222 pages
5h 1m
English
This section contains several design patterns that can help you design and structure your models.
Problem: By design, model instances have duplicated data that cause data inconsistencies.
Solution: Break down your models into smaller models through normalization. Connect these models with logical relationships between them.
Imagine if someone designed our Post table (omitting certain columns) in the following way:
|
Superhero Name |
Message |
Posted on |
|---|---|---|
|
Captain Temper |
Has this posted yet? |
2012/07/07 07:15 |
|
Professor English |
It should be 'Is' not 'Has'. |
2012/07/07 07:17 |
|
Captain Temper |
Has this posted yet? |
2012/07/07 07:18 |
|
Capt. Temper |
Has this posted yet? |
2012/07/07 07:19 |
I hope ...
Read now
Unlock full access