3 ms·
How about English? This is just programed as: > Puppy is an app OK, you run 'Puppy'. It doesn't do anything. > RandomHost is 'https://dog.ceo/api/breeds/im
by CharlesMerriam2 6y ago
How about English? This is just programed as:
> Puppy is an app
OK, you run 'Puppy'. It doesn't do anything.
> RandomHost is 'https://dog.ceo/api/breeds/image/random' https://dog.ceo/api/breeds/image/random'
OK, 'RandomHost' is a constant, looks like a URL
> Get an image from RandomHost
OK, I think you meant Set Message to Read RandomHost retreiving UUENCODE.
> No. Get an image using json
Not the previous thing. I think you meant Set Message to Read RandomHost retrieving JSON, field Message.
> Get Image at Message
OK. I think you meant Read the URL Message and retrieve an image file
> Show the Image
OK. Displaying the Image on the screen
> Add Repeat Button
OK. Displaying a button named 'Repeat'
> App is While on Repeat, do the Display.
OK. App is set. Do display, Wait for Repeat button, Loop
> Puppy?
Puppy is an application:
Repeat
RandomHost = 'https://dog.ceo/api/breeds/image/random'
Message = fetch(RandomHost, JSON)."message"
anImage = fetch(Message, DATA).ensure(IMAGE_TYPE)
Display.reset(Items [
Image: An Image,
Button: Repeat text "Repeat"
])
ClientSideWait Repeat.onPress
Forever
> Problems?
Your app can run.
You have eight error conditions to discuss. Use 'Talk about errors' to decide how to handle them. Right now, the answer is 'ignore first, or just explode'.
>Push
Pushing transcript to GitLab.... Building App.... Pushing Build to GitLab.
> Move button above image.