---
title: "Coding Technique"  
description: "Discuss about the coding technique. How to design the code in programming language. like kiss, dry, etc."  
author: "Ravi Vishwakarma"  
published: 2021-07-01  
canonical: https://www.mindstick.com/articles/327163/coding-technique  
category: "java"  
tags: ["java"]  
reading_time: 2 minutes  

---

# Coding Technique

## Coding Technique

## KISS (Keep it simple stupid)

The first and most basic tip is to keep it as write simple code in programing because any [debugging](https://www.mindstick.com/blog/393/javascript-debugging) process easily maintain the code.

## DRY (Don’t repeat yourself)

This coding technique is aimed at reducing the repetition of information. Every piece of [knowledge](https://yourviews.mindstick.com/story/4914/6-ancient-indian-universities-that-were-centers-of-knowledge) or logic must have single representation with in system.

**Use Proper [Naming Convention](https://www.mindstick.com/articles/23223/naming-convention-or-coding-standard)**

Using a proper naming convention is most important in coding. Any other coders use the naming convention for long time in coding. In coding we declare [variables](https://www.mindstick.com/forum/34626/global-variables-superglobals), methods, arrays, etc. Then use proper naming convention.

## Comments are for winners

Comments are most important in coding. Because we declare are variables and methods in coding. If we leave the company then next coder doesn’t know what is written if we write the comment then future coder read line and work.

## Small (see, even the headline is tinny)

Writing 10000 line of code is not better coding but reducing the 10000 line of code to something smaller without changing the changing output. Do not repeat code and use [programming](https://www.mindstick.com/articles/65137/what-is-python-programming) tools such as [functions](https://www.mindstick.com/forum/161928/explain-the-python-functions-with-explanation) and objects.

## Test

Running into bugs in [your code](https://answers.mindstick.com/qa/35617/how-do-you-make-sure-that-your-code-is-both-safe-and-fast) it is frustrating. To reduce the situation test your code at many more time. This technique more reliable for running code.

## Play with code

In programing many time occur an error or [exception](https://www.mindstick.com/articles/1824/objective-c-exception-handling) then [developer](https://www.mindstick.com/articles/157260/variation-between-web-designer-and-web-developer) are frustrate but developer doesn’t frustrate with code. He should play with code and handing the error and exception.

\

---

Original Source: https://www.mindstick.com/articles/327163/coding-technique

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
