When we think of a building what comes in our mind is a four walled structure comprising of Master bedroom, hall, kitchen, balcony and so on...
But do we miss to place the drainage system right! ?
The answer is NO! We don't. Its crucial for a building to have its drain gets out through.. and it is never missed, its one of the serious things thought in planning of the structure.
Same is the case with the Drain in a software application. When it is built, an atmost care has to be taken as to how the inside drain is washed out.
What I mean by drainage are few simple things, like handling exceptions or returning an error code. It can even be making proper use of functions returning Success/Failure.
I have seen and interacted with many Developers who don't pay much attention to this crucial stuff, and end up implementing a good algorithm with a BAD drainage.
It has to be planned well before getting your hands on coding...
The way exceptions will be handled, how they will be handled,
which Abstraction will handle which exceptions.
Who will return an error code,
what error code,
to whome,
wht will be done when it is received.
All these questions have to be answered while designing a piece of software.
I know this may sound very amature and you might say that this all care is taken .... but NO! very rarely I have come across such application where I find a good implementation of this stuff... blame it on my tiny industry experience.... but thats a fact at my end.
And .....it has taught me well enough to take care of DrAiN in MY Building...
Viral post
6 years ago
1 comment:
idhar bhi star :) - sahi hai
and u r rite abt the drain thing - its the most neglected aspect, and historically new languages that have been formulated have taken special to handle this
Post a Comment