Long time listener, first time caller
I am doing a redesign of an app I have on the App Store, https://itunes.apple.com/au/app/pdta/id1368902048?mt=8 and am looking at adding some different dive tables.
For the non-divers decompression tables are broken into depth and time increments, at the end of that you get a repetitive group and after a surface interval you are allocated a repetitive factor which is used for the next dive. So a dive may look like 18 metres for 30 mins, RG of D, after a surface interval of 45 mins I have an Rf of 1.5. The depth increments are usually 3 metres (10 feet) and dive times can be as small as 5 mins and as large as 120 mins…anyway the bottom line is there is a lot of combinations that can result.
Given that PDTA was my first app I wrote a massive if, else statement…I am wondering how some more experienced developers would tackle the problem.
To get an indication of what a dive table looks like have a look at this link:
Any advice appreciated.
Thanks in advance