Matej Cerny's avatar
Matej Cerny
npub17hpl...yx66
Scala & Functional Programming Engineer. Database/SQL Veteran. #FP #Scala #Postgres
Matej Cerny's avatar
matejcerny 4 months ago
"Better-fors" are leaving preview with the release of Scala 3.8. It looks like a small DX upgrade, but under the hood, the desugaring is a lot simpler, skipping redundant `.map` calls. See the official documentation. #scala image
Matej Cerny's avatar
matejcerny 4 months ago
Quick clarification☝️Just because Scala itself targets JDK 8 doesn't mean your app has to! You're free to use any JDK 8 or newer. Scala 3.8 will raise the minimum required JDK to 17, but you'll still be able to use the latest JDKs (21, 25, etc.) for your own projects. #scala #jdk View quoted note →
Matej Cerny's avatar
matejcerny 4 months ago
Let's look at four possibilities that JDK 17 adoption could unlock for the upcoming #Scala versions. 🧵
Matej Cerny's avatar
matejcerny 4 months ago
With #Scala 3.8 around the corner, let's recap its biggest changes: 1️⃣ JDK 17 as a minimum version 2️⃣ "Better fors" (SIP-62) 3️⃣ Standard library built with Scala 3
Matej Cerny's avatar
matejcerny 4 months ago
The biggest improvements in #Scala 3 are not enums or nicer implicits syntax, but: 🤝 Making binary compatibility across versions possible (via TASTy) ⚡ A built-in interactive compiler (instead of a batch tool) 🔗 A modular architecture that makes new features easier to add
Matej Cerny's avatar
matejcerny 4 months ago
Streams are a powerful tool for control flow, covering topics such as event handling, file processing, reading from the database... Learn more from Zainab Ali's talk at the London Scala User Group. #scala
Matej Cerny's avatar
matejcerny 4 months ago
Please share so my boss Michal is happy! 😂 Or to spread the word about VirtusLab / SoftwareMill's new podcast! 📢 Or to support local #Scala agencies! 💪
Matej Cerny's avatar
matejcerny 4 months ago
There are so many great thoughts, to pinpoint just a few: 1️⃣ Tooling is nowhere near other languages 2️⃣ Missing a true "Spring Boot-like" framework 3️⃣ Official docs need real-world examples 4️⃣ The persistent misconception that "you need async for performance" #scala
Matej Cerny's avatar
matejcerny 4 months ago
The tech industry is creating its own talent crisis. By ditching junior devs for AI hype, companies are just burning out their seniors and killing the future talent pipeline. #ai
Matej Cerny's avatar
matejcerny 4 months ago
Binary compatibility is a very important topic that every senior should understand. This video, even though it's about Smithy4s, explains concepts for evolving a library's schema in a binary-compatible way. #scala
Matej Cerny's avatar
matejcerny 5 months ago
Java is removing sun.misc.Unsafe, an API which is widely used but was never supported or meant to be public. This is one of the reasons for the adoption of JDK 17 in the upcoming version of Scala, which relies on Unsafe for its lazy val implementation. #java #scala
Matej Cerny's avatar
matejcerny 5 months ago
💡 Quick tip: Stop parsing Array[String], use @main and get type-safe command-line args directly as function parameters. #scala image