I'm finally learning to write code! Using the program Unity, I've been coding C# for about a week, and already I'm thoroughly engaged. Here's what I've learned in my first week. One of the first things I learned is that syntax is very, VERY important. A single mistake can wreak havoc. Double check everything, as it will save you a lot of errors. I also learned that getting a second party to look over your work can be very useful. I once spent several minutes going over my code with no clue what was wrong, when a classmate glanced over it and pointed out a simple mistake in naming a file. This was also where I learned to look for the cause of errors in places you wouldn't necessarily expect. Another example of this is when I couldn't get the right number to print, despite it being in the code. The problem turned out to be that the previous default was still in the Inspector and had to be changed. I had assumed that changing the default in the code would change the value in the Inspector, so I didn't think modifying the value in the Inspector would change anything. I later learned this wasn't the case and also learned that making assumptions is a bad idea when coding. The computer simply does exactly what it's told, so it's important not to jump to conclusions. Test anything that might have an effect, or better yet, ask someone else like I said before. So, to summarize:
0 Comments
Leave a Reply. |
AuthorI'm moving on to my 4th (and final) year as a Game Art & Design student at Durham School of the Arts. I'd like to call myself an artist, but I'm a programmer at heart. Archives
February 2020
Categories
All
|