News for hackers. Stuff that matters.
Re:Show HN: Hackreels – Animate your code in HD by CharlesW on Saturday October 21, 2023 @01:28PM (#37968827)
What is this for? I understand that it creates animated tweens between two code states, but I've never seen this done, so I'm asking more about the premise that led you to build this. (Thanks!)
Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @01:36PM (#37968891)
I have seen people sharing educational code animations on Twitter, but the process for creating them seemed really tedious (required you to use Keynote, Magic Move etc). So I wanted to automate away the really boring stuff!

It's geared at developer content creators who want to share really nice looking snippets of code on Twitter / use it in their videos.

Re:Show HN: Hackreels – Animate your code in HD by CharlesW on Saturday October 21, 2023 @01:42PM (#37968942)
Oh cool, best of luck!
Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @01:59PM (#37969103)
Thanks Charles!
Re:Show HN: Hackreels – Animate your code in HD by Oras on Saturday October 21, 2023 @05:14PM (#37970500)
Good to know the reason and target market. I saw the YouTube video and was not sure how this could be useful but now I understand.

Good luck!

Re:Show HN: Hackreels – Animate your code in HD by ReleaseCandidat on Saturday October 21, 2023 @03:16PM (#37969714)
Something like this: https://www.youtube.com/watch?v=wGCWlI4A5z4 code-report does nice source code animations https://www.youtube.com/@code_report
Re:Show HN: Hackreels – Animate your code in HD by petepete on Saturday October 21, 2023 @06:27PM (#37971055)
I seem to remember him saying he makes those animations using a PowerPoint transition.
Re:Show HN: Hackreels – Animate your code in HD by mmanfrin on Saturday October 21, 2023 @01:54PM (#37969052)
Why tween individual letters? I've seen animations that move specific code blocks or keywords, to show the actual movement of those blocks, but individual letters just feels like noise.
Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @01:58PM (#37969094)
So it's a mix of the letters but also I do not consider 100% matching lines in the diff. But I can see how there might be too much noise for very different code snippets. Thanks for your feedback!
Re:Show HN: Hackreels – Animate your code in HD by therealpygon on Saturday October 21, 2023 @08:57PM (#37971906)
Personally, I think it would make sense for the weighted priority of movement to be block > line > characters.
Re:Show HN: Hackreels – Animate your code in HD by gavmor on Saturday October 21, 2023 @03:49PM (#37969955)
Yeah, I was completely distracted trying to figure out what `import { Button, icons } from "ui"` was derived from. Looks like `<div classname="flex` was partially made up of "beautifully it animates," like a sort of anagram. There's no semantic relationship, of course, between permutations of an anagram. So letter tweening is worse than useless.

That being said, I do like the overall idea of animating code changes. Calls back to that old Facebook sketching app[0] that would let us share replays, and I am a fan of the stories that Gource[1] can tell.

Ultimately, though, the sequential text file is a bad metaphor for code. Best thing for it is to split your modules across files.

0. Can't remember the name of it, but something similar is https://sketchtoy.com/

1. https://gource.io/

Re:Show HN: Hackreels – Animate your code in HD by archiewood on Saturday October 21, 2023 @01:57PM (#37969085)
I do quite a lot of this kind of stuff for my job. Some thoughts that may be useful.

Often the full IDE is needed. I record a lot of gifs of VSCode, where part of the gif is typing code, part is interacting with the rest of the IDE / terminal - perhaps to run the code and view the output.

For me the killer app would be one which could pre-record keystrokes (and maybe mouse actions) so that I could do them error free. I often attempt a gif 10 times before I'm happy with the outcome.

I don't personally love the transition animation. I would want the option for something that seems like it's being typed.

The closest tools I've found are:

Typewriter VSCode extesion: Allows you to copy text and then "types" it out for you. https://marketplace.visualstudio.com/items?itemName=dansilve...

Ascii Cinema: https://asciinema.org/

Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @01:59PM (#37969098)
This is great feedback! Thanks.
Re:Show HN: Hackreels – Animate your code in HD by zipped on Saturday October 21, 2023 @03:06PM (#37969619)
Have you ever looked into Macro Recorder? https://www.macrorecorder.com/

It allows you to record keystrokes and then edit them after to cut out anything you'd like, stuff like the timings between keystrokes and accidental keys.

Re:Show HN: Hackreels – Animate your code in HD by archiewood on Saturday October 21, 2023 @07:17PM (#37971370)
Looks cool, will check it out next time.
Re:Show HN: Hackreels – Animate your code in HD by ramses0 on Saturday October 21, 2023 @03:16PM (#37969719)
Alternatively: Kinesis RGB Gaming Freestyle with the incredible "macro" button!

Macro, F1, Hello World, Macro => F1, F1, ad-infinitum

You it has a 10-slot non-keyboard zone which you can use without fear, or map fn-1,2,3, ctrl-shift-1,2,3, etc.

Re:Show HN: Hackreels – Animate your code in HD by elcritch on Sunday October 22, 2023 @09:26AM (#37975167)
On Mac there’s ‘Kap’ which has plugins for recording keystrokes and mouse clicks. https://getkap.co/
Re:Show HN: Hackreels – Animate your code in HD by tpmx on Saturday October 21, 2023 @02:46PM (#37969458)
Reminds me a little of EMF - Verses (a 1994 demoscene production).

https://youtu.be/oT1_zcosmPg?t=32

Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @03:20PM (#37969749)
Retro! Love it.
Re:Show HN: Hackreels – Animate your code in HD by phyzome on Saturday October 21, 2023 @05:53PM (#37970816)
Suggestion: Give a brief flash/highlight on all the code that's about to move or change. This will draw the viewer's eye to the right part of the screen and give them a chance to see what the before-state was.
Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @06:37PM (#37971128)
Awesome suggestion!
Re:Show HN: Hackreels – Animate your code in HD by arcticadder on Saturday October 21, 2023 @07:07PM (#37971307)
I think it looks cool. The pricing is way too steep, though.
Re:Show HN: Hackreels – Animate your code in HD by davidtparks on Saturday October 21, 2023 @07:09PM (#37971319)
There's a free plan! Feel free to shoot me a DM and we can work something out if you are turned off by the pricing / unable to pay.
Re:Show HN: Hackreels – Animate your code in HD by lencastre on Sunday October 22, 2023 @02:13AM (#37973221)
What about asciinema?
Re:Show HN: Hackreels – Animate your code in HD by nojvek on Sunday October 22, 2023 @09:28AM (#37975178)
> Application error: a client-side exception has occurred

Doesn’t work on iOS. Page crashes.

Re:Show HN: Hackreels – Animate your code in HD by arielwein on Sunday October 22, 2023 @07:46PM (#37980101)
Looks cool, almost exported but the pricing seems off to me.