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
So, finding things while browsing is not a problem at all, it’s something professionals do all the time! It’s not something I’d necessarily expect a beginner to do, but it’s something I encourage my beginners to start doing after a week or two of intense training, so I think it’s great that you’re doing that!
There is another way of doing it though, if you prefer. You could do all of the top line of each character first. Use Console.Write() instead of Console.WriteLine(), so that each piece of text comes next to the previous one, instead of below it, and then use Console.WriteLine() with no arguments in the brackets to move onto the next line and start drawing the second line of each character. Put that in a For loop to repeat it the correct number of times for each line.
Personally, I think the SetCursorPosition() technique is easier, but if you think this technique is easier then feel free to give it a go. Make a backup of what you’ve done so far first, though, in case it goes wrong, because you’ll have to rework a lot of what you’ve done already.