r/CritiqueMyCode • u/andygmb • Sep 28 '14
[Python] A script to handle adding livestreams to a reddit sidebar.
https://github.com/Andygmb/twitchy_the_bot
5
Upvotes
0
Sep 28 '14
[deleted]
1
u/andygmb Sep 28 '14
You redefine chunker for no reason
Whoops, that's probably from when I rewrote it and was copy+pasting stuff around.
Your class names should really be capitalized
Capitalized as in
class Configuration()instead of a lower case c? Or full caps?
1
u/echocage Sep 28 '14
Very good overall, but because you asked, I'll see what I can fine.
It seems like you have a few logic problems, they work, they're just strange. You might be missing a few concepts that have to do with booleans and ifs, or maybe it's just a style I'm not used to, either way, it's much easier to understand the second way
With this, there are only two options, true or false, so it can be reduced down to this
And then with this,
you can just remove that.