+ 25

How to write a good code?

28th Jul 2019, 8:42 AM
Arjay Orante
Arjay Orante - avatar
26 Answers
+ 20
Arjay Orante Actually it is totally difficult to think how shall we code😂. You know it is always happen to me. Then I find some practice names in google then I'm starting coding. So, don't be lazy to code . If you can't think which things to code,just find some projects in google but don't copy paste them. Code in your own.☺
29th Jul 2019, 5:03 AM
Aung Thiha
Aung Thiha - avatar
+ 12
Practise Practise and Practise because remember your first code is totally different from your 100 th code so try as much mistakes you can do and improve slowly slowly....
28th Jul 2019, 5:07 PM
Sayyam Jain
Sayyam Jain - avatar
+ 10
As Aaron said, practicing is the best way to write better code. Concerning the reference to reading experienced programmers' products, you can find quality code in popular github repositories
28th Jul 2019, 9:15 AM
Ventura 🐝🌵
Ventura 🐝🌵 - avatar
+ 9
Arjay Orante I recommend you to use the search bar before posting a question to avoid duplicate copies. Here's your answer : https://www.sololearn.com/discuss/1856110/?ref=app
28th Jul 2019, 2:18 PM
Manoj - avatar
+ 8
Coding is really learning by doing. So I'd recommend you to start coding your own small projects. Also it can be helpful to look at how more experienced programmers solved a certain problem in their codes.
28th Jul 2019, 8:53 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 7
Start from little, and try to get the concept for building your coding skills. Practice is the key to good coding.
28th Jul 2019, 10:38 PM
Ruttaba Nawaz
Ruttaba Nawaz - avatar
+ 7
the only way out is to become the code it self.relate it to your inner conscouceness(put in your all in learning) that's when your code becomes unique and beutiful.
28th Jul 2019, 11:27 PM
Nkwain clovert
Nkwain clovert - avatar
+ 7
By gaining experience (not necessarily xp) writing code.
29th Jul 2019, 1:15 AM
Sonic - avatar
+ 7
Um.. I guess applying whatever you are learning, as much as you can 😊
3rd Aug 2019, 5:34 PM
+ 6
Write, and then write again. And study open source solutions.
29th Jul 2019, 6:04 AM
Paolo De Nictolis
Paolo De Nictolis - avatar
+ 6
Your question should be " how to write clean code"
29th Jul 2019, 4:28 PM
Ayushi Gujarati
Ayushi Gujarati - avatar
+ 5
if it were a bad code, no body would use it, would they?
29th Jul 2019, 2:50 AM
slick - avatar
+ 5
Nice question I want to say If you want to write a good code So you have to learn languages with focus And then apply it To make a code And practice is the best way to improve yourself
29th Jul 2019, 6:11 AM
Siddharth MaLhoTra( InActiVe )
Siddharth MaLhoTra( InActiVe ) - avatar
+ 4
First you need to learn the basics of coding. Try coding something (i recommend you start little) If you fail, find the source of your mistake (source.error) Try coding something similar (this will help you navigate through your earlier mistake) They you can take on tougher challenges. Remember to stick to a routine of constant practice and always ask questions.
29th Jul 2019, 12:41 AM
Chinedu Pascal
Chinedu Pascal - avatar
+ 4
Master one programming language and be perfect 👌 and when you are coding make sure you make no mistakes. And if u dont understand anything go to a brother for him or her to teach you Like my comment
29th Jul 2019, 1:26 PM
Isaac Jordan
Isaac Jordan - avatar
+ 4
Only Practice more more
29th Jul 2019, 5:14 PM
Ayoub Khan
Ayoub Khan - avatar
+ 3
"Think twice code once". Coding is not only about logic but how to implement that logic with minimum process and memory. Reuse of resources make it small as possible. Comments are beneficial for understanding the flow.
29th Jul 2019, 6:08 PM
Jayesh Vavadiya🇮🇳
+ 3
Arjay Orante Here's how YOU can start writing clean code. ★Use Descriptive Names. What are variables, classes, and functions? ... ★Give Each Class/Function One Purpose. ... ★Delete Unnecessary Code. ... ★Readability > Cleverness. ... ★Keep a Consistent Coding Style. ... ★Choose the Right Architecture. ... ★Master the Language's Idioms. ... ★Study the Code of Masters...... https://www.makeuseof.com/tag/10-tips-writing-cleaner-better-code/
30th Jul 2019, 6:51 AM
Asmit joy
Asmit joy - avatar
+ 2
Code should be readable ,reusable and accurate.
30th Jul 2019, 4:26 PM
Dexter - avatar
+ 2
You need to have much practice to write a code.
31st Jul 2019, 12:04 PM
Erion Gogu
Erion Gogu - avatar