Feedback

Have you considered ___?
/hæv juː kənˈsɪdərd/
Complements
a different approach/ə ˈdɪfərənt əˈproʊtʃ/using a hook instead/ˈjuːzɪŋ ə hʊk ɪnˈstɛd/splitting this into two functions/ˈsplɪtɪŋ ðɪs ˈɪntuː tuː ˈfʌŋkʃənz/adding a test for this/ˈædɪŋ ə tɛst fɔːr ðɪs/
Simple definitionexpand_more
Use this to suggest an alternative without sounding like you're criticizing directly.
Example in contextexpand_more
Have you considered splitting this into two functions? It might be easier to test.