Acrostic Poem - Programming

0

TASK:

Make an acrostic poem in the lines.
e.g.

BATCH

break  
attrib -h acrostic.txt  
type acrostic.txt  
cls  
help 

The output CAN also be an acrostic poem.

RULES:

  • Popularity Contest - the answer with highest vote wins!
  • You may create more than one.
  • Any language is accepted.
  • Every line must be executable.

Jamie

Posted 2014-02-03T05:57:16.213

Reputation: 166

Question was closed 2017-08-02T21:18:37.977

Your question might be a good one, but it is poorly written now. Please, try to improve it. – Victor Stafusa – 2014-02-03T08:41:27.020

Imho it is a bit broad as it is currently written. – Howard – 2014-02-03T09:17:53.143

how are to be considered the ubiquitous $ in PHP? – Einacio – 2014-02-03T19:26:00.640

Sorry, for special characters you can decide. $ you can read it as dollar or just not read it. Other reading will be accepted. – Jamie – 2014-02-03T23:52:10.903

Please include <how to read>. It will be easier for reader. – Jamie – 2014-02-03T23:52:48.640

Answers

2

Java

class s {
//acrostic starts below this line  
public static void main(String[] args) { int
a; int
n;
class b {}
a=1; int 
k; int
e;
System.out.println("are very tasteful."); } }

Leafthecat

Posted 2014-02-03T05:57:16.213

Reputation: 46

2

bash - every man dies alone

This line writes the poem:

echo echo view echo renice yes make apropos nice date identify echo start apropos locate octave nice echo | xargs -n 1 | awk '{s = s substr($1, 1, 1); if ($1 == "echo"){print $1, "-n", s; s = "";}else print $1, "--they >.said 2>&1";}' > acrostic.sh

To see the poem:

$ cat acrostic.sh

To see the poem within the poem:

$ sh acrostic.sh

user15259

Posted 2014-02-03T05:57:16.213

Reputation:

@Jamie, It's Bash. – unclemeat – 2014-02-04T01:20:31.687

@Jamie, don't worry... it's a matter of time. Just don't try to tackle GolfScript or APL in too much of a hurry! – WallyWest – 2014-02-04T05:22:39.797

1

Batch

Quite lazy, I'll admit -

@(
Code
Other than that which
Does
Echo Code^
Golf
Often
Lacks the
Fun
) 2>nul

H:\uprof>accro.bat
CodeGolf

unclemeat

Posted 2014-02-03T05:57:16.213

Reputation: 2 302

I'm frozen - "code" "other than that which" "does" "often" "lacks the" "fun" are all invalid programs. – Jamie – 2014-02-03T11:41:22.070

2This is invalid. All lines must be executable. I can write a better with 2>nul. – Jamie – 2014-02-03T11:48:22.870

5Changing the rules - uncool. – unclemeat – 2014-02-03T21:39:07.553

Yes, that's uncool and quite rude - but to prevent these invalid acrostic poem, i guess i need to stop it. – Jamie – 2014-02-03T23:54:54.980

1

Yay! Java!

import java.io.*;public
class poem{static String[]
a = 
new String[1];
public static void main(String[] args){a();fin();
return;}static
Object myMethod(){String
g = "This is my ";
return g;} static void a(){
a[0] = "output";}static boolean fin(){System.out.println(
myMethod().toString()+a[0]);Boolean fin =
!(0==1);return fin;}}

Jake1130

Posted 2014-02-03T05:57:16.213

Reputation: 31

1

Befunge-93

go down, "Dev" 00ps -- 2*4-10 \ please
um I guess 1 - 3 \, is that right "hmm", @
maybe

run as ./befungee.py acrostic for the output gum.

Note sure how rule #3 should be interpreted in this context.

Joel Bosveld

Posted 2014-02-03T05:57:16.213

Reputation: 311

Not sure if this is better suited at link. Would be stretching the definition of a story a bit though...

– Joel Bosveld – 2014-02-04T09:15:34.317

1

Ruby

ruby = "rubylicious"; control = true
unless (!ruby)
begin y = ruby
y.each_char do |l| print (
l)
if (l=='s') then 
control=false end  
if (!control) then puts "!" end
over = true
unless 
self == true then over = false end end end end

This prints Rubylicious!. I am not happy with some of the lines (especially last line), so future edits are possible.

Zbynek

Posted 2014-02-03T05:57:16.213

Reputation: 131

1

Javascript

document.getElementById("dog).appendChild(document.createElement('div'));
o = [];
e = [];
s = [];

t = 0;
h = 0;
i = 0;
s[0] = 0;

e[0] = 0;
v = 0;
e[1] = 0;
n = [];

c = 0;
o[0] = 0;
u = 0;
n[0] = 0;
t
? count=1:count=0;

user70585

Posted 2014-02-03T05:57:16.213

Reputation: 181