let s get your documentation right
play

LETS GET YOUR DOCUMENTATION RIGHT ALL ABOUT ME DANIELE PROCIDA - PowerPoint PPT Presentation

DANIELE PROCIDA LETS GET YOUR DOCUMENTATION RIGHT ALL ABOUT ME DANIELE PROCIDA Divio (cloud hosting for Python/Django) Django core developer Board member, Django Software Foundation Python in Africa


  1. DANIELE PROCIDA LET’S GET YOUR DOCUMENTATION RIGHT

  2. ALL ABOUT ME DANIELE PROCIDA ▸ Divio (cloud hosting for Python/Django) ▸ Django core developer ▸ Board member, Django Software Foundation ▸ Python in Africa ▸ daniele.procida@divio.com ▸ EvilDMP (IRC, GitHub, Twitter) ▸ … or just talk to me!

  3. THERE ISN’T ONE THING CALLED “DOCUMENTATION”…

  4. …THERE ARE FOUR

  5. TUTORIALS HOW-TO GUIDES EXPLANATION REFERENCE

  6. TUTORIALS lessons that take the reader by the hand through a series of steps to complete a project

  7. TUTORIALS WHAT MATTERS ▸ learning by doing ▸ getting started ▸ inspiring confidence ▸ repeatability ▸ immediate sense of achievement ▸ concreteness, not abstraction ▸ minimum necessary explanation ▸ no distractions

  8. HOW-TO GUIDES guides that take the reader through the steps required to solve a common problem

  9. HOW-TO GUIDES WHAT MATTERS ▸ a series of steps ▸ a focus on the goal ▸ addressing a specific question ▸ no unnecessary explanation ▸ a little flexibility ▸ practical usability ▸ good naming

  10. REFERENCE technical descriptions of the machinery and its operation

  11. REFERENCE WHAT MATTERS ▸ structure ▸ consistency ▸ description ▸ accuracy

  12. EXPLANATION discussions that clarify and illuminate a particular topic

  13. EXPLANATION WHAT MATTERS ▸ giving context ▸ explaining why ▸ multiple examples, alternative approaches ▸ making connections ▸ no instruction or technical description

  14. TUTORIALS HOW-TO GUIDES LEARNING-ORIENTED PROBLEM-ORIENTED INFORMATION-ORIENTED UNDERSTANDING-ORIENTED EXPLANATION REFERENCE

  15. D HOW-TOS E T N E I R O TUTORIALS - G N I D N A T S R E D N U REFERENCE L E A R N I N G INFORMATION-ORIENTED - O R I E N T E D EXPLANATION PROBLEM-ORIENTED

  16. TUTORIALS HOW-TO GUIDES LEARNING-ORIENTED PROBLEM-ORIENTED INFORMATION-ORIENTED UNDERSTANDING-ORIENTED EXPLANATION REFERENCE

  17. Practical steps TUTORIALS HOW-TO GUIDES

  18. HOW-TO GUIDES Most useful when we’re coding REFERENCE

  19. EXPLANATION REFERENCE Theoretical knowledge

  20. TUTORIALS Most useful when we’re studying EXPLANATION

  21. D HOW-TOS E T N E I R O TUTORIALS - G N I D N A T S R E D N U REFERENCE L E A R N I N G INFORMATION-ORIENTED - O R I E N T E D EXPLANATION PROBLEM-ORIENTED

  22. Practical steps TUTORIALS HOW-TO GUIDES LEARNING-ORIENTED PROBLEM-ORIENTED Most useful when we’re studying Most useful when we’re coding UNDERSTANDING-ORIENTED INFORMATION-ORIENTED Theoretical knowledge EXPLANATION REFERENCE

  23. Practical steps TUTORIALS HOW-TO GUIDES LEARNING-ORIENTED PROBLEM-ORIENTED Most useful when we’re studying Most useful when we’re coding UNDERSTANDING-ORIENTED INFORMATION-ORIENTED Theoretical knowledge EXPLANATION REFERENCE

  24. ANOTHER EXAMPLE

  25. TUTORIALS LEARNING-ORIENTED LESSONS

  26. HOW-TO GUIDES PROBLEM-ORIENTED STEPS

  27. REFERENCE INFORMATION-ORIENTED TECHNICAL DESCRIPTION

  28. EXPLANATION UNDERSTANDING-ORIENTED DISCUSSION

  29. Practical steps Most useful when we’re studying Most useful when we’re coding Theoretical knowledge

  30. divio.com/blog/documentation

  31. EXERCISE DOCUMENT THE GAME OF CHESS

  32. Introduction How to… Explanation Reference

  33. Introduction - your first game How to… 1. Set up the board ‣ Open the game 2. Take each piece through its moves ‣ Respond to common openings 3. Capture a piece ‣ Control the centre of the board 4. Check the King ‣ Use a chess clock 5. Checkmate - you win! Explanation Reference ‣ The history of chess ‣ The rules of chess ‣ Middle-game strategies ‣ Competition rules ‣ End-game strategies ‣ Standard competition formats ‣ Numerical and positional advantage

  34. EXERCISE LET’S DOCUMENT OUR SOFTWARE Our API allows us to interrogate and manage all the data associated with a conference - people, presentations, tickets, schedule, etc. Your job: write the documentation.

  35. Introduction How to… Explanation Reference

  36. Introduction How to… 1. Install the client and demo server ‣ Embed the client in an application 2. Authenticate ‣ Authenticate using LDAP 3. Read data ‣ Lock the database for complex writes 4. Construct a complex query ‣ Use query batching 5. Write data ‣ Use an alternative client Explanation Reference ‣ When not to use the API ‣ Client commands and options ‣ Batching vs caching ‣ Data schema format ‣ Designing complex queries ‣ API query language ‣ Performance-optimisation strategies ‣ The authentication system ‣ Working with large databases ‣ Error codes

  37. TALK TO ME DANIELE PROCIDA ▸ Divio ▸ Django ▸ dockerised Django deployment ▸ documentation ▸ daniele.procida@divio.com ▸ EvilDMP (IRC, GitHub, Twitter)

  38. divio.com/blog/documentation

Recommend


More recommend