~/talk

Practical Declarative Programming

Talkat 360iDev 2015 · 2015-08-18..08-21· [testing]
slides:none on file

Claim: declarative Swift code (map/filter/reduce, higher‑order functions, currying) replaces multi‑line mutation with single‑line transforms, improves readability and testability, and in a microbenchmark map is faster by about two seconds over a million runs. Uses: Swift 2.0 standard library, QueryKit for type‑safe Core Data queries, NSPredicate/SQL and regex as DSL examples. Built: converters that parse newline/comma input, flatten and sort groups, and type‑safe core‑data queries — all reduced to concise expressions that work and remove mutation.

AI-written summary · about

  1. 0:00Practical Declarative Programming
  2. 0:24Imperative Programming
  3. 0:39Describe how to achieve something
  4. 0:52Describe what to do. Not how to do it.
  5. 1:11Implementation Details
  6. 1:45How can we do declarative programming?
  7. 2:06Constraints
  8. 2:25Regular expressions
  9. 6:50What makes up functional programming?
  10. 7:09Side-effects
  11. 7:19What is not functional function?
  12. 8:23High Order Functions
  13. 8:47Everything is a function
  14. 10:38Callables in Swift
  15. 11:41Interchangeability
  16. 12:44Functional programming by Example
  17. 15:46Order the numbers of people in each group
  18. 16:59Operators are functions
  19. 17:17Building an array of all people
  20. 22:18Why are map and reduce better?
  21. 22:32Immutability
  22. 22:48Performance
  23. 23:39Don't iterate over arrays
~/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.