~/talk

Generation Gap Pattern on CakePHP4

Talkat CakeFest 2022 · 2022-09-29..09-30· [developer-experience, php]
links:none on file
slides:none on file

Describes a concrete Generation Gap implementation for CakePHP4 that writes auto-generated model classes into a baked/ superclass directory while keeping custom code in inherited classes so database-driven schema changes only overwrite generated code. Provides a composer-installable plugin that recreates Cake bake output this way, reports testing against Cake bake v2.8.81 where the built-in update flag is unreliable, and shows the pattern preserves implementations while updating only generated superclasses.

AI-written summary · about

  1. 0:00Start
  2. 0:18Speaker Biography
  3. 1:43Service Map
  4. 3:02Lancers Servers (2019)
  5. 3:37Separate repository and rebuild with CakePHP4
  6. 3:55Migration to containers (2022-)
  7. 4:22UpGrade Progress (admin, batch)
  8. 5:18Examples of automatic source code generation tools
  9. 5:43What is Generation Gap Pattern?
  10. 6:42Model generated by executing bake
  11. 7:24Additional implementation in the generated model
  12. 9:42Interleave superclass for auto-generation
  13. 10:38Additional implementation in inherited classes
  14. 12:12Plugin for Generation Gap Pattern on CakePHP4
  15. 12:30Diff of default and plugin behavior
  16. 13:20New bake updates only table structure!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.