kevinkang88 / phase_0_unit_2

Phase 0 Unit 2 Curriculum
0 stars 0 forks source link

For loop #4

Open jasonMatney opened 10 years ago

jasonMatney commented 10 years ago

I thought your for loop implementation for the weird_double method was concise and highly readable. To be sure, this is the structure I'm most familiar with, as opposed to each_do or another iterative method. Regardless, I benefited from reading your technique, because it seemed like the logic flowed naturally, most likely, because, as you said, you laid your your approach in pseudocode prior to executing on it. Maybe in the future you could try and compress some of these blacks of code into single lines by linking methods in order to D.R.Y. it out! Nice work!