- 1
- 2
- 3
- 4
- 5
- 6
- 7
bool CUser::IsFavorite(const CGuid &guid)
{
ASSERT(this);
if(!this )
return false;
...
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+990.3
bool CUser::IsFavorite(const CGuid &guid)
{
ASSERT(this);
if(!this )
return false;
...
}
+144.3
// в посредине кода сайта http://mdist.metallizdeliya.ru/en/info/programmes/academic_programmes/introduction.html
<meta content="Word.Document" name="ProgId">
<meta content="Microsoft Word 12" name="Generator">
<meta content="Microsoft Word 12" name="Originator">
<link href="file:///C:%5CUsers%5Cgeneral%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List" />
<link href="file:///C:%5CUsers%5Cgeneral%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData" />
Из кода сайта http://mdist.metallizdeliya.ru/en/info/programmes/academic_programmes/introduction.html
+135.5
class PliggMailer{
var $subject = '';
var $body = '';
var $from = '';
var $to = '';
function PliggMailer($subj = '', $body = '', $from = '', $to = '', $cc = '', $bcc = ''){
if($subj != ''){$this->subject = $subj;}
if($body != ''){$this->body = $body;}
if($from != ''){$this->from = $from;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
}
Блоговый движок pligg жжот.
+130
if(included.equals(INCLUDED_ALL) || fieldNames.indexOf(field.getName()) != -1) {
if ((field.getDocumentMapping() != null && field.getDocumentMapping().trim().length() > 0)
|| (isCase.booleanValue()
&& ((field.getWorkflowMapping() != null && field.getWorkflowMapping().trim().length() > 0)
|| (field.getContentMapping() != null && field.getContentMapping().trim().length() > 0))
) {
// тут еще насрано
}}
) {
классический унылый говнокод, весь проект в таком стиле..
+178.4
defined( '_VALID_MOS' ) or die( 'Пошел на хуй отсюдова ...' );
залез поправить шаблон и офигел, интересно как мог офигеть пользователь сайта
+205.2
mov ecx, 200h - 1
not ecx
and eax, ecx
Лень считать в уме
+73.6
int dayOfWeek = calendar.get(calendar.get(Calendar.DAY_OF_WEEK));
+151
DESCRIBE TABLE name_org LINES count. "Кол-во организаций
DESCRIBE TABLE targ_pos LINES count1.
SORT name_org BY org.
* SORT targ_pos BY org sign_dk shkzg regn_doc.
IF count > 2.
SORT targ_pos BY shkzg org regn_doc.
ELSE.
SORT targ_pos BY shkzg org sign_dk regn_doc.
ENDIF.
LOOP AT targ_pos.
metka = sy-tabix.
IF count > 2.
CONCATENATE targ_pos-org targ_pos-shkzg INTO comp.
ELSE.
CONCATENATE targ_pos-org targ_pos-sign_dk targ_pos-shkzg
INTO comp.
ENDIF.
IF comp <> comp1.
IF metka <> 1.
WRITE: AT /pole sy-uline.
WRITE: AT /pole 'Итого: '.
IF s_nds IS NOT INITIAL.
WRITE: AT (14) snds UNDER targ_pos-nds NO-SIGN INPUT ON."<e1>
ENDIF.
WRITE: AT (15) ssum UNDER targ_pos-dmbtr NO-SIGN.
PERFORM ad_itog USING comp1(10)"targ_pos-org
shkzg
snds
ssum.
SKIP 1.
ENDIF.
IF count > 2.
READ TABLE name_org WITH KEY org = targ_pos-org BINARY SEARCH.
ELSE.
IF metka = 1.
READ TABLE name_org WITH KEY org = 'ABCDE' BINARY SEARCH.
ELSE.
READ TABLE name_org WITH KEY org = targ_pos-org
BINARY SEARCH.
ENDIF.
ENDIF.
org = name_org-name.CONDENSE org.
IF name_org-org NE 'ABCDE'.
CONCATENATE org '(' name_org-org ')' INTO org SEPARATED BY ''.
ENDIF.
IF count > 2 AND metka = 1.
READ TABLE name_org WITH KEY org = 'ABCDE' BINARY SEARCH.
CONCATENATE name_org-name '-' org INTO org SEPARATED BY space.
ENDIF.
WRITE: AT /pole 'Плательщик:', org. "name_org-name.
WRITE: AT /pole sy-uline.
WRITE: AT /pole text-002, ' ' NO-GAP,
text-003, ' ' NO-GAP, text-004, ' ' NO-GAP,
text-010, ' ' NO-GAP, text-005.
IF s_nds IS NOT INITIAL. "<e1>
WRITE: text-006 RIGHT-JUSTIFIED.
ELSE.
WRITE: ' '.
ENDIF.
WRITE: text-007 RIGHT-JUSTIFIED,
' ' NO-GAP, text-008.
WRITE: AT /pole sy-uline.
* SKIP 1.
snds = 0.
ssum = 0.
IF metka <> 1.
comp = comp1.
ENDIF.
ENDIF.
WRITE: AT /pole targ_pos-regn_doc HOTSPOT, ' ' NO-GAP,
targ_pos-regn_dat, ' ' NO-GAP,
targ_pos-acc_sch, ' ' NO-GAP,
targ_pos-n_doc(6), ' ' NO-GAP,
targ_pos-matkl(27) INPUT ON.
WRITE: AT (15) targ_pos-dmbtr NO-SIGN, ' ' NO-GAP, targ_pos-hkont.
HIDE: targ_pos-regn_doc, targ_pos-gjahr.
shkzg = targ_pos-shkzg.
if lv_flag is not initial.
ADD targ_pos-nds TO snds.
endif.
ADD targ_pos-dmbtr TO ssum.
IF count > 2.
CONCATENATE targ_pos-org targ_pos-shkzg INTO comp1.
ELSE.
CONCATENATE targ_pos-org targ_pos-sign_dk targ_pos-shkzg
INTO comp1.
ENDIF.
IF metka = count1.
WRITE: AT /pole sy-uline.
WRITE: AT /pole 'Итого: ',
* AT (14) snds UNDER targ_pos-nds NO-SIGN INPUT ON,
AT (15) ssum UNDER targ_pos-dmbtr NO-SIGN.
PERFORM ad_itog USING comp1(10) "targ_pos-org
shkzg
snds
ssum.
ENDIF.
ENDLOOP.
Расширьте, пожалуйста, список доступных языков для говнокода.
+144
$_SESSION['myass_closed']=true;
+164.9
if (USE_MAIN) {
$templ = 'main';
....
} elseif (!USE_MAIN) {
$used = USE_MAIN ? 1 : 0;
$templ = 'default';
....
}
......
if ( !$used ) $templ = 'default';
Вычищая один проект помимо всего прочего встретил такое чудо