~/talk

The Design Evolution of elm-css and elm-test

Talkat Oslo Elm Day 2017 · on Saturday, 2017-06-10· [functional-programming, developer-experience]
slides:none on file

Shows a type-safe CSS DSL that compiles to real styles, trade-offs around syntax, units and namespacing, and the extensible record trick used so properties like Auto compile only where legal; elm-css ships, is used in production, and sacrifices some error clarity for CSS familiarity. Describes elm-test 2.0: integrated fuzz tests that run 100 iterations with shrinking via elm-pcg and Rose trees, deterministic runs via seed distribution so failures reproduce and later support parallelization, incremental failure traces, view testing, and safer test filtering.

AI-written summary · about

  1. 0:00The problem with CSS
  2. 2:13Designing the Elm CSS library
  3. 4:27First draft and DSL
  4. 7:12Pre-processor and demo
  5. 9:10Syntax and tooling concerns
  6. 11:31Balancing familiar vs functional
  7. 13:02Revised DSL and unit types
  8. 14:35Addressing namespace collisions
  9. 16:50Namespacing and combinators
  10. 19:12The 'compatible' type hack
  11. 23:45Concessions for usability
  12. 25:18Tension in API design
  13. 27:45Community contributions
  14. 29:46Long-term goals for Elm CSS
  15. 31:46The state of Elm Test 1.0
  16. 33:38Fuzz testing in Elm
  17. 35:41Taking over Elm Test
  18. 37:32Design philosophy for testing
  19. 39:05Implementing fuzz testing
  20. 42:22Domain knowledge and shrinking
  21. 45:31Fuzz test output design
  22. 46:55Designing for future needs
  23. 49:09Seed distribution logic
  24. 50:52Composable fuzzers
  25. 53:04The role of 'andThen'
  26. 54:11Premature optimization
  27. 56:00Testing HTML views
  28. 58:25Incremental feedback
  29. 1:00:01Testing user interactions
  30. 1:01:38Filtering and safety
  31. 1:04:27Running specific files
  32. 1:07:49Future testing goals
  33. 1:10:26Summary of lessons
~/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.