- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 
for(const auto & row : table; const auto & element : row) {
    handle(element);
}
// versus
for(const auto & row : table) {
    for(const auto & element : row) {
        handle(element);
    }
}
                                    Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+129
for(const auto & row : table; const auto & element : row) {
    handle(element);
}
// versus
for(const auto & row : table) {
    for(const auto & element : row) {
        handle(element);
    }
}
                                    
            Всякого ненужного говна в новые крестостандарты насовали, а о простых вещах не подумали. Ну ведь удобней же было бы!
Но не-ет, нам нужна функциональщина в крестах, ведь нам мало мозгоклюйства с другими языками; а давайте засунем в стандартную библиотеку либкайро, чтобы разработчики стандартных библиотек соревновались, кто быстрее запилит частичную поддержку в 95% случаев ненужной либы полутра операционными системами, куда-ах-тах-тах!
Забавно, только что узнал, что в vs2013 есть шорткат ^ko, который переключает между заголовком и реализацией. ^ko^ko^ko
        
−406
Код конца 2014 года
    CGSize iOSDeviceScreenSize = [[UIScreen mainScreen] bounds].size;
    if (iOSDeviceScreenSize.height == 480)
        isRetina = true;
    else
        isRetina = false;5
                                    
+80
public class лаба22 {
	int i;
	лаба22(int k){
	
		i=k;}
	
	int [] a = new int [i];
	
	void длина(){
		System.out.println(a.length);
	}
	public static void main(String[] args) {
		лаба22 s = new лаба22(5);
		s.длина();
	}
}
                                    Студеньтики... тупоголовые как и их преподы
+165
foreach ($user as $field => $value) {
    if ($field == 'username') {
        $user[$field] = md5($value);
    }
}
                                    Обучаю стажера, который целый год кодил на битрикс, частенько у него проскользает такой подход для обновления значений в ассоциативном массиве.
+131
module Main:
	program factorial:
		algorithm factorial:
			description of the algorithm:
				factorial of n is the algorithm that calculates the product of all the positive integers less than or equal to n.
			end of description of the algorithm.
			example of usage of the algorithm:
				var1 is equal to call algorithm with parameter n which is equal to 5;
					begin of a comment:
						var1 is now1 120 = 5*4*3*2*1.
						end of a comment.
			end of example of usage of the algorithm.
			description of author of the algorithm:
				name: John.
				surname: Smith.
				date of writing of the algorithm: 2009.
			end of description of author of the algorithm.
			properties of the algorithm:
				callable from other modules.
				callable from this module.
				can be used in expressions.
			end of properties of the algorithm.
			parameters of the algorithm:
				data n: type is positive integer.
			end of parameters of the algorithm.
			variables of the algorithm:
				data res: type is positive integer.
				data now1: type is positive integer.
			end of variables of the algorithm.
			initialization of the variables of the algorithm:
				res is equal to 1.
				now1 is equal to n.
			end of initialization of the variables of the algorithm.
			begin of the algorithm:
				cycle: while now1 is not 1, repeat:
					res is equal to multiply res by now1.
					now1 is equal to subtract 1 from now1.
				end of cycle.
				result of the algorithm is res
		end of the algorithm.
		algorithm main:
			description of the algorithm:
				main algorithm that shows the factorial of the inputted number.
			end of description of the algorithm.
			example of usage of the algorithm:
			end of example of usage of the algorithm.
			description of author of the algorithm:
				name: John.
				surname: Smith.
				date of writing of the algorithm: 2009.
			end of description of author of the algorithm.
			properties of the algorithm:
				callable from the system.
			end of properties of the algorithm.
			parameters of the algorithm:
				data arguments: type is array of strings.
			end of parameters of the algorithm.
			variables of the algorithm:
			end of variables of the algorithm.
			initialization of the variables of the algorithm:
			end of initialization of the variables of the algorithm.
			begin of the algorithm:
				call algorithm writeInteger with parameter str which is equal to
					call algorithm factorial with parameter n which is equal to
						call algorithm readInteger without parameters.
				result of the algorithm is 0.
		end of the algorithm.
                                    
            Небольшой ответ набирающему популярность WCT. Новый язык программирования LOOOONG:
