r/CSEducation • • 20d ago

We built a free code visualizer that handles keyboard input in Java/C/C++, file I/O, and 10,000 steps. Would love feedback.

Hey all. I’m Joe, a longtime CS teacher and co-founder of CuraCourse.

I’m a firm believer that watching code execute is one of the most important parts of learning to program. Aliasing, references vs. values, scope, recursion, pointers... so many misconceptions fade once a student sees memory change line by line.

Python Tutor has been the go-to for this forever, and it’s great. But I kept hitting the same walls with students:

  • Keyboard input only works in Python. A Scanner or scanf program won’t run.
  • No file reading or writing.
  • It stops at 1,000 steps, which a nested loop burns through fast.
  • C/C++ support is rough: no return values, STL containers show raw library internals, and leaked memory isn’t shown.

So we built CodeFlip: https://codeflip.dev

Python, Java, JavaScript, TypeScript, C, and C++. Some details:

  • Input that behaves like a terminal. input(), Scanner, scanf, cin. Give input ahead of time, or leave it empty. When the program reads, it pauses on that line and a prompt appears under the output. Type a line and it continues from there. “No more input” sends end-of-file. Everything typed is saved in the share link, so students open it exactly where you left it.
  • Files. Add or upload text files. Python, Java, C, and C++ can open, read, and write them, and a Files panel shows each file as it is at that step.
  • 10,000 steps instead of 1,000.
  • A plain-English caption for every step, like “fact is finishing: n * fact(n - 1) is 3 * 2, so it returns 6.”
  • Friendlier errors. Common compiler and syntax errors rewritten in plain language, with the original message underneath.
  • Real C/C++ memory. Return values, leaked blocks badged “leaked”, freed blocks and dangling pointers shown, plus vector, map, unique_ptr/shared_ptr drawn as what they mean rather than library internals.
  • Breakpoints with #break or // break (or click a line number), and hide variables with codeflip_hide:. Python Tutor’s pythontutor_hide: works too.
  • Live mode, a “keep finished calls on screen” option for recursion, and 2D arrays drawn as grids.
  • Runs in your browser, works on phones, and captions are read by screen readers.
  • Embeds for class sites and textbooks, plus Canvas via LTI 1.3.

Have existing Python Tutor links? Swap pythontutor.com for codeflip.dev and the same program opens on the same step. Nothing is locked in, and you can always copy your code back out.

I’d really appreciate feedback, especially programs that break it or display in a confusing way. That’s what makes it better for students.

3 Upvotes

0 comments sorted by