TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Scrollycoding – A new way to write code walkthroughs [video]

143 pointsby pomberabout 4 years ago

13 comments

matthiaswhabout 4 years ago
Terrific work! IMO the state of programming tutorials and walkthroughs is surprisingly bad and antiquated. I wrote a concept demo a few years ago with some of the same ideas, but based around the Git diff.[0] The basic idea is each different &quot;step&quot; of the tutorial is a new commit, where the commit message is the instructions and the diff is the change in code.<p>I discovered there is a big advantage to the reader in being able to reference the entire WIP code base at any given time, as well as seeing what code is removed&#x2F;replaced, which is easily missed but vitally important when building up an idea incrementally.<p>Happy to see people putting effort into making better tooling in this space.<p>[0] <a href="https:&#x2F;&#x2F;matthiashager.com&#x2F;tardis&#x2F;programming-tutorial-demo" rel="nofollow">https:&#x2F;&#x2F;matthiashager.com&#x2F;tardis&#x2F;programming-tutorial-demo</a>
评论 #26467630 未加载
评论 #26467563 未加载
mrdonbrownabout 4 years ago
Related, if you want to create a code walkthrough video, I wrote code-video-generator [1]<p>It uses Manim [2], an animation library commonly used by Math teachers, and adapted it to code walkthroughs. Just comment code as you do and it generates a video for it. I&#x27;ve been using it to generate visuals for youtube videos [3] with some success.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;sleuth-io&#x2F;code-video-generator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sleuth-io&#x2F;code-video-generator</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;manimcommunity&#x2F;manim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;manimcommunity&#x2F;manim</a> [3] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=e21hJnB9J5k&amp;t=2s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=e21hJnB9J5k&amp;t=2s</a>
评论 #26473033 未加载
gfxgirlabout 4 years ago
Hard pass. I used a site that did something like this. I found it extremely frustrating not to just be able to look at the entire document with multiple code samples. This to me is fluff and animation because you can, not because it&#x27;s a good idea.<p>You can show a snippet<p><pre><code> function log(...args) { } </code></pre> and show additions with highlights or colors<p><pre><code> function log(...args) { + console.log(...args); } </code></pre> show deletions with strikeouts, etc.. Much better than having to scroll up and down, up and down, up and down, and watch the animations to divine what actually changed from one segment to the next.
评论 #26477499 未加载
pomberabout 4 years ago
Project: <a href="https:&#x2F;&#x2F;github.com&#x2F;code-hike&#x2F;codehike" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;code-hike&#x2F;codehike</a><p>Demo: <a href="https:&#x2F;&#x2F;code-hike-scrollycoding-preview.vercel.app&#x2F;posts&#x2F;lorem-ipsum-three" rel="nofollow">https:&#x2F;&#x2F;code-hike-scrollycoding-preview.vercel.app&#x2F;posts&#x2F;lor...</a>
netgustoabout 4 years ago
Very nice!<p>Last code post I wrote I became aware of how difficult it is to intertwine explanations and readable code in a way that fist a blog post format. Conforming to the linear structure of a blog post (technical information is often hierarchical) and to the physical width of a blog post on screen proved to be very challenging.<p>Literate code might help, but it&#x27;s not a one size fits all solution. It&#x27;s nice to see your project offers something original in that space.
评论 #26467118 未加载
Lukas_Skywalkerabout 4 years ago
Wonderful! I recently did something similar to teach kids to program a game (in german): <a href="https:&#x2F;&#x2F;game.bbz.cloud&#x2F;topics&#x2F;04_collisions" rel="nofollow">https:&#x2F;&#x2F;game.bbz.cloud&#x2F;topics&#x2F;04_collisions</a> To get the step-by-step code building, you can add comments to individual lines of example source code to tell them when they should appear (and optionally disappear): <a href="https:&#x2F;&#x2F;github.com&#x2F;bbz-biel-informatik&#x2F;jsgame&#x2F;blob&#x2F;master&#x2F;04_collisions&#x2F;game.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bbz-biel-informatik&#x2F;jsgame&#x2F;blob&#x2F;master&#x2F;04...</a> It currently works for JS, HTML and CSS.
评论 #26468482 未加载
alanbernsteinabout 4 years ago
Amazing. I&#x27;ve seen similar presentation styles before, not sure if this exact idea existed previously or not, but I had this idea and could not find it a few years ago. I had zero interest in implementing it, but would absolutely use it for blog posts. I would like to try to incorporate this into a Hugo site.
RobSpectreabout 4 years ago
This is super tasteful and clean. Well done.
dayreabout 4 years ago
This is really great... i didn&#x27;t realize how much this was needed until working with the demo.
ballmerspeakabout 4 years ago
This is fantastic. I&#x27;ll be using on a new project and will happily provide feedback.
anm89about 4 years ago
Woah! This is pretty slick and addresses a real problem. Great work.
michael-axabout 4 years ago
Brilliant!
Xeviabout 4 years ago
What about mobile users? It doesn&#x27;t seem to work for them.
评论 #26468609 未加载