Cocreate Cad

0 views
Skip to first unread message

Marie Ota

unread,
Aug 3, 2024, 4:06:32 PM8/3/24
to winscentksisal

A coroutine is a special kind of function that can yield control back to the caller without completely exiting. The caller can then resume the coroutine as many times as needed until the function exits.

To create a coroutine, call cocreate() with a function. This function is expected to take no arguments, to return no value, and to call yield() to temporarily return control to the caller. cocreate() returns the coroutine that can be used to control execution of the function.

The coroutine function calls yield() to suspend execution and return control to the caller of coresume(). The function can also call another function that calls yield(), and the entire call stack will be preserved. The coroutine function continues from where it left off the next time you call coresume() with the coroutine.

If the coroutine function returns instead of yields (such as by allowing control to reach the end of the function body, or by using return), the coroutine dies and cannot be revived by coresume(). You can test the status of a coroutine object by calling the costatus() function.

Coroutines are useful for preserving the state of a function in progress for later continuation. It is a way to preserve state, and is well suited to pausing and resuming a sequence of actions that terminates. This works especially well with the PICO-8 game loop as a way to initiate an action that takes place over multiple frames.

Caution: As of PICO-8 v0.1.10, if a runtime error occurs inside a coroutine function, the function aborts, but instead of stopping the program and printing an error message, the coroutine dies and execution continues. This can make debugging coroutines difficult, as many common errors (such as incorrect nil values) manifest as runtime errors.

The site is secure.
The ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Background: Childhood obesity prevention is a public health priority in industrialized countries. The Reggio Emilia Local Health Authority has implemented a program involving primary and secondary prevention as well as the care of obese children. There are many health-promoting mobile apps, but few are targeted to children and very few are sponsored by public health agencies.

Objective: The goal of the research was to describe the process and tools adopted to cocreate a mobile app sponsored by the Reggio Emilia Local Health Authority to be installed in parents' phones aimed at promoting child health and preventing obesity.

Methods: After stakeholder mapping, a consulting committee including relevant actors, stakeholders, and users was formed. Key persons for childhood obesity prevention were interviewed, focus groups with parents and pediatricians were conducted, and community reporting storytelling was collected. The results of these activities were presented to the consulting committee in order to define the functionalities and contents of the mobile app.

Results: Three key trends emerged from community reporting: being active, playing, and being outdoors; time for oneself, family, and friends; and the pressures of life and work and not having time to be active and socialize. In focus groups, interviews, and labs, mothers showed a positive attitude toward using an app to manage their children's weight, while pediatricians expressed concerns that the app could increase their workload. When these findings were explored by the consulting committee, four key themes were extracted: strong relationships with peers, family members, and the community; access to safe outdoor spaces; children's need for age-appropriate independence; and professional support should be nonjudgmental and stigma-free. It should be a dialogue that promotes family autonomy. The app functions related to these needs include the following: (1) newsletter with anticipatory guidance, recipes, and vaccination and well-child visit reminders; (2) regional map indicating where physical activity can be done; (3) information on how to manage emergencies (eg, falls, burns, fever); (4) module for reinforcing the counseling intervention conducted by pediatricians for overweight children; and (5) a function to build a balanced daily diet.

Conclusions: The pilot study we conducted showed that cocreation in health promotion is feasible, with the consulting committee being the key co-governance and cocreation tool. The involvement of stakeholders in this committee made it possible to expand the number of persons and institutions actively contributing to the project.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages