liveBook · Manning

Move method

A move method is an operation that relocates an existing resource or item to a different location or parent while preserving its identity.

How 2 Manning books explain it

API Design Patterns

Resource moving is the relocation of an API resource so that it belongs to a different parent or location.

How it is used
Relocates or renames resources through a custom API method instead of standard update or create operations.
How deep it goes
Explains request fields, identifier policy, child resources, references, external data, metadata, and transactional atomicity.
Examples
Uses MoveMessageRequest, chat-room message paths, destination identifiers, and top-level-resource applicability as concrete examples.
What you can do after
Operate/configure a custom move method with explicit identifiers, relationship handling, external-data policy, and feasible atomicity.

Read how API Design Patterns explains move method →

Build a Frontend Web Framework (From Scratch)

A move operation represents relocating an existing array item to a different position while preserving its original index.

How it is used
Represents repositioning an existing child while diffing virtual-node arrays into operations for DOM patching.
How deep it goes
Defines the operation's fields, works through index changes, and implements moving items while preserving original indices.
Examples
Uses array transformations, including `[A, B, C]` to `[C, B, D]`, and a step-by-step example with duplicate items.
What you can do after
Build it from scratch in JavaScript by emitting move operations and updating parallel item and original-index arrays.

Read how Build a Frontend Web Framework (From Scratch) explains move method →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.