Disclaimer: All images were derived from xkcd. I claim no ownership or originality.
![]() |
![]() |
Note: The RV-vs-PES story is similar, but without dinosaurs.
![]() |
![]() |
| Sweet heart | Judwaa | Police | Balatkar | Love Triangle |
| B h a i | | B h a i |
||
| L o v e | L o v e |
|||
| J a n a m | J a n a m |
|||
| Judwaa | Police | Balatkar | ||
__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >& __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >&) public class Lang
{
public static final int प्रियानंद = 42;
public static final int ಪ್ರಿಯಾನನ್ದ = 33;
public static int ನನ್ನ(int x)
{
return x + 1;
}
public static int ಹೆಸರು(int x)
{
return x - 1;
}
public static void main(String [] args)
{
ನನ್ನ(ಹೆಸರು(ಪ್ರಿಯಾನನ್ದ));
}
}
-encoding Unicode when compiling.
Mike Tyson was more than an amazing boxer; he was also an exceptionally good biter. His moment of glory came when he bit off his opponent's ear in a boxing match. Subsequent scandals, rape convictions and prison stay has done nothing to diminish that one great moment when Evander Holyfield lay writhing on the ground, blood gushing from where his ear used to be.
class Employee
{
Gender gender;
String name;
public Employee(String name, Gender gender)
{
this.name = name;
this.gender = gender;
}
...
}
...
Employee employee = new Employee("Ramya", Gender.Female);
int calculateSalary(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getSalary();
}
else
{
//be careful not to create an object, not even a structure.
return getSalaryForFemalePerson(name);
}
}
class Employee
{
...
int getAge()
{
return age;
}
...
}
int getAge(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getAge();
}
else
{
throw new SexistException("Male Chauvinist Pig!");
}
}
int compareEmployees(String emp1, String emp2)
{
if(isMale(emp1) && isFemale(emp2))
return -1;//men are inferior to women.
if(isFemale(emp1) && isMale(emp2))
return +1;//women are superior to men.
if(isFemale(emp1) && isFemale(emp2))
//woman with more jewelry wins.
return getJewelry(emp1) - getJewelry(emp2);
return 0;//all men are equally stupid.
}
boolean isFat(String name)
{
if(isMale(name))
{
Employee man = getEmployeeByName(name);
return man.getWeight() > AVERAGE_WEIGHT;
}
else
{
return false;
}
}


