1. Список говнокодов пользователя codingHorror

    Всего: 2

  2. Java / Говнокод #19112

    −32

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    public class ApplicationConstants {
    
    < ... >
    
        /* Kumar Contants - start   */
        public static final int TENTHOUSAND = 10000;
        public static final int THREETHOUSAND = 3000;
        public static final int THOUSAND = 1000;
        public static final int NINETHOUSANDEIGHTHUNDREDTHIRTYSIX = 9836;
        public static final int FOURTHOUSANDFIVEHUNDREDTHIRTY = 4530;
        public static final int TWOHUNDREDFOURTYSEVEN = 247;
        public static final int ONEHUNDREDFIFTYONE = 151;
        
        public static final int THIRTYTHOUSAND = 30000;
        public static final int SIXTHOUSANDONEHUNDREDFIFTY = 6150;
        public static final int ONEHUNDREDTHIRTYTWO = 132;
        
        
        public static final int EIGHTHUNDRED = 800;
        public static final int TWOTHOUSANDFIVEHUNDREDSIXTYNINE = 2569;
        
        public static final int TWOTHOUSANDTHREEHUNDREDTHIRTYEIGHT = 2338;
        public static final int TWOHUNDREDFIFTY = 250;
        public static final int THREEHUNDRED = 300;
        public static final int SEVENTHOUSANDFIVEHUNDREDFIFTY = 7550;
        public static final int TWOHUNDREDTWELVE = 212;
        public static final int ONEHUNDREDFIFTYEIGHT = 158;
        public static final int ONEHUNDREDTWENTYSEVEN = 127;
        public static final int ONEHUNDREDTWENTYFOUR = 124;
        public static final int TWOHUNDREDFOURTYTHREE = 243;
        public static final int TWOHUNDREDFIFTYNINE = 259;
        public static final int THIRTEENTHOUSANDEIGHTHUNDRED = 13800;
        public static final int TWOHUNDREDTWENTYNINE = 229;
        public static final int ONEHUNDREDSEVENTYNINE = 179;
        public static final int ONEHUNDREDFOURTYSEVEN = 147;
        public static final int TWOHUNDREDTWENTYFIVE = 225;
        public static final int THREEHUNDREDFIFTY = 350;
        public static final int THREEHUNDREDTWENTY = 320;
        public static final int TWOHUNDREDSEVENTY = 270;
        public static final int ONEHUNDREDEIGHTYSEVEN = 187;
        public static final int ONEHUNDREDEIGHTYFIVE = 185;
        public static final int TWOHUNDREDNINETYFOUR = 294;
        public static final int ONEHUNDREDNINETY = 190;
        public static final int ONEHUNDREDEIGHTY = 180;
        public static final int ONEHUNDREDTWENTYNINE = 129;
        public static final int TWOHUNDREDSIXTYSEVEN = 267;
        public static final int ONEHUNDREDFIFTYFIVE = 155;
        public static final int TWOHUNDREDFIVE = 205;
        
        public static final int TWOHUNDREDTHIRTYFIVE = 235;
        public static final int FOURHUNDREDFIFTY = 450;
        public static final int SEVENTYTHOUSAND = 70000;
        public static final int THREEHUNDREDFIFTYSIX = 356;
        public static final int TWOHUNDREDEIGHTNINE = 289;
        public static final int TWOHUNDREDNINETEEN = 219;
        public static final int THREELAKHS = 300000;
        /* Kumar Contants - end    */
    
    < ... >
    
    }

    Игра "Найди несоответствие".

    codingHorror, 30 Ноября 2015

    Комментарии (23)
  3. Java / Говнокод #16718

    +76

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    function returnUserId() {
        if (document.getElementById('userstap') != null )  {
            var obj = document.getElementById('userstap');
            <% if ((sUserIdForPrint != null) && !sUserIdForPrint.equals("")) {%>
            if (obj.options[obj.selectedIndex].value == 0) {
                return "<%=sUserIdForPrint%>";
            <% } %>
            <% if (((sAccGrpUserIdForPrint != null) && !sAccGrpUserIdForPrint.equals("")) && ((sUserIdForPrint != null) && !sUserIdForPrint.equals(""))) {%>
            } else if (obj.options[obj.selectedIndex].value == 1 ) {
                return "<%=sAccGrpUserIdForPrint%>";
            <% } else if ((sAccGrpUserIdForPrint != null) && !sAccGrpUserIdForPrint.equals("")){%>
            if (obj.options[obj.selectedIndex].value == 1 ) {
                return "<%=sAccGrpUserIdForPrint%>";
            <% } %>
            <% if (((sAccGrpUserIdForPrint != null) && !sAccGrpUserIdForPrint.equals("")) || ((sUserIdForPrint != null) && !sUserIdForPrint.equals(""))) {%>
            } else if (obj.options[obj.selectedIndex].value == 2) {
                return "<%=userId%>";
            }
            <% } else {%>
            if (obj.options[obj.selectedIndex].value == 2) {
                return "<%=userId%>";
            }
            <% } %>
        } else {
            return "<%=userId%>";
        }
    }

    Любите ли вы JSP так, как люблю его я?

    codingHorror, 18 Сентября 2014

    Комментарии (14)