Ideas of improvement
As I was writing the above three steps, an explosion of ideas took place in my head. Although some of the ideas were existing prior to this post, many new came to mind. When I came up with the idea of the program, I wanted to make it come with a GUI, but due to complexity I'll start without GUI.- Time horizon is set by a date instead of a number of years.
- Output can be saved as csv.
- Output can be saved to a database.
- Calculate future value based on return on equity.
- Allow user to enter a stock ticker and retrieve data automatically (API or scraping).
- Growth rate calculated on historical data instead of arbitrary.
- Make a GUI for the program.
- Calculation with growth rate.
- Checking company's financial health from data sheet.
Some thoughts
I find it challenging to get a picture of which methods should be a part of which class. As I've understood it, it's good practise to divide the code into methods can classes depending on how many times they are supposed to be used and also if they are program specific or if they can be used in other programs aswell. The code can be rearranged in almost indefinite different ways, but there should be some ways that are better than other. I hope to learn this as my Python experience grows.At the moment, the data sheet is scraped into a list, but maybe I should use a tuple instead? The data sheet info shouldn't be modified in the program.
/Ludvig
No comments:
Post a Comment