Skip to content

Moving away from the old code

Tim edited this page Nov 20, 2019 · 2 revisions

The grass is always greener on the other side. I've seen the light that is object-oriented programming.

I'm proud to admit that the original code I wrote is terrible. The first draft of everything sucks. It's time to move away from the needlessly complex process such as the following process to optimize a portfolio.

That is all just to optimize the portfolio. And it requires knowing when and where to manually enter the necessary values. While the process is perfectly logical, executing it is maddeningly difficult.

Using classes would be much better. Things would be well defined. Things would be documented. User's would know where to assign values. Users could easily extend the classes.


Will update this page after experimenting with some class ideas

Clone this wiki locally