Cycle 12, day #1:
The margin trading integration is moving slower than expected.
I had the option of doing it fast or doing it right and I have opted for doing it right.
Doing it fast would have just made doing it right later just harder and I want to reach the right way down the road.
What doing it right consist is the refactoring of my Order class which is pretty compact with its 2,000 lines. It is big because the various execution strategies are inside it. I'm currently moving out the strategy code from the order class and things are pretty smooth.
I'm using the Strategy OO pattern from the GoF which seems the most appropriate pattern for a strategy classes.
This is the last out of 2 major refactoring that was on my todo list. The first one was breaking out the Execution Engine into smaller more comprehensible parts.
I did put some thoughts about how to proceed for the order refactoring in the past... I was having a rough idea of how it could be done but there was some unresolved issues in my mental plan back then... It turns out that the move is pretty smooth and the design that is shaping up in front of me is pretty elegant... I'm super happy of how things are going...
The margin trading integration is moving slower than expected.
I had the option of doing it fast or doing it right and I have opted for doing it right.
Doing it fast would have just made doing it right later just harder and I want to reach the right way down the road.
What doing it right consist is the refactoring of my Order class which is pretty compact with its 2,000 lines. It is big because the various execution strategies are inside it. I'm currently moving out the strategy code from the order class and things are pretty smooth.
I'm using the Strategy OO pattern from the GoF which seems the most appropriate pattern for a strategy classes.
This is the last out of 2 major refactoring that was on my todo list. The first one was breaking out the Execution Engine into smaller more comprehensible parts.
I did put some thoughts about how to proceed for the order refactoring in the past... I was having a rough idea of how it could be done but there was some unresolved issues in my mental plan back then... It turns out that the move is pretty smooth and the design that is shaping up in front of me is pretty elegant... I'm super happy of how things are going...