-
Software Development
Law of Demeter and How to Work With It
The Law of Demeter is an interesting programming principle. It’s the only one I know of that has a near-mathematical…
Read More » -
Core Java
Pass Streams Instead of Lists
Opening disclaimer: this isn’t always a good idea. I’ll present the idea, along with some of the reasons why it’s…
Read More » -
Software Development
Refactoring to Allow Test Doubles
Sometimes, when you make a class, it directly instantiates an object to use in its methods. For example: …
Read More » -
Software Development
Plug into the Wall: Interfaces to the Outside World
Just to be clear, this article isn’t about interfacing with hardware, though what it says does apply a little bit.…
Read More » -
Core Java
Functional Factory Pattern
Do you want a REALLY quick way to make a Factory object? Then lambdas or other function-passing is what you…
Read More » -
Core Java
How I’d Like Java To Be
I like Java. I enjoy programming in Java. But after using Python for a while, there are several things I…
Read More » -
Software Development
About Mixed-Paradigm Languages Such As Java and Python
Intro There are two really popular programming paradigms (yay, alliteration!) out there: functional programming and object-oriented programming. There is another…
Read More » -
Core Java
Java 8 Functional Programming: Lazy Instantiation
Singletons often instantiate themselves lazily, and sometimes, if the object is heavy enough, class fields can be instantiated lazily. Generally,…
Read More » -
Core Java
Transforming Collections with Decorators
The Decorator Pattern Ever since first learning the programming design patterns, the decorator pattern has been my favorite. It seemed…
Read More »