I am beginner but want to learn how to write good code from the beginning
Loading
I am beginner but want to learn how to write good code from the beginning
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Jul 3, 2022, 5:37 PM
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!
Sajeev HegdePosted Jul 12, 2022, 9:02 AM
Md SarfarajPosted Jul 5, 2022, 4:44 AM
Rajanikant HawaldarPosted Jul 3, 2022, 10:15 AM
Sachin SinghPosted Jul 3, 2022, 8:17 AM