Skip to content

What is Status used for? #30

Description

@badlydrawnrob

There's a lot going on in this program, and we're using Status type a lot. I was going to use Status type for a Random script but thought better of it.

  1. A Random value is always going to return something (if it's set up properly)
  2. In this file I'm calling a function that cycles through model.status — in fact model.status is getting checked in 3 or more locations
  3. It's a little confusing to me why we're having to use selectedUrl and casing on the Status again.
    • The only reason I can think that GotRandomPhoto photo and ClickedPhoto url require to call selectedUrl function (which cases on the Status) is that we need to check if the photos are in an unloaded state.
    • But why couldn't we make the images unclickable or something, rather than casing on it in too many places?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions