Saturday, February 22, 2020

Refactoring Essay Example | Topics and Well Written Essays - 500 words

Refactoring - Essay Example This is where refactoring will come in handy. Refactoring is a method of altering the code of a software in various ways so it can easily be understood and the cost of modifying the code will be minimal. Refactoring does not change the observable behavior of the program. All changes are done internally just for the purpose of making the code more flexible and reusable. Maintaining the program's observable behavior is crucial to refactoring. Automated testing for each aspect of the software can be done to ensure the consistency of the observable behavior of the program. Refactoring reduces the degradation of an application over time by helping the developers easily maintain it. It is like cleaning up the program's code. It also makes the program easier to understand in the long run. Since one of the principles of refactoring is for it to be done in small steps, it can help the developer find bugs after testing each small step. And since you can easily find bugs, the time spent fixing them would be lesser. Thus, it will allow for more additional features to be added in the program. Refactoring, however, may not be applicable to all program codes. If a code seems to be a total mess, really difficult to understand and has a lot of bugs, then it might be better to rewrite the whole thing than just refactoring it.

Thursday, February 6, 2020

Case Study #2 Example | Topics and Well Written Essays - 1250 words

#2 - Case Study Example Gasoline is most commonly used as a fuel in vehicles which makes it one of the most important commodities in human life today. One of the characteristics of a necessary item is that its price should stay within the affordable limits of the general public, so that they are not deprived from its usage under any circumstances. But, gasoline price is found not to adhere to this rule and had often been subjected to wide variations, a consequence of similar variations in oil prices. The impact of such price movements is more intensely felt in the Western economies where almost every household owns a car. The following diagram is evidence of the wide fluctuations in gasoline prices in USA over five years (2004-2008). In fact, the mean and standard deviations of the gasoline prices, which are 251.38 (cents per gallon) and 62.15, over the five year span being considered, are also evident of wide variations in the same. The present study tries to investigate the causes and effects of wide fluctuations in gasoline prices in context of the US economy. USA being one of the highest GDP earning nation in the world and also the one with the highest per capita income, is a good ground for the study since oil has become more like a mode of daily life for the Americans. Hence, any fluctuations in the price level of the same, will have a widespread impact on the lifestyle of the nationals. The research outcome will help the residents of the country to get more aware of the possible impact of a rising oil price and thus they will be in a position to anticipate beforehand how they might be affected when subjected to such price fluctuations, and thus shield themselves accordingly. The fluctuations in oil prices and hence that of gasoline could be owed to a large proportion of oil being produced in the Middle East nations which, having formed an organization in themselves (OPEC) enjoy almost a monopoly power over the price movements of the