Skip to main content

Posts

Showing posts with the label Programming

How to write good code?

How To Write Good Code? At some point of time we all hate reading other people code. Am I Right? Because we think it's is not human readable, not debugging friendly, not clear comments, no clean log statements, clumsy code, not proper naming patterns followed, irregular function calls, repetitive lines of code, no OOPS concepts is utilized, etc... ✓ But if we ask the questions ourselves, are we writing really a good code? ✓ What if other developer think our code is bad? Ever thought about this? If not, let's start from today to see if we are really writing good code. So what is good code?  📑 1. Proper naming patterns should be followed. 2. Proper comments section can be added inline . 3. Avoid repetitive lines of code. 4. Make modular in nature. 5. Avoid writing big lines of code to just show, you know that programming language better than others. 6. Avoid using complex patterns, if simple 'if-else' can solve the problem then why to go for complex '...