Scala

[ follow ]
Lightbend
3 months ago
Scala

Akka Edging Further | @lightbend

Unifying the programming experience between the cloud, the cloud edge, and devices located away from the cloud is a powerful concept that empowers developers.
The development of Akka Edge for devices was influenced by previous work in edge-based agriculture, where poor network connectivity and unstable power supplies were defining factors. [ more ]
Lightbend
4 months ago
Scala

2024 Predictions for the Cloud Native Market | @lightbend

The lines between Cloud Computing and Edge Computing will continue to blur
More instances where the same applications will be deployed in both environments, enabling each of these architectures to adopt one another's best attributes. [ more ]
Medium
2 weeks ago
Scala

This week in #Scala (Apr 29, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.
Medium
2 weeks ago
Scala

This week in #Scala (May 6, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.
ITPro
2 weeks ago
Scala

Why Java 17 growth is 'exploding'

Java 17 growth rate has surged, now overtaking previous LTS Java versions. [ more ]
Medium
3 weeks ago
Scala

Does the Microservices and Kubernetes Hype Lead to a Greener Future?

Think pragmatically when considering Microservices and Kubernetes [ more ]
Workhunty
2 weeks ago
Scala

Job offers for Scala programming language - Work Hunty

It's important to consider job market competitiveness when looking for Scala developer opportunities abroad or remotely. [ more ]
scala
Medium
2 weeks ago
Scala

Exploring Programming Languages-Scala

Scala is a programming language built on the Java Virtual Machine with notable users like LinkedIn, Netflix, Sony, and Amazon. [ more ]
Medium
3 weeks ago
Scala

Exploring Play Framework: Java, Scala, and Web Development

Scala complements Java in Play Framework for robust and scalable web applications. [ more ]
Medium
2 weeks ago
Scala

Exploring Programming Languages-Scala

Scala is a programming language built on the Java Virtual Machine and is used by major companies like LinkedIn, Netflix, and Amazon. [ more ]
Alvinalexander
1 week ago
Scala

ZIO 2: Using Either with ZIO in a Scala for-expression

Use ZIO in Scala for-expressions with Either to manage errors effectively. [ more ]
Alvinalexander
1 week ago
Scala

Scala Either type: How to get the value out of an Either

Recommended approaches to extract value from Scala Either: match, fold, getOrElse.
Happy Path Programming: focusing on success case and letting failure case take care of itself. [ more ]
Alvinalexander
1 week ago
Scala

Scala: How to download URL contents to a String or file

Downloading URL contents to a String or file in Scala can be achieved using simple built-in functions or external libraries. [ more ]
morescala
SoftwareMill
3 weeks ago
Scala

Safe direct-style Scala: Ox 0.1.0 released | SoftwareMill

Ox project 0.1.0 release offers safe direct-style concurrency and resiliency for Scala on the JVM. [ more ]
functional-programming
Medium
3 weeks ago
Scala

Unlocking the Power of Scala Development: A Comprehensive Guide

Understanding Scala can create numerous opportunities for developers at all levels. [ more ]
Scalac - Software Development Company - Akka, Kafka, Spark, ZIO
2 weeks ago
Scala

Scalendar May 2024

Frontend and software architecture events in May 2024 feature Scala conferences covering functional programming and industry practices with renowned experts and diverse topics. [ more ]
Alvinalexander
2 years ago
Scala

Functional Programming, Simplified (a Scala book)

Functional Programming, Simplified book provides a comprehensive guide to understanding functional programming, condensing multiple resources into one accessible source. [ more ]
Inner-product
3 weeks ago
Scala

Direct-style Effects Explained

Direct-style effects aim to provide the benefits of monads without using monads in programming languages. [ more ]
morefunctional-programming
Alvinalexander
2 weeks ago
Scala

How to format source code blocks in Scaladoc comments

To embed Scala source code examples in Scaladoc comments, use {{{ and }}} characters, enabling proper code block formatting. [ more ]
InfoQ
2 days ago
Scala

Streaming Databases: Embracing the Convergence of Stream Processing and Databases

RisingWave Labs founder discusses the concept of streaming databases blending stream processing and database systems. [ more ]
Medium
3 weeks ago
Scala

From Code to Execution: Decoding Apache Spark's Core Mechanics with Scala

Apache Spark is crucial for batch and stream processing of massive data sets, offering rapid insights and real-time data processing. [ more ]
alvinalexander.com
23 hours ago
Scala

Getting a random element from a list of elements in Scala

Creating a function to return a random element from a list using Scala. [ more ]
Alvinalexander
1 day ago
Scala

How to build a Mac Java app (OS X 10.9+ and Java 7+)

