The Implications of Modern Day Software Development Abstractions

Posted by Andreas Grech on Stack Overflow See other posts from Stack Overflow or by Andreas Grech
Published on 2010-04-07T15:34:53Z Indexed on 2010/04/07 15:53 UTC
Read the original article Hit count: 259

I am currently doing a dissertation about the implications or dangers that today's software development practices or teachings may have on the long term effects of programming.

Just to make it clear: I am not attacking the use abstractions in programming. Every programmer knows that abstractions are the bases for modularity.

What I want to investigate with this dissertation are the positive and negative effects abstractions can have in software development. As regards the positive, I am sure that I can find many sources that can confirm this. But what about the negative effects of abstractions? Do you have any stories to share that talk about when certain abstractions failed on you?

The main concern is that many programmers today are programming against abstractions without having the faintest idea of what the abstraction is doing under-the-covers. This may very well lead to bugs and bad design. So, in you're opinion, how important is it that programmers actually know what is going below the abstractions?

Taking a simple example from Joel's Back to Basics, C's strcat:

void strcat( char* dest, char* src )
{
     while (*dest) dest++;
     while (*dest++ = *src++);
}

The above function hosts the issue that if you are doing string concatenation, the function is always starting from the beginning of the dest pointer to find the null terminator character, whereas if you write the function as follows, you will return a pointer to where the concatenated string is, which in turn allows you to pass this new pointer to the concatenation function as the *dest parameter:

char* mystrcat( char* dest, char* src )
{
     while (*dest) dest++;
     while (*dest++ = *src++);
     return --dest;
}

Now this is obviously a very simple as regards abstractions, but it is the same concept I shall be investigating.

Finally, what do you think about the issue that schools are preferring to teach Java instead of C and Lisp ?

Can you please give your opinions and your says as regards this subject?

Thank you for your time and I appreciate every comment.

© Stack Overflow or respective owner

Related posts about abstraction

Related posts about language-agnostic