blocks: hard to find 'str' ("Create text with") for a single string

Open
#36 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start with the existing “create text with” block, its two inputs, hover text, and gear configuration shown in the issue. Determine whether a distinct single-value conversion block, clearer naming, or both best addresses the confusion; done means a newcomer can find and use number-to-text conversion without configuring the block indirectly.

Written by the indexing model from the issue text.

Description

I'd like to be able to easily convert numbers to strings using blocks. Here's a simple example of a program where this would be useful

image

The 'create text with' block that exists currently has two inputs, and the hover text says "create text by joining together any number of items"

As the image of the block has two 'inputs' it is not clear that this block can also be used for a single item (although I agree 'any number of items' does clearly include one item!):

image

Using the 'gear' on the 'create text with' block you can achieve this
image

However, I think it would be much clearer to add another block, perhaps "Convert to text" and the "create text with" could be "Combine items into text" or similar?

@carlosperate thoughts?

Dominant language
JavaScript
Stars
201
Forks
126
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bbcmicrobit/PythonEditor

All issues in bbcmicrobit/PythonEditor

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.