1. Лучший говнокод

    В номинации:
    За время:
  2. C++ / Говнокод #20321

    +1

    1. 001
    2. 002
    3. 003
    4. 004
    5. 005
    6. 006
    7. 007
    8. 008
    9. 009
    10. 010
    11. 011
    12. 012
    13. 013
    14. 014
    15. 015
    16. 016
    17. 017
    18. 018
    19. 019
    20. 020
    21. 021
    22. 022
    23. 023
    24. 024
    25. 025
    26. 026
    27. 027
    28. 028
    29. 029
    30. 030
    31. 031
    32. 032
    33. 033
    34. 034
    35. 035
    36. 036
    37. 037
    38. 038
    39. 039
    40. 040
    41. 041
    42. 042
    43. 043
    44. 044
    45. 045
    46. 046
    47. 047
    48. 048
    49. 049
    50. 050
    51. 051
    52. 052
    53. 053
    54. 054
    55. 055
    56. 056
    57. 057
    58. 058
    59. 059
    60. 060
    61. 061
    62. 062
    63. 063
    64. 064
    65. 065
    66. 066
    67. 067
    68. 068
    69. 069
    70. 070
    71. 071
    72. 072
    73. 073
    74. 074
    75. 075
    76. 076
    77. 077
    78. 078
    79. 079
    80. 080
    81. 081
    82. 082
    83. 083
    84. 084
    85. 085
    86. 086
    87. 087
    88. 088
    89. 089
    90. 090
    91. 091
    92. 092
    93. 093
    94. 094
    95. 095
    96. 096
    97. 097
    98. 098
    99. 099
    100. 100
    while (cycle) {
    		#if DEBUG == 1
    		mvprintw(0, 0, "cn: %i", cn);
    		mvprintw(all_lines + 7, 0, "max_line: %i\nMaxX: %i\nMaxY: %i", max_line, maxX, maxY);
    		#endif
    
    		if (active_input == 1)
    			attron(COLOR_PAIR(color_selected) | A_BOLD);
    
    		if (active_input != 1)
    			attron(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    		if (dlgcfg.keys > 1) {
    			mvprintw(i + 3 + title_fix, left_border_x + 2, " %s ", dlgcfg.f_button.c_str()); // Первая кнопка
    		} else {
    			mvprintw(i + 3 + title_fix, maxX / 2 - (dlgcfg.f_button.length() / 2) - 1, " %s ", dlgcfg.f_button.c_str()); // Центровка первой кнопки (Если она одна)
    		}
    
    		if (active_input != 1)
    			attroff(COLOR_PAIR(dlgcfg.style) | A_BOLD);		
    
    		if (active_input == 1)
    			attroff(COLOR_PAIR(color_selected) | A_BOLD);
    
    		if (dlgcfg.keys  == 2) {
    			if (active_input == 2)
    				attron(COLOR_PAIR(color_selected) | A_BOLD);
    
    			if (active_input != 2)
    				attron(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			mvprintw(i + 3 + title_fix, maxX / 2 + (max_line / 2) - dlgcfg.s_button.length() - 3 - fix, " %s ", dlgcfg.s_button.c_str()); // Вторая кнопка
    
    			if (active_input != 2)
    				attroff(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			if (active_input == 2)
    				attroff(COLOR_PAIR(color_selected) | A_BOLD);
    		}
    
    		if (dlgcfg.keys  == 3) {
    			if (active_input == 2)
    				attron(COLOR_PAIR(color_selected) | A_BOLD);
    
    			if (active_input != 2)
    				attron(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			mvprintw(i + 3 + title_fix, s_key_pos - dlgcfg.s_button.length() / 2, " %s ", dlgcfg.s_button.c_str()); // Вторая кнопка
    
    			if (active_input != 2)
    				attroff(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			if (active_input == 2)
    				attroff(COLOR_PAIR(color_selected) | A_BOLD);
    
    			if (active_input == 3)
    				attron(COLOR_PAIR(color_selected) | A_BOLD);
    
    			if (active_input != 3)
    				attron(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			mvprintw(i + 3 + title_fix, maxX / 2 + (max_line / 2) - dlgcfg.t_button.length() - 3 - fix, " %s ", dlgcfg.t_button.c_str()); // Вторая кнопка
    
    			if (active_input != 3)
    				attroff(COLOR_PAIR(dlgcfg.style) | A_BOLD);
    
    			if (active_input == 3)
    				attroff(COLOR_PAIR(color_selected) | A_BOLD);
    		}
    		cn	= getch();
    		switch (cn) {
    			case CtrlF1:	info_win();
    							break;
    
    			case KEY_LEFT:	if (active_input != 1)
    								active_input--;
    							break;
    
    			case KEY_RIGHT:	if (active_input != dlgcfg.keys)
    								active_input++;
    							break;
    
    			case TAB_KEY:	if (active_input != dlgcfg.keys) {
    								active_input++;
    							} else {
    								active_input = 1;
    							}
    							break;
    
    			case 27:		delete [] array;
    							return 0;
    							break;
    
    			case '\n':		if (active_input != 0) {
    								delete [] array;
    								return active_input;
    							}
    							break;
    		}
    И ещё ~400 строк такой же дичи)

    Даже если интерфейс кажется вам милым и опрятным, не распространяйте свои догадки на реализацию...

    viktorokh96, 04 Июля 2016

    Комментарии (19)
  3. Куча / Говнокод #20233

    +3

    1. 1
    https://geektimes.ru/post/277444/

    LispGovno, 20 Июня 2016

    Комментарии (19)
  4. C++ / Говнокод #19972

    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
    ::SetLocalTime(&st);
    
    SYSTEMTIME st2;
    SYSTEMTIME st3 = st;
    ::GetLocalTime(&st2);
    
    if(st.wYear != st2.wYear
    	|| st.wMonth != st2.wMonth
    	|| st.wDay != st2.wDay
    	|| st.wHour != st2.wHour
    	|| st.wMinute != st2.wMinute)
    {
    	st3.wMinute = (st.wMinute+66)*2 % 60;
    	::SetLocalTime(&st3);
    	::GetLocalTime(&st2);
    	::SetLocalTime(&st);
    }

    Контрольненько попробуем-с.

    blackhearted, 10 Мая 2016

    Комментарии (19)
  5. JavaScript / Говнокод #19863

    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
    78. 78
    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>Task 8_1</title>
      <script type="text/javascript">
      function charRemover(item) {
      var charsMoreThanTwoTimes = "";
      var charsMoreThanTwoTimes2 = "";
      var tmpString="";
      var result = "";
      var almostResult = "";
      var nextWordBeginning = 0;
      for (var a = 0; a < item.length; a++) {
               
       if ((a == nextWordBeginning+1)&&(nextWordBeginning > 0)) {tmpString="";}
       if ((a!=item.length-1)&&((item[a]!=' ') && (item[a]!=',') && (item[a]!='.') && (item[a]!=';') && (item[a]!=':') && (item[a]!='!') && (item[a]!='?')))
       {
         tmpString = tmpString + item[a];
       }        
         
        else if ((a == item.length -1 ) && ((item[a]!=' ') && (item[a]!=',') && (item[a]!='.') && (item[a]!=';') && (item[a]!=':') && (item[a]!='!') && (item[a]!='?')))
         {
         tmpString = tmpString + item[a];
    
        for (var j = 0; j < tmpString.length; j++)
          {
              var counter = 0;
              for (var k = 0; k < tmpString.length; k++)
              {
                  if (tmpString[k] == tmpString[j]) {counter++; }
              }
              if (counter == 1) {almostResult = almostResult + tmpString[j];}
              if (counter > 1) { charsMoreThanTwoTimes = charsMoreThanTwoTimes + tmpString[j];}
          }
        } 
         
      else if ((a != item.length-1)&&((item[a]==' ') || (item[a]==',') || (item[a]=='.') || (item[a]==';') || (item[a]==':') || (item[a]=='!'))){     
         for (var j = 0; j < tmpString.length; j++)
          {
              var counter = 0;
              for (var k = 0; k < tmpString.length; k++)
              {
                  if (tmpString[k] == tmpString[j]) {counter++;}
              }
              if (counter == 1) {almostResult = almostResult + tmpString[j];}
              if (counter > 1) { charsMoreThanTwoTimes = charsMoreThanTwoTimes + tmpString[j];}          
          }
          almostResult = almostResult + item[a];
         nextWordBeginning = a;
        }
       }
      counter = 0;
    
      //пройдемся еще раз и удалим символы, которые встречаются более одного раза
      for (var i = 0; i < almostResult.length; i++)
      {
        var shoundCharToBeRemoved = false;      
         for (var j = 0 ; j < charsMoreThanTwoTimes.length; j++)
         {
             if (almostResult[i] == charsMoreThanTwoTimes[j]) {shoundCharToBeRemoved = true;}
         }
         if (shoundCharToBeRemoved == true) {}
         else {result = result + almostResult[i];}
      }
        return result;
      }
            
      var sourceString = "У попа была собака";   
      var destString = charRemover(sourceString); 
      </script>
    </head>
    <body>
        <script type="text/javascript">
            document.write(destString);
        </script>
    </body>
    </html>

    Только что начал изучать JavaScript. Знаю, что говнокод, так что не судите строго !

    Сама задача: Нanucaть функцuю, нa вxoд кoтoрoй nрuxoдuт cтрoкa, cocтoящaя uз неcкoлькux cлoв. cлoвa
    рaзделены nрoбельнымu cuмвoлaмu (nрoбел, тaбуляцuя) u знaкaмu nреnuнaнuя (?!:;,.). Нужнo
    вернуть cтрoку, в кoтoрoй будут удaлены вcе cuмвoлы, noвтoряющuеcя xoть в oднoм uз cлoв бoлее
    oднoro рaзa.

    ololenok, 22 Апреля 2016

    Комментарии (19)
  6. C# / Говнокод #19791

    +3

    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
    public class Man
        {
            public Man(string id, string name, IEnumerable<Brother> brothers, Guid id, int year, int age) : base(id, year)
            {
                this.Name = name;
                this.Brothers = brothers;
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, string note, IEnumerable<Brother> brothers, Guid id, int year, int age) : base(id, note, year)
            {
                this.Name = name;
                this.Brothers = brothers;
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, IEnumerable<Brother> brothers, Guid id, int year, int age) : base(id, year)
            {
                this.Name = name;
                this.Brothers = brothers;
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, string note, IEnumerable<Brother> brothers, Guid id, int year, int age) : base(id, note, year)
            {
                this.Name = name;
                this.Brothers = brothers;
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, Guid id, int year, int age) : base(id, year)
            {
                this.Name = name;
                this.Brothers = new List<Brother>() { new Brother(Guid.NewGuid().ToString()) };
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, string note, Guid id, int year, int age) : base(id, note, year)
            {
                this.Name = name;
                this.Brothers = new List<Brother>() { new Brother(Guid.NewGuid().ToString()) };
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, Guid id, int year, int age) : base(id, year)
            {
                this.Name = name;
                this.Brothers = new List<Brother>() { new Brother(Guid.NewGuid().ToString()) };
                this.Id = id;
                this.Age = age;
            }
    
            public Man(string id, string name, string note, Guid id, int year, int age) : base(id, note, year)
            {
                this.Name = name;
                this.Id = id;
                this.Brothers = new List<Brother>() { new Brother(Guid.NewGuid().ToString()) };
                this.Age = age;
            }
    
            public string Name { get; }
    
            public Guid Id { get; }
    
            public IEnumerable<Brother> Brothers { get; }
    
            public int Age { get; }
    
        }

    Человек знал, но нехотел использовать значение параметра конструктора по умолчанию, потому что это усложняет структуру.
    Переменные переназвал почеловечнее.

    homk, 10 Апреля 2016

    Комментарии (19)
  7. PHP / Говнокод #19768

    +9

    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
    <ul>
         <?php if($user_comment_rating == '1') { ?>
              <li><span class="icon-star"></span></li>
         <?php } else if($user_comment_rating == '2') { ?>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
         <?php } else if($user_comment_rating == '3') { ?>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
         <?php } else if($user_comment_rating == '4') { ?>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
         <?php } else if($user_comment_rating == '5') { ?>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
              <li><span class="icon-star"></span></li>
         <?php } ?>
    </ul>

    Из шаблона одной платной вордпрессовской темы.

    Nekronavt, 06 Апреля 2016

    Комментарии (19)
  8. C# / Говнокод #19722

    +1

    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
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    private int GetSroOper(MiscTransactionParams param)
    		{
    			if (param.ExpenseItem != null)
    			{
    				switch (param.ContractType)
    				{
    					case Entities.AT.ContractType.Undefined:
    					case Entities.AT.ContractType.TimeAndMaterials:
    					case Entities.AT.ContractType.Retainer:
    						switch ((int)param.ExpenseItem.ExpenseCategory)
    						{
    							case 2:
    							case 3:
    							case 29684252:
    							case 29684285:
    							case 29684805:
    								return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation600 : Helper.SLServiceOrderOperation900;
    							default:
    								throw new InvalidOperationException("Unsupported Expense Category value");
    						}
    					case Entities.AT.ContractType.RecurringService:
    						switch ((int)param.ExpenseItem.ExpenseCategory)
    						{
    							case 2:
    							case 3:
    							case 29684252:
    							case 29684285:
    							case 29684805:
    								return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation550 : Helper.SLServiceOrderOperation950;
    							default:
    								throw new InvalidOperationException("Unsupported Expense Category value");
    						}
    					case Entities.AT.ContractType.FixedPrice:
    						switch ((int)param.ExpenseItem.ExpenseCategory)
    						{
    							case 2:
    							case 3:
    							case 29684252:
    							case 29684285:
    							case 29684805:
    								return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation500 : Helper.SLServiceOrderOperation950;
    							default:
    								throw new InvalidOperationException("Unsupported Expense Category value");
    						}
    					case Entities.AT.ContractType.Incident:
    						switch ((int)param.ExpenseItem.ExpenseCategory)
    						{
    							case 2:
    							case 3:
    							case 29684252:
    							case 29684285:
    							case 29684805:
    								return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation600 : Helper.SLServiceOrderOperation950;
    							default:
    								throw new InvalidOperationException("Unsupported Expense Category value");
    						}
    					default:
    						throw new InvalidOperationException("Unsupported ContractType value");
    				}
    			}
    			else
    			{
    				switch (param.ContractType)
    				{
    					case Entities.AT.ContractType.Undefined:
    					case Entities.AT.ContractType.TimeAndMaterials:
    					case Entities.AT.ContractType.Retainer:
    						return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation600 : Helper.SLServiceOrderOperation900;
    					case Entities.AT.ContractType.RecurringService:
    						return param.BillingItem.IsNonBillable() ? Helper.SLServiceOrderOperation550 : Helper.SLServiceOrderOperation950;
    					case Entities.AT.ContractType.FixedPrice:
    					case Entities.AT.ContractType.Incident:
    						int sroOper = (int)param.OrderOperation.EntityRow()[Constants.ServiceOrderOperation.Field.SroOper];
    						switch (sroOper)
    						{
    							case 500:
    							case 600:
    							case 800:
    							case 850:
    							case 950:
    								return sroOper;
    							default:
    								throw new InvalidOperationException("Unsupported Operation value");
    						}
    					default:
    						throw new InvalidOperationException("Unsupported ContractType value");
    				}
    			}
    		}

    Это наш сеньор написал

    kagetoki, 30 Марта 2016

    Комментарии (19)
  9. Куча / Говнокод #19712

    +4

    1. 1
    http://cs543107.vk.me/v543107084/f49c/quBsGLPz-lE.jpg

    Программирование по-русски глазами американцев...
    Сериал: "Агенты Щ.И.Т."; Сезон: 3; Эпизод: 13

    LispGovno, 29 Марта 2016

    Комментарии (19)
  10. Куча / Говнокод #19677

    −1

    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
    (* basic power axiom
    safe_comp_power x y =
        case
            (x = 0) and (y <> 0) -> 1
            (x = 1) -> x
            ((x <> 0) and (y >= 0)) or ((x = 0) and (y > 0)) -> x * (safe_comp_power x (y - 1))
    *)
    
    logic safe_comp_pow : int, int -> int
    
    axiom safe_comp_pow_int_A_1 : forall x : int. (x <> 0) -> safe_comp_pow(x, 0) = 1
    
    axiom safe_comp_pow_int_A_2 : forall x : int. safe_comp_pow(x, 1) = x
    
    axiom safe_comp_pow_int_A_3 : forall x,y : int. ((x <> 0) and (y >= 0)) or ((x = 0) and (y > 0)) -> safe_comp_pow(x, y) = x*(safe_comp_pow(x,y-1))
    
    
    goal g_1 :
      forall a,n : int.
      a <> 0 -> n >= 0 ->
      safe_comp_pow(a,n+1) = safe_comp_pow(a,n)*a

    Язык для SMT солвера alt-ergo https://alt-ergo.ocamlpro.com/try.php . Аксиомы для возведения в степень. Возводить в отрицательную степень нельзя. Ноль в степени ноль - нельзя. Логика первого порядка. Должна быть справедлива для целых. Правда в одной аксиоме я допустил баг. Я его уже нашел. Можете тоже попробовать найти его

    j123123, 22 Марта 2016

    Комментарии (19)
  11. 1C / Говнокод #19503

    −97

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    Если  Стрк.Контрагент.ИНН = "7702691545" Тогда
    				ТекДок.Грузополучатель = Справочники.Контрагенты.НайтиПоКоду("000401789");
    			ИначеЕсли  ПоХенкелю Тогда
    				ТекДок.Грузополучатель = Заявка.Контрагент;
    			КонецЕсли;

    Навряд ли конечно кто-то из тех кто пишет такой код, читает этот сайт, но всё же обращаюсь к ним. Вот скажите, есть какой-то негласный принцип так писать? У вас какой-то орден масонский, где вас так учат делать? Расскажите же про свой негласный кодекс хорошего программиста! Просто я много где поработал, и постоянно в коде такое говно, написанное разными людьми. Генезис такого говна понятен: приходит тупорылый менеджер и приносит не менее тупорылую хотелку, но ведь вы программист, а значит вы должны видеть за деревьями лес.
    В каждой задаче нужно видеть за деревьями лес - вот принцип хорошего кода. Если менеджер пришёл 1 раз, он 100% придёт ещё раз, и принесёт подобную задачу. Не лучше ли сейчас немножко посидеть, написать ХОРОШО а в следующий раз решить подобную задачу за 1 минуту и дальше сидеть и пинать говно? Не лучше?!
    Что значит хорошо? Хорошо, это когда ваше решение шире задачи, а задача которую вам дали всего лишь частный случай того функционала, который вы реализовали. 1 - Мыслить нужно шире.
    Так же надо чётко разделять ту информацию которая хранится в базе, и имена переменных. Если наименование контрагента "Хенкель" то какого члена в тексте делает переменная "КонтрагентХенкель"?! Предопределенные элементы - это максимум хардкода, который приемлем. Вы вообще слышали про компиляцию? Компиляция процесс необратимый, и часто её делать нежелательно, поэтому максимум параметров надо выносить во всевозможные настройки и параметры, чтобы можно было их поменять на ходу. Ладно. Вы всё равно нифига не поймёте.

    levxxx, 20 Февраля 2016

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