aafa / smart-elevators

Smart elevators

Home Page:https://aafa.github.io/smart-elevators/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart elevators

Design and implement an elevator control system.

Work process:

  • Initial thought process\plans brainstorm.md
  • Factual time spent: ~12 hours, due to
    • scala.js weird quirks I was not aware of (workbench stop updating js properly for no reason etc) investigate!
    • initially thought of doing Diode's event-based model (and started working on implementation) but that looked like an over-engineering given small time constrains (immutable model with event handling is tricky)

Techs that was used

  • Plain step-based control system implementation
  • Monocle lib to zoom into model properties
  • Scala.Js UI for demo purposes

See demo gh-page

See Smart elevators demo here https://aafa.github.io/smart-elevators/index.html

Run locally

  • sbt test to run tests covering basic scenarios
  • sbt ~fastOptJS to iterate over Scala.js UI

Further plans

  • Address minor todos\concerns mentioned through the code
  • Step-based approach is very simple and straightforward however I'd like to see event-driven design for better interaction handling and more smooth UI flow (listen to events and update only parts that was changed etc.)

About

Smart elevators

https://aafa.github.io/smart-elevators/index.html


Languages

Language:Scala 86.4%Language:HTML 7.5%Language:CSS 6.1%