1. Learn from Experts: One of the best ways to write code is, learn from experts and see how they write code. For example, if you are learning C# programming, practice and pay attention to the code written in books, official documentation, and experts. They usually tend to write good quality code.
2. Code Reviews: Code reviews are another way to write better code where you share your code with others and let others provide feedback, You can also review others code as well. If you are working in a company, peer code review is a good programming practice.
3. Online Trainings. Most online trainings and videos by trainers and even product owners are good quality. Learn from experts. Don't just copy and paste from random writers online. Some website do not have professionals write code.
4. Check Expiry Date. When you Google code samples, some code may be written years ago. Don't just copy and paste any code. Try to see when was it last updated or published. For example, if you search for C# Strings, you may find code that was written in C# 1.0. However, the same code may look different in C# 10.
For experienced developers, here are some tips: https://www.c-sharpcorner.com/article/10-tips-to-become-a-good-programmer/
Also, don't forget, writing quality code is also a practice and require some experience. As long as you are learning it, improving it, and getting better at it. Hope it helps!
Mahesh ChandRank #1 · 393.3K reputationPosted Jul 3, 2022, 1:37 PM EDT
1. Learn from Experts: One of the best ways to write code is, learn from experts and see how they write code. For example, if you are learning C# programming, practice and pay attention to the code written in books, official documentation, and experts. They usually tend to write good quality code.
2. Code Reviews: Code reviews are another way to write better code where you share your code with others and let others provide feedback, You can also review others code as well. If you are working in a company, peer code review is a good programming practice.
3. Online Trainings. Most online trainings and videos by trainers and even product owners are good quality. Learn from experts. Don't just copy and paste from random writers online. Some website do not have professionals write code.
4. Check Expiry Date. When you Google code samples, some code may be written years ago. Don't just copy and paste any code. Try to see when was it last updated or published. For example, if you search for C# Strings, you may find code that was written in C# 1.0. However, the same code may look different in C# 10.
For experienced developers, here are some tips: https://www.c-sharpcorner.com/article/10-tips-to-become-a-good-programmer/
Also, don't forget, writing quality code is also a practice and require some experience. As long as you are learning it, improving it, and getting better at it. Hope it helps!
Cheers!
Sachin SinghRank #66 · 26.2K reputationPosted Jul 3, 2022, 4:17 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 3, 2022, 6:15 AM EDT
Md SarfarajRank #194 · 12.4K reputationPosted Jul 5, 2022, 12:44 AM EDT
Sajeev Hegde37 reputationPosted Jul 12, 2022, 5:02 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts