M
M
Melotronix2019-03-24 15:18:51
Theory
Melotronix, 2019-03-24 15:18:51

How to start programming, knowing the theory?

Good day! I apologize in advance for such a stupid, but at the same time important question for me. The fact is that I study at the university, and in terms of theoretical training, I'm talking about programming / language tools / general structure / a small part of the implementation / etc. I know enough to accomplish this or that task. But the problem is that as soon as I sit down to write code, I catch a terrible dumbass, I just can't figure out where I should start, how to do it at all. That is, I'm starting to get stupid even on the basic constructions of the language already, what should be done in what sequence, what is generally required of me, etc. At the same time, with Theor. there are no problems with the preparation (I calmly sorted out the pointers, I understand and love mathematics, but on paper - to implement a complex matan in the code - for me panic). The question is how to overcome this "

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2019-03-24
@Zoominger

It is quite possible to overcome, the person who would sit down and write code without experience has not yet been born. Start with learning tasks from any programming book, they are good for developing programmer thinking.

D
dollar, 2019-03-24
@dollar

Start with simple tasks.
Well, not "Hello, world", but something not too complicated.
One has to feel that (imperative) programming is just a sequence of instructions. Well, it's a classic, so I take it as a basis. That is, it is like a transition from the alphabet to reading in whole words.
Further, in the same way, you need to master the conditional operator (if-else) and loops. They also need to learn to feel. Or rather, translate Russian formulations with the words "if", "repeat", "bye", "until then" into conditions and cycles. It's like moving from words to whole sentences. Still, this is the level of small programs.
And then the most interesting - decomposition. A complex task needs to be broken down into small ones, the implementation of each of which takes (preferably) no more than one screen of text. It's like a transition from sentences to whole paragraphs. Do you know how to break your complex thought into paragraphs? (You can't tell from your question....) It
is from such "paragraphs" that your whole story consists. It may be several pages long, or it may be of the "War and Peace" level.

A
arman1231, 2019-03-24
@arman1231

I was in a similar situation, I advise you to solve more problems and read the documentation.
Here is an interesting task for you that does not require special preparation.
Its essence lies in the fact that an array of numbers is given, let's say from 1 to 100.
It is necessary to make it so that the numbers divisible by 3 without a remainder take the values ​​Foo, and the numbers divisible by 5 take the value Bar, and the numbers divisible by 3 and by 5 was Foobar.
My theoretical knowledge of programming was enough to solve it, maybe not quite compactly, but it's better than nothing.
Solution just in case Problem about foobar in JS. How to find the right algorithm?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question