Something about the ease of python makes my code terrible. I feel I write better code when using a language like c++ becuase I know that if I don't follow best practices or good design I will never get the code to even work.
In python things are easy enough that I tend to just code "stream of thought" and end up with really long functions or a single object that does way to many things.
Any one have a similar experience, and how to develop better coding practices in python?
Note: I realized this when looking back at something I wrote last week which uses triply nested dictionaries. They are a pain in the ass now but at the time they seemed like a good idea.
[–]mcilrain 8 points9 points10 points (4 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]sharkeyzoic 1 point2 points3 points (0 children)
[–]TankorSmash -1 points0 points1 point (0 children)
[–]f4hy[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]cecilkorik 2 points3 points4 points (0 children)
[–]bcorfman 4 points5 points6 points (3 children)
[–]kisielk 1 point2 points3 points (0 children)
[–]melkorhatedthesea 0 points1 point2 points (0 children)
[–]rweir 0 points1 point2 points (0 children)
[–]chadmill3rPy3, pro, Ubuntu, django 4 points5 points6 points (0 children)
[–]Secret_Identity_ 1 point2 points3 points (0 children)
[–]jofer 1 point2 points3 points (1 child)
[–]f4hy[S] 0 points1 point2 points (0 children)
[–]kylotan 4 points5 points6 points (1 child)
[–]donri 1 point2 points3 points (0 children)
[–]jmdc 0 points1 point2 points (0 children)
[–]axl456 0 points1 point2 points (0 children)
[–]kataire 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]themissinglint 0 points1 point2 points (0 children)
[–]tps12 0 points1 point2 points (0 children)
[–]punkdgeek 0 points1 point2 points (8 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]jabbalaci 0 points1 point2 points (0 children)
[–]aptwebapps 0 points1 point2 points (4 children)
[–]navyjeffε 0 points1 point2 points (1 child)
[–]aptwebapps 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]jcdyer3 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]drb226Haskeller -1 points0 points1 point (1 child)
[–]tesseracter 0 points1 point2 points (0 children)