Skip to content

Improve transaction examples #190

Closed
Closed
@tbg

Description

@tbg

The problem with examples is that we want them to be easily grasped (so they don't do the most elaborate error checking) and that they highlight the need to handle restarts. Unfortunately, most (all?) examples are "wrong" in the sense that they

  • don't check all errors
  • don't check whether both accounts involved in a transfer exist (so essentially you can lose money or create it from nowhere)
  • do two (or rather, six) individual queries even though they could do one

I think we should strive to make the examples "optimal" in all regards since often that's where folks are going to copy-paste from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions