News for hackers. Stuff that matters.
Re:Made a scroll bar buddy that walks down the page when you... by psygn89 on Monday March 03, 2025 @02:02AM (#43239058)
Nice! I had an idea that I never coded up. Basically a hamster with a parachute that would fall slowly to the bottom of the page. If you scroll down fast his parachute will deploy to catch up and land once again at the bottom of the viewport. He'll hold a "Top" sign when you hover over him and will shoot off with a jetpack when you click on him and as the screen hits the top you'll see him deploy a parachute again to gently land at the bottom of the screen.
Re:Made a scroll bar buddy that walks down the page when you... by raaron773 on Monday March 03, 2025 @03:36AM (#43239646)
Okay now i want this. For some reason i keep imagining the hamster to look similar to the gopher in golang (obviously not blue)
Re:Made a scroll bar buddy that walks down the page when you... by dhosek on Monday March 03, 2025 @01:14PM (#43244842)
Nah, the hamsterdance.com hamster.
Re:Made a scroll bar buddy that walks down the page when you... by averageRoyalty on Wednesday March 05, 2025 @08:54AM (#43266376)
His name is Hampton, and he released a wonderful full album.
Re:Made a scroll bar buddy that walks down the page when you... by andirk on Monday March 03, 2025 @02:39AM (#43239226)
Waiting for the repo link. I will add a fork where the hamster's parachute doesn't redeploy if scrolling to fast and then the user "loses". Discourages scrolling. Might be helpful?
Re:Made a scroll bar buddy that walks down the page when you... by szszrk on Monday March 03, 2025 @05:22AM (#43240320)
Have a look at my other comment. I just noticed it has an issue that parachute doesn't redeploy properly when you scroll down->up->down, but it works nicely aside of that.
Re:Made a scroll bar buddy that walks down the page when you... by hello12343214 on Monday March 03, 2025 @02:13AM (#43239101)
ok this sounds cool
Re:Made a scroll bar buddy that walks down the page when you... by szszrk on Monday March 03, 2025 @05:20AM (#43240302)
https://gist.github.com/iamtomek/5d4a30c1a6765d695950c777e38...

Disclaimer: I wrote zero lines of this, it was made purely with Claude 3.7 (via Kagi assistant) with around 10 additional revisions in one conversation. I pasted the emojis in the prompt, but that's basically it.

I never coded anything meaningful in html and js.

Edit: it silly that in a place where so much discussion is about AI, when I paste a working AI generated code what I first get is downvotes. I guess you like hating AI more than hamsters.

Re:Made a scroll bar buddy that walks down the page when you... by matsemann on Monday March 03, 2025 @07:22AM (#43241072)
> a working AI generated

The parachute will never deploy if you're higher than a previous low. So if you scroll down, a bit up, and then down again it will not have a parachute, until reaching the point where it was at the bottom last and then suddenly it gets a parachute mid fall.

If it's falling without a parachute, it will get glued to the corner the moment you start scrolling up. If it's falling with a parachute, scrolling up will break it and it will continue past the screen.

I don't want to sound overly critical - it's cool that you dished this up so quick - just commenting on your comment. The fact that the AI made so many bugs in such a short script is kinda disproving it "working", doesn't mean we like hating AI.

Re:Made a scroll bar buddy that walks down the page when you... by szszrk on Monday March 03, 2025 @08:40AM (#43241598)
You are 100% correct, but decided not to try to fix it manually, as it's a cool demo "I did this in 15 minutes in ai chat".

Truth be told, it has less UI issues than my last outsourced app I deployed. And it had dedicated UI team and a few million budget.

The Hamster v0.0.1 is working. He's just not great at his job.

Re:Made a scroll bar buddy that walks down the page when you... by Zedroid on Friday March 07, 2025 @06:46AM (#43289403)
Anyone else reading this please fork it and fix it thanks
Re:Made a scroll bar buddy that walks down the page when you... by turblety on Monday March 03, 2025 @06:36AM (#43240748)
Sorry you got downvoted. Uploaded it for a demo: https://65d22473-339d-4325-90bb-bef215770f60.paged.net/
Re:Made a scroll bar buddy that walks down the page when you... by dominicrose on Monday March 03, 2025 @07:57AM (#43241297)
I wouldn't downvote this because it's interesting to see what an AI can do. But it's pretty clear a human has to fix it.
Re:Made a scroll bar buddy that walks down the page when you... by anon7000 on Wednesday March 05, 2025 @05:18AM (#43264921)
And it’s also pretty clear that humans typically don’t crank this type of thing out in 15min. The current narrative around AI is a lot more about augmenting our work and making parts of it faster. It can create buggy code in almost no time, which leaves plenty of time for bug fixing, iterations, and optimization.

Humans can also create buggy code quickly, but it takes a while! And you still have to do bug fixing and optimization after you think you’re finished.

Re:Made a scroll bar buddy that walks down the page when you... by Kiro on Monday March 03, 2025 @10:19AM (#43242565)
Thanks! People downvoting you should be ashamed of themselves.
Re:Made a scroll bar buddy that walks down the page when you... by szszrk on Tuesday March 04, 2025 @06:35AM (#43253306)
I've noticed it's a common practice on other places as well. It doesn't even need a reason, just random people or bots doing random actions to create more chaos.
Re:Made a scroll bar buddy that walks down the page when you... by MHM5000 on Monday March 03, 2025 @07:05AM (#43240959)
and on scroll up a hamster with jetpack/rocket