Pull to refresh

Comments 97

Мицгол с вами не согласен.
Заглянув в профиль, мои ожидания подтвердились, не берите близко к сердцу, всего-лишь анекдоты ;)
Ну да, просто в Израиле не принято пить кофе, когда нацисты бьют комунистов)
Шутка глупая и это не имеет отношения к стране в которой я проживаю.
Первая шутка вообще свалится с NullReferenceException в строке russian.killAllNazi().
Мой вариант в качестве примера:
var person1 = new SherlockHolmes(); 
var person2 = new DrWatson(); 
person1.MoveToBalloon().Sleep(); 
person2.MoveToBalloon().Sleep(); 
 
var address = new Field(«Где-то»); 
 
if (address == AddressTypes.Unknown) 

  var person3 = new CowMan(); 
  var question = «Скажите, сэр, где мы находимся?»; 
  person1.Ask(person3, question); 
  while (person3.IsThinking()) 
  { 
   Application.DoEvents(); 
  } 
  person3.Answer(«На воздушном шаре.»); 
 
  person1.SpeakTo(person3, «Спасибо, сэр!»); 
  person1.SpeakTo(person2, «Интересная местность, Ватсон! Программист пасет коров!»); 
  person2.Ask(person1, «Но, Холмс, с чего вы взяли, что он программист?»); 
  person1.Answer(person2, «Это элементарно! Во-первых, он долго думал над ответом. Во-вторых, его ответ был абсолютно точен. И самое главное - абсолютно бесполезен!»); 

else 

  Console.WriteLine(«Not a joke...»); 


* This source code was highlighted with Source Code Highlighter.
Публиковать только на форуме msug.vn.ua или можно здесь?
class Egg;
class Grandpa;
class Hank;

class Grandpa
{
  friend class Hank; // Grandpa loves it so much!

  Grandpa()
  {
    eggs.first = new Egg;
    eggs.second = new Egg;
  }

public:
  Hank* kupit()
  {
    return new Hank;
  }

private:
  std::pair< Egg*, Egg* > eggs;
};

class Hank
{
  void snesti( Grandpa* victim )
  {
    delete victim->eggs.first; // Evil hank!
    victim->eggs.first = NULL; // Totally evil!
  }
};

void main()
{
  Grandpa* pDed = new Grandpa;
  Hank* pKurochka = Grandpa.kupit();

  pKurochka->snesti( pDed );
  assert( ( NULL != pDed->eggs.first ) && «Как это неначисто?» );
}

* This source code was highlighted with Source Code Highlighter.
:-) особенно понравилась последняя строка (прям антиреклама вышла)
class Petrosyan:
    def __init__(self):
        print u"I will DDos you with jokes, MSUG!"

mass_kill = Petrosyan()

petrosyan.py:
from bashOrgRu import *

joke=bashOrgRu.quote(NUM=RND).replace("xxx","мой старый друг","yyy","я")
print joke

import shop.Food;

class Salad extends Food {
  public Salad() {
    addComponent(new Tomato());
    addComponent(new Cucumber());
    addComponent(new Salad());
  }
}

public static void main() {
  try {
    Food food = new Salad();
    food.eat();
  } catch(OutOfMemoryError e) {
    System.out.println("Forget it, let's get some beer");
  }
}


* This source code was highlighted with Source Code Highlighter.
fatal error: function ghostbusters not found in line 1
UFO landed and left these words here
UFO landed and left these words here
UFO landed and left these words here
немного джава скрипта по мотивам bash.org.ru/quote/397136

function answerMe(){
confirm('почему мужчины смеются над блондинками?');
}
UFO landed and left these words here
UFO landed and left these words here
bool IsRussian(Person personToTest)
{
  SteelBall ball1 = new SteelBall();
  SteelBall ball2 = new SteelBall();

  if (personToTest.Break(ball1) && personToTest.Loose(ball2))
    return true;
  else
    return false;
}


