3 ms·
I went back and read the star rating code again after reading this. I didn't get it the first time because I'm not familiar with Python and am a beginner, but
by helveticaman 18y ago
I went back and read the star rating code again after reading this. I didn't get it the first time because I'm not familiar with Python and am a beginner, but when I realized what she did my brain hurt.
However, I can't say I haven't said embarrassingly stupid things from time to time...OK, at least not since treating ADD, but still...nobody's perfect. I would also like to point out that there is merit in the approach she took, in that she just got it done instead of hesitating and thinking over what the optimal solution would be. A good example of iterating on a functional original.