log 112: updates
progress
This week I continue to work on the workout builders of my app. Going through and rewriting the code for my exercise search engine has been an interesting ride to say the least. At first glance, I thought what I had previously written was extremely basic. But I then realized that it took a lot of logic to make sure that there were no errors and undefined variables which would result in errors. Going through and revising the pathways took a bit, but I found a way to subtly improve the way to implement search functions and workout builders. While I do have a different workout builder for every type of exercise, things are more uniform. There is a similarity in a lot of the code which wasn’t there before. My hope with this was to make it easy to add different types of workouts in the future. This time around I also took into account how much the user can vary the given workouts. Some people may want a pre-workout stretching routine, some may like plyometrics, some may like additional cardio. Adding these user changing variables also makes the programs more personalized. It’s not exactly the best way to build a program but I hope it’ll be a good way to keep users engaged.