K
K
krembrule20162019-02-07 17:33:22
Algorithms
krembrule2016, 2019-02-07 17:33:22

How are algorithms born in your head?

Hey!
The question is: how algorithms are born in your head? I watched the work of a friend who was more experienced in programming and found that his algorithm development is quite consistent, ordered and (butter oil) logical way. In my head, the code is born out of chaos (porridge, if you like, but chaos sounds more epic). Yes, I can’t even really explain how it appears for me, it feels like it is born in the unconscious area, and then consciousness simply captures the general concept and polishes logical troubles. <- my friend does not have this in principle, he writes code and the code immediately does what it was supposed to do.
Well, I don’t know, maybe there are some books on the mechanics of developing algorithms? Or is it just a way of thinking?
I tried to talk to him about this topic, but I got nothing but laughter in response. A-la, yes, I seem to have always been friends with the head.
I noticed that his code is very easy to read. Even if I don't leave comments, I can't understand my code after a while.
In my near youth, I wrote poetry (authoritative comrades said about some of them that attempts are really of a good level) and the process of writing code is very similar to such creativity for me. Mb who will understand me, but poems are composed from somewhere out of nowhere, you do not think logically in order to achieve your inner throwing on paper. The words seem to be chosen by themselves.
Krch, in what direction should we work to solve such a problem. I also want to: I thought, thought and hob - the code is ready and working. Instead of sitting and pushing for an hour, waiting for the algorithm to appear in your head.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVGENY T., 2019-02-07
@krembrule2016

I use two methods:
1. If the task is typical, I do as it was done before.
2. If the task is new, imagine that I am explaining to a moron what needs to be done step by step.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question