Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,149,777 members, 7,806,143 topics. Date: Tuesday, 23 April 2024 at 12:04 PM

Funny Source Code Comments - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / Funny Source Code Comments (16420 Views)

39 Android Apps With Source Code For Beginners To Learn From & Make Their Own / Here Is How To Get The Source Code From Any APK File / Runnable Java Atm Source Code Anybody,pls For Project, Very Urgent (2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Funny Source Code Comments by barackosama(m): 2:23pm On Jan 03, 2013
This is Funny >> LWKMD
Javanian: 8, // If you're reading this, that means you have been put in charge of my previous project.
// I am so, so sorry for you. God speed.

1 Like

Re: Funny Source Code Comments by toriade: 2:24pm On Jan 03, 2013
/*
* You may think you know what the following code does.
* But you dont. Trust me.
* Fiddle with it, and youll spend many a sleepless
* night cursing the moment you thought youd be clever
* enough to "optimize" the code below.
* Now close this file and go play with something else.
*/

2 Likes

Re: Funny Source Code Comments by barackosama(m): 2:32pm On Jan 03, 2013
/*if you are female, Call me if you Encounter any Erro else Male send Mail to ****@mail*/

Its Official! LWKMD
Re: Funny Source Code Comments by zikclassiq(m): 2:58pm On Jan 03, 2013
<lol>i am laughing!</lol>
<!dont mind me o >
Re: Funny Source Code Comments by seunajia: 4:14pm On Jan 03, 2013
blackmann: Buy was told to write "i will not throw paper planes in class" on the board 500 times as a punishment. here's his response -

#include <stdio.h>
int main (void)

{
int count;

for (count=1; count <=500; count++)
printf("I will not throw paper planes in class"wink;

return 0;
}


Nice try though. Smart kid.

My 1st love C kiss
Re: Funny Source Code Comments by phaya(f): 4:46pm On Jan 03, 2013
This is all too nerdy looool
Re: Funny Source Code Comments by dpuzo: 5:16pm On Jan 03, 2013
seunajia:

My 1st love C kiss

public class Count{

public static void main(String[] ar){

for(int i=0;i<500;i++){
System.out.println("I will not throw paper planes in class"wink;
}
}
}

Java rocks!!!!
Re: Funny Source Code Comments by informatix: 8:28pm On Jan 03, 2013
import java.io.*;
import seun.nairaland.com.*;
class seun{
String fname,lname,bra;

public static void main(String args[]){
BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
System ("First Name"wink;
fname=input.readLine();
System ("Last Name"wink;
lname=input.readLine();
System ("Enter Bra Size"wink;
bra=nput.readLine();
seun tonto as new seun();
tonto.displayfname();
tonto.displaylname();
tonto.displaybra();
}
displayfname(){
System.out.print(fname);
}
displaylname(){
System.out.print(lname);
}
displaybra(){
System.out.print(bra);
}

}
seun(String fname,String lname,String bra){
this.fname=fname;
this.lname=lname;
this.bra=bra;
}

1 Like

Re: Funny Source Code Comments by dammytosh: 12:10am On Jan 04, 2013
/* met this crap here.
The author is no longer a programmer, he now farms in d north
The wisest thing to do is to leave this module as it is.
Attempt to optimize it at ur perile. */

2 Likes

Re: Funny Source Code Comments by seyibrown(f): 1:48pm On Jan 04, 2013
5, // I am not responsible of this code.
// They made me write it, against my will.

Classic! grin grin
Re: Funny Source Code Comments by UjSizzle(f): 10:03am On Jan 05, 2013
Can't wrap my head around this programming stuff, but damn this is funny grin grin
Re: Funny Source Code Comments by 53cur3m0d3(m): 10:21am On Jan 05, 2013
uj_sizzle: Can't wrap my head around this programming stuff, but damn this is funny grin grin
If symptoms persist after 2 days, Pls go back to the Diary Section..lolz

1 Like

Re: Funny Source Code Comments by lordZOUGA(m): 8:46am On Jan 13, 2013
checkout this error message:
"Error, no keyboard -- press F1 to continue."

1 Like

Re: Funny Source Code Comments by dansmog(m): 3:08pm On Jan 13, 2013
//the internet is faulty! Connect to the internet for solutions.

//thank you

1 Like 1 Share

Re: Funny Source Code Comments by NumberOne2(m): 2:44pm On Jan 19, 2013
Probably the funniest thread in the programming section.

This is one I used often.

try
{
//------ code comes here -------

}
catch (Exception x)
{
System.out.println("So whats the problem now? "+x);
}
Re: Funny Source Code Comments by Javanian: 6:12pm On Jan 19, 2013
Windows 8 Source Code Leaked!

/* Source Code Windows 8 */

#include "win31.h"
#include "win95.h"
#include "win98.h"
#include "workst~1.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#include "monopoly.h"
#include "backdoor.h"
#define INSTALL = HARD

char make_prog_look_big(16000000);
void main()
{
while(!CRASHED)
{
display_copyright_message();
display_bill_rules_message();
do_nothing_loop();

if (first_time_installation)
{
make_100_megabyte_swapfile();
do_nothing_loop();
totally_screw_up_HPFS_file_system();
search_and_destroy_the_rest_of-OS2();
make_futile_attempt_to_damage_Linux();
disable_Netscape();
disable_RealPlayer();
disable_Lotus_Products();
hang_system();
} //if
write_something(anything);
display_copyright_message();
do_nothing_loop();
do_some_stuff();

if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_31();
do_nothing_loop();
} // if
} //while

if (detect_cache())
disable_cache();

if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed,very_slow);
set_mouse(action,jumpy);
set_mouse(reaction,sometimes);
} //if

/* printf("Welcome to Windows 3.1".); */
/* printf("Welcome to Windows 3.11".); */
/* printf("Welcome to Windows 95".); */
/* printf("Welcome to Windows NT 3.0".); */
/* printf("Welcome to Windows 98".); */
/* printf("Welcome to Windows NT 4.0".); */
/* printf("Welcome to Windows 2000".); */
/* printf("Welcome to Windows XP".); */
/* printf("Welcome to Windows 7".); */
printf("Welcome to Windows 8".);

if (system_ok())
crash(to_dos_prompt)
else
system_memory = open("a:\swp0001.swp",O_CREATE);

while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
sleep(5);
} // while
create_general_protection_fault();

} // main

4 Likes

Re: Funny Source Code Comments by lordZOUGA(m): 10:57pm On Jan 19, 2013
windows explained..
Re: Funny Source Code Comments by jeffsmith1: 1:23pm On Feb 01, 2013
This is too funny and simply hilarious cheesy
Re: Funny Source Code Comments by xcitedjay(m): 9:34am On Mar 20, 2013
Was doing some coding this morning, that's when I remembered this thread and decided to include some funny comments from here in my codes.

Here's mine

try{
...
}catch(Exception ignored){} //I'm too tired to catch anything abeg
Re: Funny Source Code Comments by PrinceNN(m): 10:21am On Mar 20, 2013
You should have said the only thing that needs catching is sleep cheesy nyc 1 anyways
Re: Funny Source Code Comments by javadoctor(m): 10:05pm On Mar 21, 2013
public class Neo{

private int smgRounds=0;

public void setSmgRounds(int smgRounds){
this.smgRounds=smgRounds;
}

public int getRounds(){
return smgRounds;
}

@Action
public void KillZombie()throws LimitedArmourException,CuteZombieGurlException {

If(smgRounds<0){
throw new LimitedArmourException(“you are out of guns“);
}else kill();

}//

public void kill(){}

}//hehe
Re: Funny Source Code Comments by Frosti(m): 6:21pm On Jun 09, 2013
//When I wrote this, only God and I understood
what I was doing
//Now, God only knows


grin grin

1 Like

Re: Funny Source Code Comments by wisemania(m): 4:17am On Oct 09, 2013
Cant belive i just saw dis tread.....nize comments...LWKMD..programming is 2ruly fun!
Re: Funny Source Code Comments by Djtm(m): 12:34am On Oct 10, 2013
Can't believe either! This is so hillarious!!!!! I'll start leaving funny comments on my codes too.
Re: Funny Source Code Comments by wisemania(m): 3:54pm On Oct 10, 2013
2, //When I wrote this, only God and I understood what I was doing
//Now, God only knows

4, // I am not sure if we need this, but too scared to delete.

5, // I am not responsible of this code.
// They made me write it, against my will.

6, // hack for ie browser (assuming that ie is a browser)

7, try {

}
catch (SQLException ex) {
Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
//If you thought you were screwed before, boy I have news for you!!!
}

8, // If you're reading this, that means you have been put in charge of my previous project.
// I am so, so sorry for you. God speed.

9, //If you don't understand this code, you should be flipping burgers instead.


10, // For the sins I am about to commit, may James Gosling forgive me

11,
// 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
//

You can add yours... grin
http://www.javacodegeeks.com/2011/07/funny-source-code-comments.html

#8 and #9 got me laffing real hard....my God wt is programming turning in2....
//i was eating eba wen i wrote dis //codes,dnt blame me if it doent //run...*my2cents*
Re: Funny Source Code Comments by curiouslad(m): 9:37pm On Oct 12, 2013
Everyone in the living room thinks I'm going nuts

I've never laughed this hard in years
Re: Funny Source Code Comments by HCpaul(m): 4:39pm On Feb 12, 2015
Very interesting
Re: Funny Source Code Comments by SIXFEETUNDER: 12:54pm On Jan 20
Kek

(1) (2) (Reply)

Is C# Better Than C/C++? / The Importance Of Software Testing And Not Just Software Programming / Hope For C++ Newbies: Gui Toolkits

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 60
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.