Coder Social home page Coder Social logo

smart-elevators's Introduction

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.)

smart-elevators's People

Contributors

aafa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.