Welcome to the last part of the programming basics series! In this series we’ll cover what exceptions are and how you deal with them.
If you’ve made all the examples, that are featured throughout the series, you might have encountered something like this:
This particular runtime error is caused by a wrong user input. It’s not caused by faulty code. Errors like this usually crash your application and a user has to restart it, in order to continue using it. In this part we’ll cover how to deal with such errors. Continue reading Programming Basics 7 – Exceptions and exception handling
In this part we’ll discuss the most important concept in an object oriented language: Objects. So far you’ve already learned how to write a single class and you’ve put all your functionality into a single class. But we’ve used objects in our examples already and in this part you’ll learn what objects are and how you can use them!
Continue reading Programming Basics 6 – Classes and objects
This part will teach you, how to compare values and control the flow of your program. It will also teach you, how to repeat a part of your program for a defined number of times, which is very useful for tasks like processing user input or printing out data.
This is a very long article. I didn’t plan to make it this long, but I ended up writing a lot about this topic. I recommend you to split it into half after the ‘Large choices’ section and take a break. However, let’s get started!
Continue reading Programming Basics 5 – Control flow
So far you’ve learnt what methods and variables are and how to use them. In the case of variables you have also seen, how to get a user’s input and store it. If you want to store multiple inputs of the same type, for example numbers for a calculator, you’ll have to create different variables for each input, right?
In this part you’ll learn, how to store multiple values into one variable (sort of). Continue reading Programming Basics 4 – Arrays
In the last part of the series you learned how to use variables to store data in a program. This part will discuss methods, which give you the possibility to define behavior for a class. Continue reading Programming Basics 3 – Methods
This article will explain what variables are and how you can declare and use them. It is part of the Programming Basics series, so be sure to read the previous ones, if you haven’t done so already. You can find the table of contents at the end of this article. Continue reading Programming Basics 2 – Access Modifiers and Variables
This article is the intro to a series intended to teach programming in an easy and fun way. The examples in this series might be written in different programming languages, because I’m not trying to teach you a particular language, but the basics of programming.
This series is for people who have absolutely no experience in programming, so there is nothing needed to start this series. Please don’t get me wrong: You won’t be able to program a new AAA game after this tutorial series, but you’ll be able to write simple programs and games. But be warned: You’ll need to practice A LOT if you want to develop something larger. I might however make another series later with advanced programming concepts. Anyways remember one thing: even if it is a lot of work to learn the concept of programming, it will be a lot of fun after you understood it. Continue reading Programming Basics 1 – MyFirstProgram