# Collecting common patterns, code snippets, solutions used in processing programs

**URL:** <https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676>\
**Category:** Development\
**Created:** [May 9, 2020, 5:15pm UTC](https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676 "2020-05-09T17:15:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 9, 2020, 10:32pm UTC](https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676/3 "2020-05-09T22:32:37Z")

</div>

Hi @SomeOne,

Great ideas. I’m familiar with some explicit “recipe book” / “cookbook” resources – for example, The Twine Cookbook, or for Inform Recipe Book.

- [http://twinery.org/cookbook/](http://twinery.org/cookbook/)
- [http://inform7.com/doc/](http://inform7.com/doc/)

Are these the kind of things that you have in mind?

I like initiatives like this – a lot! I would want to think more about how specifically this would be different from the way that, for example, the [processing.org](http://processing.org) Examples page is already a kind of recipe book, or some of the books are.

[https://processing.org/examples/](https://processing.org/examples/)  
[https://processing.org/books/](https://processing.org/books/)

For everything all gathered in one place, you also might be interested in contributing to Rosetta Examples, which is published to PDE Contributions Manager: Examples.

> **[jeremydouglass/rosetta\_examples\_p5](https://github.com/jeremydouglass/rosetta_examples_p5)**
>
> Example set from Rosetta Code for P5 (Processing). Contribute to jeremydouglass/rosetta\_examples\_p5 development by creating an account on GitHub.

It is built on the structure of Rosetta Code, which currently has 1000+ discrete “tasks”.

[http://rosettacode.org/wiki/Category:Programming\_Tasks](http://rosettacode.org/wiki/Category:Programming_Tasks)

Now, Rosetta isn’t a native survey of common patterns _in processing_ – most tasks are defined in terms of general computing, not organized around (primarily visual) creative computing. But the example set could grow in that direction, including by defining new tasks that are common for Processing users.

So, I guess what I’m wondering is – what do you have in mind, specifically? Share more details – and maybe throw in some concrete examples for potential recipe titles. For example, right now Rosetta has a thread going for “reverse a string”: [Rosetta Challenge! -- Reverse a String](https://discourse.processing.org/t/rosetta-challenge-reverse-a-string/20644)

---

_[View the full topic](https://discourse.processing.org/t/collecting-common-patterns-code-snippets-solutions-used-in-processing-programs/20676)._
