Do you want a REALLY quick way to make a Factory object? Then lambdas or other function-passing is what you need! Not only is it quick, it’s really simple. I bet, if you’re a pretty good with Lambdas, you have a pretty good idea on how to do this simply by having read the title. If you’re one of those, stick around; you never know what you could learn.
As a side note: I’m doing code examples in Java AND Python. Why? Because I love both languages and it sure doesn’t hurt to put stuff out there for both. Continue Reading
Earlier this month, Robert “Uncle Bob” Martin put a post on his Clean Code blog about how a syntactical interface and lack of multiple class inheritance is actually not a very good thing.
Check it out here: ‘Interface’ Considered Harmful – The Clean Code Blog
I like Java. I enjoy programming in Java. But after using Python for a while, there are several things I would love to change about it. It’s almost purely syntactical, so there may be a JVM language that is better, but I’m not really interested since I still need to use normal Java for work. I realize that these changes won’t be implemented (although I thought I heard that one of them is actually in the pipeline for a future version); these are just some thoughts.
I don’t want to free Java up the way that Python is open and free. I actually often relish in the challenges that the restrictions in Java present. I mostly just want to type less. So, here are the changes I’d love to see in Java. Continue Reading
This is coming out a bit late for a year-end wrap up type post, but I almost never do stuff like that anyway, so I didn’t think of it until now. Also, I don’t like choosing favorites, so I’m just going to list a bunch of the books I liked this past year. Yes, I read all of these books in 2014, along with plenty of fiction books too 🙂 Continue Reading
There are two really popular programming paradigms (yay, alliteration!) out there: functional programming and object-oriented programming. There is another that seems to be on the rise: resource-oriented computing. I’m sure there are others that have come along as well. Continue Reading
Reduce functions (also known as fold, accumulate, aggregate, compress, or inject in other languages) are very powerful, being open enough to practically anything you can think of for turning a collection into anything else.
reduce could even be used to implement the
filter functions, making it the most powerful of the three basic collection transformation functions. Continue Reading