CodeYourFuture / CodeYourFuture/fundamentals-blockly

default variable values can lead to confusion

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The default variable values (particularly for arrays) can be a problem. Especially if doing:

- create new array + variable: let array = []
- create second array + variable: let array = []
- oh no, there is no longer any way to rename just one of these variables (one solution would be for the default to become variable 2)

Other scenario
- create new array + variable: let array = []
- rename to good name, e.g fruits
- get first item from fruits -> array is selected by default and causes an exception if not noticed

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests. Start by locating the Blockly paths for creating variables, renaming arrays, and selecting an array item; then reproduce both scenarios described in the issue. Done means repeated arrays can be distinguished and selecting an item after renaming no longer targets the wrong default or raises the reported exception.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.