The article provides an updated solution for bundling Java 14 and newer applications on macOS systems. [ more ]
Alvinalexander
3 weeks ago
Scala

ZIO ZLayer: A simple "Hello, world" example (dependency injection, services)

As a brief note today, here is some source code for a ZIO ZLayer application using Scala 3.
In this code I use the ZLayer framework to handle some dependency injection for a small application.
Virtuslab
2 weeks ago
Scala

Changelog | Besom - Pulumi Scala

Support for ConfigGroup, ConfigFile resources in Kubernetes provider 4.11.0+ now available in Besom! [ more ]
Medium
1 year ago
Scala

This week in #Scala (Nov 28, 2022)

Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.You can now subscribe and get the latest edition directly into your inbox.
Medium
1 year ago
Scala

This week in #Scala (Nov 21, 2022)

Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.You can now subscribe and get the latest edition directly into your inbox.
Medium
1 year ago
Scala

This week in #Scala (Nov 14, 2022)

Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.You can now subscribe and get the latest edition directly into your inbox.
Medium
1 year ago
Scala

This week in #Scala (Nov 7, 2022)

Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.You can now subscribe and get the latest edition directly into your inbox.
Medium
1 year ago
Scala

This week in #Scala (Oct 31, 2022)

Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.You can now subscribe and get the latest edition directly into your inbox.
Medium
1 year ago
Scala

This week in #Scala (Oct 17, 2022)

You can now subscribe and get the latest edition directly into your inbox.Welcome to the new edition of #ThisWeekInScala!This blog aims to keep you up to date with the latest news from the world of Scala and Reactive programming.
Medium
1 year ago
Scala

This week in #Scala (Oct 10, 2022)

Welcome to the new edition of #ThisWeekInScala!
...
This blog aims to keep you up to date with the latest news from the world of Scala and Reactive programming.
Lightbend
5 months ago
Scala

Akka Edge: Exploring Scale to Zero | @lightbend

Running Akka Edge services at the edge of the cloud requires minimizing resource usage.
The scale-to-zero model can help optimize resource usage and reduce costs for fluctuating traffic or activity. [ more ]
scala-3
Alvinalexander
1 week ago
Scala

Scala 3: Package objeccts are deprecated, how to create types in a top-level package and use them everywhere in your project

In Scala 3, package objects are deprecated, impacting code accessibility across sub-packages. A workaround is to define common types in a 'near' top-level package for import. [ more ]
Alvinalexander
1 week ago
Scala

ZIO 2: Processing ZIO command line arguments

Scala 3 and ZIO 2 example demonstrates processing command-line arguments in a ZIO 2 application. [ more ]
Alvinalexander
1 month ago
Scala

My free Scala and FP online video training courses

Ziverge sponsored and enabled free video training courses on Scala 3 without ads or paywalls. [ more ]
Alvinalexander
1 month ago
Scala

Scala 3 Opaque Types: When to use, examples, benefits

Opaque types in Scala 3 offer encapsulation, type safety, abstraction, and semantic clarity.
They help create new data types with controlled access to representation, suitable for scenarios needing clear interfaces and meaningful names. [ more ]
morescala-3
Alvinalexander
1 week ago
Scala

ZIO 2: Solution to "ZIO.cond not working" (code not running)

Understanding how ZIO.cond works is crucial for proper error handling in ZIO applications. [ more ]
Medium
2 weeks ago
Scala

Using zipWithIndex or zip to Create Loop Counters in Scala.

Using zipWithIndex or zip methods in Scala can automatically create a counter when iterating over sequential collections. [ more ]
Alvinalexander
1 week ago
Scala

Scala: ZIO 2: Getting the actual exception when using ZIO.attempt

Use refineToOrDie in Scala ZIO 2 to display the specific exception type instead of just Throwable when using ZIO.attempt. [ more ]
Virtuslab
2 months ago
Scala

Shipping your code to cloud with Scala, Besom and Pulumi | Besom - Pulumi Scala

Besom, the Scala SDK for Pulumi, aims to enhance developer experience and marks a move towards API stability. [ more ]
Lightbend
6 months ago
Scala

Deep-dive of Event-Driven communication between Edge and Cloud | @lightbend

Akka Projections and brokerless service-to-service communication are the backbone of the solution.
Event-sourced actors and event journaling enable event-driven communication between services. [ more ]
Alvinalexander
1 week ago
Scala

The ZIO 2 "mental model"

Think of ZIO 2 as a mental model encompassing code structure and best practices. [ more ]
Alvinalexander
1 week ago
Scala

ZIO 2: A ZIO.timeout interrupt example with ZIO.attempt

ZIO.timeout can be used in Scala 3 for adding a timeout to an operation, resulting in a None value if the timeout is triggered. [ more ]
The JetBrains Blog
1 month ago
Scala

