It is common not only among programmers from any master ( hairdresser, plumber, builder ) you can hear the phrase: ... ...
If you want to cry so I suggest keep -. Come, drink a cup of tea, consider. Nothing happens just like that. With high probability we can say that until you have programmed the code are not fools. Most likely, such as the average programmer like you.
If your first glance you think you could make it easier / better, remember:.
The code was written, probably, a few years ago. Programming is not a short time:.
Maybe in those days it was so decided to write.
There was no such API, which could be made much simpler.
There was a syntax that allows to express the idea of smaller.
You do not know the circumstances that accompanied its writing:.
Asked to do very quickly, if only to work.
They wanted to see ... And then any other circumstances, and forget about the code of.
Originally it was done well, and then changed the code many times by different programmers, preaching different approaches to writing code that there are mixed even his.
Personal circumstances:.
The programmer had left, he was ...
Do not give the prize, paid little.
And, of course, are the options relating directly to the original phrase: ...
Not offered money for a job and was hired to work a weak programmer.
Hired to pull.
We hired a smart guy, but a great lover of experimenting.
So do not get smart and think about it more, why it is done well, and not otherwise. Most likely, then you will notice that things are not so bad, and the code is better not to touch.
No comments:
Post a Comment