Author Topic: Code Poetry  (Read 243 times)

Ed.Kloonk and 1 Guest are viewing this topic.

Offline Omega GloryTopic starter

  • Regular Contributor
  • *
  • Posts: 86
  • Country: us
    • Ezra's Robots
Code Poetry
« on: Today at 03:22:49 am »
Anybody here every try writing code poetry? Here's an attempt in Python. This will run (assuming "ant.py" exists), but doesn't do anything. The best code poems actually have some kind of neat side effect.

« Last Edit: Today at 02:29:51 pm by Omega Glory »
 

Offline EPAIII

  • Super Contributor
  • ***
  • Posts: 1056
  • Country: us
Re: Code Poetry
« Reply #1 on: Today at 05:52:41 am »
Some people have

ENTIRELY TOO MUCH

time on their hands.

(It doesn't rhyme, but it has a sort of meter.)
Paul A.  -   SE Texas
And if you look REAL close at an analog signal,
You will find that it has discrete steps.
 
The following users thanked this post: Omega Glory

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14445
  • Country: fr
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11858
  • Country: us
Re: Code Poetry
« Reply #3 on: Today at 07:06:17 am »
 
The following users thanked this post: Omega Glory

Offline Omega GloryTopic starter

  • Regular Contributor
  • *
  • Posts: 86
  • Country: us
    • Ezra's Robots
Re: Code Poetry
« Reply #4 on: Today at 01:57:52 pm »
@EPAIII

Yeah, it doesn't rhyme, but I was trying to limit myself to keywords as much as possible, which makes it hard. The
Code: [Select]
open("you","r") was fun because the "r" actually does something here (tries to open the file "you" in read mode). And the fact that it comes between the a
Code: [Select]
try: and
Code: [Select]
finally: means if the file doesn't exist, the exception will be caught. Though to be fair, the underscore will evaluate to False which may prevent the open from running due to "short circuit" evaluation of the logical and. Ah, and the first if statement will evaluate to False anyway.

 @SiliconWizard
Shakespeare is great, hahaha. Have you seen Chef? https://esolangs.org/wiki/Chef (nice example), https://www.dangermouse.net/esoteric/chef.html (syntax)
« Last Edit: Today at 02:28:50 pm by Omega Glory »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14445
  • Country: fr
Re: Code Poetry
« Reply #5 on: Today at 08:06:20 pm »
@SiliconWizard
Shakespeare is great, hahaha. Have you seen Chef? https://esolangs.org/wiki/Chef (nice example), https://www.dangermouse.net/esoteric/chef.html (syntax)

Yes, I had seen Chef. In the same vein, there is also Rockstar: https://codewithrockstar.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf