Yeah anything could be highlighted. Apart from the purism in code best practices, what 0xdf is trying to show is the creativity in his line of his thought to solve these increasingly getting complex coding challenges. Similar to "in range(len(" could be enumerate, on the other hand he is using "map" very wisely. Lets focus on the narrative
@@boogieman97 wasn't trying have a gotch a moment. He is a much better python dev than me and I've learned a lot just watching his AoC videos. Just wanting to learn why that might be a preferable way or if it was just how he likes to do it. Is it more performance, for example.
Thanks again 0xdf, awesome as always. Anything else up to your sleeve apart from Advent of Code?
Working on Hackvent and Holiday Hack as usual!
I think the order on witch you try the operands can impact how fast the program runs.
Interesting. Why?
@@0xdf my bad, it doesn't😅, i was hoping that the lazy evaluation could do some pruning
Instead of `target / num == target // num` to check for integer why not `target%num == 0`?
Yeah, that's smarter! Saw that when looking into solutions too.
Yeah anything could be highlighted. Apart from the purism in code best practices, what 0xdf is trying to show is the creativity in his line of his thought to solve these increasingly getting complex coding challenges. Similar to "in range(len(" could be enumerate, on the other hand he is using "map" very wisely. Lets focus on the narrative
@@boogieman97 wasn't trying have a gotch a moment. He is a much better python dev than me and I've learned a lot just watching his AoC videos. Just wanting to learn why that might be a preferable way or if it was just how he likes to do it. Is it more performance, for example.
All good. I'm not offended. They are probably equally performant, and yours is easier to read, so I'd go with that!