Paresh Suthar's Radio Weblog
And that's all I have to say about that - Forrest Gump






Subscribe to "Paresh Suthar's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Friday, January 17, 2003
 

Convenience vs. Flexibility

Having recently been involved in a series of design reviews for different API projects, I have come to embrace the following belief:

Every step that is taken towards providing convenience in an API design is a step taken away from providing flexibility.

Now I'm not saying providing convenience is always a bad thing, nor am I saying that providing flexibility is always a good thing.  A good example of when to lean towards convenience would be the creation of a helper function that implements code that, if the function didn't exist, would have to be written over and over again.  A bad example of when to lean towards convenience would be the modification of generic functionality to meet a specific use case, that prevents the same functionality from being used for a different use case.


11:02:29 AM    comment []


Click here to visit the Radio UserLand website. © Copyright 2005 Paresh Suthar.
Last update: 8/19/2005; 3:23:28 PM.
This theme is based on the SoundWaves (blue) Manila theme.
January 2003
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Dec   Feb