Giter VIP home page Giter VIP logo

stock_analysis's Introduction

Stock Analysis

Overview of Project

The purpose of this project was to refactor the analysis of the data provide by Steve, which would make it more presentable and maintainable, without altering the original functions of the code.

Results

Refactoring has allowed elements of the project to run faster and therefore increase its user efficacity. The time taken to initiate the analysis for 2017 and 2018 has been significantly reduced and the final code has been made user friendly as opposed to the original one.

image 2017 Analysis

In 2017, the stocks mostly generated a positive return, with DQ having the highest Return Rate. Only TERP generated a negative return.

image 2018 Analysis

In 2018, the situation changed and most stocks were listed as red, meaning that their Rate of Return was negative. Only ERPH and RUN had positive returns. The negative Rate of Return could be explained by headlines and events affecting a company's stocks.

Advantages and Disadvantages of Code Refactoring

Advantages

Code refactoring has many advantages and disadvantages. It is quite advantageous to maintain a code clean and it becomes easy to understand, as refactoring helps to make the program run faster and identify possible bugs. It is also important in avoiding duplicate codes and it can help another viewer/developer understand the code by facilitating its readability. Lastly, refactoring organizes codes to make different parts of the features manageable and decrease its complexity.

Disadvantages

The main disadvantage of refactoring is the time it takes to achieve it, as an estimation to complete different processes will vary according to the complexity of projects. If the one conducting the refactoring is different from the initial developer, the code could be changed, and this could alter the original project. In addition, taking too many shortcuts to refactor could prove difficult in finding an appropriate direction for the code.

Advantages and Disadvantages of the Original and Refactored VBA Script

The original VBA script could be described as advantageous because the steps to run the codes were organized adequately and necessary comments were provided. However, a disadvantage could be that the steps were too lengthy and following the progression of the code became difficult as the code evolved and increased in complexity.

In contrast, refactoring was useful in achieving a simplified version of the original VBA script, and making it more presentable. The refactored code did not provide as many details as the original code, and it added steps and codes that could increase the possibility of creating bugs and of loosing the direction of the project.

stock_analysis's People

Contributors

aryanakh7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.