EpikCord.py icon indicating copy to clipboard operation
EpikCord.py copied to clipboard

Cleaner Code

Open TheUntraceable opened this issue 3 years ago • 15 comments

Code isn't looking the cleanest, clean it up before 1.0 otherwise you'll be made fun of ;( .

TheUntraceable avatar Jan 30 '22 12:01 TheUntraceable

Hi, I'm looking to contribute. How can I help?

Ajax-Light avatar Jan 30 '22 12:01 Ajax-Light

Hi there! Thanks for trying to help. So basically, take a look at the file system, it doesn't look the cleanest in my eyes. If you have any suggestions on how I could make it look better, just let me know, and if you're feeling really really helpful, just open a pull request. Thanks again

TheUntraceable avatar Jan 30 '22 12:01 TheUntraceable

Hey, I was unsure about the specific roles of each file. The file names weren't really helpful to be honest. But how about this folder structure? image Separating them into their folders based on use case and those that don't fit in can be thrown into commons. It'd be great if we could rename ws.py to websocket.py and have a more meaningful name for abc.py

image

Ajax-Light avatar Jan 31 '22 06:01 Ajax-Light

abc.py could be called abstract.py

Jerry-py avatar Feb 06 '22 05:02 Jerry-py

I could do a file system where each "Topic" according to the Discord API Docs, has it's own folder? Or I can just easily just separate them by a certain thing they all have in common.

TheUntraceable avatar Feb 06 '22 08:02 TheUntraceable

Doesn't sound like too bad of an idea, iirc VSC has the automatic refactoring stuff so it should automatically update the imports once you move the stuff around

itsnotrin avatar Feb 06 '22 08:02 itsnotrin

It does, the main priority now is for the login func to work.

TheUntraceable avatar Feb 06 '22 09:02 TheUntraceable

Looks good to me.

LisABC avatar Jul 22 '22 19:07 LisABC

Cleanup of consistency of typehints is also needed

ooliver1 avatar Aug 13 '22 21:08 ooliver1

isn't this pretty much sorted?

Sigmanificient avatar Aug 14 '22 21:08 Sigmanificient

I'll probably get you, Juuzou and I to do some checks, like seeing if theres anything to be improved. If we can't think of any, we'll close this issue. Probably after #193 though

TheUntraceable avatar Aug 14 '22 21:08 TheUntraceable

Why was this added to the "100% coverage of the Discord API" milestone? Cleaner code isn't related to implementing all of the Discord API

EmmmaTech avatar Sep 10 '22 01:09 EmmmaTech

no clue

Sigmanificient avatar Sep 10 '22 02:09 Sigmanificient

Why was this added to the "100% coverage of the Discord API" milestone? Cleaner code isn't related to implementing all of the Discord API

@TheUntraceable

EmmmaTech avatar Sep 10 '22 02:09 EmmmaTech

Good point, I blindly just added all issues to the milestone

TheUntraceable avatar Sep 10 '22 06:09 TheUntraceable