A Message For You

Just figure out what the following program writes to the console...

using System;
using System.Collections.Generic;
using _ = System.Text.StringBuilder;
using __ = System.Console;
using ___ = System.Collections.Generic.IEnumerable<int?>;

class wtf
{
    
static void Main()
    {
        
_ _ = new _().Append(_2());
        
int i= 0; foreach(int? x in _1())
        {
            _[(
int)((x ?? i) < 0 ? i ^ 2 % 10 : x)] = _2()[i++];
        }
        
__.WriteLine(_.ToString());
    }

    
static char[] _2()
    {
        
return
        (  
          
"H"      +      "Y"
                    +
            
"E"     +     "N"
                    +
            
"A"    +    " "
                    +
              
"P"   +   "A"
                    +
              
"W"  +  " "
                    +
                
"P" + "R"
                    +
                
"E"+"Y"
        
                 ).ToCharArray();                
    }    
    
static ___ _1()
    {
        
int?[] _ = {  
                     0, 10, 11, 6,  1, 5, 3,
                    
/*~~~~~~~~~~~~~~~~~~~*/
                     12,  8,  9, 2, 13, 7, 4
                    };

      
foreach (int? x in _)
            
yield
                    return
       null
              ??
              x;
    }
}

Who is gonna port this to VB?

posted on Thursday, December 29, 2005 9:39 PM by scott

Comments

Thursday, December 29, 2005 9:07 PM by Keyvan Nayyeri

# re: A Message For You

Happy uour New Year, too.
VB syntax will simplify it, I think ;)
This is very cool :)
Thursday, December 29, 2005 9:09 PM by Keyvan Nayyeri

# re: A Message For You

Oh! Sorry!
MyLastComment.Replace("uour", "your")
Thursday, December 29, 2005 11:14 PM by Geoff Appleby

# re: A Message For You

Oh Scott, that is just plain disgusting :)

Happy new year to you too :)

I'll look at a VB convert later...if i'm feeling masochistic enough.
Friday, December 30, 2005 3:56 AM by PuntoRete

# [OT] Ma non troppo...messaggio nascosto

Friday, December 30, 2005 4:29 AM by scott

# re: A Message For You

Yes, positively repulsive isn't it? :)
Friday, December 30, 2005 10:30 AM by John

# re: A Message For You

Happy New Year dude. (I didn't cheat, promise!)

0..H
1..Y
2..E
3..N
4..A
5..<space>
6..P
7..A
8..W
9..<space>
10.P
11.R
12.E
13.Y

0:0

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.......................................

1:10

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.............................Y.........

2:11

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.............................Y..E......

3:6

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H.................N...........Y..E......

4:1

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..............N...........Y..E......

5:5

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..........._..N...........Y..E......

6:3

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N...........Y..E......

7:12

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N...........Y..E..A...

8:8

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N.....W.....Y..E..A...

9:9

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A.....P....._..N.....W.._..Y..E..A...

10:2

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N.....W.._..Y..E..A...

11:13

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N.....W.._..Y..E..A..R

12:7

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P....._..N..E..W.._..Y..E..A..R

13:4

.0..1..2..3..4..5..6..7..8..9.10.11.12.13
.H..A..P..P..Y.._..N..E..W.._..Y..E..A..R

Friday, December 30, 2005 11:37 AM by scott

# re: A Message For You

It's too easy for you, DJ, I have to work harder next time!
Saturday, December 31, 2005 12:40 AM by John

# re: A Message For You


Cool. I'm eagerly awaiting 2007 then. :)

Tuesday, January 02, 2007 8:21 PM by K. Scott Allen

# A Messasge For You


Some might say it's a day late, but nevertheless, it is a message. And it's for you.

Of course,...
Tuesday, January 02, 2007 8:29 PM by Mirror blog entries from the industry

# A Message For You

Some might say it's a day late, but nevertheless, it is a message. And it's for you . Of course, you'll
Saturday, January 13, 2007 1:21 AM by Community Blogs

# A Message For You

Some might say it's a day late, but nevertheless, it is a message. And it's for you . Of course, you'll