How to improve your code: tips and reflections

In my experience I have learned, with difficulty and by imposing humility on my pride, that often one’s code can be improved.

There are several ways to achieve the same result, some are much better, others are more context-appropriate.

Some advices…


This content originally appeared on DEV Community and was authored by Tamer

In my experience I have learned, with difficulty and by imposing humility on my pride, that often one's code can be improved.

There are several ways to achieve the same result, some are much better, others are more context-appropriate.

Some advices:

  • Analyze the context and purpose

  • Take your time for analysis

  • It can help you write down on paper or represent the situation schematically

  • You have to be far-sighted in the solution, it will have to work even in 10 years with new technologies

  • Dividi et impera: granulate your code, simplify it into sub-tasks

  • Take breaks where you think about other things and then look at what you have written critically: "How or where can I improve?"

  • Compare yourself to other devs! When I am stuck, by exposing the problem I find the solution or I am provided with points of reflection.

  • Details matters: it is precisely the details that give that sense of quality; without these the evaluation could be good or very good, while paying attention to the details the evaluation will be excellent.


This content originally appeared on DEV Community and was authored by Tamer


Print Share Comment Cite Upload Translate Updates
APA

Tamer | Sciencx (2021-04-09T09:40:07+00:00) How to improve your code: tips and reflections. Retrieved from https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/

MLA
" » How to improve your code: tips and reflections." Tamer | Sciencx - Friday April 9, 2021, https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/
HARVARD
Tamer | Sciencx Friday April 9, 2021 » How to improve your code: tips and reflections., viewed ,<https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/>
VANCOUVER
Tamer | Sciencx - » How to improve your code: tips and reflections. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/
CHICAGO
" » How to improve your code: tips and reflections." Tamer | Sciencx - Accessed . https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/
IEEE
" » How to improve your code: tips and reflections." Tamer | Sciencx [Online]. Available: https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/. [Accessed: ]
rf:citation
» How to improve your code: tips and reflections | Tamer | Sciencx | https://www.scien.cx/2021/04/09/how-to-improve-your-code-tips-and-reflections/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.