How to write a good code?
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.☺
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....
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
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
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.
Start from little, and try to get the concept for building your coding skills. Practice is the key to good coding.
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.
By gaining experience (not necessarily xp) writing code.
Um.. I guess applying whatever you are learning, as much as you can 😊
Write, and then write again. And study open source solutions.
Your question should be " how to write clean code"
if it were a bad code, no body would use it, would they?
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
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.
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
Only Practice more more
"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.
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/
Code should be readable ,reusable and accurate.
You need to have much practice to write a code.