https://github.com/chalu/wole-joko
A fun little app that mimics admitting people into an event hall and getting them well seated
https://github.com/chalu/wole-joko
asynchronous-programming coding-interview engineering-manager es6 functional-programming iterators javascript made-in-nigeria oop
Last synced: about 1 month ago
JSON representation
A fun little app that mimics admitting people into an event hall and getting them well seated
- Host: GitHub
- URL: https://github.com/chalu/wole-joko
- Owner: chalu
- License: mit
- Created: 2020-09-26T13:06:36.000Z (over 5 years ago)
- Default Branch: dev
- Last Pushed: 2024-02-12T09:37:20.000Z (about 2 years ago)
- Last Synced: 2024-04-08T09:05:35.889Z (almost 2 years ago)
- Topics: asynchronous-programming, coding-interview, engineering-manager, es6, functional-programming, iterators, javascript, made-in-nigeria, oop
- Language: JavaScript
- Homepage: https://wole-joko.netlify.app/
- Size: 4.32 MB
- Stars: 14
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

A fun little pure HTML/Javascript app that mimics admitting
people into an event hall and getting them well seated.


[See it live!](https://wole-joko.netlify.app/). Also, there's some [code documentation here](https://chalu.github.io/wole-joko/)
[](https://www.codacy.com/gh/chalu/wole-joko/dashboard?utm_source=github.com&utm_medium=referral&utm_content=chalu/wole-joko&utm_campaign=Badge_Grade) [](https://app.netlify.com/sites/wole-joko/deploys)
---
This mini-app was created as a personal challenge to build a functional "version" of what I was asked to code (live) during an engineering manager interview. The specs were as follows:
* A random number of people will show up for the event on a given day
* The hall has a max capacity of **8000** seats in **500** rows. Each row has **16** seats and there are **250** rows on either side of the hall. The inner ends of the rows are filled first. At full capacity, stop admitting people into the hall
* Only a batch of 16 people can enter the hall at a time. A new batch is admitted only after the previous batch is completely seated
* When a given batch is in the hall, people are ushered into seats in the 2 sides of the hall, concurrently
* To make it more life-like and to pevent rush, the app should simulate a random delay for everyone getting seated, and the ushers directing them to their seats
> **This Is Still Work In Progress**
## TODOs
* Expose UI controls to allow users configure the specs e.g the seating capacity, seats per row, e.t.c
* Apart from looking at console logs, allow users opt-in to see status messages of what the app is currently doing, from the UI