ga-students/WDI_SYD_7_Work — pull request #20 by chris-ma (2014-11-12 22:28:30+00:00)
Title: D03 HW

please refer to station_final.rb for homework

Journey:
We mapped out the initial journey, and came up with the initial thought of having 2 conditions, first was same line departing and arriving and the other was different lines departing and arriving.
After writing a stack of code we then thought all outcomes should be the difference between departure and union sq plus the difference between arrival and union sq so restarted working on a solution based on that.
We went through several iterations of the idea which took up most of our time. The outcome code was based on my thought logic but the code isn't fully functional.

The good:
Took a lot of hours engaged in this task and really challenged what I know. It's also a good chance to test what I really know and what i don't know.

The bad:
There's still bugs in this and it's really frustrating me.

Thoughts:
I find that Lenny and I work very differently to a problem, Lenny likes to get get everything right before proceeding ahead where as I like to present all my thoughts out first and then fix the problems later.

I also just realised this morning that the code may not account for people boarding and departing before union square, this could be addressed by creating a method where if the line departing == line arrive, we just need to subtract the index of arrival with the index of departures

I wouldn't mind having a night that I could go to bed before 1am