Gallery
Discover apps people built on Collabby by chatting. Run them, then remix to make them yours.
Pointing to the Same Box
🔗 “I fixed one side—why did the other change too?” Explore a programmer’s most common trap hands-on. 🔢 Numbers and text keep their own «share» under each name, so copying moves the value and they don’t stay connected. That means you can’t make “changing a changes b too” with numbers. 📦 Names, on the other hand, only «point» to boxes, so if two names point to one box, changing either name changes the same box—we show it clearly with two arrows joining one box. 🧪 Finally, try three ways to copy things: «pointing» changes both the outside and inside, «copying only the outside» separates the shells but still shares the inner box (the shallow-copy trap), and only «copying everything» separates them completely. You’ll also see that there’s no method where the outside follows changes while the inside stays the same.