Simple vs Complex (but performance efficient) solution - which one to choose and when?

Posted by ManojGumber on Programmers See other posts from Programmers or by ManojGumber
Published on 2012-09-14T13:55:19Z Indexed on 2012/09/14 15:48 UTC
Read the original article Hit count: 341

I have been programming for a couple of years and have often found myself at a dilemma.

There are two solutions -

  • one is simple one i.e. simple approach, easier to understand and maintain. It involves some redundancy, some extra work (extra IO, extra processing) and therefore is not the most optimal solution.
  • but other uses a complex approach,difficult to implement, often involving interaction between lot of modules and is a performance efficient solution.

Which solution should I strive for when I do not have hard performance SLA to meet and even the simple solution can meet the performance SLA? I have felt disdain among my fellow developers for simple solution.

Is it good practice to come up with most optimal complex solution if your performance SLA can be met by a simple solution?

© Programmers or respective owner

Related posts about design

Related posts about programming-practices