Teaching guide

Using Examples

Explore 24 complete core programs, arranged from first steps to a combined challenge. Each example has a learning focus, a desk-check expectation and something to try next.

Choose Load example to open a program in the workspace. Unsaved changes require confirmation. Core examples need no extension. Examples for the extension selected in your workspace appear after the core list.

Catalogue loads start at version 0.1, with author Pseudly and one New history entry dated today on your computer. Shared JSON downloads retain their neutral greeting and recorded date; ordinary imports preserve the file's metadata.

Use examples as small investigations

  1. Predict the output before tracing. Write down values as they change.
  2. Test a boundary: one below, exactly at, and one above a decision value.
  3. Change one thing and predict its effect before reading the new pseudocode.
  4. Hide the generated text and write the algorithm yourself. Explain any differences.

Open Program → Examples to choose a program. Its learning focus, desk check and next challenge come from the same catalogue as this guide. Shared downloads stay neutral; loading an example does not automatically save an account program.

Notes for desk checking

Predict by hand first, using Program → Export → Deskcheck (.docx) if useful. Then use Inspect to compare your prediction: probes add rows, watches add columns, and BREAKPOINT pauses. Example 23 demonstrates WATCH and optional DEBUG output. See Inspecting Programs for instructions.

Expected results are predictions, rather than execution logs. Use inclusive FOR endpoints for these exercises. RANDOM and CHOICE results vary, as do the current date and time.

Agree on indexing and substring-end conventions before tracing LETTER, SUBSTR and ELEMENT. The current generator does not define their execution-level conventions. The character-code examples assume Unicode/ASCII for A and B.

The hypotenuse functions use the equivalent power-of-0.5 expression because loading SQRT directly inside RETURN currently has a type-check timing limitation. SQRT is demonstrated separately. Random tips are printed by a procedure because CHOICE does not currently have a concrete String return type.

DO describes a natural-language action. DEBUG predictions assume debug statements run only when debugging is ON. Assignment uses SET x TO …. SQL, Gaming and robot examples generate pseudocode; Pseudly does not execute a game, control hardware or connect to a live database.

Build a message without extra line breaks

Example 2, Multiline Strings, ends by printing "Build " and "a " with W/O NEWLINE, followed by a normal PRINT "message.". The output is Build a message. on one line. Spaces belong to the text values; Pseudly does not insert them between separate PRINT instructions.

Pseudly

a bridge between blocks and code

Version 0.7.2 — 24 November 2026

© Pseudly 2025-26

Release Notes

Full History

Credits

Pseudly is developed by Peter Hurwood. Thanks to the maintainers of the software used to build and run it.

Licence and copyright notices · JavaScript · Python · Font Awesome Free · Quill and bundled components