Common Coding Problems

Over my 25-30+ years of coding (including hobby stuff as a teenager), I’ve made my fair share of coding mistakes. In fact, everyone who has ever written code before has written lots of errors. That’s why we test so much. Even today, I still make mistakes, many of them the same as you. The difference…

Math in Python

We want to look at performing some simple math in Python. To do so, we’ll first look at our last example from our introduction to Python examples. We took in a number, but in reality, we took in a string that had numbers in it. If we want to treat the value as a number,…

Intro to Java Classes – Getters, Setters, and other Methods

In our previous example, we had a class with a default constructor where we passed no arguments into the class. That is great, unless you want to set one or more class variables with data at run time. So lets look at overloading the class constructor. In this example, we keep our default constructor, but…

Intro to Java Classes

This introduction/refresher to Java Classes is assuming that you’ve worked with some Object Oriented language before, like C++, or maybe even Java and you just need a quick refresher. In Java, everything you build will be a class, with very few exceptions. to define a class, you will need a file name, with the same…