Pattern matching for “instanceof” in JDK16 | The Two Minutes Tuesday 016

The new pattern matching enhancement for the instanceof operator in #Java16 spares you a lot of typing, and makes the code more concise and much easier to understand!

#JDK16 is stable and will be released in March. Time to look into the new PATTERN MATCHING functionality that it brings for the instanceof operator. Turn five complex code lines into a simple single code line, and spare a lot of typing and potential failures! I will show you in this video how amazing modern #Java source code looks like when using this new syntax!

CU!

Posted in Java, Programming, Standards, The Two Minutes Tuesday | Tagged , , , , , , , , , , , , | Leave a comment

Spare keystrokes with the record keyword | Modern Java | JDK 16 | Head Crashing Informatics 26

Hey guys! How’s it going?

The record keyword is ready for production use in JDK 16, which officially will be here mid March. Spare lots of keystrokes and get rid of code generators and IDE magic with this new keyword!

In addition to spare typing, your Java source code also is getting much easier to maintain and to understand, as it is so concise and fully integrated into the compiler and the runtime. While, besides of shorter source code, there is no measurable speed gain or reduced binary footprint currently, I could imagine that in future the runtime could further optimize records, as it knows that records are definitively immutable and non-extensible.

Maybe project Valhalla will then treat them as primary data types, as they already are best suited for passing around pure values — so your code would run in double speed consuming half the memory?

Secure a headstart: Use Java 16 NOW!

Project Valhalla: https://cr.openjdk.java.net/~briangoetz/valhalla/sov/01-background.html

Valhalla change log: https://github.com/openjdk/valhalla/commits/lworld

Stay safe and… Party on!

Posted in Jakarta EE, Java, Programming, Standards | Tagged , , , , , , , | Leave a comment

New Game New Luck | The Two Minutes Tuesday 015

Sitting in a f*ing cold studio I wonder what video you would love me to record next!

The year 2021 is here, and I am bringing modern and cloud-native Java to some of my favorite open source projects: Speeding up Maven by using Multi-Release JARs with support for Java 9 and 10’s improved NIO API, quickly booting and small-footprint REST microservices with standalone JAX-RS 3.1 in Kubernetes, Java 11 support in Jakarta EE 9.1, and much more!

But where to start…? What videos do YOU like me to post next? Write your favorite video topics in the comments section belows this video!

CU!

Posted in Jakarta EE, Java, Standards, The Two Minutes Tuesday | Tagged , , , , , , , , , | Comments Off on New Game New Luck | The Two Minutes Tuesday 015

Java 15 vs Java 8 | Modern Java Features | Head Crashing Informatics 25

Hey guys! How’s it going?

Backporting an application from Java 15 to Java 8 to convince you how much better coding in modern Java is!

Java 15’s modern language features and API enhancements makes coding so much better!

In this video I am migrating a JAX-RS application from Java 15 back to Java 8 to demonstrate how great the modern code is like, compared to the functionally identical code in the ancient pre-Java-9 world. You will see the difference in lines of codes spared due to using the var keyword, switch expressions and the Map.of() factory method – just THREE features out of a whole bunch of improvements! In the end, Java 8 was not just slower in its execution, it also forced you to write much more code, less comprehensible code, was more error-prone, and enforced complex construction, compared to Java 15. In addition, you had to scroll around a lot as you had to put some code into extra methods. Also the old-school code had much more potential bugs and even some were not even detectable at compile time!

Adopt modern Java NOW and start to use all the new features to get better, faster, more concise, more readable, and more bug-free Java code in less time!

You even can do that in existing libraries thanks to multi-release JARs, like Maven currently is adopting it, or on Jakarta EE 9.1 which officially supports Java 11 and will be released in few weels! Chances are good that your application server ALREADY allows modern Java, as e. g. Eclipse Jersey is supporting this already since several releases (this video actually proofs this)! And your favorite IDE definitively DOES support Java 15 already!

So there is no more excuse to wait any longer: Start using Java 15 NOW!

Stay safe and… Party on!

Posted in Jakarta EE, Java, Programming, Standards | Tagged , , , , , , , , | Comments Off on Java 15 vs Java 8 | Modern Java Features | Head Crashing Informatics 25

Peter McKinnon, Corona and Jakarta EE 9: Goodbye 2020! – The Two Minutes Tuesday 014

Hey guys!

The year is nearly over, so it is time to look back what the past twelve months brought us.

