E
E
eiqycwci2017-10-17 00:19:52
IT education
eiqycwci, 2017-10-17 00:19:52

How to stop coding and start programming?

I have a little knowledge of several programming languages ​​(js, java, php, c#...) and I can perform the necessary task in these languages, but the quality of the code is simply terrible. If you need to continue some of my old, small project, then I would rather rewrite it from scratch than figure out my own code. How can you improve the quality of the code, what books to read, what resources to visit?

Answer the question

In order to leave comments, you need to log in

14 answer(s)
A
Andrey Burov, 2017-10-17
@BuriK666

If your old code looks terrible to you, then you are developing. Sound the alarm when you start to "perfectly" write.

�
âš¡ Kotobotov âš¡, 2017-10-17
@angrySCV

Start reading other people's code more, especially various popular libraries, participate in open source projects.

D
darksladen, 2017-10-17
@darksladen

Code more and you will code more!
And you need to start by realizing that you do not know the languages ​​you listed. Language is not just syntax. Choose the technology you need and go deeper .. And this is all crap that you write "Hello world" there. Let's say you know js well, but in react you can be a coder, because you don't know all its subtleties and tricks.

T
tex0, 2017-10-17
@tex0

If you need to continue some of my old, small project, then I would rather rewrite it from scratch than figure out my own code

well, at least read about:
SOLID
design patterns

P
Ptolemy_master, 2017-10-17
@Ptolemy_master

Fowler "Refactoring. Improving existing code"

F
Fat Lorrie, 2017-10-17
@Free_ze

If you need to continue some of my old, small project, then I would rather rewrite it from scratch than figure out my own code.

This must be fought. The goal is to learn how to read code fluently. That is, to see algorithms behind listings and features of languages. When a novice programmer reads, he develops a taste for code: he begins to distinguish good understandable code from unreadable mess, how and by what means to control expressiveness.
Starting to practice: don’t immediately jump into the code without an idea, think about the connections, decompose the tasks into smaller ones. Read about SOLID and try to follow these rules. When you try to write abstract, modular code (perhaps even with tests), it will become very easy to refactor it and your healthy perfectionism will begin to bring pleasure, and not the discouragement of "butterfly effects".
Read / watch "Clean code", look for developer blogs, some small projects on github. The red carpet (in terms of the show "Clever and clever") is to find an open-source project and try to fix a bug / add the required feature there. Of course it will be difficult. But if you can do it, then it's +1000 experience.

M
Maxim Timofeev, 2017-10-17
@webinar

1. Read, understand and accept code standards
2. Document code
3. Use OOP and do it right, re-read everything about OOP accordingly

D
Dmitry Esin, 2017-10-17
@SunDeath

hexlet.io

A
Andrey Ezhgurov, 2017-10-27
@eandr_67

Very well, you know languages. But have you read at least one programming textbook in your life? Not a fashionable language, namely programming ?
How well are you familiar with the concept of structured programming? The question lists 4 languages ​​with C-like syntax. Therefore, they are entirely built on side effects and, in principle, are unsuitable for studying this concept. In order not to fall into frank shit code when using C-like syntax, self-discipline is needed, which these languages ​​are not able to instill.
Try to start with Wirth's textbook: "Aglorhythms and Data Structures", edition 2010 and newer.

E
evgeniy_lm, 2017-10-17
@evgeniy_lm

Programming is a solution to a given problem using a programming language.
Coding is writing code. Sometimes they code as part of solving a task (according to a predetermined algorithm), and sometimes they just stupidly write code, as a rule, the second option does not bring any result, but sometimes a miracle happens and in this case, the shit coder thinks he is a great programmer.
In short, in programming, the main thing is the algorithm for solving the task, and in coding, the main thing is writing code. Is there an algorithm or not is the tenth thing

D
Darth_Sidius, 2017-10-17
@Darth_Sidius

Recommended reading "Clean Code" by Robert Martin

E
Evgeniy Kvasyuk, 2017-10-17
@EvgeniyKvasyuk

Teamwork is needed with the implemented practice of strict cross-review of the code for compliance with the rules adopted by the team, which should be quite strict

D
devalone, 2017-10-17
@devalone

Write more code, do your own projects, read other people's code, try to write better, everything comes with experience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question