Skip to main content
Skip to Main Content
Skip to main content
Navigation

Switch: A New Approach for Incremental Transition to Text-Based Programming

By Jimmy Lin Dec 13, 2023

In the modern digital era, programming has become an essential skill. Yet, the journey from block-based to text-based programming can often seem daunting for many learners. Recognizing this gap, the Switch approach has been conceptualized to provide an incremental transition. Drawing on three main ideas—incremental transition, authenticity via real language, and high ceiling—Switch is poised to revolutionize how we perceive and teach programming.

The Incremental Transition

Switch stands out for its ability to facilitate a smooth transition from block-based to text-based programming. By allowing users to convert block-based commands into Switch blocks, it creates a clear, understandable link between the blocks and text. This empowers learners to see the resemblance between the two, mitigating any apprehensions they might have about transitioning to text-based programming.

To further reinforce the learning process, Switch enables learners to begin with a block-based program, then convert part of it to text via Switch blocks, and subsequently modify the text. (For a detailed description of how to use Switch blocks, see this VEX Library Article.) This progressive system means learners are gradually exposed to text-based code and gain the confidence to tweak it before they start writing such code from scratch. The incremental process of Switch, thus, serves as a bridge between the different programming approaches, enhancing learners' understanding and fostering their coding skills.

Animation showing converting a VEXcode VR Block to a Switch block

Authenticity Via Real Language

The design goal of Switch has been primarily centered around enhancing authenticity by the use of real programming language, creating an environment that mirrors professional coding scenarios as closely as possible.

Different from various other programming learning environments, Switch does not employ a simplified or "pseudo" language for beginners. It uses Python, the same language used by professionals in the field, right from the outset. This essentially means that the language syntax that learners encounter in the VEX VR programming environment is the same as that used in professional programming contexts.

This approach to programming learning environments eliminates the step where learners transition from a fake text-based language to a real text-based language like Python. The potential benefits include a reduced learning curve and minimized confusion during the transition phase, often experienced by learners when progressing from a fake or simplified text-based language to a real text-based programming.

Switch's use of real language represents an effort to bridge the often observed disconnect between the language used in learning environments and the language used in professional scenarios. By using the same language syntax as professional coders, Switch provides learners with an opportunity to familiarize themselves with the mechanics and syntax of actual programming.

VEXcode VR comparing Switch blocks to Python code side-by-side comparison

The High Ceiling

Switch is designed with a 'high ceiling' concept, implying it supports complex, sophisticated tasks beyond just the basics. Despite starting with simple block-based programming, learners are not limited to low-level tasks. Combining Switch with VEX VR, the number of complex playgrounds available will provide the learners with multiple high ceilings to reach. They can venture into more advanced programming, including working on complex projects or writing algorithms. The 'high ceiling' ensures that even as learners grow and their coding capabilities evolve, they will not feel bored.

VEXcode VR Playground select screen

Conclusion

In conclusion, the Switch approach opens up a new vista for programming learners. By providing an incremental transition, authenticity via real language, and a high ceiling for advanced programming, it provides an authentic learning environment where students are learning to code using the same language as professional programmers.

To learn more about Switch, visit research.vex.com for the latest research articles,
or schedule a 1-on-1 Session with a VEX Expert.