-
Лучший говнокод
- В номинации:
-
- За время:
-
-
+131
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
try
{
m = (int)Convert.ToInt32(num[1]);
}
catch
{
Console.WriteLine("Invalid parametr");
return true;
}
//...................................................
try
{
matrix[i, j] = (float)Convert.ToDouble(num[j]);
}
catch
{
Console.WriteLine("Invalid matrix");
return false;
}
Лаба одногруника...
Michigan,
09 Ноября 2013
-
+161
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
this.ShowHideNoticeDate = function () {
if ($("#associateNotice").is(':checked')) {
jsNoticeField.setFieldValue(1);
$("#associateNotice").parent().parent().parent().parent().parent().parent().next().show();
$("#associateNotice").parent().parent().parent().parent().parent().parent().next().children(1).children(0).children(0).children(0).children(0).children(0).children(1).val("");
} else {
jsNoticeField.setFieldValue(0);
$("#associateNotice").parent().parent().parent().parent().parent().parent().next().hide();
$("#associateNotice").parent().parent().parent().parent().parent().parent().next().children(1).children(0).children(0).children(0).children(0).children(0).children(1).val("");
}
};
Голландский джаваскриптик)))
RomashkaPro,
08 Ноября 2013
-
+151
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function recalcMeal() {
jQuery('.recalc2').bind("click", function () {
pusto = '';
jQuery.each(jQuery('.vuborka input'), function (index) {
var allInputValueMeal = parseInt(jQuery(this).val());
if (allInputValueMeal != 0 && $.browser.msie) {
for (var i = 0; i < allInputValueMeal; i++) {
pusto = pusto + jQuery(this).parent().parent().parent().next().find('.boxtypecode').val() + ';';
}
}
else if (allInputValueMeal != 0 && !($.browser.msie)) {
for (var i = 0; i < allInputValueMeal; i++) {
pusto = pusto + jQuery(this).parent().parent().parent().next().val() + ';';
}
}
});
jQuery('.selectedcabins').val(pusto);
});
}
Код который я поддерживаю от старого работника.
sladkijBubaleh,
16 Октября 2013
-
+141
- 1
- 2
- 3
- 4
Мартышка и слон решили укоротить удава. Слон говорит "А давайте ему ебало отрежем"
-Мартышка: нет, без ебала он не выживет, нужно хвост отрезать, но докуда?
Слон: до ебала
АХАХАХАХАХАХАХА
Не говнокод, просто забавно
PragramistOtBoga,
12 Октября 2013
-
+149
- 1
- 2
- 3
- 4
- 5
public function fetchEmployees()
{
global $result, $check_u_id, $second_check_u_id, $query123;
....
__proto__,
30 Сентября 2013
-
+129
- 1
- 2
var tiffFileName = GetRandomNameForTiffFile() +
currentObject.FileName.Substring(currentObject.FileName.LastIndexOf(".", StringComparison.Ordinal) > 0 ? currentObject.FileName.LastIndexOf(".", StringComparison.Ordinal) : 0);
Это наверное тоже бояный пример говнокода, но всё же меня порадовал
Smekalisty,
27 Сентября 2013
-
+153
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
$("#ChildrenCount")
.keyup(function () {
var $this = $(this);
if ($this.val() > maxChild) {
$this.val(maxChild);
}
})
.blur(function () {
var $this = $(this);
if ($this.val().toString().match(/^\d+$/) == null) {
for (var i = 0; i < viewModel.children().length; i++) {
viewModel.children.remove(i);
}
$this.val(0);
}
else if ($this.val() === NaN) {
for (var i = 0; i < viewModel.children().length; i++) {
viewModel.children.remove(i);
}
$this.val(0);
}
});
когда джуниор использует jquery в проекте с knockout
sladkijBubaleh,
20 Сентября 2013
-
+141
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
class test {
var $пиздец = 'это он';
function вывод() {
echo $this->пиздец;
}
}
$a = new test();
$a->вывод();
http://www.skillz.ru/dev/php/article-first_c_otkake.html
Stealth,
17 Сентября 2013
-
+153
- 1
- 2
- 3
- 4
- 5
- 6
- 7
$imgs = glob('images/'.$url_parts[0].'/*');
// Windows detection
if(DIRECTORY_SEPARATOR == '\\') {
$cnt = count($imgs);
for($i = 0; $i < $cnt; $i++) $imgs[$i] = iconv('CP1251//IGNORE', 'UTF-8', $imgs[$i]);
}
DIX315,
17 Сентября 2013
-
+126
- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
{if $main eq "home"}
{include file="main.tpl"}
{elseif $main eq "404"}
{include file="404.tpl"}
{elseif $main eq "category"}
{include file="category.tpl"}
{elseif $main eq "object"}
{include file="object.tpl"}
{elseif $main eq "object_har"}
{include file="object_har.tpl"}
{elseif $main eq "review"}
{include file="review.tpl"}
{elseif $main eq "search"}
{include file="search.tpl"}
{elseif $main eq "search_alphabet"}
{include file="search_alphabet.tpl"}
{elseif $main eq "reviews"}
{include file="reviews.tpl"}
{elseif $main eq "best_objects"}
{include file="best_objects.tpl"}
{elseif $main eq "add_review"}
{include file="add_review.tpl"}
{elseif $main eq "new_review"}
{include file="new_review.tpl"}
{elseif $main eq "add_object"}
{include file="add_object.tpl"}
{elseif $main eq "register"}
{include file="register.tpl"}
{elseif $main eq "profile"}
{include file="profile.tpl"}
{elseif $main eq "profile_edit"}
{include file="profile_edit.tpl"}
{elseif $main eq "page"}
{include file="page.tpl"}
{/if}
smarty
и такое попадается
slvABTOP,
11 Сентября 2013