Given that I have my own kid now, I figured I might as well make ELI5 a full-fledged series. To kick things off, I also figured I'd start with a topic I'll be teaching in a couple weeks: context-free...
Tag: Programming Languages
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...
While considering the various obfuscation techniques, I was thinking about the role comments play in readability. After all, we've all heard that writing comments is a best practice, yet it's very...
If you know me, you know I love to play around with silly ways to solve problems with programming languages. Today is no different! This time, let's see how many ways we can add two numbers in...
Time to fire up yet another old debate. This time I want to cover the difference between mod and remainder, as I understand them.
Java has featured lambda expressions since Java 8, and they are more than a slightly bit cursed.