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

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

    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
    79. 79
    // -------------------------------------------
    // 2.2. binary calls
    // -------------------------------------------
    /*
        combination table:
    
          +-   | c a n
            ---|-------
             c | C A N
             a | A A N
             n | N N N
    
          *    | c a n
            ---|-------
             c | C A N
             a | A N N
             n | N N N
    
          /    | c a n
            ---|-------
             c | C N N
             a | A N N
             n | N N N
    
        argument:
          c : constant, as scalar, point, tensor, ect
          l : affine homogeneous expr argument: as field, field_indirect or field_expr_node::is_affine_homogeneous
          n : function, functor or ! field_expr_node::is_affine_homogeneous
        result:
          C : constant : this combination is not implemented here
          A,N : are implemented here
        rules:
          at least one of the two args is not of type "c"
          when c: c value is embeded in bind_first or bind_second
                  and the operation reduces to an unary one
          when a: if it is a field_convertible, it should be wrapped
                  in field_expr_v2_nonlinear_terminal_field
          when c: no wrapper is need
        implementation:
          The a and n cases are grouped, thanks to the wrapper_traits
          and it remains to cases :
            1) both args are  field_expr_v2_nonlinear or a function 
            2) one  arg  is a field_expr_v2_nonlinear or a function and the second argument is a constant
    */
    
    #define _RHEOLEF_make_field_expr_v2_nonlinear_binary(FUNCTION,FUNCTOR)	\
    template<class Expr1, class Expr2>						\
    inline										\
    typename									\
    std::enable_if<									\
         details::is_field_expr_v2_nonlinear_arg<Expr1>::value			\
      && details::is_field_expr_v2_nonlinear_arg<Expr2>::value			\
      && ! details::is_field_expr_v2_constant   <Expr1>::value			\
      && ! details::is_field_expr_v2_constant   <Expr2>::value			\
     ,details::field_expr_v2_nonlinear_node_binary<					\
        FUNCTOR									\
       ,typename details::field_expr_v2_nonlinear_terminal_wrapper_traits<Expr1>::type	\
       ,typename details::field_expr_v2_nonlinear_terminal_wrapper_traits<Expr2>::type 	\
      >										\
    >::type										\
    FUNCTION (const Expr1& expr1, const Expr2& expr2)				\
    {										\
      typedef typename details::field_expr_v2_nonlinear_terminal_wrapper_traits<Expr1>::type wrap1_t; \
      typedef typename details::field_expr_v2_nonlinear_terminal_wrapper_traits<Expr2>::type wrap2_t; \
      return details::field_expr_v2_nonlinear_node_binary <FUNCTOR,wrap1_t,wrap2_t> \
    	(FUNCTOR(), wrap1_t(expr1), wrap2_t(expr2)); 				\
    }										\
    template<class Expr1, class Expr2>						\
    inline										\
    typename 									\
    std::enable_if<									\
         details::is_field_expr_v2_constant     <Expr1>::value			\
      && details::is_field_expr_v2_nonlinear_arg<Expr2>::value			\
      && ! details::is_field_expr_v2_constant   <Expr2>::value			\
     ,details::field_expr_v2_nonlinear_node_unary<					\
        details::binder_first<							\
          FUNCTOR									\
         ,typename details::field_promote_first_argument<				\
            Expr1

    MAKAKA, 25 Февраля 2021

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

    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
    <!DOCTYPE html>
    <html>
        <head>
            <title>loop ass</title>
        </head>
        <body>
            <script>
            function s(){        
                var a="A and B sat on the pipe!";
                alert(a)
                alert("A fell!")
                alert("B gone!")
                alert("who stayed on the pipe?")
                prompt(" who stayed on the pipe?")==a[2]+a[3]+a[4]?alert(@):s()    
          }
    s()
            </script>
        </body>
    </html>

    Что не так?

    prefix-not, 07 Февраля 2021

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

    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
    void s_sort(int *a, size_t sz)
    {
      if ((sz == 0) || (sz == 1))
      {
        return;
      }
      if (sz  == 2)
      {
        int a_max = a[0] > a[1] ? a[0] : a[1];
        int a_min = a[0] > a[1] ? a[1] : a[0];
        a[0] = a_min;
        a[1] = a_max;
        return;
      }
      s_sort(a, sz - 1);
      s_sort(a + 1, sz - 1);
      s_sort(a, sz - 1);
    }

    Крайне тупая по своей сути рекурсивная сортировка. Есть ли у нее название?

    Вряд ли она имеет какое-то практическое применение именно как сортировка, но зато можно ее переписать на какой-нибудь Coq и об нее доказывать другие сортировки. Типа если какая-то там другая сортировка на всех возможных входных массивах выдает то же, что и выдает вот эта сортировка, то сортировка правильная.

    j123123, 03 Января 2021

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

    +2

    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
    chek_LD(void)
    {
    	LOCK_DETECT = read();
    	if (LOCK_DETECT == SAVE_LOCK_DETECT)
    	{
    		return;
    	}
    	if (LOCK_DETECT == 0)
    	{
    		LOCK_DETECT = read();
    		if (LOCK_DETECT == 0)
    		{
    			if (LOCK_DETECT != SAVE_LOCK_DETECT)
    			{
    				SAVE_LOCK_DETECT = 0;
    			}
    		}
    	}
    	else
    	{
    		delay_us(5);
    		LOCK_DETECT = read();
    		if (LOCK_DETECT == 1)
    		{
    			if (LOCK_DETECT != SAVE_LOCK_DETECT)
    			{
    				SAVE_LOCK_DETECT = 1;
    			}
    		}
    	}
    	return;
    }

    пришел на легаси проект. обожаю глобальные переменные на весь проект. еще больше обожаю логику)

    viteo, 29 Декабря 2020

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

    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
    import { combineEpics, ofType } from 'redux-observable'
    
    import { map, switchMap, catchError, filter, mergeAll } from 'rxjs/operators'
    import { of, from } from 'rxjs'
    import * as R from 'ramda'
    
    import * as TICKETS_ACTION_TYPES from './tickets.types'
    import * as TicketsActions from './tickets.actions'
    import * as TicketsSelectors from './tickets.selectors'
    import { /* TICKET_TYPES,*/ TICKET_STEPS } from './constants'
    import mockAPI from 'services/mockAPI'
    
    export const getTicketsEpic = (action$, state$) =>
      from(
        R.map(
          (step) =>
            action$.pipe(
              filter(
                R.either(
                  R.both(R.propEq('type', TICKETS_ACTION_TYPES.GET_TICKETS_BY_STEP), R.pathEq(['payload', 'step'], step)),
                  R.propEq('type', TICKETS_ACTION_TYPES.GET_ALL_TICKETS)
                )
              ),
              switchMap((action) => {
                if (
                  action.type !== TICKETS_ACTION_TYPES.GET_ALL_TICKETS &&
                  TicketsSelectors.ticketsAllDirtySelector(state$.value)
                ) {
                  return of(TicketsActions.getAllTickets())
                } else if (!TicketsSelectors.ticketsByStepDirtySelector(step, state$.value)) {
                  return of(TicketsActions.getTicketsByStepSuccess(step, null, true))
                }
                return from(
                  // Mocks tickets API
                  // TODO: Replace by real request
                  mockAPI.getTicketsByStep(step)
                ).pipe(
                  map((data) => TicketsActions.getTicketsByStepSuccess(step, data)),
                  catchError((err) => of(TicketsActions.getTicketsByStepError(step, err)))
                )
              })
            ),
          R.values(TICKET_STEPS)
        )
      ).pipe(mergeAll())

    Редукс нам уже не интересен, нам с поподвыподвертами подавай, чтоб тупо болванку показать.

    NickPepper, 25 Июля 2020

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

    −4

    1. 1
    Принт хелло ворлд

    Oleg4260, 01 Июня 2020

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

    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
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    <!DOCTYPE html>
    <head>
        <meta charset="utf-8"/>
    </head>
    <body>
    <canvas id='pixel_canvas'></canvas>
    <pre id='text_canvas'></pre>
    <script>
        'use strict';
        function tryFetch() {
            const array = arguments[0];
            const onError = arguments[arguments.length - 1];
            let result = array;
            for (let i = 1; i < arguments.length - 1; ++i) {
                if (arguments[i] < result.length) {
                    result = result[arguments[i]];
                } else {
                    return onError;
                }
            }
            return result;
        }
    
        function bitmap2tetramap(bitmap) {
            let tetramap = []
            for (let i = 0; i < bitmap.length; i += 2) {
                tetramap.push([]);
                for (let j = 0; j < bitmap[i].length; j += 2) {
                    tetramap[tetramap.length - 1].push(
                        tryFetch(bitmap, i, j, 0) << 3 |
                        tryFetch(bitmap, i, j + 1, 0) << 2 |
                        tryFetch(bitmap, i + 1, j, 0) << 1 |
                        tryFetch(bitmap, i + 1, j + 1, 0)
                    );
                }
            }
            return tetramap;
        }
    
        function renderTetramap(tetramap) {
            const tiles = [
                ' ', '▗', '▖', '▄',
    
                '▝', '▐', '▞', '▟',
    
                '▘', '▚', '▌', '▙',
    
                '▀', '▜', '▛', '█'
            ];
            return tetramap.map(row => row.map(i => tiles[i]).join('')).join('<br>');
        }
    
        function renderBitmap(bitmap) {
            return renderTetramap(bitmap2tetramap(bitmap));
        }
    
        function rgba2bitmap(rgba, width, height) {
            let bitmap = [];
            for (let i = 0; i < height; ++i) {
                bitmap.push([]);
                for (let j = 0; j < width; ++j) {
                    const currentRGBAElementIndex = (i * width * 4) + j * 4;
                    const red = rgba[currentRGBAElementIndex];
                    const green = rgba[currentRGBAElementIndex + 1];
                    const blue = rgba[currentRGBAElementIndex + 2];
                    const a = rgba[currentRGBAElementIndex + 3];
                    bitmap[i].push((red + green + blue + a) / 4 > 0? 1 : 0);
                }
            }
            return bitmap;
        }
    
        function renderImageData(imageData) {
            return renderBitmap(rgba2bitmap(imageData.data, imageData.width, imageData.height));
        }
    
        const ctx = pixel_canvas.getContext("2d");
        ctx.font = "16px serif";
        ctx.fillText("Какой багор )))", 0, 16);
    
        text_canvas.innerHTML = renderImageData(ctx.getImageData(0, 0, pixel_canvas.width, pixel_canvas.height));
    </script>
    </body>

    HIV, 28 Мая 2020

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

    0

    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
    $output = '<div class="catalog catalog-category">';
    	$query = db_select('taxonomy_term_data','td');
    	$query->innerJoin('field_data_field_category', 'fc', "fc.field_category_tid = td.tid");
    	$query->innerJoin('taxonomy_term_hierarchy', 'tth', "tth.tid = td.tid");
    	$query->innerJoin('node', 'n', "n.nid = fc.entity_id");
    	$query->condition('td.vid', 4);
    	$query->condition('n.status', 1);
    	$query->condition('tth.parent', 0);
    	$query->fields('td', array('tid', 'name'));
    	$query->groupBy('td.tid');
    	$query->orderBy('td.weight', 'ASC');
    	$terms = $query->execute()->fetchAll();
    foreach ($terms as $term) {
    		$prod_out = '';
    		$query = db_select('field_data_field_product', 'fp');
    
    		// Выбираем товары текущего типа
    		$query->innerJoin('node', 'n', "n.nid = fp.entity_id");
    		$query->innerJoin('field_data_field_category', 'fc', "fc.entity_id = n.nid");
    		$query->condition('n.status', 1);
    		$query->condition('fc.field_category_tid', $term->tid);
    
    		// Заголовок товара
    		$query->innerJoin('commerce_product', 'cp', "cp.product_id = fp.field_product_product_id");
    		$query->condition('cp.status', 1);
    		$query->fields('cp', array('title'));
    
    		// Цена без скидки
    		$query->innerJoin('field_data_commerce_price', 'dcp', "dcp.entity_id = fp.field_product_product_id");
    		$query->fields('dcp', array('commerce_price_amount'));
    
    		// Размер скидки
    		$query->leftJoin('field_data_field_discount', 'dcpd', "dcpd.entity_id = fp.field_product_product_id");
    		$query->fields('dcpd', array('field_discount_value'));
    
    		// Цена со скидкой
    		$query->leftJoin('field_data_field_price_new', 'dcpn', "dcpn.entity_id = fp.field_product_product_id");
    		$query->fields('dcpn', array('field_price_new_value'));
    
    		// Первое изображение
    		$query->innerJoin('field_data_field_image', 'dfi', "dfi.entity_id = fp.field_product_product_id");
    		$query->condition('dfi.delta', 0);
    		$query->fields('dfi', array('field_image_fid'));
    
    		$query->innerJoin('field_data_field_weight', 'fw', "fw.entity_id = fp.field_product_product_id");
    		$query->addExpression("(SELECT GROUP_CONCAT(td.name SEPARATOR ', ') FROM field_data_field_season AS dfs INNER JOIN taxonomy_term_data AS td ON td.tid=dfs.field_season_tid WHERE dfs.entity_id=n.nid)","name");
    
    		// Маркер
    		$query->leftJoin('field_data_field_marker', 'dfm', "dfm.entity_id = fp.field_product_product_id");
    		$query->fields('dfm', array('field_marker_value'));
    
    		// Товар
    		$query->fields('fp', array('field_product_product_id'));
    
    		// Связанная с товаром нода
    		$query->fields('n', array('nid'));
    
    		$query->range(0, 4);
    		$query->orderBy('fw.field_weight_value', 'ASC');
    		$products = $query->execute()->fetchAll();
    
    //		$output .= '<h2>' . l($term->name, 'taxonomy/term/'.$term->tid) . '</h2>';
    
    		$output .= '<div class="product_items">';
    		$output .= '<div class="catalog_item"><div style="width: 225px; height: 340px;"><h2>' . l($term->name, 'taxonomy/term/'.$term->tid) . '</h2></div></div>';
    
    		foreach ($products as $product) {
    			$fid = $product->field_image_fid;
    			if ($fid != 0 && is_numeric($fid)) {
    				$file_picture = file_load($fid);
                    $imageUrl = image_style_url('catalog', $file_picture->uri);
                    $title = $product->title;
    				$photo = "<img class='lazy-image' data-src='{$imageUrl}' alt='{$title}' title='{$title}'>";
    			}
    			else $photo = '';
    
    			$prod_out .= '<div class="catalog_item">';
    			$prod_out .= '<div class="title">' . l($product->title . '<br><span>' . $product->name . '</span><div>XS  S  M  L  XL</div>', 'node/'.$product->nid, array('html' => TRUE, 'query' => array('id' => $product->field_product_product_id))).'</div>';
    			$prod_out .= '<div class="image">' . $photo . '</div>';
    
    			if (!empty($product->field_discount_value)) {
    				$prod_out .= '<div class="views-field-field-discount"><div class="field-content">Sale ' . $product->field_discount_value . ' %</div></div>';
    			}
    
    			if (!empty($product->field_marker_value)) {
    				$prod_out .= '<div class="views-field-field-marker"><div class="field-content field-content field-content-' . $product->field_marker_value . '">' . ($product->field_marker_value == 'new'?'Новинка':'Бестселлер') . '</div></div>';
    			}
    			if (!empty($product->field_price_new_value)) {
    				$price = '<s>' . number_format($product->commerce_price_amount/100,0,'',' ') . '</s> ' . number_format($product->field_price_new_value,0,'',' ') . ' Р';
    			}
    			else {
    				$price = number_format($product->commerce_price_amount/100,0,'',' ') . ' Р';
    			}
    			$prod_out .= '<div class="views-field-field-price-new">' . $price . '</div>';
    			$prod_out .= '</div>';
    		}
    }
    $output .= $prod_out;
    		$output .= '<div class="catalog_item" style="position: absolute;">' . l('<img src="/sites/all/themes/base/img/strelka.png" style="width: 10px; height: 17px;">', 'taxonomy/term/'.$term->tid, array('html' => true)) . '</div>';
    		$output .= '</div>';

    Уууъъъъъ пыхомразь

    phpBidlokoder2, 18 Мая 2020

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

    −2

    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
    procedure TForm1.WMDropFiles(var Msg: TMessage);
    var
      I, Amount, Size: Integer;
      Filename: String;
      Ctrl:TControl;
      P:TPoint;
    begin
      if MessageBox(Handle, 'Внимание! Выбранные файлы будут БЕЗВОЗВРАТНО удалены. Продолжить?','Треш-угар', MB_ICONEXCLAMATION or MB_YESNO) <> ID_YES then Exit;
      GetCursorPos(P);
      Amount := DragQueryFile(Msg.WParam, $FFFFFFFF, @Filename[1], 255);
      for i := 0 to (Amount - 1) do
      begin
        Size := DragQueryFile(Msg.WParam, i, nil, 0) + 1;
        SetLength(FileName, Size+1);
        DragQueryFile(Msg.WParam, I, @Filename[1], Size);
        SetLength(FileName, StrLen(PChar(FileName)));
        Ctrl:=FindDragTarget(P, False);
        CleanFile(FileName);
      end;
      DragFinish(Msg.WParam);
    end;
    
    procedure TForm1.CleanFile(FileName:string);
    var
      hFile:THandle;
      Size:DWORD;
      BW:DWORD;
      I:Integer;
      P:Pointer;
      NewName, Fname :string;
    begin
      trEmpty.SendToBack;
      trFull.BringToFront;
      hFile:=CreateFile(PChar(FileName), GENERIC_WRITE, FILE_SHARE_READ, nil, OPEN_EXISTING, 0, 0);
      if hFile=INVALID_HANDLE_VALUE then
      exit;
      try
        Size:=GetFileSize(hFile,nil);
        P:=AllocMem(Size);
        SetFilePointer(hFile, 0, nil, FILE_BEGIN);
        //for I:=0 to Size=1 do
        //begin
        //end;
        WriteFile(hFile, P^, Size, BW, nil);
        CloseHandle(hFile);
      finally
        CloseHandle(hFile);
      end;
      FName:=ExtractFileName(FileName);
      NewName:=StrUtilsEx.RandomStr([rtLowerCase, rtUpperCase], Length(FName));
      NewName:=ExtractFilePath(FileName)+FName;
      MoveFile(PChar(FileName), PChar(NewName));
      DeleteFile(PChar(NewName));
      trFull.SendToBack;
      trEmpty.BringToFront;
    end;
    
    end.

    Кхе-кхе-кхе, апчхичхоу!

    KOPOHABuPYC, 21 Апреля 2020

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

    +1

    1. 1
    return Business::find(intval(OptionGroup::find(intval(OptionSet::find($this->attributes['option_set_id'])->first()->option_group_id))->business_id))->first()->

    Eloquent - это пиздец какой то..

    websbkinfo, 14 Января 2020

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