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

    Всего: 2

  2. JavaScript / Говнокод #28831

    0

    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
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    Events.on(EventType.ClientLoadEvent, () => {
        
        const oneDialog = new BaseDialog(" ");
        oneDialog.cont.add(" ").row();
        oneDialog.cont.button("OK", () => {
            oneDialog.hide();
          
            const twoDialog = new BaseDialog(" ");
            twoDialog.cont.add(" ").row();
            twoDialog.cont.button("OK", () => {
                twoDialog.hide();
              
                const threeDialog = new BaseDialog(" ");
                threeDialog.cont.add(" ").row();
                threeDialog.cont.button("OK", () => {
                    threeDialog.hide();
                  
                    const fourDialog = new BaseDialog(" ");
                    fourDialog.cont.add(" ").row();
                    fourDialog.cont.button("OK", () => {
                        fourDialog.hide();
                      
                        const fiveDialog = new BaseDialog(" ");
                        fiveDialog.cont.add(" ").row();
                        fiveDialog.cont.button("OK", () => {
                            fiveDialog.hide();
                          
                            const sixDialog = new BaseDialog(" ");
                            sixDialog.cont.add(" ").row();
                            sixDialog.cont.button("OK", () => {
                                sixDialog.hide();
                              
                                const sevenDialog = new BaseDialog(" ");
                                sevenDialog.cont.add(" ").row();
                                sevenDialog.cont.button("OK", () => {
                                    sevenDialog.hide();
                                  
                                    const eightDialog = new BaseDialog(" ");
                                    eightDialog.cont.add(" ").row();
                                    eightDialog.cont.button("OK", () => {
                                        eightDialog.hide();
                                      
                                        const nineDialog = new BaseDialog(" ");
                                        nineDialog.cont.add(" ").row();
                                        nineDialog.cont.button("OK", () => {
                                            nineDialog.hide();
                                          
                                            const tenDialog = new BaseDialog(" ");
                                            tenDialog.cont.add(" ").row();
                                            tenDialog.cont.button("OK", () => {
                                                tenDialog.hide();
                                              
                                                const elevenDialog = new BaseDialog(" ");
                                                elevenDialog.cont.add(" ").row();
                                                elevenDialog.cont.button("OK", () => {
                                                elevenDialog.hide();
                                              
                                                    const twelveDialog = new BaseDialog(" ");
                                                    twelveDialog.cont.add(" ").row();
                                                    twelveDialog.cont.button("OK", () => {
                                                    twelveDialog.hide();
                                                    
                                                        const thirteenDialog = new BaseDialog(" ");
                                                        thirteenDialog.cont.add(" ").row();
                                                        thirteenDialog.cont.button("OK", () => {
                                                        thirteenDialog.hide();
                                                        
                                                            const fourteenDialog = new BaseDialog(" ");
                                                            fourteenDialog.cont.add(" ").row();
                                                            fourteenDialog.cont.button("OK", () => {
                                                            fourteenDialog.hide();
                                                              
                                                                const fifteenDialog = new BaseDialog(" ");
                                                                fifteenDialog.cont.add(" ").row();
                                                                fifteenDialog.cont.button("OK", () => {fifteenDialog.hide();if(Core.settings.get("wentdowntherabbithole",false)){
                                                                 const again = new BaseDialog(" ");
    // ...

    https://github.com/camelStyleUser/popup-unforked/blob/main/scripts/main.js

    girixok149, 03 Августа 2023

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

    0

    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
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    public class MathGame {
    
        public static Map<Integer, String> data = new HashMap<Integer, String>();
        public static Map<String, Integer> result = new HashMap<String, Integer>();
        String problem;
        Random random = new Random();
    
        public void NewProblem() {
    
            String sign = null;
    
            for (int i = 1; i < 5; i++) {
    
                switch (GenNumber(3)) {
                    case 1:
                        sign = Sign.MINUS.get();
                        break;
                    case 2:
                        sign = Sign.PLUS.get();
                        break;
                    case 3:
                        sign = Sign.TIMES.get();
                        break;
                    default:
                        sign = Sign.PLUS.get();
                        break;
                }
    
                problem = GenNumber(9) + " " + sign + " " + GenNumber(9);
                result.put(problem + " = ???", Decide(Integer.parseInt(
                        problem.split(" ")[0]), problem.split(" ")[1], Integer
                        .parseInt(problem.split(" ")[2])));
                data.put(i, problem);
    
            }
        }
    
        private int GenNumber(int s) {
            return random.nextInt(s) + 1;
        }
    
        private int Decide(int a, String sign, int b) {
            switch (sign) {
                case "+":
                    return a + b;
                case "-":
                    return a - b;
                case "*":
                    return a * b;
            }
            return 0;
        }
    
        public enum Sign {
            PLUS("+"),
            MINUS("-"),
            TIMES("*");
    
            private final String sign;
    
            Sign(String sign) {
                this.sign = sign;
            }
    
            public String get() {
                return sign;
            }
    
        }
    
    }

    girixok149, 05 Июня 2023

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