CodingTrain / CodingTrain/Suggestion-Box

p5: Instance Mode, Multiple js-files and Library Design

Abierto
#541 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Sin datos de lenguaje
Estrellas
570
Forks
85
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hello everybody,

Small is beautiful and I like examples that take only one screen to show. But now that my projects grow bigger, I want to split code into different files. One 'class' per file. Daniel Shiffman explains how in this video: [Multiple js Files - p5.js Tutorial.](https://www.youtube.com/watch?v=Yk18ZKvXBj4) Excellent

Also I am interested in 'namespacing' my p5-projects, because I am in the habit of giving all my Box-objects the name 'boxy', which is kind of silly, though it could be worse. I found one tutorial on [Instance Mode (aka "namespacing") - p5.js Tutorial.](https://www.youtube.com/watch?v=Su792jEauZg)

Now I want to combine these 2 approaches and have my one-per-file objects interact with p5 in Instance Mode.

Ultimately I would like to be confident enough to write my own p5-Library. A tiny example of how to set up a multi-file, namespaced p5-library that behaves well with other code would be of great help. I've got things to share!

Thanks to Daniel Shiffman for the very interesting tutorials, that I watch with a smile and with respect.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Revisa primero los tutoriales enlazados sobre múltiples archivos JavaScript y p5.js Instance Mode. Define un ejemplo pequeño de una biblioteca p5.js con namespace que pueda interactuar de forma segura con otro código; se considera terminado cuando el ejemplo está documentado y demuestra claramente la combinación solicitada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
documentation
Tipo de issue
Documentación
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
20/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.