Hacker News new | ask | show | jobs
Show HN: Go Array and Slice Visualizer (willem.dev)
3 points by 1268 959 days ago
Hi! This is a small web app I made to explore the relationship between arrays and slices in Go. Probably mostly useful for beginners to Go :)

It gets a bit rough around the edges when you provide a custom capacity using index expressions but should work in most other cases.

I'm looking into adding some transitions/animations, I think it would be a good way to visualize loops for example, but I haven't gotten around to it yet.

Let me know what you think!

1 comments

very cool. I tend to use slices everywhere and rarely use arrays. What am I missing out on?
Thanks!

Same here, it's rare to use arrays directly in my experience. Just difficult to explain (or visualize) slices without also discussing arrays.