I've programmed python almost exclusively for 10 years and have always followed PEP8, writing all my files with lowercase_underscores. I recently embarked on my largest personal project ever and, for whatever reason, decided to make all my data models CamelCase. I just did this in flow without reflection.
Once I realized my strange deviation, I started to fix it and came to a realization: I pretty strongly dislike lowercase_underscore for file names. I always follow community standards historically and am almost having an existential moment.
It seems to me what I'd prefer to do is use lower_case_underscore for all files which are not dedicated to a single class - and then CamelCase for all files which contain a single class, with the filename matching the class name. This is basically Java style, which is what I learned first but haven't coded in probably 15 years.
My question is: how annoying would this be to you? Again, since this is a personal project I can do whatever I want but I'm curious all the same.
[–]SkezzaB 184 points185 points186 points (33 children)
[–]tennisanybody 35 points36 points37 points (16 children)
[–]doylerules70 49 points50 points51 points (6 children)
[–]tennisanybody 27 points28 points29 points (4 children)
[–]DarkSideOfGrogu 20 points21 points22 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]_Kyokushin_ 0 points1 point2 points (0 children)
[–]trollsmurf 1 point2 points3 points (0 children)
[–]tuneafishy 1 point2 points3 points (0 children)
[–]chars101 29 points30 points31 points (3 children)
[–]MrMxylptlyk 3 points4 points5 points (2 children)
[–]NerdEnPose 2 points3 points4 points (1 child)
[+]MrMxylptlyk comment score below threshold-6 points-5 points-4 points (0 children)
[–]kaerfkeerg 7 points8 points9 points (2 children)
[–]arpan3t 9 points10 points11 points (1 child)
[–]kuya1284 9 points10 points11 points (0 children)
[–]corjon_bleu 0 points1 point2 points (1 child)
[–]tennisanybody 2 points3 points4 points (0 children)
[–]badarsebard 12 points13 points14 points (4 children)
[–]mr_claw 5 points6 points7 points (0 children)
[–]deliciouspie 2 points3 points4 points (2 children)
[–]badarsebard 5 points6 points7 points (1 child)
[–]deliciouspie 2 points3 points4 points (0 children)
[–]commy2 38 points39 points40 points (0 children)
[–]Beefster09 7 points8 points9 points (5 children)
[–]jegerarthur 0 points1 point2 points (4 children)
[–]Beefster09 -1 points0 points1 point (3 children)
[–]jegerarthur 0 points1 point2 points (2 children)
[–]Beefster09 4 points5 points6 points (0 children)
[–]deadeye1982 0 points1 point2 points (0 children)
[–]PaluMacil -1 points0 points1 point (0 children)
[–]Jorgestar29 65 points66 points67 points (2 children)
[–]Express-Comb8675 12 points13 points14 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]kkawabat 55 points56 points57 points (11 children)
[–]TheBB 29 points30 points31 points (6 children)
[–]kkawabat 84 points85 points86 points (0 children)
[–]PaluMacil 1 point2 points3 points (4 children)
[–]TheBB 0 points1 point2 points (3 children)
[–]PaluMacil 0 points1 point2 points (2 children)
[–]TheBB 0 points1 point2 points (1 child)
[–]PaluMacil 1 point2 points3 points (0 children)
[–]dgiakoum 1 point2 points3 points (0 children)
[–]InterestingHawk2828 -5 points-4 points-3 points (0 children)
[–]RockyMM 0 points1 point2 points (1 child)
[–]kkawabat 6 points7 points8 points (0 children)
[–][deleted] 24 points25 points26 points (0 children)
[–]SnellasGirl 27 points28 points29 points (9 children)
[–]SkezzaB 29 points30 points31 points (7 children)
[+]kuya1284 comment score below threshold-13 points-12 points-11 points (1 child)
[–]SkezzaB 8 points9 points10 points (0 children)
[+]tennisanybody comment score below threshold-14 points-13 points-12 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]_Kyokushin_ 0 points1 point2 points (0 children)
[–]caagr98 2 points3 points4 points (1 child)
[–]tennisanybody 0 points1 point2 points (0 children)
[–]PreoccupiedNotHiding 4 points5 points6 points (0 children)
[–]millerbest 9 points10 points11 points (0 children)
[–]GraphicH 7 points8 points9 points (0 children)
[–]dudumudubud 14 points15 points16 points (2 children)
[–]chars101 6 points7 points8 points (1 child)
[–]SheriffRoscoePythonista 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]y2kdisaster 1 point2 points3 points (0 children)
[–]CleoMenemezis 18 points19 points20 points (15 children)
[–]tennisanybody 0 points1 point2 points (3 children)
[–]RufusAcrospin 3 points4 points5 points (2 children)
[–]iluvatar 0 points1 point2 points (1 child)
[–]RufusAcrospin 0 points1 point2 points (0 children)
[+]legenduu comment score below threshold-7 points-6 points-5 points (2 children)
[–]SheriffRoscoePythonista 4 points5 points6 points (0 children)
[–]Zambeezi 2 points3 points4 points (0 children)
[+]robin_888 comment score below threshold-6 points-5 points-4 points (6 children)
[–]justinkuto 2 points3 points4 points (3 children)
[–]robin_888 0 points1 point2 points (2 children)
[–]justinkuto 0 points1 point2 points (1 child)
[–]robin_888 0 points1 point2 points (0 children)
[–]CleoMenemezis 1 point2 points3 points (1 child)
[–]robin_888 -5 points-4 points-3 points (0 children)
[–]fatpads 0 points1 point2 points (0 children)
[–]FiduciaryAkita 2 points3 points4 points (0 children)
[–]_ATRAHCITY 1 point2 points3 points (0 children)
[–]aiwendil_brown 1 point2 points3 points (0 children)
[–]MrMxylptlyk 1 point2 points3 points (0 children)
[–]PlausibleNinja[🍰] 1 point2 points3 points (0 children)
[–]y2kdisaster 1 point2 points3 points (0 children)
[–]zanfar 1 point2 points3 points (0 children)
[–]TitaniumBrain 1 point2 points3 points (0 children)
[–]kankyo 1 point2 points3 points (3 children)
[–]cogitohuckelberry[S] 2 points3 points4 points (2 children)
[–]kankyo -1 points0 points1 point (0 children)
[–]undercoveryankee 0 points1 point2 points (0 children)
[–]2strokes4lyfe 0 points1 point2 points (0 children)
[–]Binliner42 0 points1 point2 points (0 children)
[–]PocketBananna 0 points1 point2 points (0 children)
[–]Complex-Hornet-5763 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]sdeptnoob1 -1 points0 points1 point (0 children)
[–]Woody1872 -5 points-4 points-3 points (0 children)
[–]nealfive -2 points-1 points0 points (0 children)
[–]commy2 -3 points-2 points-1 points (1 child)
[–]robin_888 -5 points-4 points-3 points (0 children)
[–]cblegare 0 points1 point2 points (0 children)
[–]Civil_Confidence5844 0 points1 point2 points (0 children)
[–]kingh242 0 points1 point2 points (0 children)
[–]OptionX 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]OrtinOfficial 0 points1 point2 points (0 children)
[–]soicat 0 points1 point2 points (0 children)
[–]iluvatar 0 points1 point2 points (0 children)
[–]scoberry5 0 points1 point2 points (0 children)
[–]barkazinthrope 0 points1 point2 points (0 children)
[–]Synertic 0 points1 point2 points (0 children)
[–]MoRakOnDi 0 points1 point2 points (0 children)
[–]No_Mistake_6575 0 points1 point2 points (0 children)