A world-wide pandemic brought us COVID19, and with is masks, social distancing, home office – and THIS Youtube channel! Yes, indeed, I started this channel to better get through this hard times without losing touch to my audience. As it was impossible to do a gig on stage, I asked @Peilung0 to record shows where I do some coding and out of that we developed great formats: Head Crashing Informatics with its headliner “JAX-RS Done Right!”, The Two Minutes Thuesday, and the latenight live show “Tonite #WithMe”. Inspired heavily by our idols, Peter McKinnon, Edgar Wright and Gavin Hardcastle. And certainly 2020 brought us Jakarta EE 9, JAX-RS 3.0, and Java 15, which I talked a lot about in the past years on stage, and couldn’t resist to produce several videos about!

I really thank everybody for watching my shows, sending all the great comments and helping me pushing this forward. Now that the vaccine is here, 2021 will be really great, so while I really want to extend my Youtube activities, I really look forward to be back on stage and meet you face-to-face again at some programming coference or at a JUG.

CU!

Posted in Jakarta EE, Java, Standards, The Two Minutes Tuesday | Tagged , , , , , , , , , , , | Comments Off on Peter McKinnon, Corona and Jakarta EE 9: Goodbye 2020! – The Two Minutes Tuesday 014

Merry X-Mas – Head Crashing Informatics 24 | Comedy Special

Celebrate Christmas with Leo and Markus!

Leo and Markus are having fish for Christmas Dinner – but certainly rather unpleasant things do happen… Have fun watching our Head Crashing Informatics X-Mas Comedy Special!

Merry X-Mas!

Stay safe and… Party On!

Please support my work and become my patreon!

Posted in Comedy | Tagged , , , | Comments Off on Merry X-Mas – Head Crashing Informatics 24 | Comedy Special

Snapshot from the set: X-Mas Episode

Liked our Halloween movie? Stay tuned for more! We’re currently working on a Christmas episode! Meet Leo and me on December 26th!

Tuning lights at the X-mas set
Posted in Allgemein, Comedy | Tagged , , , | Comments Off on Snapshot from the set: X-Mas Episode

Artikel in iX 1/2021 zu Jakarta EE 9

Ausgabe 1/2021 der iX enthält einen Beitrag von mir zu Jakarta EE 9. Viel Spaß beim Lesen!

Posted in Jakarta EE, Java, Programming, Standards | Tagged , , | Comments Off on Artikel in iX 1/2021 zu Jakarta EE 9

Drawing winners of Pocket Sky give-aways – The Two Minutes Tuesday 013

Hey guys!

Watch me drawing the winners of two Pocket Sky wearables donated by Active Wearables (https://www.pocket-sky.com/). The reactions to the review video was overwhelming! Thanks to everybody! Unfortunately we only have TWO give-aways, so good luck with the drawing!

Merry X-mas to everybody!

While Active Wearables donated the two free give-aways, I bought my own Pocket Sky from my own money and did not get paid in any form for this episode. So be assured, the test result is my own, even if officially the video is marked as sponsored due to that.

I do not get paid for this show, nor do I receive free gadgets, and I am in no way afiliated to the vendor of “Pocket Sky”. I just want to help people suffering from these symptoms.

If you like my show, please subscribe to my channel, or become a patreon (https://www.patreon.com/mkarg).

CU!

Posted in Tech Review, The Two Minutes Tuesday | Tagged , , , , , , , | Comments Off on Drawing winners of Pocket Sky give-aways – The Two Minutes Tuesday 013

[DEUTSCH!] Live-Interview mit Wolfgang Taschner FR 18.12. 20:00 CET | Tonite With Me

Interviewe kurz vor Weihnachten #MitMir Wolfgang Taschner AUF DEUTSCH, den ehemaligen Chefredakteuer der HC und Java aktuell, indem Du Fragen in den Live-Chat schreibst!

Wolfgang ist ein Urgestein der deutschsprachigen Heimcomputer-Szene und hat durch seine Zeitschrift HC viele an das Programmieren und Hardware-Basteln herangeführt!

Ich bin stolz darauf, einen der “Macher” meiner ersten Computer-Jahre live in meiner Late-Night-Show zu haben und freue mich sehr auf Euere Fragen!

This live episode of Tonite #WithMe is in GERMAN only, but you can write questions in English, also. Thank you for your kind understanding.

Posted in Interviews, Tonite With Me | Tagged , , , , , , , | Comments Off on [DEUTSCH!] Live-Interview mit Wolfgang Taschner FR 18.12. 20:00 CET | Tonite With Me