A
A
Alexander2015-08-17 14:37:11
Python
Alexander, 2015-08-17 14:37:11

What is the best way to study programming?

For several years, I have been regularly faced with the tasks of writing certain programs / scripts, I even spent 2 years as a junior on the front-end (and not at all a lot of back-ends). Most often I use either python or js, sometimes C, well, markup - html, css / less.
For almost a year now, I have been trying to make scripts so that someone else can use them besides me, as well as improve them (do not make them disposable because all tasks are one and the same, but spend time improving existing ones). Unfortunately, the quality of my code turns out to be disgusting, I tried to read books about code organization - Lutz on programming in python, something about organizing gui, etc., on js - I don’t remember what. But every time I didn't write well. To support someone organized code - I can create my own adequate one, it doesn’t work. This causes problems in the development of what I do.
Advise how to develop further, can somehow organize the process or / and what to read or what to study?
(Now the thought is going around in my head to switch to more strict languages, like java or c ++, to catch the essence. But I don’t know how much effort will be justified, it seems that everything will remain at the same level.)
Thank you.

Answer the question

In order to leave comments, you need to log in

9 answer(s)
A
Alexander Korablev, 2015-08-17
@saga111a

Need feedback from experienced people. You can get it, as I see it, in two ways:
In both cases, the quality of the code will increase very quickly.
Books are a long process. And it’s not a fact that it will turn out to somehow improve your code at all.

S
Saboteur, 2015-08-17
@saboteur_kiev

"Unfortunately the quality of my code is disgusting"
How do you define this?
If you look at your old scripts and see shitty code there, it means that you have grown as a specialist and see errors in your old works. That is, everything goes the way - continue in the same spirit, grow further.
But if you are writing a script right now and you immediately see shitty code in it, then this is already a problem ...

P
Puma Thailand, 2015-08-17
@opium

work in a team with code conventions, you won’t get a salary for one month, vtlroy, but there you will want to eat and you will write well.

G
globuser, 2015-08-19
@globuzer

We need good mentors, or at least a group of professional colleagues who constantly prompt and point out mistakes. Work together on a number of projects. Also, for learning, read other people's codes from github and blogs of various programmers, read forums (at least stackoverflow, etc., English is better). Study programming standards, programming styles, try to write comments correctly, maintain a correct project branch.
Well, a lot of experience and practice, plus work on mistakes - there will be a result. After all, we can say that whoever does not make mistakes is either a super cool (this is not for you yet), or does nothing.
So study, try, make mistakes, understand where you are wrong, study again, practice and constantly improve yourself. Participation in various hackathons, conferences, discussions, events of kodo-hackers and people from the IT industry will be a very plus

V
Vladimir Martyanov, 2015-08-17
@vilgeforce

If you want to achieve ease of code reuse, you need to look towards breaking the task into parts. Then arrange the parts into procedures, create an interface for them that is easy to reuse. Pay special attention to the search for common places in different tasks, they are the first candidates for inclusion in functions.

E
Elizaveta Borisova, 2015-08-17
@Elizaveta

The organization of the code, on average, does not depend on the language, it is a general skill. Perhaps your brain is just not used to architectural tasks, it needs to be trained. I recommend open source and read the source.

@
@coodan, 2015-08-19
_

I join, if you are dissatisfied with the quality of your code and think about how to improve it, then it will improve. He's already improving.
I also agree with the fact that at your stage, it seems worth reading a lot of good source codes and looking at how they are done and for what. Plus, fill your eyes with how good code in your language should look in general. Develop an aesthetic sense.

L
LittleFatNinja, 2015-08-17
@LittleFatNinja

if you are from Kiev and want to write normal code, then go to devclub.com
there will be a cool base on c and c ++
then js will not be a problem

E
Evgeny Vitoldovich Volosatov, 2015-08-28
@FFormula

Personally, I prefer a hands-on approach to learning a programming language. I Developed my own method of pumping programming skills, in C # C Sharp. There is little theory in it, but a lot of practice: console tasks with automatic checking and video tutorials on creating complete game programs. For beginners, that's it, although this method, of course, does not exclude the need for a theoretical study of the material. According to my observations, the study of theory, with some practical experience, is an order of magnitude more efficient. For those who are interested, the address of the VideoSharp.info project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question