IntelliJ Scala Plugin 2024.1 Is Out! | The IntelliJ Scala Plugin Blog

IntelliJ Scala Plugin 2024.1 release includes better Scala 3 support, Scaladoc enhancements, and improved compiler-based highlighting. [ more ]
Eed3si9n
1 month ago
Scala

sbt 2.x remote cache with Bazel compatibility

Implementing remote cache in sbt 2.x can significantly speed up builds by sharing results and improving efficiency. [ more ]
Neander
2 weeks ago
Scala

Spec-first and code-first, hand in hand

Yesterday, I released smithy4s-deriving, a Scala 3-only library that provides meta-programming-based derivation mechanisms for the core abstractions of Smithy4s.
Neander
2 weeks ago
Scala

Spec-first and code-first, hand in hand

Yesterday, I released smithy4s-deriving, a Scala 3-only library that provides meta-programming-based derivation mechanisms for the core abstractions of Smithy4s.
Pretty
3 weeks ago
Scala

Jon Pretty, Statement

Jon Pretty received an apology and settlement after being falsely accused of misconduct, leading to significant personal and professional harm. [ more ]
Alvinalexander
3 weeks ago
Scala

A ZIO JSON solution to parse/decode JSON with blank spaces in the keys (and a type hierarchy)

ZIO JSON provides a solution to decode JSON into Scala classes/objects. [ more ]
Alvinalexander
3 weeks ago
Scala

ScalaTest: How to print debug output in tests (to STDOUT)

ScalaTest's info function can be used to print output for visibility within unit tests, unlike println or System.err.println. [ more ]
Alvinalexander
3 weeks ago
Scala

An example of JSoup's OutputSettings class

I ended up not using this code, but if you wanted to see one way to use JSoup's OutputSettings (Document.OutputSettings) class to set some parameters before calling JSoup.clean, I hope this is helpful:
Alvinalexander
3 weeks ago
Scala

How to convert HTML to plain text with Jsoup (Scala and Java)

Jsoup in Scala/Java can convert HTML to plain text, offering various methods for extraction. [ more ]
Medium
3 weeks ago
Scala

This week in #Scala (Apr 22, 2024)

Welcome to the new edition of #ThisWeekInScala!
...
"This week in #Scala (Apr 22, 2024)" is published by Petr Zapletal.
Medium
1 month ago
Scala

Demystifying the 'type mismatch; found : X required: Y' Error in Scala

Demystifying the 'type mismatch; found : X required: Y' error in Scala. [ more ]
Medium
4 weeks ago
Scala

Solving `type mismatch; found : X required: Y` Error in Scala

Understanding `type mismatch; found : X required: Y` error in Scala helps in fixing it by changing the type, casting, or altering function signatures. [ more ]
Alvinalexander
3 weeks ago
Scala

ZIO 2: How to read a file and write its output to the console

Reading files and processing output using ZIO 2 in Scala. [ more ]
Alvinalexander
4 weeks ago
Scala

SBT/build.sbt: One percent symbol or multiple percent symbol for Java and Scala dependencies?

Use %% for Scala-specific libraries and % for other JVM dependencies in SBT build.sbt files for Scala projects. [ more ]
Medium
1 month ago
Scala

Simplifying SCALA 3 features

Scala 3 aka Dotty is a major release version of Scala programming language.
...
This version introduces the power features of Scala so far if we compare it with its version 2.
Medium
1 month ago
Scala

This week in #Scala (Apr 15, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog aims to keep you updated with the latest news from the world of Scala and Reactive programming.
Scalac - Software Development Company - Akka, Kafka, Spark, ZIO
1 month ago
Scala

Mocking Libraries can be your doom

Unit tests are crucial for software quality and bug detection, with mocks being beneficial for isolating dependencies. [ more ]
Alvinalexander
1 month ago
Scala

Java: How to get the current date (and time) in Java 8, 11, 14, 17, etc.

To get the current date in Java, use LocalDate.now() with Java 8 and newer versions. [ more ]
Medium
1 month ago
Scala

Building a Scalable Producer-Consumer application and Deploying With Scala and Deploying on...

RabbitMQ is an open-source message broker facilitating asynchronous communication through AMQP protocol. [ more ]
Medium
1 month ago
Scala

how to fill null values and drop null values in pyspark,sql and scala

Handling null values involves filling specified values and dropping rows/columns with null values in PySpark, SQL, and Scala. [ more ]
Alvinalexander
1 month ago
Scala

Scala sequences: head, tail, init, last (visual, image)

I just saw this drawing on the Learn You a Haskell website, and I wish I had done something visual like it for the Scala Cookbook.
Alvinalexander
1 month ago
Scala

