排序
Java 8 Stream Cheatsheet
Java 8 Stream Cheatsheet,Originally posted at www.gunnargissel.com Streams are a way of working with objects in a collection. Streams allow a person to say what they want to have a...
Closure? I Hardly Know Her!
Closure? I Hardly Know Her!,Cover image credit: this amazing StackOverflow answer. I've learned about closures a few different times, and each time, I've come away feeling like I g...
Think twice before using a Supplier
Think twice before using a Supplier, Supply and demand At the end of my last article, we had this piece of non-functioning code, which tried to replace placeholder string from a fi...
Navigating the uncharted Stream
Navigating the uncharted Stream, Wrong bend of the river When I left school, Java 6 had just been released and wasn’t really integrated into the school curriculums yet. But I was ...
Turn Your Spaghetti Code into Functions, Part 2
Turn Your Spaghetti Code into Functions, Part 2,Read Part 1, first. In Part 1, we started with an example of common business logic code, and an analogy based on cramming an elephan...
Property Testing: Why You Should Generate Test Data
Property Testing: Why You Should Generate Test Data,I drank the functional programming cool-aid at my first real job. While I do not currently professionally develop with functiona...
Unwrapping Decorators, Part 2
Unwrapping Decorators, Part 2, Quick Recap Last post, I wrote about the basics of decorators in Python. For those of you that missed it, here are the highlights. Decorators are pla...
Unwrapping Decorators, Part 1
Unwrapping Decorators, Part 1, Preface I promised in an earlier post to talk about Python decorators. A note for the smarty-pantses reading this: there is apparently something call...
Java 8 Functional Interface Cheatsheet
Java 8 Functional Interface Cheatsheet,O'Reilly has a great in-depth article on the functional interface in Java 8. Here's a quick cheat sheet to keep track of the main types, what...