January 2019
Beginner to intermediate
776 pages
19h 58m
English
This is one of the most important aspects of writing a good program. A program needs to be written in such a way that even a layman or a first-time reader of the program should be able to interpret the basics of what is happening.
Variables need to be declared properly so that each variable makes it clear what it stores:
x="India"y="France"
could have been written better like this:
asiancountry="India"europecountry="France"
Here's another example:
x=5y=2
It could be written like this:
biggernumber=5smallernumber=2
As we can see in the preceding example, if we write a two- or three-line program, we can easily declare the variables in a random way, but things become much more complex, even for a programmer writing their ...
Read now
Unlock full access