Programming General
Today, after the '
Thursday, June 11, 2009
Morrowind Enemy Health Bar
computing has gained a predominant position in the life of every day, millions of people who put themselves in front of the PC and start writing code ... but is it really so easy to write code to run in those boxes that we call PC.
The history of computing has taught us that over the years the number of rows that make up a program (perhaps it is better to call the application) has grown exponentially, and with it the ability to maintain applications. And the donkey falls here ... those of you who have tried to read code written by others? I am daily having to change the code written by others and the temptation to erase everything and rewrite everything and increasingly strong
... sometimes it is a 'business Naming
variables: it seems trivial but it is not at all! already by the name of a variable you can understand what it does and how it is used. The same applies to the method names ...
Comments: hated by the world of work programmers ;) Very true ... I never found a person who likes to write comments and yet they are all in agreement on these. Personally there is nothing more wrong. Of good comments (which means write poems!) Help maintenance and readability. length methods: I take the view that , also for more complex software, each method should not exceed one hundred lines of code. I'm sure not everyone agrees with this statement, but I challenge anyone to try to understand what a method consists of several hundred lines!
There are certainly many other rules (best pratics) but I only just because they are easy to implement ... (It only takes a bit 'of good will
;) rispettrarle A good reason and also because there are tools (free and commercial) enabling you to create documentation (also cute) from the commented code ... and there seems little!
This blog is light soon with something heavier.
variables: it seems trivial but it is not at all! already by the name of a variable you can understand what it does and how it is used. The same applies to the method names ...
Comments: hated by the world of work programmers ;) Very true ... I never found a person who likes to write comments and yet they are all in agreement on these. Personally there is nothing more wrong. Of good comments (which means write poems!) Help maintenance and readability. length methods: I take the view that , also for more complex software, each method should not exceed one hundred lines of code. I'm sure not everyone agrees with this statement, but I challenge anyone to try to understand what a method consists of several hundred lines!
There are certainly many other rules (best pratics) but I only just because they are easy to implement ... (It only takes a bit 'of good will
;) rispettrarle A good reason and also because there are tools (free and commercial) enabling you to create documentation (also cute) from the commented code ... and there seems little!
This blog is light soon with something heavier.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment