List Comprehension
Still in the process or tidying up the bot behind the @TorAtlas Twitter account, which means I’m still writing Java. I’ve now been exploring “list comprehension"-like techniques using another new Java 8 feature, Streams. Essentially this involves creating lists from lists in an elegant way. In Python, I would do something like: runningRelays = [relay for relay in relays if relay['is_running']] (I know something is happening because writing that example line I had an incredible urge to terminate the line with a semicolon.