microsoft / pxt-microbit

A Blocks / JavaScript code editor for the micro:bit built on Microsoft MakeCode
https://makecode.microbit.org
Other
713 stars 588 forks source link

Can the if block and the while block have a condition block pre inserted in them? #5136

Open HanaZimmermanKarl opened 1 year ago

HanaZimmermanKarl commented 1 year ago

The if block does not contain a condition block in it. image

And so is the while loop block: image

The most common use of the if and of the while loop blocks have a condition block in them. image

This causes any use of if block or the while block, to take longer, unnecessarily.

I'm asking that any if would have a preinserted preinserted condition block in it, I believe programming would be less tedious. image

This includes the if block in the logic instruction group, and when expanding an if block to: else if

microbit-screenshot (11)

Thanks in advance!

BeckHaru commented 1 year ago

please reassign to Jac, thank you.


From: HanaZimmermanKarl @.> Sent: Sunday, May 14, 2023 4:31:07 PM To: microsoft/pxt-microbit @.> Cc: Becky Haruyama @.>; Assign @.> Subject: Re: [microsoft/pxt-microbit] Can the if block and the while block have a condition block pre inserted in them? (Issue #5136)

Assigned #5136https://github.com/microsoft/pxt-microbit/issues/5136 to @BeckHaruhttps://github.com/BeckHaru.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/pxt-microbit/issues/5136#event-9240920740, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVKIFZN6COTXWF4WL223RA3XGFTLXANCNFSM6AAAAAAYBOMCIY. You are receiving this because you were assigned.Message ID: @.***>

HanaZimmermanKarl commented 1 year ago

Hi @BeckHaru, I can not assign anything. It is assigned to you and @unthinkmedia automatically. Maybe you can reassign this to who ever is needed? Thanks!

jaustin commented 5 months ago

We're triaging open issues and have identified this as one that would have huge impact on printed and published educational materials, and teacher training.

We're sympathetic to discussing the change itself but if it were to be made we'd need a good transition period and some user testing around how much it affects the ability of people to follow existing (and therefore out-of-date-after-the-change) resources.

There's a certain advantage to communicating immediately that the thing the if statement needs must be True or False, as well.