Z
Z
zizop2011-07-28 07:41:44
IT terminology
zizop, 2011-07-28 07:41:44

The term for "shitcode"?

All of us in everyday life are accustomed to calling low-quality code simply “shit code”. Are there any established terms for this? Or a more correct, censored name?

Answer the question

In order to leave comments, you need to log in

19 answer(s)
I
interrupt_controller, 2011-07-28
@interrupt_controller

> Well, there are wtf program code metrics
per minute

V
vinxru, 2011-07-28
@vinxru

A shit code is a code that doesn't look like an opponent's code. Understanding someone else's code is a long and tedious job. And if the code is written as if you wrote it, then you understand it and this saves time for revision and debugging.
Any novice programmer first of all rushes to rewrite other people's programs. Even if they are absolutely functional, even if after rewriting part of the functionality disappears and bugs appear.
This is said with a grain of salt, of course.
Shit code is the application of not the best (from the point of view of the majority) solutions to a problem. Well, for example, the exit from the loop will be called shitcode by setting the counter to the maximum value.

for(i=0; i<1000; i++)
  i=INT_MAX;

This is a fully functional solution, not slow, not cumbersome. But it is better to use break for these purposes. Because everyone is used to it. Also, the code is repeating the functionality of the standard library, for example, string or auto_ptr. As well as the structure (architecture) of the program, which is different from the opponent's favorite. For example, not using MVC when developing a program.
For example, I use the construction:
void main() {
  // ...
  void init_dialog();           init_dialog();
  void init_referenceControl(); init_referenceControl();
  void init_functionsHelp();    init_functionsHelp();
  void init_new_style();        init_new_style();
  // ...
}
</souce>

Вместо определения функций в .H файлах, я это сделал прямо на месте. Говнокод. Можно было бы создать кучу .H файлов, использовать одну из множества библиотек выполняющих инициализацию. Но это максимально простой способ, способ без использования доп классов, функций и программ; так легче отлаживать, так наглядно изображена последовательность инициализации, так не надо писать кучу #include, и кроме функции MAIN, функции инициализации ни от куда не вызвать.

Говнокод - потому что люди бы не так написали.

L
la0, 2011-07-28
@la0

coprocode))
code of reduced algorithmization ...

D
danfe, 2011-07-28
@danfe

If it is in one word, then in English-language correspondence I use the term "shitware" sometimes.

D
Dmitry, 2011-07-28
@Neir0

"Spaghetti Code"

V
vbo, 2011-07-28
@vbo

Write only?

S
Sergey, 2011-07-28
@bondbig

What makes the code shit code - no one knows for sure. There is no exact definition. Often, what some consider obvious shit code, others see as a concise and effective solution.

S
slaum, 2011-07-28
@slaum

Often referred to as the "Hindu Code"

C
ChemAli, 2011-07-28
@ChemAli

“poor code” is quite a universal term.

V
Vasily Sorokin, 2011-07-28
@Vass

In general, you can rely on Fowler's chapter "Code with a smell" (M. Fowler "Refactoring") and on examples from chapters with various refactorings to determine "shitty".

A
Arthur Koch, 2011-07-28
@dudeonthehorse

We use the term “govkokod” in contracts and decipher it under an asterisk as a very large sentence.

A
AlexQ, 2011-07-28
@AlexQ

In my opinion, shitcode is code that cannot (or is difficult) to upgrade due to its inelasticity. Those. the person only wrote for the specific case, no error handlers, etc.

E
entaure, 2011-07-28
@entaure

non-optimal/non-optimized code (at least that's what we have)

M
MikhailEdoshin, 2011-07-28
@MikhailEdoshin

Yes, just write “bad code”.

T
tick, 2011-07-28
@tick


I 'm sorry www.devclub.eu/2010/08/13/video-wtf-code/ was
on Habré

V
Vladimir Chernyshev, 2011-07-28
@VolCh

Ugly code

V
Vladimir Zhurkin, 2011-07-28
@icCE

Well, I suggest you go to govnokod.ru/ and look at several options, and you will immediately understand everything :)
govnokod.ru/3577
- :> file
(: ;) > file
------------- -

P
pyJIoH, 2011-07-29
@pyJIoH

In fact, Fowler and McConnell's "Smell Code" is a well-established name, my foreign colleagues use it to refer to shit code. They say code smell . Wiki article .

C
chinskiy, 2013-11-13
@chinskiy

indacode - short for hindu code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question