• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Sign in to follow this  

How to wish a programmer a happy birthday?

Recommended Posts

eliokh    3

Hi,

My friend works @ the same company as mine,,,

and today is her birthday..

I am planning a small surprise for her , during a certain activity we do every Tuesday with friends...

I need a funny, (programming related) sentence to write on the cake..

Any suggestions?

I'm thinking of:

Happy

(Age = Age + 1);

(her work username).

Any other suggestions?

10x dudes.

Share this post


Link to post
Share on other sites
Squirrelington    44

Here it is in C#/.NET

Int32 Age = DateTime.Today.Year - Convert.ToDatetime("11/28/1988").Year;

or w/e her dob is.

I don't think there will be anything better than you suggested ;p

Could also simplify it by

Int32 Age = 22; // Previous Age

PreviousAge++; // Increments Age by 1

Share this post


Link to post
Share on other sites
fhpuqrgrpgvirzhpujbj    46

happy(++age, "username"); would be a bit more like real code.

Share this post


Link to post
Share on other sites
still1    251

Hi,

My friend works @ the same company as mine,,,

and today is her birthday..

I am planning a small surprise for her , during a certain activity we do every Tuesday with friends...

I need a funny, (programming related) sentence to write on the cake..

Any suggestions?

I'm thinking of:

Happy

(Age = Age + 1);

(her work username).

Any other suggestions?

10x dudes.

c++:

cout<<"Happy Birthday [userName]"<<endl;

Basic:

WriteToConsole "Happy Birthday [userName]"

Java

System.out.println("Happy Birthday [userName]");

C#:

Console.writeline("Happy Birthday [userName]");

PHP:

echo "Happy Birthday [userName]"

C:

printf("Happy Birthday [userName]\n");

  • Haha 1

Share this post


Link to post
Share on other sites
Original Poster    324

$day = BDAYDATEHERE;

if (Today == $day) {

echo 'HAPPY BDAY';

} else {

echo 'Sh*t I'm in trouble';

}

Share this post


Link to post
Share on other sites
+Majesticmerc    872

I can't believe you're only INTEGER_OVERFLOW_ERROR years old!

  • Like 2

Share this post


Link to post
Share on other sites
Blaze_Zewi    51

@Majesticmerc

:shifty:

Share this post


Link to post
Share on other sites
+Human.Online    8,268

I'd simply put $age++;

Share this post


Link to post
Share on other sites
Detection    2,256

0x48 0x61 0x70 0x70 0x79 0x20 0x42 0x69 0x72 0x74 0x68 0x64 0x61 0x79 0x20 0x53 0x63 0x6f 0x74 0x74

Apparently that is Hex... lol

Share this post


Link to post
Share on other sites
Tekkerson    65

if ( birthday = "11/29/2011" )

{

HAPPYBIRTHDAY(++age, "Susy!");

}

Simply because it's for the most part language agnostic, anyone should get it!

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.