News for hackers. Stuff that matters.
Re:Ask HN: What's a side project you built to make money tha... by ineptech on Friday July 07, 2017 @03:31PM (#14721344)
For those checking out the ineptech site, please don't miss the poetry compiler joke! It's the bit I'm the most proud of. It's in an unlinkable modal so actually I'll just paste it here:

    Upon a stack of bits, about so tall,           // Boolean[] isprime = new Boolean[n];
    just think, O traveller, what we could do      // Arrays.fill(isprime, true);
    if every other bit was set to false            // for (int i = 4; i < n; i+=2)
    beginning with (but not including) two?        //   isprime[i] = false;
    
    Now take two lowly numbers, A and B            // for (int a = 3; a < n; a += 2)
    that equal three and two. What would happen    // {
    if they, by twos and ones respectively,        //   for (int b = 2; a*b < n; b++)
    were incremented in a nested fashion,          //   {
    
    And if we falsified, at every turn,            //     isprime[a*b] = false;
    the value offset by A groups of Bs?            //   }
    Then to the aether let those bits return,      // }
    to fly back home to Eratosthenes!              // return isprime;
(You may have figured out that I put a lot more time in to the silly programmer jokes in the fake site than in to the app. Wonder why it never took off...)
Re:Ask HN: What's a side project you built to make money tha... by vram22 on Friday July 07, 2017 @08:34PM (#14723373)
Very creative, congrats.

The fact that you made it a poem, reminds me of some extempore poems that I made up as a kid - inspired by reading a book that my uncle bought me as a gift - The Golden Book of Fun and Nonsense [2]. It had a lot of funny poems, limericks, etc. in it.

Here are two I made up at the time:

Poem 1:

Mr. Jolly had a brolly [1]

Its handle was made of silver, and its body was made of gold.

And Mr. Jolly used the brolly when it was very cold.

[1] Brolly is a Brit term for umbrella.

Poem 2:

I climbed up a mountain.

There I saw a fountain.

One, two, three, four, five!

In it I'd like to dive.

Go ahead, laugh. It's meant to be funny and silly.

I'll also mention a few good ones I read in that book:

Into the drinking well

Which the plumber built her.

Aunt Eliza fell.

We must buy a filter.

Old Father William:

https://en.wikipedia.org/wiki/You_Are_Old,_Father_William

[2] The book is suitable for kids of all ages:

https://www.google.com/searchq=the+golden+book+of+fun+and+no...

Re:Ask HN: What's a side project you built to make money tha... by vram22 on Saturday July 08, 2017 @03:11PM (#14726752)
Re:Ask HN: What's a side project you built to make money tha... by pjc50 on Friday July 07, 2017 @04:59PM (#14722039)
This is very, very nicely done. You can rightly be proud of that.
Re:Ask HN: What's a side project you built to make money tha... by christophilus on Friday July 07, 2017 @10:30PM (#14723740)
> End-user computers typically include many gigs of porn and mp3s. Remember to make your test environment as realistic as possible!

That made me laugh so hard. Man. Great site.

Re:Ask HN: What's a side project you built to make money tha... by roryisok on Friday July 07, 2017 @06:36PM (#14722743)
+1 for jokes in code. I have a thesaurus plugin with an ASCII T-Rex in the source.
Re:Ask HN: What's a side project you built to make money tha... by kyle-rb on Saturday July 08, 2017 @12:50PM (#14726077)
You'd probably appreciate the ascii pterodactyl in the source of http://theoatmeal.com
Re:Ask HN: What's a side project you built to make money tha... by roryisok on Saturday July 08, 2017 @04:35PM (#14727076)
That's my inspiration ;)
Re:Ask HN: What's a side project you built to make money tha... by prashant10 on Saturday July 08, 2017 @12:26AM (#14724077)
Hahah ! I am looking to incorporate this in my code now with due credit :P
Re:Ask HN: What's a side project you built to make money tha... by adzm on Friday July 07, 2017 @04:34PM (#14721828)
Code poetry is drastically underappreciated. I truly enjoyed this.