r/visualbasic • u/Dennis13631 • Jan 12 '20
Need a bit help
So ive done a program and my teacher just casually said its spagheti code and i need to somehow fix it but im totally out of idea how to do that so i would appreciate all help i can get from here!
Here is the code:
https://pastebin.com/qzPbMXh8
6
Upvotes
1
u/LondonPilot Jan 12 '20
Excellent.
If I was sitting down with you, there’s a lot more we could do to bring it towards being professional standard, but for a beginner I’d say that’s not a bad start. It’s 100 times easier to read than it was before, and one of the most important things to learn if you want to improve is that your code must be easy to read. Professional programmers spend 80% of their time changing code, and only 20% writing new code, so making code easy to read is vital. Well done - I hope your teacher agrees!