Writing consistent Cookbook items
How to write and submit a Zotonic Cookbook item (and why)
Contributed by: Lloyd R. Prentice
A Zotonic Cookbook item is a single-concept solution to a well-defined problem.
Useful items range from the simplest content management tasks to technically sophisticated module development and site administration solutions. This means that items are welcomed from noobies and wizards alike.
Whenever you struggle to find a solution to a specific problem, fail to find a Cookbook item that addresses it, and work through the solution with a final "Aha!," you have the raw material for an excellent Cookbook submission.
The Zotonic Cookbook is a living document. If you find errors or short-comings in an existing Cookbook item, by all means submit a correction, update, or enhanced solution.
A well-written item has four sections:
What problem does this Cookbook item solve? What benefits does it deliver?
Four major reasons for submitting Cookbook items are:
1) The best way to learn is to teach
2) Your Cookbook items documents your efforts; helps you remember what you did next time you encounter a similar problem
3) Each item makes it that much easier for noobies and other community members to advance their Zotonic skills. A larger, more knowledgeable user and development community assures the on-going maintenance, development, and success of Zotonic into the future.
4) Win valuable prizes (see below).
What does this item assume about operating system, Linux distribution, programming skills, knowledge of Zotonic architecture and conventions, etc.
Step-by-step instructions for implementing your solution.
Don't take user competency for granted. When you specify a command, note what user name you're working under and what directory you're working in.
Respect the noobies by including steps that may be obvious to you but not so obvious to folks with less experience.
Think of your instructions as a check-list. A noobie should be able to achieve success by reading, implementing and checking off each instruction.
Keep your instructions simple, complete, and clear.
Recruit a noobie to try out your solution. Fix the stumbling blocks she encounters. If you can't find a noobie, put yourself in noobie mind. Remember, you too once were one.
How will the user recognize success? What diagnostic and trouble-shooting steps can the user take if something goes wrong?
The Great Zotonic Cookbook Contest
When Zotonic Cookbook hits the 50 submission mark, the person who has submitted the largest number of items will win:
1) $50 from Marc Worrell through PayPal
2) A Zotonic t-shirt from Marc Worrell
3) A collectors edition of Aya Takeo Vol. I signed by both artist Sonia Leong and writer Lloyd R. Prentice from Lloyd R. Prentice (See http://ayatakeo.com ).
This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.