V
V
vcentk2021-01-30 06:18:54
IT education
vcentk, 2021-01-30 06:18:54

How important is it to write concisely?

I study Japanese, I do all sorts of tasks. looking at the solution of one of the tasks (from another user), I realized that this is all done easier (without if'a and another). It is clear that this is typical for beginners, but I want to know if the execution of the task is considered alternatively (more code, slightly complicating) as an error? or is it just a regular govnokod ? (I'm afraid to continue to do so)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Korotenko, 2021-01-30
@firedragon

Write clearly. Laconicism is good, but with some designs it simply blows the mind.

D
dollar, 2021-01-30
@dollar

It does not count as an error . But shitcode is shitcode - with all the consequences (more difficult to extend, maintain, etc.)
However, there is no clear line between shitcode and pure code. It's good to strive to make your code cleaner, but you also have to pay for it. Even the pros are forced to spend more time and effort to make the code concise, clear and beautiful. So sometimes you even need to write shitty code. Sudden opening? :) For example, when you want to quickly check something for yourself or go through some data with a script once.

A
AVKor, 2021-01-30
@AVKor

How important is it to write concisely?

As much as the conditions dictate.
No one has ever written perfect code since the very beginning of learning to program.
Only experience (in the broadest sense) can help make it better.

A
Adamos, 2021-01-30
@Adamos

The size of the code has nothing to do with its quality.
You will not find such shitty code, which is written for the sake of "conciseness" on CodeGolf, by any handless beginner. In principle, these creations are not subject to support.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question