~/talk

Working with Time is Easy

Talkat NDC London 2017 · 2017-01-16..01-20· [web-platform, databases]
slides:none on file

Dates and times break code because types and meanings are mixed; adopt distinct concepts: instant (epoch-based), local date/time vs zone/offset date time, period vs duration. Use a real library (he recommends Noda Time on .NET), inject a clock for tests, log with invariant culture, prefer IANA time zones over Windows names, and “store the information you have” (don’t convert future local datetimes to UTC). Keep timezone DBs updated (about 10 rule changes last year) and write tests for skipped/ambiguous local times.

AI-written summary · about

  1. 0:00Introduction and premise
  2. 3:04Using C# Pad for examples
  3. 3:50Concepts and tooling
  4. 5:50Identifying pain points
  5. 8:28Instants and durations
  6. 13:14Intervals and intervals
  7. 15:32Calendars and local time
  8. 19:10Time zones and offsets
  9. 24:24Zoned date times
  10. 28:40Offset date times
  11. 31:41Period arithmetic
  12. 40:20Domain-specific types
  13. 45:00Arithmetic and design
  14. 47:00Database best practices
  15. 52:13Handling conversions
  16. 55:02Cultures and formatting
  17. 57:05Testability and rules
  18. 1:00:00Final recommendations
~/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.