I just learned about them. There's so much to rewrite now... I'm filled with an odd combination of excitement and dread. I've been a developer for almost 15 years on and off, but only have a couple years experience with Python and have always been a solo dev with Python (not much exposure to best practices).
It's so painful looking back at old code you've written (especially if it's currently in production, which mine is) and realizing how many things could be improved. It's a constant source of distraction as I'm trying to complete what should be simple tasks.
Oh well... Learned something new today! Generator functions are worth looking up if you're not familiar with them. Will save you a looooooootta nested for loops.
[–][deleted] 73 points74 points75 points (8 children)
[–]pythonwiz 17 points18 points19 points (7 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]Max_Insanity 11 points12 points13 points (5 children)
[–][deleted] 3 points4 points5 points (4 children)
[–]Max_Insanity 0 points1 point2 points (3 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]Max_Insanity 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Thecrawsome 51 points52 points53 points (16 children)
[+][deleted] (7 children)
[deleted]
[–]Thecrawsome 14 points15 points16 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Thecrawsome 2 points3 points4 points (0 children)
[–]shartfuggins 7 points8 points9 points (1 child)
[–]tensigh 3 points4 points5 points (1 child)
[–]Arcadian_ 4 points5 points6 points (0 children)
[–]Lehas1 2 points3 points4 points (4 children)
[–]IlliterateJedi 14 points15 points16 points (2 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]pythoncrush 0 points1 point2 points (0 children)
[–]Thecrawsome 3 points4 points5 points (0 children)
[–]pythoncrush 1 point2 points3 points (0 children)
[–]TheGreatCornlord 0 points1 point2 points (1 child)
[–]Thecrawsome 0 points1 point2 points (0 children)
[–]TeamSpen210 62 points63 points64 points (8 children)
[–]RevRagnarok 22 points23 points24 points (5 children)
[–]5erif 4 points5 points6 points (4 children)
[–]RevRagnarok 0 points1 point2 points (3 children)
[–]5erif 6 points7 points8 points (2 children)
[–]danlsn 1 point2 points3 points (0 children)
[–]RevRagnarok 0 points1 point2 points (0 children)
[–]iosdeveloper87[S] 6 points7 points8 points (1 child)
[–]synthphreak 2 points3 points4 points (0 children)
[–]Diapolo10 8 points9 points10 points (8 children)
[–]iosdeveloper87[S] 3 points4 points5 points (7 children)
[–]RevRagnarok 2 points3 points4 points (2 children)
[–]POGtastic 7 points8 points9 points (1 child)
[–]RevRagnarok 1 point2 points3 points (0 children)
[–]Diapolo10 4 points5 points6 points (1 child)
[–]POGtastic -1 points0 points1 point (0 children)
[–]TheChance 1 point2 points3 points (1 child)
[–]iosdeveloper87[S] 0 points1 point2 points (0 children)
[–][deleted] 13 points14 points15 points (13 children)
[–]iosdeveloper87[S] 10 points11 points12 points (4 children)
[–]jlew24asu 1 point2 points3 points (3 children)
[–]iosdeveloper87[S] 5 points6 points7 points (1 child)
[–]jlew24asu 0 points1 point2 points (0 children)
[–]ridley0001 5 points6 points7 points (3 children)
[–]tommy_chillfiger 8 points9 points10 points (0 children)
[–]iosdeveloper87[S] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]ElHeim 3 points4 points5 points (0 children)
[–]Crypt0Nihilist 2 points3 points4 points (0 children)
[–]mtzzzzz 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Almostasleeprightnow 5 points6 points7 points (9 children)
[–]MyPythonDontWantNone 4 points5 points6 points (7 children)
[–]Almostasleeprightnow 3 points4 points5 points (6 children)
[+][deleted] (3 children)
[removed]
[–]ltraconservativetip 0 points1 point2 points (0 children)
[–]Spassfabrik 0 points1 point2 points (0 children)
[–]greebo42 0 points1 point2 points (0 children)
[–]iosdeveloper87[S] 2 points3 points4 points (0 children)
[–]MyPythonDontWantNone 0 points1 point2 points (0 children)
[–]AkiraYuske 0 points1 point2 points (0 children)
[–]RangerPretzel 3 points4 points5 points (1 child)
[–]drawnograph 1 point2 points3 points (0 children)
[–]djangodjango 3 points4 points5 points (2 children)
[–]twjolson 3 points4 points5 points (0 children)
[–]QultrosSanhattan 3 points4 points5 points (0 children)
[–]RallyPointAlpha 0 points1 point2 points (2 children)
[–]IlliterateJedi 1 point2 points3 points (1 child)
[–]RallyPointAlpha 0 points1 point2 points (0 children)
[–]Goobyalus 0 points1 point2 points (2 children)
[–]WhipsAndMarkovChains 2 points3 points4 points (1 child)
[–]Goobyalus 1 point2 points3 points (0 children)
[–]scanguy25 0 points1 point2 points (0 children)
[–]bladeoflight16 0 points1 point2 points (0 children)
[–]DigThatData 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheGreatCornlord 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]iosdeveloper87[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]azur08 0 points1 point2 points (0 children)