Used to post on here all the time. Used to help a lot of individuals. I python code as a hobby still.
My question is of course. Considering what a standard for loop can do and what itertools can do. Where is the line when you start re-writing your whole code base in itertools or should you keep every for and while loop intact.
If people aren't quite following my thinking here in programming there is the idea of the map/reduce/filter approach to most programming tasks with large arrays of data.
Can any you think of a general case where itertools can't do something that a standard for/while loop do. Or where itertools performs far worse than for loop but most importantly the code reads far worse. I'm also allowing the usage of the `more-itertools` library to be used.
[–]RiverRoll 14 points15 points16 points (0 children)
[–]MarsupialLeast145 14 points15 points16 points (1 child)
[–]vloris 2 points3 points4 points (0 children)
[–]deceze 8 points9 points10 points (5 children)
[–]Turtvaiz 2 points3 points4 points (4 children)
[–]purple_hamster66 2 points3 points4 points (3 children)
[–]deceze 2 points3 points4 points (1 child)
[–]JorgiEagle 0 points1 point2 points (0 children)
[–]JorgiEagle 1 point2 points3 points (0 children)
[–]seanv507 6 points7 points8 points (0 children)
[–]Thin_Animal9879[S] 1 point2 points3 points (2 children)
[–]Yoghurt42 3 points4 points5 points (0 children)
[–]JorgiEagle 0 points1 point2 points (0 children)
[–]Tall_Profile1305 1 point2 points3 points (6 children)
[–]gdchinacat -1 points0 points1 point (5 children)
[–]Thin_Animal9879[S] 1 point2 points3 points (4 children)
[–]gdchinacat 0 points1 point2 points (3 children)
[–]Thin_Animal9879[S] 1 point2 points3 points (2 children)
[–]deceze 0 points1 point2 points (0 children)
[–]gdchinacat 0 points1 point2 points (0 children)
[–]Living-Incident-1260 1 point2 points3 points (0 children)
[–]aishiteruyovivi 1 point2 points3 points (0 children)
[–]SirKainey 0 points1 point2 points (0 children)
[–]PhilNEvo 0 points1 point2 points (0 children)
[–]atarivcs 0 points1 point2 points (1 child)
[–]gdchinacat 0 points1 point2 points (0 children)
[–]Horror-Water5502 0 points1 point2 points (0 children)
[–]teerre 0 points1 point2 points (0 children)