Gallery
Pack Building Roadmap - Maker Stories Webinar
Share
Explore
Pack Makers' Checklist

icon picker
Pack Details & Code

Packs used in the Travel Brief App

Homemade Packs
image.png

Coda SDK Sample Pack
image.png

Pack Gallery
image.png
image.png

JavaScript Code Links

Country Names
Country Data
Sunrise-Sunset

Pizza metaphor anyone?

Building a pack is similar to making a great pizza. Both efforts require a strong foundation and a defined workflow and structure.
Structure Category
Making Pizza
Building Packs
1
Foundation
Pizza Pan
Coda Builder Interface
2
Process | Workflow
Basic Instructions:
Make the dough
Add:
sauce
toppings
cheese
Bake
Pack Structure | Sections:
Starter code
Add:
Schema definition,
Properties,
Formula code, etc.
Results code

Each of the will share some of the same basic code structure, but also have unique elements. (e.g., the code structure for a string formula will vary from that for a sync table.)
3
Variables
Ingredients, such as toppings
Code blocks & sample code
Coda SDK elements
There are no rows in this table

Being new to coding, I copy the sample code for each pack type, and change what I call the ‘variable code’ to achieve my desired result. This is similar to selecting different toppings when making a pizza. The choice of toppings does not change the baking instructions.
For example, with packs, you don’t need to build a string pack like Hello World from scratch but instead, you can change the “ingredients” in the Hello World string pack code to display Goodnight Moon,.
When making a pack, pressing the Build button is much like baking the pizza, but not as yummy. 😋
Here’s another example with dummy code, using a function called makePizza with one parameter named toppings. We can “Pass” different topping values to the makePizza function. The instructions for making the pizza are the same, but the results will be different pizzas, depending on your topping preferences.
Pepperoni and mushroom anyone? Invoking the makePizza(pepperoni, mushroom) function sounds delicious!

makePizza(toppings)
Make the dough
Add:
sauce
toppings(toppings)
cheese
Bake
image.png
(👍 Shout out to the incomparable Maria Marquis for the pizza metaphor inspiration!)

Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.