V
V
vgreat2020-04-17 15:49:31
IT education
vgreat, 2020-04-17 15:49:31

Is it possible to upgrade algorithms without good knowledge of syntax?

Hello.
I'm learning js, haven't returned to it for some time. Recently I saw some problem and could not do it.
On the one hand, there was not enough knowledge of the syntax, on the other hand, I simply did not understand how to do it.
Tell me if it is possible to upgrade algorithms without a good knowledge of syntax, how important are algorithms in general, where they can definitely come in handy and where not, and where can they be upgraded?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dmshar, 2020-04-17
@dmshar

Imagine you and your team have to do some work, let's say build a wall. You are the boss. You should have an algorithm for solving this problem in your head - make a mortar, replace the mortar, bring bricks, lay a layer of mortar, lay a layer of bricks, if the wall height is less than the specified one, repeat the steps described above. Having decomposed the task into steps and linking them together, you got a solution algorithm that you send to the executor for execution.
Likewise in programming. You are given a task, first of all you have to break it down into some simpler actions and link them together. Now you can describe this algorithm - in Russian, in English, in Chinese .... Or you can use the C ++ or Java Script programming language. Here sorting algorithms are generally demonstrated in the language of dance. Nice and easy to understand :-).
https://habr.com/en/post/117200/
Of course, when we talk about programming, you need to know some things - what is computer memory, how can data be stored there and how to extract it from there, etc.
But the cycle is not a concept from programming, but in different languages ​​it is simply implemented a little differently. And comparison and choice - also stem from ordinary life and are only embodied in languages ​​in a special way.
So the language you are using is only a means of describing algorithms, not a necessary tool.

S
Sergey Gornostaev, 2020-04-17
@sergey-gornostaev

You need to learn how to walk before you can run.

D
Dmitry Belyaev, 2020-04-17
@bingo347

Tell me if it is possible to upgrade algorithms without a good knowledge of syntax, how important are algorithms in general, where they can definitely come in handy and where not, and where can they be upgraded?

Tell me , is it possible to build sentences without good knowledge that a comma is put after addresses in Russian, how important it is to be able to speak, where exactly it can come in handy and how can you learn to speak?
There are several things that are interesting here:
1. the child does not ask such questions, he just starts talking, and says more and more until it starts to work out well.
2. although my internal ru-lint caught on a missing comma, this did not prevent me from understanding the meaning you put into the text. Computers in most cases cannot do this, there will be a compilation error.
3. here I am citing the Russian language as an analogy and doing it in the same way using the Russian language, but my knowledge of it is not perfect, it is quite possible that in this text I unconsciously made a mistake somewhere, but the meaning of this was preserved
Well, how noted above, algorithms are not only about programming and they are in no way tied to a specific programming language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question