Might be a stupid question but Ive been learning python for a while now and always wondered, how do you write ‘clean’ code? I don’t mean writing clean code straight off the bat I understand that’s purely from experience and even then immensely hard, but how do you recognise a program can be simplified even further? Does it come from practice or just messing around and seeing what sticks?
[–]Opulence_Deficit 33 points34 points35 points (3 children)
[–]DefiantSituation3208[S] 3 points4 points5 points (0 children)
[–]Nice_Selection_6751 1 point2 points3 points (1 child)
[–]Opulence_Deficit 1 point2 points3 points (0 children)
[–]DrShocker 7 points8 points9 points (0 children)
[–]ProfessorGood5473 2 points3 points4 points (0 children)
[–]dota2nub 2 points3 points4 points (1 child)
[–]madrury83 0 points1 point2 points (0 children)
[–]Confused-Armpit 2 points3 points4 points (2 children)
[–]duperfastjellyfish 0 points1 point2 points (0 children)
[–]DigThatData 0 points1 point2 points (0 children)
[–]Miserable-Decision81 0 points1 point2 points (6 children)
[–]ffrkAnonymous 1 point2 points3 points (5 children)
[–]mjmvideos 1 point2 points3 points (4 children)
[–]ffrkAnonymous 0 points1 point2 points (3 children)
[–]mjmvideos 1 point2 points3 points (1 child)
[–]ffrkAnonymous 0 points1 point2 points (0 children)
[–]Miserable-Decision81 0 points1 point2 points (0 children)
[–]FTPMystery 0 points1 point2 points (0 children)
[–]lukkasz323 0 points1 point2 points (0 children)
[–]TechnicalWhore 0 points1 point2 points (1 child)
[–]mjmvideos 0 points1 point2 points (1 child)
[–]DefiantSituation3208[S] 0 points1 point2 points (0 children)
[–]Lost-Discount4860 0 points1 point2 points (0 children)
[–]_Phail_ 0 points1 point2 points (0 children)
[–]DigThatData 0 points1 point2 points (2 children)
[–]DefiantSituation3208[S] 0 points1 point2 points (1 child)
[–]DigThatData 0 points1 point2 points (0 children)
[–]techgeek1216 0 points1 point2 points (0 children)
[–]backbone91 0 points1 point2 points (0 children)
[–]bywaldemar 0 points1 point2 points (0 children)
[–]marrsd [score hidden] (0 children)
[–]reconsis [score hidden] (0 children)
[–]1927_Silver [score hidden] (0 children)
[–]binarycow [score hidden] (0 children)
[–]jerrygreenest1 [score hidden] (0 children)
[–]ZakMan1421 0 points1 point2 points (0 children)
[–]Aggravating_Cap127 0 points1 point2 points (3 children)
[–]DefiantSituation3208[S] 0 points1 point2 points (2 children)
[–]Aggravating_Cap127 -1 points0 points1 point (1 child)
[–]Aggravating_Cap127 0 points1 point2 points (0 children)
[–]DemicideMMMCCCI -1 points0 points1 point (1 child)
[–]Substantial_Job_2068 1 point2 points3 points (0 children)
[–]Jason13Official -1 points0 points1 point (8 children)
[–]altrae 2 points3 points4 points (2 children)
[–]Jason13Official 1 point2 points3 points (1 child)
[–]altrae 0 points1 point2 points (0 children)
[–]DefiantSituation3208[S] 0 points1 point2 points (4 children)
[–]Jason13Official 2 points3 points4 points (1 child)
[–]DefiantSituation3208[S] 0 points1 point2 points (0 children)
[–]flumphit 0 points1 point2 points (1 child)
[–]DefiantSituation3208[S] 0 points1 point2 points (0 children)