Scala/Java/Kotlin: How to replace left and right brackets in a String (replaceFirst, replaceAll)

Use \ before left bracket for string replacement in Scala/Java/Kotlin. [ more ]
Lightbend
1 month ago
Scala

Lightbend aims to democratize distributed systems for developers | @lightbend

Lightbend simplifies distributed systems with low latency and scalability.
Lightbend focuses on enabling developers to quickly build systems regardless of their skill set. [ more ]
java
Alvinalexander
1 month ago
Scala

Java Jar file: How to read a file from a Jar file

Java applications can read text files from their own JAR files using InputStream and BufferedReader.
Using getResourceAsStream method without a path before the filename reads files from the current directory within a JAR. [ more ]
Alvinalexander
1 month ago
Scala

A Java JOptionPane showMessageDialog with scrolling text

Using a JTextArea inside a JScrollPane to display a long text in a JOptionPane showMessageDialog.
Creating a scrolling text area in a JOptionPane showMessageDialog to handle large text messages effectively. [ more ]
Alvinalexander
1 month ago
Scala

Creating a Thread (and Runnable) in Scala

Scala threads are created similarly to Java threads with slight syntax differences.
Java Runnable can be used in Scala to create threads by implementing the run method. [ more ]
morejava
Alvinalexander
1 month ago
Scala

vi/vim editor: How to show hidden/invisible characters

You can show hidden characters like tabs and end-of-line/newline characters in vi/vim using the set list command. [ more ]
Alvinalexander
1 month ago
Scala

Java socket timeout: How to set the timeout on a Java socket

Set Java socket timeout using socket.setSoTimeout method for a non-zero timeout period
The timeout must be greater than 0; zero means infinite timeout [ more ]
Medium
1 month ago
Scala

Solving `type mismatch; found : X required: Y` Error in Scala

Understanding 'type mismatch' error in Scala - mismatch between expected and actual data types.
Resolving 'type mismatch' by correcting data type or using type casting. [ more ]
Medium
1 month ago
Scala

Efficient Scala BiqQuery Data Retrieval: A Comprehensive Guide

You can use the spark-bigquery connector to read data from BigQuery tables directly into Spark DataFrames.
It is essential to set GCP credentials, specify the table path correctly, and include necessary dependencies to connect with BigQuery. [ more ]
Alvinalexander
1 month ago
Scala

ScalaJ-HTTP examples: GET, POST, handling redirects

ScalaJ-HTTP provides examples for handling redirect requests, making GET requests, setting timeout values, and performing POST requests.
Examples include handling redirect requests, following HTTP redirects, making GET requests, setting timeout values, and performing multipart POST requests. [ more ]
Medium
1 month ago
Scala

Solving the 'Palindrome Number' on LeetCode: Scala Solutions Walkthrough

Converting integer to string for palindrome check.
Optimization to reverse half of the number for palindrome check. [ more ]
Medium
1 month ago
Scala

Monads Everywhere - Simply get the advantage of Generics

Monads simplify creating thread-safe primitives for any type without boilerplate.
Type classes enable working with different types like Integer or String for thread-safe operations. [ more ]
Scalac - Software Development Company - Akka, Kafka, Spark, ZIO
1 month ago
Scala

Scala 3 Data Transformation Library: ducktape 0.2.0.

Ducktape is an automatic and customizable compile-time transformation tool for case classes and sealed traits/enums in Scala.
The name 'ducktape' signifies its potential to generate glue code, despite being originally intended as 'ducttape'. [ more ]
Medium
1 month ago
Scala

Scala Jobs on AWS Glue: A Practical Guide to Development, Local Testing and Deployment

AWS Glue is highly scalable, cost-effective, and integrates well with other AWS services for orchestrating complex pipelines.
Performance issues exist in AWS Glue when dealing with large Python-based Pyspark jobs due to expensive data shuffling between JVM and Python processes. [ more ]
Medium
1 month ago
Scala

Time Series Feature Engineering in Apache Spark for Python with Scala

Feature engineering is crucial for unlocking insights from complex data sets.
Time series feature engineering requires specialized methods due to temporal dependencies. [ more ]
Medium
1 month ago
Scala

Improved pipeline processing of self-made virtual CPU Part 2

Executing one operation over multiple cycles is essential for simulating actual circuit behavior in Chisel.
Key steps include specifying cycles to complete, starting execution under specific conditions, and managing command flow between stages. [ more ]
Lightbend
1 month ago
Scala

Cloud architecture will fail you. Distributed app architecture will not. | @lightbend

Number of endpoints accessing applications doubled in 5 years
Cloud architecture ill-suited to handle increasing number of endpoints [ more ]
[ Load more ]