Trivia: Difference between revisions
imported>Steve |
imported>Steve No edit summary |
||
Line 1: | Line 1: | ||
= Trivias on anything == | |||
==Trivia on ICPC== | |||
*[[2014 Regional]] | |||
*[[2013 Regional]] | |||
=== 2014 Regional === | === 2014 Regional === | ||
Line 5: | Line 9: | ||
Stand back, I am throwing emotion ! | Stand back, I am throwing emotion ! | ||
== Fun Comments in Code == | |||
am particularly guilty of this, embedding non-constructive comments, code poetry and little jokes into most of my projects (although I usually have enough sense to remove anything directly offensive before releasing the code). Here's one I'm particulary fond of, placed far, far down a poorly-designed 'God Object': | |||
/** | |||
* For the brave souls who get this far: You are the chosen ones, | |||
* the valiant knights of programming who toil away, without rest, | |||
* fixing our most awful code. To you, true saviors, kings of men, | |||
* I say this: never gonna give you up, never gonna let you down, | |||
* never gonna run around and desert you. Never gonna make you cry, | |||
* never gonna say goodbye. Never gonna tell a lie and hurt you. | |||
*/ | |||
I'M SORRY!!!! I just couldn't help myself.....! | |||
And another, which I'll admit I haven't actually released into the wild, even though I am very tempted to do so in one of my less intuitive classes: | |||
// | |||
// Dear maintainer: | |||
// | |||
// Once you are done trying to 'optimize' this routine, | |||
// and have realized what a terrible mistake that was, | |||
// please increment the following counter as a warning | |||
// to the next guy: | |||
// | |||
// total_hours_wasted_here = 42 | |||
// | |||
Exception up = new Exception("Something is really wrong."); | |||
throw up; //ha ha | |||
//When I wrote this, only God and I understood what I was doing | |||
//Now, God only knows | |||
stop(); // Hammertime! | |||
This seems to stop morons from messing my code... | |||
// Autogenerated, do not edit. All changes will be undone. | |||
// sometimes I believe compiler ignores all my comments | |||
// somedev1 - 6/7/02 Adding temporary tracking of Login screen | |||
// somedev2 - 5/22/07 Temporary my ass | |||
// drunk, fix later | |||
Wish I were kidding. And knowing the developer who wrote the code, I think he meant it literally. |
Revision as of 01:29, 11 November 2014
Trivias on anything =
Trivia on ICPC
2014 Regional
Professor Astrachan asked us to write a report full of emotional activities after the regional contest.
Stand back, I am throwing emotion !
Fun Comments in Code
am particularly guilty of this, embedding non-constructive comments, code poetry and little jokes into most of my projects (although I usually have enough sense to remove anything directly offensive before releasing the code). Here's one I'm particulary fond of, placed far, far down a poorly-designed 'God Object':
/**
- For the brave souls who get this far: You are the chosen ones,
- the valiant knights of programming who toil away, without rest,
- fixing our most awful code. To you, true saviors, kings of men,
- I say this: never gonna give you up, never gonna let you down,
- never gonna run around and desert you. Never gonna make you cry,
- never gonna say goodbye. Never gonna tell a lie and hurt you.
- /
I'M SORRY!!!! I just couldn't help myself.....!
And another, which I'll admit I haven't actually released into the wild, even though I am very tempted to do so in one of my less intuitive classes:
// // Dear maintainer: // // Once you are done trying to 'optimize' this routine, // and have realized what a terrible mistake that was, // please increment the following counter as a warning // to the next guy: // // total_hours_wasted_here = 42 // Exception up = new Exception("Something is really wrong."); throw up; //ha ha
//When I wrote this, only God and I understood what I was doing //Now, God only knows
stop(); // Hammertime!
This seems to stop morons from messing my code... // Autogenerated, do not edit. All changes will be undone.
// sometimes I believe compiler ignores all my comments
// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass
// drunk, fix later Wish I were kidding. And knowing the developer who wrote the code, I think he meant it literally.