Posted on December 20, 2007 by awmanoj
I’ve been lately reading The Pragmatic Programmer by Andrew Hunt & David Thomas. Been onto a chapter about decoupling requirement in the development of software, I thought of putting few lines on the weblog. Orthogonality is derived originally from Geometry where it is meant to illustrate two lines which meet at right angles and hence [...]
Filed under: C++, technical | Tagged: Programming, Software development, design, orthogonality, best practises, aspect, AOP, modularity | Leave a Comment »
Posted on February 14, 2007 by awmanoj
What is the difference between returning from main with some exit code and calling exit giving the exit code as parameter ?
Basically the difference between following programs !
//ret.c
int main()
{
return 43;
}
//exit.c
int main()
{
exit(43);
}
well, there are three ways for the processes to exit: -
1. Voluntary exit (implicit)
2. Voluntary exit (explicit)
3. Involunatary exit
Voluntary exit can be implicit [...]
Filed under: C++, Programming, linux | 1 Comment »
Posted on February 13, 2007 by awmanoj
A nice question, I came through while being in an interview. Well, so how do you make sure that the object can be instantiated only on heap and not on stack ? so, if you are of the kind who don’t think without being given the use and purpose .. well the purpose is that [...]
Filed under: C++, Programming | Leave a Comment »