Debugging is not something that you think about at the time of writing your code, but doing so can drammatically save you from frustration later.
...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks! That's exactly what I was seeing and spent extra time figuring out where the error was.
Glad it helped Jorge!
Great tip! Thanks for breaking it down 🤘
I wonder if there is any downside to doing this? Is the function instantiated differently? Does it use more memory? Either way I DO like the idea.
I don't think there are performance downsides to using named functions except in scenarios where you want to micro-optimize within a framework or tool. Even if there are, a compiler or minifier can surely fix that without having to manually change your code.
TDD (test driven development) would hopefully help you think about debugging before logic. I confess I am guilty of DDT (development driven tests) 🤣. Dry British whit for you there.
Yeah TDD can help with that for sure, but I definitely still do DDT as well haha.