Tag: Scala
-
Phantom types without phantom pain
Posted on July 9, 2023, Level intermediate Resource Length medium
Phantom types is an interesting feature of the Scala programming language. While extremely useful for library authors, they have a reputation of being too confusing, complex and unnecessary, especially for programmers coming from different backgrounds - weakly typed languages. By Jaroslav Regec.
Tags big-data programming how-to scala java
-
Using Vulcan codecs with Kafka Java APIs
Posted on April 17, 2023, Level intermediate Resource Length medium
For those that aren't familiar, Vulcan is a functional Avro encoding library that uses the official Apache Avro library under the hood. The difference between this and the official Avro build plugins approach is that the types are defined in plain Scala. Then the Avro schema is generated from those instead of defining the Avro schema and getting code generated at compile time that adheres to that schema. By César Enrique.
Tags apache java messaging app-development streaming scala
-
Underrated Scala features and hidden gems in the standard library
Posted on April 16, 2023, Level intermediate Resource Length medium
A data structure which manages resources automatically. It lets us focus on the task at hand by giving us a handle on the acquired resource which is then automatically released in the end so that we avoid resource leaks. By Anzori (Nika) Ghurtchumelia.
Tags akka java kotlin app-development scala
-
Scala: Implicit parameters when to use them?
Posted on January 30, 2023, Level intermediate Resource Length medium
Implicits are one of the most feared features of the Scala programming language and for good reasons! By Julien Truffaut.
Tags scala programming akka serverless
-
Scala Toolkit makes Scala powerful straight out of the box
Posted on November 13, 2022, Level intermediate Resource Length medium
Scala Toolkit is an ongoing effort by Scala Center and VirtusLab to compose a set of approachable libraries to solve everyday problems. These libraries will be made easily accessible as a precomposed package. This package will be available for each Scala release. By Szymon Rodziewicz.
Tags scala akka data-science java app-development
-
How to prevent Scala 3 compiler regressions with Community Build
Posted on September 6, 2022, Level intermediate Resource Length long
We always assume the language compiler's or interpreter's impeccability when writing code in any programming language. Just as any other program, it might contain inconsistencies with its specification or subtle bugs. By Wojciech Mazur.
Tags scala programming akka java web-development
-
A guide to JVM parameters for Java developers
Posted on April 29, 2022, Level intermediate Resource Length medium
By understanding and using JVM and JVM parameters, both developers and end users can diagnose failures and improve the performance of a Java application. By Jayashree Huttanagoudar @redhat.
Tags java web-development programming scala jvm devops
-
Revolutionizing Java with GraalVM Native Image
Posted on April 23, 2022, Level intermediate Resource Length long
GraalVM has caused a revolution in Java development since it launched three years ago. One of the most discussed features of GraalVM is Native Image, which is based on an ahead-of-time (AOT) compilation. By Alina Yurenko and Karsten Silz.
Tags java programming kotlin jvm scala performance
-
Discarding magic feathers -- Going frameworkless in Scala
Posted on February 25, 2022, Level intermediate Resource Length medium
A good few years back, I looked into building a Scala webapp using Java's little-known provided HTTP server rather than one of the many frameworks already out there during my 10% time at Springer Nature. I made a mistake here - to avoid those frameworks I built my own framework to route requests within a webapp. I called it Sommelier, and it is now hidden away in a private github repo as really, we don't need another of those. Maybe we don't need any of them at all. By Jim Kinsey.
Tags scala akka programming app-development web-development
-
How to build a powerful e-learning platform using Scala and Redis
Posted on December 9, 2021, Level beginner Resource Length medium
Never before has online learning been so accessible. Whether you want to discover more about cryptocurrency, sharpen your programming skills or even just learn a new language, the digital age has gifted everyone access to a phenomenal amount of content. However, over time e-learning has been viewed as just another digital commodity, where users expect all online content to be instantaneous. Speed remains crucial to performance, where any lags or delays in page loading time kills the user's experience. By Redis Growth Team.
Tags cloud miscellaneous scala java machine-learning big-data nosql
-
Intro to Scala 3 macros
Posted on September 7, 2021, Level advanced Resource Length medium
What is macro? A common explanation given is that a macro is a program that is able to take code as an input and output code. While it's true, it might not immediately make sense since Scala programmers are often familiar with higher-order functions like (map {...}) and by-name parameter, which on the surface it might seem like it is passing a block of code around. By @eed3si9n.
Tags scala java jvm programming
-
Introduction to Akka Streams
Posted on August 22, 2021, Level beginner Resource Length medium
Akka Streams is a library to process and transfer a sequence of elements. It is built on top of Akka Actors to make the ingestion and processing of streams easy. As it is build on top of Akka Actors, it provide a higher-level abstraction over Akka's existing actor model. By Asbin Bhadra.
Tags akka queues programming scala java jvm