~/talk

Side-effects Within The Business Logic Core

Talkat Scala Italy 2019 · 2019-09-20..09-21· [software-architecture, scala]
links:none on file
slides:none on file

Argues for an imperative shell / functional core that moves effects out so business logic stays testable and pure, showing a potato-service refactor that replaces a 92-field config with two simple values. Cites an empirical result: one in four projects use mocking frameworks, external dependencies are mocked two-thirds of the time and business logic one-third. Recommends describing effects with Task/IO, running a few CI integration tests or Testcontainers for the thin shell, using fakes for stable regression checks, and deleting brittle mocks.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:06Happyland pure functions
  3. 2:33Mocking objects study findings
  4. 6:02Types of test doubles
  5. 8:11Stubbing with potato service
  6. 10:41Mocks for state observation
  7. 13:12Explicit state in design
  8. 15:41Challenges with essential effects
  9. 17:25Stubbing external dependencies
  10. 18:51Logic and effects entanglement
  11. 21:00Costs of mocking objects
  12. 22:50Over-abstraction pitfalls
  13. 24:35Functional core imperative shell
  14. 27:06Refactoring to pure core
  15. 28:50Effect handling in Scala
  16. 30:13Testing imperative shell
  17. 31:15State-based property testing
  18. 31:57When mocking is justified
  19. 34:22Opinions on TDD approach
  20. 35:41Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.