It's not often that you actually have to think about more interesting day-to-day algorithms like shuffling a playlist. That's what I want to talk about today!
Series: Coding Tangents
The Difference Between str() and repr() in Python: A Design by Contract Perspective
Recently, I was giving a lecture about Java's "common" methods (i.e., all of the methods of Object), and I had epiphany about how Java only has toString() while Python has str() and repr(). So, it...
This week, I taught a lesson on hashing, and now I'm going to pass the highlights on to you!
Software design often involves coming to terms with abstraction. Today, we'll take about the two-layer approach, which can help you avoid worrying about implementation details.
After writing this piece, I mostly fried my brain, but hopefully it helps folks come to terms with the concept of abstraction—even if it's not in a software context.
Now that we're back to school, I figured it was time to talk about another introductory programming concept: unit testing. This time, I bring you some of my favorite tips targeted at folks who may be...