This link has been bookmarked by 4 people . It was first bookmarked on 11 Jun 2008, by Charles Landon.
-
20 Apr 09
-
14 Jun 08
Mairon CroesFrom site: "Since the ultimate constraint in many application development projects is money and time, there are several other things to consider in gauging the efficiency of code that you may not have thought about: applicability, reproducibility, and maintainability."
-
By asking the question and thinking about the application you realize an important client requirement is smoothest scrolling of list-based components at all costs. Deferred instantiation takes away from this requirement since the product tiles get instantiated when they first come into view as the user scrolls through the list which in turn causes slight delays the first time a product is shown. These slight delays take away from the smoothness of the scrolling which pretty much lets you know that this code should not be implemented in your application.
-
Reading that some code technique is an efficient optimization is a lot different than knowing for a fact that the technique is an efficient optimization. When dealing with performance and memory footprint optimizations you need to make sure that any efficient code that you have discovered and deem applicable can be reproduced within your application with full confidence that the technique is truly an efficient optimization.
-
If the requirements of your application allow for a less efficient code that is easier to read and debug while keeping end users satisfied with performance and memory footprint, then opt for the less efficient code.
-
In most applications, readability is king. Although code may have to suffer slightly on efficiency if its makes it more readable and maintainable while still meeting the requirements of stakeholders, you and other future maintenance developers will benefit by saving time and headache when it comes time to debug or add new features.
-
-
11 Jun 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.