Welcome to the thirteenth ##java podcast. Itâ€™s Tuesday, January 30, 2018. Your hosts are Joseph Ottinger (dreamreal on IRC) and Andrew Lombardi (kinabalu on IRC) from Mystic Coders. We have a guest this podcast: Cedric Beust, whoâ€™s always been very active in the Java ecosystem, being a factor in Android and author of TestNG as well as JCommander and other tools – and it’s fair to say that if you’ve used modern technology, Cedric’s actually had something to do with it. Really.
As always, this podcast is basically interesting content pulled from various sources, and funneled through the ##java IRC channel on freenode. You can find the show notes at the channelâ€™s website, at javachannel.org; you can find all of the podcasts using the tag (or even â€œcategoryâ€) â€œpodcastâ€, and each podcast is tagged with its own identifier, too, so you can find this one by searching for the tag â€œpodcast-13â€.
A topic of discussion from ##java last week centers on code coverage: what numbers are “good”? What numbers can be expected? What’s a good metric to consider? Joseph likes (apparently) absurdly high numbers, like 90% or higher; Cedric recommends 50% code coverage as a good baseline; Andrew targets 70%. Expect a poll in the channel on this! It’s a really good discussion, but it’s not really going to be summarized here; listen to the podcast!
Grizzly – an HTTP server library based on NIO – has been donated to EE4J. Thatâ€™s not particularly interesting in and of itself, but thereâ€™s a question of whether all the projects being donated to EE4J imply an abandonment of Java EE as a container stack. It may not be; after all, EE4J is an umbrella just like Java EE itself is, so this may be very much what we should expect – which makes pointing it out as news rather odd. (The original item was from Reddit.)
Pivotal gave us a really interesting article, called â€œUnderstanding When to use RabbitMQ or Apache Kafka.â€ Kafka and RabbitMQ are both sort of message-oriented, but thereâ€™s a lot of confusion about when youâ€™d use one against the other; this article discusses both RabbitMQâ€™s and Kafkaâ€™s strengths and weaknesses. It would have been nicer to talk about AMQP as opposed to RabbitMQ, but the article works nonetheless. Kafka is a high-performance message streaming library; itâ€™s not transactional in the traditional sense; itâ€™s incredibly fast. AMQP is slower (but still really fast, make no mistake) and provides traditional pub/sub and point to point messaging models. The main point of the article, though, is that if you need something other than a traditional model, Kafka is there… but itâ€™s going to involve some effort.
Gradle 4.5 has been released. Itâ€™s supposedly faster than it was, and has improvements for C/C++ programmers. It also has better documentation among other changes; Gradleâ€™s good, and this release is important, but itâ€™s not earth-shattering. This discussion veered off quickly and sharply to Cedric’s homegrown build tool, kobalt – and mentioned Eclipse’ Aether library, since migrated to Apache under the maven-resolver project.
More Java 9 shenanigans: Java EE modules – including CORBA, specifically – arenâ€™t part of the unnamed module in Java 9. This comes to us courtesy of InfoQ, which pointed out CORBA specifically – CORBA being harder to reach isnâ€™t really a big deal, Iâ€™d think, because nobodyâ€™s intentionally dealt with it who hasnâ€™t absolutely had to. And itâ€™s not really a Java EE module, really, so pointing out the removal along with Java EE is accurate but misleading. What does this mean? Well, if youâ€™re using one of the nine modules removed, youâ€™re likely to have to include flags at compilation and runtime to make these modules visible for your app. (See http://openjdk.java.net/jeps/320 for the actual Java Enhancement Proposal.)
Thereâ€™s a Java Enhancement Proposal for multiline strings. Itâ€™s in draft, but has Brian Goetzâ€™ support; this is one of those features that Java doesnâ€™t have thatâ€™s left people wondering why for a long time, I think – every other JVM language seems to include it. This doesnâ€™t come up very often – if it was actually all that critical it would have been done a long time ago – but itâ€™ll be nice to see it when (and if) it does make it into Java. Itâ€™s done with backticks; it does not use interpolation. Interesting, though.
Baeldung has an article called â€œThe Trie Data Structure in Java,â€ which, well, presents a Trie. Itâ€™s a good article, and explains the data structure really well – but doesnâ€™t explain why youâ€™d use a Trie as opposed to some other similar data structures. Tries represent a tradeoff between data size and speed; Tries tend to be incredibly fast while being more memory-hungry than some of their counterparts. Incidentally: there’s a question of pronunciation! “Trie” is typically pronounced the same was as “tree” is – while Joe pronounces it like “try” and struggled mightily to concede to peer pressure and say “tree.” Naturally, he was inconsistent about it; early pronunciation was in fact like “try” but, as stated, convention says “tree.” And it is a tree structure…
Simon Levermann, sonOfRa on the channel, published a reference to his new pwhash project, a result of a series of discussions that seem to have gone on for a few weeks on the channel. Itâ€™s a password hashing library; it provides a unified interface to a set of hashing algorithms, like argon2 and bcrypt.
Welcome to the third ##java podcast. Iâ€™m your host, dreamreal on the IRC channel, and itâ€™s Monday, 2017 October 9.
As usual, this podcast is built from interesting content submitted to the channel bot, using the ~submit command. If youâ€™re on the channel, itâ€™s very easy to use: ~submit and a URL is all you need, although itâ€™s very helpful if you include a comment about what makes the content interesting. That saves your host â€“ me â€“ a lot of work trying to figure out why something was submitted.
- First up, we have â€œReverse Engineering an Eclipse Plugin,â€ a long (but good) post from someone trying to figure out a security issue in the a popular Eclipse plugin â€“ I donâ€™t use it, but he says that apparently the Eclipse Class Decompiler Plugin as deployed on the Eclipse Marketplace has a â€œphone homeâ€ feature that isnâ€™t shown in the github repository for the plugin. The author did some basic security auditing and found that the plugin apparently does something after a number of classes have been decompiled, and that the open source version of the plugin does not show this functionality. Good call by the author; he doesnâ€™t actually reverse engineer the plugin, but actually dives into the security aspects of it, but itâ€™s an excellent walkthrough nonetheless.
- Common Excuses Why Developers Donâ€™t Test Their Software, as the title might suggest, walks through some of the reasons software tests don’t get written and run. For the most part, it’s laziness and self-deception; headings include “My code runs perfectly, why do I need to test,” “I don’t know what to test,” Barbie’s favorite excuse of “testing is hard!,” “testing increases development time.” Well worth checking out – and sending to your co-workers.
- Zircon is an extensible text UI library that targets multiple platforms and was designed specifically for game developers. It actually looks neat – you could imagine Dwarf Fortress or Nethack‘s user interface with something like this. I still content that while Nethack lacks the twitchy adrenaline rush of first person shooters and other such games with high frame rates, it’s still one of the best – if not THE best – computer game ever written. And yes, I know, I sound old. Now get off my lawn.
- The Atlantic – a hotbed of coder information, I’m sure we’ll all agree – has “The Coming Software Apocalypse,” an article going into how programmers construct code. There are people out there for whom 4GL is not dead; they want to snap things together to program. It’s not a bad idea, really, and done well it even works – like everything done well. But the problem is that it’s not easy to do well; maybe they have a solution that’ll work this time. The JavaBeans specification was actually meant to enable this sort of thing, even, but nobody uses it that way because it’s hard to do properly, and let’s face it, we as programmers tend to be conservative in our methods; we like writing code, we don’t care for connecting boxes to each other very much.
- Announced at JavaOne – or, well, exposed better at JavaOne, more like, was FN, aan equivalent to Amazon’s Lambda functionality. As a really poor summary of both Lambda and FN, what you would do is write a simple function that accepted input – presumably – and wrote output, and you’d connect these functions to build more complex functionality – almost like programming, you might say. It tends to have determinate latency (it’s not fast) and indeterminate scalability (it will scale out) – and with Java 9 potentially being far lighter on resources than prior JVMs thanks to things like JLink, this could be really nice to have on hand.
- Lastly, we have Oracle. The United States Government asked for commentary on how to modernize government IT, and Oracle responded – with a long PDF. It’s an interesting paper, for various reasons, but what’s really interesting is how… outdated and self-serving it sounds. It comes off as telling the government “you need people like us and not those silly hippies from Silicon Valley!” even though Oracle is based in Silicon Valley. Basically their paper is a repudiation of modern software practices, even though the older methods of coding are the whole reason the government is asking for how to modernize in the first place. (Techdirt‘s article on the Oracle comment points out a number of failures given us by what Oracle is propositioning.) Actually, the TechDirt article does a good job of decomposing Oracle’s commentary altogether – it’s a worthwhile read, too. Oracle comes across as whining about new-fangled, agile methodologies, saying “That’s now how we made our money back in the day! We earned it like real men, by crushing our competition because we could absorb losses they couldn’t and making sure they were iced out of big contracts. Let’s go back to that, shall we?”