Author Topic: Code poetry  (Read 1451 times)

0 Members and 1 Guest are viewing this topic.

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4364
  • Country: gb
Code poetry
« 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)) {}
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 4670
  • Country: nl
Re: Code poetry
« Reply #1 on: October 19, 2022, 07:28:28 pm »
On a holiday are we?

Someone a bit bored out of his skull :-DD

Offline strawberry

  • Super Contributor
  • ***
  • !
  • Posts: 1199
  • Country: lv
Re: Code poetry
« Reply #2 on: October 19, 2022, 07:37:44 pm »
while(1){
never ending story();
}
 
The following users thanked this post: PlainName, MK14

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4364
  • Country: gb
Re: Code poetry
« Reply #3 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.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 
The following users thanked this post: pcprogrammer

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4364
  • Country: gb
Re: Code poetry
« Reply #4 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?
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6403
  • Country: es
Re: Code poetry
« Reply #5 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();
}
« Last Edit: October 19, 2022, 08:46:29 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline paulcaTopic starter

  • Super Contributor
  • ***
  • Posts: 4364
  • Country: gb
Re: Code poetry
« Reply #6 on: October 19, 2022, 09:09:13 pm »
# pointless sympathy

.overflowHandler
   fault_register--;
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online jpanhalt

  • Super Contributor
  • ***
  • Posts: 4003
  • Country: us
Re: Code poetry
« Reply #7 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   
 
The following users thanked this post: paulca

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: Code poetry
« Reply #8 on: October 19, 2022, 09:30:53 pm »
loveme=true|false
tomorrow=LetMeSleepOnIt
will you ? (loveme|tomorrow)

Code never runs.  :(


 ;)
iratus parum formica
 

Offline eti

  • Super Contributor
  • ***
  • !
  • Posts: 1801
  • Country: gb
  • MOD: a.k.a Unlokia, glossywhite, iamwhoiam etc
Re: Code poetry
« Reply #9 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. :)
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15797
  • Country: fr
Re: Code poetry
« Reply #10 on: October 20, 2022, 02:36:10 am »
(what (do-you 'mean) exactly)
 
The following users thanked this post: niconiconi

Offline eti

  • Super Contributor
  • ***
  • !
  • Posts: 1801
  • Country: gb
  • MOD: a.k.a Unlokia, glossywhite, iamwhoiam etc
Re: Code poetry
« Reply #11 on: October 20, 2022, 02:37:27 am »
(what (do-you 'mean) exactly)

👌👍👍👍👌
 

Offline eti

  • Super Contributor
  • ***
  • !
  • Posts: 1801
  • Country: gb
  • MOD: a.k.a Unlokia, glossywhite, iamwhoiam etc
Re: Code poetry
« Reply #12 on: October 20, 2022, 03:32:03 am »
 

Offline AndyBeez

  • Frequent Contributor
  • **
  • Posts: 858
  • Country: nu
Re: Code poetry
« Reply #13 on: October 23, 2022, 01:38:45 pm »
Satoshi mints the first
We mine to strike the next
There are no more

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf