remixtures, Portuguese
@remixtures@tldr.nettime.org avatar

: "I wrote last month about how to test docs code examples. Now, let’s look at what to test in docs code examples.

  • Test the claims you make in docs
  • Use the APIs you document
  • Demonstrate common usage patterns and best practices
  • Figure out where you can safely omit boilerplate code

There are also a couple of “don’ts” when writing and testing docs code examples:

  • Don’t show “wrong” code
  • Don’t recreate comprehensive engineering tests for edge cases"

https://dacharycarey.com/2024/02/11/what-to-test-in-docs-code-examples/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • TechnicalWriting
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines