Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Best comment ever

  • You cannot reply to this topic
33 replies to this topic

#21 Gviau   Members   -  Reputation: 144

Like
1Likes
Like

Posted 22 December 2014 - 09:10 AM

Saw this from a friend at University the other day:

def heuristic(self, node):
    #360 no comment
    return sum((lambda m, l :map(lambda s: m-s, l))(*(lambda l : (max(l), l))(
                        list(map(sum, map(lambda l: map(lambda e: e[1], l),
                        map(lambda l: filter(lambda e: e[0], l),
                        map(lambda l: zip(*l), zip(node, self.lists))))))))) #sorry

He said that his eyes bled but he felt a strange satisfaction.



Sponsor:

#22 Clockworking   Members   -  Reputation: 130

Like
2Likes
Like

Posted 14 January 2015 - 10:55 PM

I've been pondering this one for a bit, not really meant to be funny, just something my brain churned out from the deep dark recesses of

my puberdescent teenage mind.

'''This code is utterly useless, I don't even know why you're trying to figure it out, it doesn't work!
If your still reading this comment that means your soul must have been eaten by the horrendous
clusterfuck that created the prior class of 123 lines which tangles everything so horridly it is 
incomprehensible. Don't even try and read what's below because all the comments are trolls
and the code will require TWO supercomputers which have been given steroids to figure out. 
You will never make it out of here.

May the computer gods and their goats bless your geeky soul, and may your brain not melt into goo.'''

I am seriously considering sticking this into an old BASH file I have. I dont remember the format for multi-line comments but a little research will turn something up.

 

EDIT: It appears despite me only being 16, programming is already slowly driving me insane.


Edited by Clockworking, 15 January 2015 - 08:45 AM.


#23 SeraphLance   Members   -  Reputation: 1768

Like
1Likes
Like

Posted 15 January 2015 - 03:37 PM

Saw this from a friend at University the other day:

def heuristic(self, node):
    #360 no comment
    return sum((lambda m, l :map(lambda s: m-s, l))(*(lambda l : (max(l), l))(
                        list(map(sum, map(lambda l: map(lambda e: e[1], l),
                        map(lambda l: filter(lambda e: e[0], l),
                        map(lambda l: zip(*l), zip(node, self.lists))))))))) #sorry

He said that his eyes bled but he felt a strange satisfaction.

 

Functional programming is actually really easy to understand when you have experience with it, contrary to popular opinion.  It's just doing stuff to the stuff so it can stuff stuff in stuff and stuff.  Capisce?



#24 Glass_Knife   Moderators   -  Reputation: 6635

Like
1Likes
Like

Posted 15 January 2015 - 03:52 PM

I've been pondering this one for a bit, not really meant to be funny, just something my brain churned out from the deep dark recesses of

my puberdescent teenage mind.

'''This code is utterly useless, I don't even know why you're trying to figure it out, it doesn't work!
If your still reading this comment that means your soul must have been eaten by the horrendous
clusterfuck that created the prior class of 123 lines which tangles everything so horridly it is 
incomprehensible. Don't even try and read what's below because all the comments are trolls
and the code will require TWO supercomputers which have been given steroids to figure out. 
You will never make it out of here.

May the computer gods and their goats bless your geeky soul, and may your brain not melt into goo.'''

I am seriously considering sticking this into an old BASH file I have. I dont remember the format for multi-line comments but a little research will turn something up.

 

EDIT: It appears despite me only being 16, programming is already slowly driving me insane.

 

Maybe the jerk should have spent less time trying to be the next Shakespeare and refactored the code.  Sheesh.


I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532


#25 Clockworking   Members   -  Reputation: 130

Like
0Likes
Like

Posted 15 January 2015 - 07:30 PM

 

I've been pondering this one for a bit, not really meant to be funny, just something my brain churned out from the deep dark recesses of

my puberdescent teenage mind.

'''This code is utterly useless, I don't even know why you're trying to figure it out, it doesn't work!
If your still reading this comment that means your soul must have been eaten by the horrendous
clusterfuck that created the prior class of 123 lines which tangles everything so horridly it is 
incomprehensible. Don't even try and read what's below because all the comments are trolls
and the code will require TWO supercomputers which have been given steroids to figure out. 
You will never make it out of here.

May the computer gods and their goats bless your geeky soul, and may your brain not melt into goo.'''

I am seriously considering sticking this into an old BASH file I have. I dont remember the format for multi-line comments but a little research will turn something up.

 

EDIT: It appears despite me only being 16, programming is already slowly driving me insane.

 

Maybe the jerk should have spent less time trying to be the next Shakespeare and refactored the code.  Sheesh.

 

Well yeah, i could have done that too, but it seemed more fun to write a uselessly long comment for a really badly coded program that will most likely never make it onto the internet.


Edited by Clockworking, 15 January 2015 - 07:30 PM.


#26 Lordadmiral Drake   Members   -  Reputation: 461

Like
0Likes
Like

Posted 15 March 2015 - 02:17 PM

From my own game project:

// Picking temp disabled for being too picky.
                //if (mouseState.Buttons[0])
                   // Picking.PickEntity();

Since as of now I was unable to get my picking code to work correctly for the heck of it ^^



#27 Servant of the Lord   Crossbones+   -  Reputation: 24391

Like
1Likes
Like

Posted 15 March 2015 - 04:10 PM

Well yeah, i could have done that too, but it seemed more fun to write a uselessly long comment for a really badly coded program that will most likely never make it onto the internet.

 

Too late! It already made it's way into the next Java standard library, and is now being used by NASA on a time-travelling space probe that will one day be launched into space, travel back in time, and crash into the Space Shuttle Challenge mid-launch. Thanks alot, mate. dry.png

 

Guns don't kill people. Bad code kills people. laugh.png


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#28 Tangletail   Members   -  Reputation: 612

Like
0Likes
Like

Posted 17 March 2015 - 03:51 PM

In college recently

// Don't try to read this. I was drunk when writting it.

 

The code was a mess... couldn't read it. Couldn't figure out what was going on. But it compiled and worked just fine some how.



#29 braindigitalis   Crossbones+   -  Reputation: 6055

Like
4Likes
Like

Posted 17 March 2015 - 04:53 PM

If you look in the source of the error pages generated by some versions of IIS you'll find a comment 4k in length, with a note saying it's there because IE won't display error pages shorter than this for no sensible reason.

 

Now that's the funniest comment ever, a text only comment that if removed BREAKS the code :lol:



#30 dsm1891   Crossbones+   -  Reputation: 2089

Like
1Likes
Like

Posted 18 March 2015 - 04:40 AM

Whats a comment?


Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)


#31 dsm1891   Crossbones+   -  Reputation: 2089

Like
0Likes
Like

Posted 18 March 2015 - 06:24 AM

I have just wrote this:

// Dear future Developer, if you are looking here for the reason why the gun isnt aiming in the correct position when flipped fret not.
// The problem lies with spine, they still havent fixed that 'not a bug' issue eh?... Well, you just need to add a parent bone to the 
// bone the IK is controlling. And make the IK control those two bones, this fixes the 'not a bug' when flipped.
// Regards Past DSM

(there is a bug with this api which the developers claim isn't a bug.... they also say they can fix it, but it is a big task and will break peoples projects, so isn't on the table atm)


Edited by dsm1891, 18 March 2015 - 06:25 AM.

Mobile Developer at PawPrint Games ltd.

(Not "mobile" as in I move around a lot, but as in phones, mobile phone developer)

(Although I am mobile. no, not as in a babies mobile, I move from place to place)

(Not "place" as in fish, but location.)


#32 Sik_the_hedgehog   Crossbones+   -  Reputation: 2072

Like
1Likes
Like

Posted 18 March 2015 - 07:46 AM


If you look in the source of the error pages generated by some versions of IIS you'll find a comment 4k in length, with a note saying it's there because IE won't display error pages shorter than this for no sensible reason.

I thought the limit was 512 bytes o.o (when you get an error and the message sent by the server is shorter than the limit, IE will replace it with its own, on the assumption that the original message isn't helpful)


Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

#33 Jandel   Members   -  Reputation: 108

Like
1Likes
Like

Posted 24 April 2015 - 05:35 PM

This is hilarious



#34 Chad Smith   Members   -  Reputation: 1250

Like
1Likes
Like

Posted 02 May 2015 - 09:46 AM

I always like the comments from sections of Code that are copied and pasted from old code or another project. Ran into that the other day at work. Comment said it did something, code did something else unrelated.





PARTNERS