Crips icon indicating copy to clipboard operation
Crips copied to clipboard

i know im years to late on this but still word of advice

Open TotallyNotAHaxxer opened this issue 4 years ago • 1 comments

im sure you worked hard on this but HOLY MOTHER OF GOD THE CODE BURNS MY EYESSSSS

[1]: you didn't throw it under a main function? why, functions and definitions can help the code run faster, smoother, and even make the workflow a lot better if your collabing with other people

[2]: WHY os.system("clear") python is a very very VERY good language and is great for cross platform programs, this can easily work on windows if you change the statement under a def like this


def cle():
      if sys.platform == 'win32' or sys.platform == 'win64':
                                                os.system("cls")
      elif sys.platform == 'linux' or sys.platform == 'darwin':
                                                os.system("clear")

this can easily be replaced and ran throughout the script

[3]: the banners- why do you need banners for every option? i feel one banner makes the code very well- cleaner, and especially if your just gonna print 5 of them in one statement, it would actually be better to have it read to a file than it would be to just print it, that way you can call that function throughout the script with optional arguments of the file and design

TotallyNotAHaxxer avatar Oct 28 '21 07:10 TotallyNotAHaxxer

def cls(): os.system('cls' if os.name == 'nt' else 'clear')

I agree with everything you're saying btw 😂 just wanted to show what clear function I use.

Scrut1ny avatar Feb 01 '22 15:02 Scrut1ny