EEVblog Electronics Community Forum

General => General Technical Chat => Topic started by: paulca on October 19, 2022, 07:19:00 pm

Title: Code poetry
Post by: paulca on October 19, 2022, 07:19:00 pm
I'm sure I've done this before.  But hopefully it's fun anyway.

Post your best "code poetry".  Doesn't have to be genuinely valid code, but bonus points if it is.  Here's my latest and my favourite.

ARM life assembler.
Code: [Select]
keepTrying:
  bl try
  bl tryAgain
  b keepTrying
  b happiness

True Love in java.
Code: [Select]
while( you.love(me.love(you)) {}
Title: Re: Code poetry
Post by: pcprogrammer on October 19, 2022, 07:28:28 pm
On a holiday are we?

Someone a bit bored out of his skull :-DD
Title: Re: Code poetry
Post by: strawberry on October 19, 2022, 07:37:44 pm
while(1){
never ending story();
}
Title: Re: Code poetry
Post by: paulca on October 19, 2022, 07:51:37 pm
On a holiday are we?

Someone a bit bored out of his skull :-DD

Work man.  In work today I worked on communication issues and stress management.  :D  I made ONE code change, s/Overwrite/Append/ 

So, yes.  Bored out of my skull.

The next lines of code I wrote where my TurboBlinking ARM assembler.  Mad as a hatter.
Title: Re: Code poetry
Post by: paulca on October 19, 2022, 07:53:13 pm
while(1){
never ending story();
}

At least it's provocative. It bears the question.

Is life just a repeating loop or did some sick fudger unroll the whole thing at the start?
Title: Re: Code poetry
Post by: DavidAlfa on October 19, 2022, 08:44:29 pm
Did someone said feeling time? :-DD

Code: [Select]
while true {
    do_life_stuff();
    hard_times();
    continue;
    happiness();
    success();
    system_reset();
    love();
}
Title: Re: Code poetry
Post by: paulca on October 19, 2022, 09:09:13 pm
# pointless sympathy

.overflowHandler
   fault_register--;
Title: Re: Code poetry
Post by: jpanhalt on October 19, 2022, 09:09:45 pm
For those of us stuck in the 20th century PIC world:

movf,w    love
andwf,w   loveyou2
swapf,w   loveyou2
andlw      0x0F   
bra         $-4   
Title: Re: Code poetry
Post by: Ed.Kloonk on October 19, 2022, 09:30:53 pm
loveme=true|false
tomorrow=LetMeSleepOnIt
will you ? (loveme|tomorrow)

Code never runs.  :(


 ;)
Title: Re: Code poetry
Post by: eti on October 20, 2022, 02:33:11 am
I see no LISPers here. I’m less than even a weekend amateur, but would enjoy seeing some from more experienced folks in the language. :)
Title: Re: Code poetry
Post by: SiliconWizard on October 20, 2022, 02:36:10 am
(what (do-you 'mean) exactly)
Title: Re: Code poetry
Post by: eti on October 20, 2022, 02:37:27 am
(what (do-you 'mean) exactly)

👌👍👍👍👌
Title: Re: Code poetry
Post by: eti on October 20, 2022, 03:32:03 am
(what (do-you 'mean) exactly)

https://www.youtube.com/watch?v=HM1Zb3xmvMc (https://www.youtube.com/watch?v=HM1Zb3xmvMc)
Title: Re: Code poetry
Post by: AndyBeez on October 23, 2022, 01:38:45 pm
Satoshi mints the first
We mine to strike the next
There are no more