I am completely new to coding and was wondering what advice you more experienced coders would give to someone just starting out. Tips?, Tricks?
Learn from your mistakes
Don’t be afraid to Google/StackOverflow everything
Now why didn’t I think of that Gibbs slaps self
Thanks, now I gotta Google “StackOverflow” too lol
lol, whenever you have a coding problem, the first result is usually a StackOverflow post
I think I get the concept…It’s like yelling at the waiter for overfilling your coffee cup
Get a pastebin or github account to store your chunks of code that you use repeatedly.
Awesome, thanks for that piece of advice MunkeyShynes. I am sure that will come in handy
Plan the solution and draw what you want it to look like when you run it, then write your code using that drawing to guide you.
Play a lot with your code
ask yourself how you can simplify things and make your code more clear
Try to make as much functions as you can to keep your main code nearly empty.
Re-use your functions in other levels when you need.
if you don’t know what is a function yet don’t worry you’ll learn it soon enough.
That’s actually what I have been doing when a code confuses me. I actually write it down and break it down. having a visual aid is actually a big leg up for me. Helps me focus on individual parts. I’m beginning to realize that having a well detailed outline designating those parts is going to be the key to coding. Well, that and understanding the actual language.
I have a notebook right next to me when I log on to CodeCombat. I am constantly writing things down for later use. Sometimes I find myself constantly tearing out pages, crumpling them up and throwing them across the room in frustration. Half the time the errors I find myself making is the same one, alignment!!