The WCI script is a good starting point for designing a Bike Level of Traffic Stress (LTS) script but the script will need a refactor in order to make some of the common logic reusable. In particular, we should look to address code style issues such as:
- using match over if/then
- preferring immutable values over mutable
- encapsulating procedures into functions
- avoiding clones of record types, using references
The WCI script is a good starting point for designing a Bike Level of Traffic Stress (LTS) script but the script will need a refactor in order to make some of the common logic reusable. In particular, we should look to address code style issues such as: