~/talk

Building a Ruby web app using the Ruby Standard Library

Talkat EuRuKo 2021 · 2021-05-28..05-29· [ruby, web-platform]
name:Maple Ong
speakerdeck:wildmaples
slides:none on file

Builds a working step‑tracker web app from raw Ruby: opens a TCP server on port 9999, parses HTTP requests by hand (start line, headers, Content‑Length), decodes form bodies with URI.decode_www_form, and returns HTML pages; implements a POST /add_data that issues a 303 redirect back to the main page and persists entries to store.yaml using YAML::Store after discovering in‑memory state is lost on restart. Demonstrates netcat tests, shows the code is minimal but brittle, and notes how Rack/Puma, SQLite or Rails replace each piece.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Overview
  3. 4:07Disclaimer
  4. 4:32How applications communicate
  5. 5:08Packet delivery
  6. 5:52TCP
  7. 6:31Port numbers
  8. 7:26Socket
  9. 7:57TCP Server
  10. 9:05Netcat
  11. 10:32Application Layer
  12. 11:54HTTP Communication
  13. 12:37Request vs Response
  14. 12:52Request and Response start lines
  15. 14:43HTTP request
  16. 18:11HTML form
  17. 19:20AllData variable
  18. 22:11POST decoding
  19. 23:46YAML store
  20. 25:44Summary
  21. 26:45Whats next
  22. 28:08Rails library replacement
~/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.