* This source code was highlighted with Source Code Highlighter.
import universe.std.*;
/**
*
* @author god
*/
public class DisastrousManager extends UniverseManager {
public static void main(String[] args) throws PlanetNotFoundException {
int year;
int month;
int day;
boolean run = true;
while(run) {
year = Date.getYear();
month = Date.getMonth();
day = Day.getDay();
if(year == 2012 && month == 12 && day = 21) {
Planet earth = Universe.getPlanet(Galaxy.MILKY_WAY, Star.SUN, new PlanetNumberFromStar(3));
earth.startDisastrous();
run = false;
}
DisastrousManager.sleep(Date.ONE_DAY_IN_MILLISECONDS);
}
Universe.out.println(Display.STARS_ARRAY, «Enjoy your BUTTHURT, humans!»);
}
}

с НОРМАЛЬНЫМИ отступами:
dpaste.org/1aJH/
UFO landed and left these words here
Вам смешно, а я таки видел код вроде:
#define true false
#define false true

при том он работал как надо)
[зануда mode]
так как define не отрабатывает внутри других define-ов, то этот код не изменяет ничего.

if (false) do_smth();

1й define -> if (true) do_smth();
2й define -> if (false) do_smth();

то же и с true
[/зануда mode]
Интересно, я — единственный программист, которого бесят такие поделки и издевательства над кодом?:)
А кто вам сказал что вы true-программист? ;)
Я, если мне память не изменяет, такого не заявлял.
UFO landed and left these words here
if (this.hobby.programming == true) read ('http://habrahabr.ru/blogs/crazydev/85317/');
Object invoke(String method,Object param)
{
if (Locale.getDefault()==Locale.USSR)
{
return param.invokeImpl(method,this);
}
return invokeImpl(method,param);
}
Авторы лучших #codejoke и #itfairytale получат лицензированную Windows 7 Ultimate!

После этого стало так лениво.
Лично вам выдадим лицензионную версию Ubuntu Desktop ;)
UFO landed and left these words here
Стихи. Читать вслух.
<?php
print ("4    8    0    15\n");
print ("108    40     23\n");
print ("16            815\n");
print ("316     2     03\n");
?>

* This source code was highlighted with Source Code Highlighter.
UFO landed and left these words here
UFO landed and left these words here
Золотая рыбка на shell:
#!/bin/bash

for number in 1 2 3 do
chmod +x «Желание»$number
done
UFO landed and left these words here
Да, вы правы.
Сейчас ещё заметил, что и кавычки исправились.


Золотая рыбка на shell:
#!/bin/bash

for number in 1 2 3 do
  chmod +x "Желание"$number
  ./"Желание"$number
done
UFO landed and left these words here
UFO landed and left these words here
UFO landed and left these words here
По мотивам песни, длинно отднако

class Benny
{
  private $_push_amount = 0;

  private $_touch_amount = 0;

  public function push_me()
  {
    $this->_push_amount +=1;
  }

  public function touch_me()
  {
    $this->_touch_amount +=1;
  }

  public function satisfaction()
  {
    echo 'WAU';
    $this->_smoke();
    $this->_snoring();
  }

  private function _smoke()
  {
    echo 'пых пыз пых';
  }

  private function _snoring()
  {
    echo 'ghrr...';
  }

  public function isReady()
  {
    // TODO remove hardcode :-)
    if ($this->_push_amount == 'много' AND $this->_touch_amount == 'много')
    {
      return true;
    }
    return false;
  }
}

$benny = new Benny();
while (!$benny->isReady())
{
  $benny->push_me();
  $benny->touch_me();
}
$benny->satisfaction();


* This source code was highlighted with Source Code Highlighter.
UFO landed and left these words here
UFO landed and left these words here
Damn…
— boolean correct = true;
for(int i=0; i<7; i++) if(!measureCorrectness()) { correct=false; break; }
return correct;
Вот так работает твиттер:

import Petrosyan
import db
decr = lambda a: Petrosyan.decrypt(a.decode('utf-128'))