- Отступы обязательны.
- Все блоки в функциях ("алгоритмах") обязательны.
- блоки нужно записывать именно в таком порядке.
- Имена параметров необходимо помнить, когда вызываешь "алгоритм".
- Ключевых слов ОЧЕНЬ МНОГО.
        
−163
Если ЗначениеЗаполнено(Сделка) И ЛЕВ(Сделка.Ссылка, 10) = "Заказ пост" Тогда
         //другой говнокод
КонецЕсли;
                                    Правильная проверка типов
+156
if ($.browser.msie && $.browser.version < 8) {
        $("div.banneritem:gt(0)").remove();
                $("#viewnow").remove();
                $("#morerealestates").css("margin-top", "-26px");
                $("img[align=right]").css("float", "right");
   }
   else {
        setTimeout(function(){
                slider();
        }, 0);
   }
       
        var got = $("div.banneritem:eq(0)").find("#preview").find("a").attr("href");;
        var timer = 7500;
        var anim = 750;
        function slider()
        {
                setTimeout(function(){
                        do_slide(0);
                        setTimeout(function(){
                                do_slide(1);
                                setTimeout(function(){
                                        do_slide(2);
                                        setTimeout(function(){
                                                do_slide(2, true);
                                                setTimeout(function(){
                                                        do_slide(1, true);
                                                        setTimeout(function(){
                                                                do_slide(0, true);
                                                                slider();
                                                        }, timer);
                                                }, timer);
                                        }, timer);
                                }, timer);
                        }, timer);
                }, timer);
        }
 
        function do_slide(v,rev)
        {
                x = "div.banneritem:eq(" + v + ")";
                if(rev==null)
                {
                        $(x).slideUp(anim);
                        foo = $("div.banneritem:eq(" + (v+1) + ")").find("#preview").find("a").attr("href");
                }else
                {
                        $(x).slideDown(anim);
                        foo = $("div.banneritem:eq(" + (v-1) + ")").find("#preview").find("a").attr("href");
                }
               
                if(foo!=null) got = foo;
               
        }
       
        $("#viewnow").click(function(){
                window.location=got;
        });
                                    Классика, слайдер на 3 елемента, с возавтом ;)
−166
SELECT ...
        FROM users_account
    ....
    WHERE   
        (T.userid=@userid or (@userid=null and @account!=null)) 
        and (T.account=@account or (@userid!=null and @account=null))
                                    
            Есть табличка с юзерами и счетами на которых у юзеров есть игровая валюта. 
Есть индекс по обоим этим полям (userid, account).
Каждый такой запрос сканирует весь индекс,а не делает по ней поиск, чем и грузит субд. 
Но попытки оптимизировать запрос не увечались успехом, 
т.к. я так и не понял что хотел сказать автор в своём условии where.
        
+158
empty ( $php->p['h']{'p'}{'p'}['h']->p );
                                    
+9
/** фрагмент 0 */ 
buff[symbols]=0;
printf ("%s\n",buff);	 
if (strcmp (buff,"Yes!") != 0)
    exit (1);
strcpy (buff,"");	  
sprintf (buff,"%s","File_size?");
printf ("%s\n",buff);
/** фрагмент 1 */ 
Par2 = 0;
		  if (number_packet < 10)
			  Par2 = 1;
		  else
			  if (number_packet < 100)
			    Par2 = 2;
			  else
				  if (number_packet < 1000)
			        Par2 = 3;
				  else
					  if (number_packet < 10000)
			             Par2 = 4;
					  else
						  if (number_packet < 100000)
			                 Par2 = 5;
						  else
							  if (number_packet < 1000000)
			                     Par2 = 6;
							  else
								  if (number_packet < 10000000)
			                        Par2 = 7;
		  Par2++;
                                    2 фрагмента лабораторной работы