Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Bojan Tomić is an experienced Java developer with a healthy interest in modern approaches to old problems, be it in the form of programming paradigms (like functional-reactive), or innovative methods for creating APIs (like GraphQL). Finds immense pleasure in sampling craft beers, playing RPGs, both computer and table-top, and spending all his money on traveling (often off the beaten path). And he's an all-around nice guy to boot ;)
Stats
| Reputation: | 345 |
| Pageviews: | 22.4K |
| Articles: | 1 |
| Comments: | 12 |
Comments
Feb 24, 2018 · Justin Albano
If you really have a need to instantiate annotation, use a library that implements that correctly. Doing what was described in the article can easily lead to obscure bugs, like equal annotations not being equal etc.
GeAnTyRef (my project) has a correct implementation: https://github.com/leangen/geantyref/blob/master/README.md#creating-annotated-types-dynamically-using-typefactory
Jan 29, 2018 · Mike Gates
... wow
Jan 28, 2018 · Oleh Dokuka
Brilliant article! Have you ever written part 2?
Feb 21, 2017 · Miro Mannino
Was wondering the same. But nice article, nevertheless.
Jan 03, 2017 · Gabriel Deliu
Woud you mind explaining what benefits it brings compared to labels/comments? Seems like the wrapping functions are just shoved in there because everytone is doing it.
Oct 25, 2016 · Pierre-Yves Saumont
I could do with less moaning about Java's percieved deficiencies, but otherwsie, a brilliant article! Explains a non obvious topic using good examples and providing rationale - rarely seen on DZone these days.
Oct 17, 2016 · Mike Gates
Just use the Google Java Styleguide. It already has prepared settings files for every IDE and is the most complete and up-to-date of all Java styleguides.
Oct 17, 2016 · Mike Gates
The good ones, yes. That's always been the way: other JVM languages go and experiment and Java, being the slow-moving enterprise langauge by design, picks up the features proved good. This is a very smart dynamic, if you ask me, as it gives everyone what they're in for. Plus, don't forget JDK9 is about Jigsaw (which has nothing to do with Scala), everything else is trinkets in comparison.
Sep 12, 2016 · Duncan Brown
Good point about never relying on defaults when it comes to locales and encodings. But
Seriously? It's like future-proofing for physics changing.
Jul 06, 2014 · Tony Thomas
Dec 04, 2011 · Tony Thomas
I don't work on the client side so all this is a bit alien to me, but your idea sounds quite good in my ears. Transactions, cursors and foreign keys belong in the back end. The front end needs a place to shove JSON (as you noted) and similar blobs of data.
Hm, when I think about it a bit, I think I'm looking at this from a different standpoint from you but I still agree in the end.
Sep 11, 2011 · James Sugrue
I don't think
while(! bufferFull(bytesRead) ) { bytesRead = inChannel.read(buffer); }was a very good example. It basically blocked an otherwise non-blocking channel.