G
G
godlikenich2017-04-15 23:26:37
Python
godlikenich, 2017-04-15 23:26:37

What is the right approach to learning programming?

I am studying programming (I am digging towards backend development) and the question became interesting, how to study PL correctly? For example, I learned the basic syntax of python (I had a bit of experience in java), I would like to learn django, I started repeating all the examples, but I don’t know how to work with the database directly (mysql) and django does everything for me. How to be? ? Where is the line between code copy paste and learning by doing?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Artamonov, 2017-04-15
@godlikenich

option 1:
1. take a task
2. look for a solution to this problem in the right language
3. copy-paste the code
4. see the result - everything works
5. analyze the code - what, how and why is done in it
when you understand what, how and why is done, then you will be able to independently use code sections, functions, to solve other problems
option 2
1. take a book
2. read
3. follow examples along the way
4. try to understand the code
further according to the scheme described above
, I think, from these options it is clear that on your stage is not the main thing to find the right approach right away - the main thing is just to perform different tasks, disassemble the code and think a lot

B
Bjornie, 2017-04-15
@Bjornie

Where is the line between code copy paste and learning by doing?
The edge is just there when you need to open the editor / console yourself and start writing _something_. This is where the practice begins, referring to the documentation, reading dozens of topics on Stackoverflow, asking questions on the toaster, trying to understand the problems, asking "how to" questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question