N
N
NIKOOV2018-04-25 05:19:04
Programming
NIKOOV, 2018-04-25 05:19:04

How to deal with difficult tasks?

Hi guys, I'm 17 years old and I started programming about a year ago. The question is this: quite often I have tasks in front of me, the essence of which is quite well absorbed in my head, but there is a stupor when it comes to programming. Can anyone advise how to break the task into subtasks and build at least some kind of algorithm or do something else so that the psychological part is relieved of the load and there is an understanding of what and how to do. I really hope that the question is clear, I will be very grateful for your answers :)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Lone Ice, 2018-04-25
@daemonhk

Break it down into simple ones and study each one separately. True, at the same time, you need a mentor who will tell you how and what and will save you from asking stupid questions on the toaster and stackoverflow) Any complex system is built from small ones. For example, I used to hate typing forms and plugging them in until I did it 100,500 times.

F
FreeBa, 2018-04-25
@FreeBa

There is exactly one way to achieve Zen in programming. It is enclosed in the manifesto . All other ways and methods of teaching are ineffective.

I
Ivan, 2018-05-03
@kissed

Books are all well and good, but without practice you won't get far. I highly recommend participating in programming competitions, one of our best platforms is Codeforces . Contests are held there several times a week, then they post analysis of problems. You can train virtually already at past contests, or just on individual tasks.
Everything is pumped over: the knowledge of syntax, the standard library of the language, data structures, algorithms, and the ability to quickly evaluate, understand, decompose, and solve the task.
IMHO, for a person who calls himself a programmer, this thing is required. Like brushing your teeth.

A
ApeCoder, 2018-05-13
@ApeCoder

There are different ways to divide tasks into parts - functions, objects, rules, and so on.
I would recommend to start thinking about how you yourself think about the task in your head - what terms the invented solution consists of. Then write it down on paper or draw a diagram. Try to find means in the programming language to express this (conditionally, nouns are candidates for variables and data types, verbs are candidates for functions and methods).
In order to do this successfully, it's worth looking at different ways of formalizing - object-oriented programming, functional programming, logic programming, contract programming and writing in languages ​​that vividly represent it.
Think about what pieces the solution will consist of, which of them exactly depend on each other, and which ones definitely do not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question