~/talk

TDD & DDD from the Ground Up (Live Coding)

slides:none on file

Live coding shows a .NET Web API built with C# (optionally Java) using xUnit, WebApplicationFactory and in‑memory EF while following red–green–refactor TDD: start with tiny API tests, add persistence, then encapsulate behavior. A capacity bug appears when 3-seat rooms accept a 4th via concurrent enrollments, revealing a race condition that naive controller checks or an aggregate/locking solution would fix. Instead the design moves the constraint to a scheduling step and implements a scheduler that sorts courses by demand and rooms by capacity.

AI-written summary · about

  1. 0:00Talk overview
  2. 1:06TDD and DDD basics
  3. 3:14University registration system
  4. 7:51First failing test
  5. 10:31Minimal registration logic
  6. 13:23Student ID and response
  7. 16:10Domain language in code
  8. 18:17Retrieving student details
  9. 20:43Adding student persistence
  10. 23:56Refactoring tests and API
  11. 25:43Room and course entities
  12. 29:35Courses linked to rooms
  13. 35:40Enrollment process constraints
  14. 41:49Race conditions in enrollment
  15. 47:09Re-evaluating constraints
  16. 51:23Removing checks
  17. 55:14Scheduling algorithm
  18. 57:19Simple scheduling algorithm
  19. 1:00:30Refactoring entity models
  20. 1:04:00Summary and resources
~/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.