Ask HN: What's the most creative 'useless' program you've ever written?
211–220 of 422 posts
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#212while (true) fork();
It crashed the university supercomputer. This was in the year 2000.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#213I like inserting art, like the header to https://simonsarris.com A village pops up. There is no point to it. You can click to make more houses. You can right-click to drag things around. When I touch it again I think I'll add a sun and moon that track the time of day for wherever the user is located. Actually the footer has art too, each page has a semi-randomly assigned illustration from public-domain (old) art that…
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#214Patchy.py allows you to keep define a Python function as the result of another function and a diff.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#215Alright, this wasn't exactly useless as I was trying to learn how debuggers work.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#216First it spawned a galaxy of stars using RNG.
Then it seeded civilizations at different home stars throughout the galaxy.
Then it iterated an algorithm to show how they spread, settling more and more solar systems, expanding outwards. After a certain number of centuries, solar systems became "decadent" and stopped seeding other solar systems (I showed this by rendering them a darker shade of color). Systems that bordered those of another civilization had to reach a certain high population threshold then they were able to "take over" neighbors, but IIRC I coded it so that didn't happen very often. There wasn't any real diplomacy or war system like in real video games.
I would make some tweaks to the algo, then rerun the sim, and watch the civs spread out slowly in real time. It was pretty.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#217Re: Ask HN: What's the most creative 'useless' program you've ever written?
#218Horribly inefficient, horribly slow.. but it let me learn a bit about blue noise, and frankly - seeing images having just 10% of pixels and have all the shapes be distinctively recognizable with naked eye was just fun.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#219When I was first learning computer vision, I wrote a program that could tell the time from an image of a clock [1]. I had no purpose for it besides the fact that it seemed like a cool problem to try and solve. Years later, I get an email from a stranger in Korea, asking me how to run my program. Why would he want to use my silly program? Turns out you can adapt the code to read analog pressure gauges which is really…
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#220I had a script that would rotate my profile picture in Slack by one degree everyday. It take a surprisingly long time for people to notice.