The remainder operator is a staple in Java, but did you know it works on doubles as well? Now, you know!
As someone who covers a lot of beginner concepts, I’ve always sort of avoided one of the trickier concepts: recursion. Well, today I decided to take a stab at it.
Today, I want to talk about the difference between statements and expressions in Computer Science and why ignoring that distinction has consequences.
Usually, I try not to write too many opinion pieces about code, but I felt like I should mention that it’s okay to test private methods.
As with many posts in this series, I’m interested in examining some of the pitfalls when learning to code. Today, we’ll cover the pitfalls when copying mutable data types.
Recently, one of my students just introduced me to `i = i++`. Care to guess how it works? It’s probably not what you think.
Forget endless if statements! It’s time to solve Rock Paper Scissors using modular arithmetic in Python.
Recently, I found out that the `else if` keyword doesn’t exist. To put it bluntly, you’re going to want to read this one.
As a teacher, I like to warn my students of the various pitfalls in computer science. Today, let’s talk about Java’s substring method.
Sometimes it’s fun to make an interactive application with Scanner. Unfortunately, we have to be careful with Scanner methods.