
Weekly Java Newsletter – Issue #3
Weekly Java Newsletter – Issue #3
Hi there,
I hope you are doing great—Eid Mubarak.
In case you are unaware, it means a blessed festival. We, Muslims, celebrate two major festivals, Eid-ul-Adha being one of them. It was on last Saturday. On this occasion, some of us who are capable financially go to perform the Hajj, a pilgrimage to Mecca, and many of us sacrifice animals, distributing the meat to everyone, especially the needy. This commemorates Prophet Ibrahim(Abraham)’s (peace and blessings be upon him) willingness to sacrifice his son. It is a narrative shared by Islam, Judaism, and Christianity.
It is a huge festival. Well, you can see, that’s why I only had time to read a few articles this week. But I promise that next week I will do better.
Have fun reading the items.
- Java vs. Python: A comparison of machine learning libraries: From the perspective of many developers, Python is the undisputed champion when it comes to machine learning (ML)-related tasks. While such a conclusion is plausible, Java is not lagging behind. This article demonstrates that Java provides libraries capable of performing the same tasks as Python. Therefore, Java developers who wish to implement ML do not need to switch languages.
- Jakarta Tech Talk – Jakarta EE 10 Release Celebration: If you missed the Jakarta 10 Jakarta EE 10 Release Celebration, you can always watch it now.
- Refactor Switch to a One-Liner – DZone Java: This article explains how the switch statement is terrible for object-oriented programming and how we can rewrite the code with proper OOP. I felt like this article could be a good refresher on OOP.
- Java’s Encapsulation – When the Getter and Setter Became Your Enemy: This is another OOP refresher. When writing code, we should always adhere to the concept of OOP. One of the pillars of OOP is encapsulation, which hides the internal data structure of a class and lets us expose data through getters and setters. Then, we automatically assume that the getter and setter will protect the data from external modification. However, this conclusion is true in many cases but not universal. This article explains how easily getters and setters can become your enemies.
- Pattern matching updates for Java 19’s JEP 427: when and null: Pattern machining is a great new addition to the Java language. It is undoubtedly going to reshape how we write code in Java. This article discusses the refinement of pattern matching in JEP-420, which includes the use of when and null in the case statement.
- Moving Forward With Money-API, JSR 354: Motivation Behind the API – DZone Java: A new money API under JRS-354 is being developed. You should certainly read about this API if you deal with money in your code.
- Hard things in Computer Science: A saying goes like this: computer science has two hard things: cache invalidation and naming things; and off-by-one errors. Well, this article precisely discusses that.
- I’ve Become a Senior. Now What: This article is not about Java, but I find it important. If you are a senior developer, it discusses your next path.
That’s all for today!
Did you find the content valuable? Feel free to contribute by reaching out to me if you want to add or share your thoughts at @bazlur_rahman
By the way, I’ll be speaking about Project Loom at the Garden State Java User Group on Tuesday, July 12, 2022. You can join me if you’re interested. Registration: https://www.eventbrite.com/e/your-java-code-in-the-fast-lane-using-project-loom-tickets-372411471737
Type your email… {#subscribe-email}
✨ This article was originally published at https://bazlur.ca/2022/07/11/weekly-java-newsletter-issue-3/