sparki-logo
  • Platform
  • Curriculum
  • For Schools
  • Pricing
  • About
Log inTry Free
PlatformCurriculumFor SchoolsPricingAboutLog inTry Free

Home/Blog/Product

What changes when a student moves from blocks to real code

Inside the design decisions behind Hybrid Code, and why the split-screen view took three tries to get right.

TK

Theo Kwan

December 2025 · 7 min read

Listen to this article

4:12

Every kid who spends long enough in Visual Blocks eventually hits the same wall: they know exactly what they want their program to do, and the blocks are starting to feel slow. That moment is when Hybrid Code needs to work perfectly, and it took us three complete redesigns to get there.

Attempt one: a toggle

Our first version let a student switch a project between "blocks view" and "code view" with a button. It failed almost immediately in testing.

Why a simple toggle didn't work

Switching views meant losing context. A kid would flip to code, see a wall of unfamiliar syntax with no relationship to what they'd just built, and flip straight back. The two representations felt like two different programs, not one program shown two ways.

Attempt two: code-first with a block reference

We tried flipping the default to a code editor with an optional blocks panel for reference. This solved the "two different programs" problem but created a new one: kids who weren't ready for text yet felt like they'd been pushed into the deep end.

The actual insight

The fix wasn't a smarter toggle. It was making both views update from the same underlying program, live, at the same time, side by side.

WHAT "THE SAME TIME" MEANS TECHNICALLY

Every block a student drags updates an internal representation that both the block canvas and the code panel read from. There's no conversion step, no "compile to see the code." They're two renderings of one thing.

"The moment a kid snaps a 'repeat 10 times' block and watches for (let i = 0; i < 10; i++) appear on the other side without them doing anything, something clicks that no amount of explaining does."

Internal design note, third prototype

What we watched for in testing

  • Whether kids glanced at the code side unprompted, without being told to
  • How long it took before a student made their first direct text edit
  • Whether students who started editing text ever went back to only using blocks

The third version — live, synchronized, side by side — was the first one where kids started editing the text panel directly within a few sessions, on their own, without a lesson telling them to.

WHERE HYBRID CODE GOES NEXT

We're currently testing whether the same synchronized-view approach works for the jump from JavaScript into Python, which has its own syntax quirks that blocks alone can't fully represent.

Try Hybrid Code yourself

See the split-screen view in the platform overview.

Explore the platform

sparki

Creative coding for K through 8. Built by educators, loved by kids.

PLATFORM

Visual Blocks
Hybrid Code
Python
Curriculum

FOR SCHOOLS

Pricing
Case Studies
Implementation
PD Training

COMPANY

About
Blog
Careers
Contact

CONNECT

Twitter / X
LinkedIn
YouTube
Newsletter

© 2026 Sparki Education Inc. All rights reserved.

Privacy
Terms
COPPA