for joke in Petrosyan.future_jokes:
db.Tweet(author=db.User('random'), text=decr(joke)).put()
Copy Source | Copy HTML
enum Direction {
    Left,
    Right,
    Straight
};
 
Direction chooseDirection() {
    String msg = "Налево пойдёшь - п@#ды получишь, \
                  направо пойдёшь - п@#ды получишь, \
                  прямо пойдёшь - п@#ды получишь";
    return Dialog::question(msg, Button("Налево", Left), Button("Направо", Right), Button("Прямо", Straight));
}
 
int TIMEOUT = 5000;
bool timedOut;
Direction dir = WaitForThreaded(chooseDirection(), TIMEOUT, &timedOut);
if (timedOut) {
    MessageBox("Решай скорее, а то прямо здесь п@#ды получишь!");
    doPunishment();
}
UFO landed and left these words here
SELECT name FROM european_proletarians
UNION
SELECT name FROM asian_proletarians
UNION
SELECT name FROM african_proletarians
UNION
SELECT name FROM american_proletarians
UNION
SELECT name FROM australian_proletarians


* This source code was highlighted with Source Code Highlighter.
UFO landed and left these words here
UFO landed and left these words here
UFO landed and left these words here
Хм… а зачем здесь именно битовое «ИЛИ»?
UFO landed and left these words here
Copy Source | Copy HTML
enum Answer {
    Yes,
    No,
    DontKnow
};
 
Answer isMouseTrap(unsigned int cheesePrice) {
    if (cheesePrice ==  0)
        return Yes;
    else
        return DontKnow;
}
 
UFO landed and left these words here
UFO landed and left these words here
Copy Source | Copy HTML
class Morozov {
protected:
    virtual Info getSomeInfo() { return m_info; }
 
private:
    Info m_info;
};
 
class Pavlik : public Morozov {
public:
    virtual Info getSomeInfo() { return Morozov::getSomeInfo(); }
};
 
  1. class DeadCat{};
  2.  
  3. class Cat: public DeadCat{};
  4.  
  5. class Zoofil
  6. {
  7. public:
  8.   void Action(Cat* sexualcat){throw sexualcat;}
  9. };
  10.  
  11. class Sadist
  12. {
  13.   public:
  14.   void Action(Cat* cat){throw cat;}
  15. };
  16.  
  17. class Nekrofil
  18. {
  19. public:
  20.   void Action(DeadCat* cat){}
  21. };
  22.  
  23. class Extremal: public Cat
  24. {
  25.   public:
  26.   void SayMau(){throw Cat();}
  27. };
  28.  
  29.  
  30. class Kamera
  31. {
  32. public:
  33.   Extremal extreamal;
  34.   Zoofil zoofil;
  35.   Sadist sadist;
  36.   Nekrofil nekrofil;
  37.  
  38.   Kamera()
  39.   {
  40.     try
  41.     {
  42.       extreamal.SayMau();
  43.     }
  44.     catch(Cat sexualcat)
  45.     {
  46.       try
  47.       {
  48.         zoofil.Action(&sexualcat);
  49.       }
  50.       catch(Cat* cat)
  51.       {
  52.         try
  53.         {
  54.           sadist.Action(cat);
  55.         }
  56.         catch(DeadCat* deadcat)
  57.         {
  58.           nekrofil.Action(deadcat);
  59.         }
  60.       }
  61.  
  62.  
  63.     }
  64.     
  65.   }
  66.  
  67. };
  68.  
  69. void main()
  70. {
  71.   new Kamera();
  72. }
* This source code was highlighted with Source Code Highlighter.
На манер Black Sabbath «War Pigs»
«Java Leaks»
Objects gather in a masses
Static-linked from some classes.
Evil code lives in production:
Objects' uncontrolled construction.
CPU is nearly burning,
Virtual machine keeps turning,
Throwing errors of all kinds,
Flooding logs and admins' minds.
Oh leak yeah!

Developers all are fired away
Whose code started the uproar
Who should now go fix this bug?
It cannot be ignored

