Ayende @ Rahien

Hi!
My name is Oren Eini
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

, @ Q c

Posts: 5,969 | Comments: 44,490

filter by tags archive

The "I am really not drunk" post


image Just got from the bar, and I have met a bet with a few of the guys there, that I am not really drunk.

To prove that, I need to write correct multi threaded code. I started to write parallel sort routine, Erlang fashion, in C#, but that is too complex for me when I am not under suspiction of being drunk.

So I wrote Hello World.

It is 400 lines of code and it has got five threads, so I guess that officially proves that I am not drunk.

Now all I need is to figure out why the code is all wavy and flowing.

I don't care about fluent interface or not, but I am pretty sure that Visual Studio doesn't have the "crawling ants" features...


Comments

tucky

Nerd! :)

Peroth

I loved the way you presented it. I am just a kid and just started feeling it.

Thought of meeting you in ALT.NET Conf. But heard that you are going to miss it?!.. (sad)

Joe
Joe

Impressive... the most I can get out after drinking is

int asdfasdfdfsdffdasfafasdfafa;a;sfa

Yeah, pretty good, eh? Hehe.

-Joe

Haacked

The code is all wavy and flowing because you're not drunk. You're high!!! ;)

Mats Helander

Where´s the link to the code? I want to see what use a drunk Oren can find for five threads in a Hello World app! :-)

Jeff

So I'm in a bar and I have my laptop with me and I'm coding. Why am I doing this? Because 1) I'm a huge nerd and 2) I had a homework assignment due the next day that I wasn't finished with. I had intended to go out that night anyway and I figured that I had about an hour's worth of work left to do (I was wrong. so wrong) so I may as well go to the bar early when it's not so crowded but the drinks are still cheap and work on my homework there and then start power-drinking after I finish the assignment. So I'm sitting there and this girl that I sorta know walks up and accuses me of being the biggest nerd ever for having a laptop in a bar. I explain the homework situation, and she asks me what I'm working on. It was a program that takes an image and generates a fractal of that image. Needless to say, it wasn't working quite right because I was on beer number 5 or so at that point. So the girl says to me "I'm going to go get us some drinks, and when I come back, if you can show me your program generating a fractal, I'll show you my tits." She walked down to the bar, and I spent the next five minutes or so hacking together some of the ugliest code I've ever written, but I got it to mostly work. When she came back, I ran the program, and it generated most of a fractal (several off by one errors resulted in the image alignment not being very good but she didn't really know what a fractal was anyway, so it was ok) but it still looked kinda cool. She says ok and pulls off her shirt. I shut down the laptop and she and I continue drinking. The moral of the story: Nice guys may finish last, but they still finish.

Also, I have no memory of fixing the errors in my program but I must have later that night because when I turned it in I got a good grade although my professor said some of the comments in my code were "interesting"

Claudio Figueiredo

I've done a lot of drunk coding in the past, but code to prove that one's not drunk is a first for me. lol

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. Production postmortem (5):
    29 Jul 2015 - The evil licensing code
  2. Career planning (6):
    24 Jul 2015 - The immortal choices aren't
  3. API Design (7):
    20 Jul 2015 - We’ll let the users sort it out
  4. What is new in RavenDB 3.5 (3):
    15 Jul 2015 - Exploring data in the dark
  5. The RavenDB Comic Strip (3):
    28 May 2015 - Part III – High availability & sleeping soundly
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats