sxsphinxstack

Projects / Which bus

Which bus

Use with: build-web-app. Resume line when done: Built {project_name}, a decision app for my commute timetables — live at {url}

Brief

Open it after school and get one answer: catch the 4:12 or wait for the 4:31. Your two routes home, timetables typed in by you from the posted schedules, and a single screen that compares the current time against them and tells you what to do, including how many minutes you have to make it to the stop. Timetables persist across reloads (localStorage is fine).

Personalize

Milestones

  1. Timetables and rules in the README: routes, departure times, walk times, day variations, and what the app says after the last bus.
  2. Hardcoded timetable, current time in, next viable departure per route out. Deployed, ugly is fine.
  3. The one-answer screen: which bus, how many minutes of slack, with the walk time already subtracted.
  4. Day-of-week variations, plus the endgame cases: last bus soon (say so loudly) and no more buses (say what to do instead).
  5. Timetable editing in the browser so a schedule change takes minutes to fix; data survives a reload; empty state designed.
  6. Use it every school day for a week. Final README with any time it gave a wrong answer and the fix.

Done means