answersLogoWhite

0

What are the ways to write a cleaner code?

Updated: 8/21/2019
User Avatar

Wiki User

6y ago

Best Answer

Never use a comment to express a concept that can be expressed in code; compilers don't read comments and users may ignore them. Avoid constant integers and "plain" enumerations; prefer enumeration classes. Avoid "naked" pointers; use resource handles and smart pointers. Avoid low-level coding unless absolutely necessary; lift the level of abstraction such that code becomes self-documenting. Generalise code to avoid code duplication, but do so without adding overhead.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the ways to write a cleaner code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are two ways to write 2400?

MMCD = 2400 and that is the accepted way to write it in Roman numerals. You can also write 2400 as 100101100000 in Binary code.


What is the cheat code to get a plane in GTA vice city?

its easy write down flying ways then you will get a helicopter


How do you write Amy in Latin?

is there different ways to write amy? is there different ways to write amy?


Simple ways to get rid of stomach acidity?

drink kitchen cleaner


Where you do you write membership codes in franktown?

You can write it in store and write the code in enter special code


How can you Write the number 367896 as many different ways as you can?

you can write that answer a thousand million ways!


What does it mean to evaluate cobol?

The word evaluate in the programming language COBOL can be used to replace a nested if statement. Instead of long statement evaluate allows one to shorten the coding required and write cleaner code.


How manys ways can you write 100?

You can write 100 an infinite number of ways; as fractions, multiples, notations, and others.


What would write on the zip code?

the postal code.


What are other ways to write one billion?

Ways to write one billion is: one billion,1 billion,1,000,000,000,you can write it in roman numeral several different ways,with tally marks, etc.


When you write on envelopes do you write your post code or the post code where you are sending it to?

You write the post code of the address that you are sending the letter too, otherwise the postman won't know where to deliver your letter.


How do you spell write in different ways?

write, right, wright