Time has come for gurus' power minds
Fixing easy as a fun
Refactoring all the buggy mess
Before the release day comes
Yeah!

But production had stopped turning
Ashes where processor 's burning
No more server has the power
Sysadmin's hand struck the hour

Release Day, the boss is calling
Devs make sure no bugs are crawling
Chief QA repents his sins
Version Two now spreads it's wings
Oh hell yeah!
(-:

import ms.win.nt.4.*;
import ms.win.2000.*;
import ms.win.xp.*;
import ms.win.vista.*;

//class Vista {
class Win7 extends Vista {

public static void main() {
wheredoyouwanttogotodayquestionmark:

/* // */ downloadPowerShell(«207.46.232.182»).install();
Vista.main();

//return 0;
goto wheredoyouwanttogotodayquestionmark;
}



// ### BUGFIXES START ###
// to praise in commercials!

private void installDriver(Driver driver) {
//int notInAMood=100;
int notInAMood=300;
if(!driver.compatible(vista) || random(notInAMood)==95 /* my fav num */) throw new IncompatibleDriverException();
else this.installDriverForReal(driver);
}

public multiTouch(TouchPoint[] points) {
for(int i=0; i
<points.size; i++) mouseClick(points[i]);
}

private fixCalc() {
FileUtil.replace(FileUtil.findFile(«calc.exe»), "!@#$%TextField", "!@#$%TextArea");
}

private boot() {
//int fix=130;
int fix=150;
for(int i=0;i
<1000-fix) waitABit();
waitABitMore();
doBoot();
}

}
if( $("#me").data("chydnoe_mgnovenie") ) {
  $("#me").before('<div id="you"></div>');
  $("#you").hide('fast');
  $("#you").append('<div id="genius" class="beautiful" style="clear:both"></div>');
}


* This source code was highlighted with Source Code Highlighter.
<?php
include 'Priest.php';
include 'Dog.php';
include 'Meat.php';

$pop = new Priest();
$dog = new Dog();
$piece_of_meat = new Meat();

story();

function story() {
 $pop.has($dog);
 $pop.love($dog);
 if ($dog.eat($piece_of_meat)) {
  $pop.kill($dog);
  $pop.bury($dog);
  return $pop.write(story());
 };
 return true;
};
?>


* This source code was highlighted with Source Code Highlighter.
>Авторы лучших #codejoke и #itfairytale получат лицензированную Windows 7 Ultimate!
часть шутки?)
Не виндоненависник(вру) ну хоть коврик для мышки бы подарили=)
for ( ; !hedgehog.HasFarted; )
   hedgehog.Say("I'm not going to fart");

throw new ItWasNotMeException(hedgehog);
Помнится такой был код для пёрла, вполне работающий:

BEFOREHEAD: close door, each window & exit; wait until time.
open spellbook, study, read (scan, select, tell us);
write it, print the hex whole each watches,
reverse its length, write again;
kill spiders, pop them, chop, split, kill them.
unlink arms, shift, wait & listen (listening, wait),
sort the flock (then, warn the «goats» & kill the «sheep»);
kill them, dump qualms, shift moralities,
values aside, each one;
die sheep! die to reverse the system
you accept (reject, respect);
next step,
kill next sacrifice, each sacrifice,
wait, redo ritual until «all the spirits are pleased»;
do it («as they say»).
do it(*everyone***must***participate***in***forbidden**s*e*x*).
return last victim; package body;
exit crypt (time, times & «half a time») & close it,
select (quickly) & warn your next victim;
AFTERWORDS: tell nobody,
wait, wait until time;
wait until next year, next decade;
sleep, sleep, die yourself,
die at last
$contest = $this;
$user = Users::getUserByName('%username%');
if($contest->getWinner()!=$user)
{
$tracker = new ThePirateBay();
$torrent = $tracker->search('Windows 7 Ultimate');
$torrent->download();
}
Sign up to leave a comment.

Articles