Maggie Pint - SeattleJS Conference 2017
summary
Moment.js moves to immutable Moment.js and the talk lays out concrete library patterns: prefer static invocation for tiny helpers and factory objects for chainable APIs (jQuery, moment), use options objects for complex configuration (Intl 402 example), pick best-by-default only when a >90% case exists (redirects handled automatically vs confusing timezone defaults that triggered ~2,400 closed issues), and treat errors differently—throw on developer mistakes but gracefully handle user input to avoid crashing Node processes.
AI-written summary · about
chapters (26)
- 0:00Intro
- 0:17Welcome
- 2:25Define a library
- 3:00Examples of libraries
- 3:35Who has children
- 4:20Make your library good
- 5:50Ease of use
- 7:12Static invocation
- 7:47Factory functions
- 9:00Moment
- 9:32jQuery
- 10:08Configuration
- 10:37Overloads
- 11:25ACMA 402
- 12:21DateTimeFormatter
- 13:32Options
- 14:12Defaults
- 14:58Redirect URL
- 15:33Best by Default
- 18:34Default Moment
- 19:22Errors
- 19:56Error Suppression
- 20:57Error Suppression Example
- 21:44Date Part
- 22:14Map
- 23:18Summary
related talks
03mFixing JavaScript Date
22mThe Past, Present, and Future of JavaScript Date and Time APIs
01h 13mTempus Fugit: A story of time
34mFunctional JavaScript for everyone
25mModern JavaScript
30m"JavaScript, the Real Bad Parts"
38m"Design Patters for Modern JavaScript"
21mMinuteJS — Don't Miss These JavaScript Updates!
