~/talk

Architecting your codebase

slides:none on file

Live refactoring of the Spring PetClinic demo: codebase shifts from generic packages into explicit domain modules by extracting a visit context and a vet context, removing awkward shared superclasses (Person/NamedEntity), moving marshalling classes out of the domain, and renaming owner/pet aggregate to a client-facing module. Tests reveal and force config fixes: component scan and @EnableJpaRepositories locations change. Persistence gets hidden behind services so callers use service guards and developers make repositories package-private to enforce encapsulation.

AI-written summary · about

  1. 0:00Start
  2. 2:45start the live coding session
  3. 4:11applying some refactorings
  4. 8:27the problem with having packages
  5. 13:28start to modularize
  6. 13:55take a look at the model and service packages
  7. 18:08pushing down all the fields and methods
  8. 22:43divide our source code into parts
  9. 26:11splitting it into services
  10. 27:41inject dependencies
~/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.