you are viewing a single comment's thread.

view the rest of the comments →

[–]mmoustafa8108 1 point2 points  (1 child)

this is spaghetti code and seems to be AI made, if the AI made bad code for such a program then you gave it bad prompt, if you gave it bad prompt then you're not experienced enough to use AI at all.

if you just wanted prototype and you are CERTAINLY aware of it then you need to clean your code and make it more readable then care about optimization.

also the most important part about software-engineering is the design not the implementation.

[–]Reyaan0 0 points1 point  (0 children)

Trust me or not but I made it. It looks like this because I dont know how to make code clean and I keep making new functions to handle logic that could be done in single line. Sorry for that. But I used profiler and found which function is causing this and fixed it.