Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Podcasts Podcasts
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • PodcastsPodcasts
  • Merge requests
  • !18

EpisodeWidget as a state machine

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jordan Petridis requested to merge state-machines-experiements into master Feb 17, 2018
  • Overview 0
  • Commits 35
  • Pipelines 9
  • Changes 7

Experimenting with wrapping widgets and later on stacks into state machines.

good reads:

  • https://hoverbear.org/2016/10/12/rust-state-machine-pattern/
  • https://insanitybit.github.io/2016/05/30/beyond-memory-safety-with-types
  • https://dev.to/mindflavor/lets-build-zork-using-rust-1opm
  • https://yoric.github.io/post/rust-typestate/

Things left to do:

  • Validate that the current states are correct.
  • Make date_label a state machine(minor task, just got bored)
  • Right tests to ensure the valid states won't brake
  • Update Changelog.md
  • Try to refactor whatever is possible
  • Run clippy
Edited Mar 13, 2018 by Jordan Petridis
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: state-machines-experiements