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
1 week 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 ]
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
6 days 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 ]
Pierre Ricadat's Tech Blog
1 month ago
Scala

Supporting high-performance response streaming in Shardcake

Shardcake simplifies entity distribution and messaging across servers with location transparency.
Challenges arise in streaming messages to multiple recipients with possibility of encountering issues. [ 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 ]
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 ]
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 ]
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 ]
InfoQ
1 day 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 ]
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 ]
Alvinalexander
21 hours 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 ]
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

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:
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

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 ]
Alvinalexander
1 month ago
Scala

Java JFrame example: How to display a JFrame

Construct and display a JFrame using SwingUtilities.invokeLater method.
Proper way to display a JFrame is ensuring it's on the Event Dispatch Thread (EDT). [ 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 ]
Alvinalexander
1 month ago
Scala

The Java 8 lambda Thread and Runnable syntax and examples

Java 8 introduced lambda syntax for Thread and Runnable
Lambda syntax simplifies Thread and Runnable creation in Java [ more ]
Alvinalexander
1 month ago
Scala

Android: How to send a message from a Thread to a Handler

Using threads with a Handler in Android for asynchronous operations.
Updating UI elements like TextView with current date and time using a separate thread. [ more ]
Alvinalexander
1 month ago
Scala

Kotlin sortedWith syntax and lambda examples

The key to using sortedWith in Kotlin is understanding how to write a comparator with anonymous functions (lambda)
Kotlin sortedWith can be used to sort both integers and strings based on different criteria. [ more ]
Medium
1 month ago
Scala

Brief Introduction to Scala

Scala is a programming language created in 2003 to address challenges in developing complex software systems efficiently.
Scala is statically-typed, supports functional and object-oriented programming, and has a rich set of libraries for building scalable applications. [ more ]
Medium
1 month ago
Scala

From CSV to Parquet: A Journey Through File Formats in Apache Spark with Scala

SparkSession is used as the entry point to Spark SQL functionality.
Different file formats like CSV, Parquet, JSON, and Avro can be read into DataFrames in Spark. [ more ]
Medium
1 month ago
Scala

Scala Scripting: Powering Functional Programming and Big Data Solutions

Scala is a high-level language combining object-oriented and functional programming on JVM.
Scala scripting enables automation, data processing, and web applications with concise and scalable code. [ more ]
Medium
1 month ago
Scala

Download Now Developer-for-Apache-Spark-Scala Exam Questions Answers and Tips

Validation of skills in Apache Spark & Scala is crucial for professionals.
Exam covers Apache Spark & Scala concepts, hands-on coding, and real-world problem-solving. [ more ]
Alvinalexander
1 month ago
Scala

ZIO, ZIO HTTP Server, and Scala-Cli

The article provides a simple ZIO HTTP server application example.
Instructions on setting up the ZIO dependencies and running the application were shared. [ more ]
Medium
1 month ago
Scala

Understanding Type Parameters with Upper Bounds and Context Bounds in Scala

Scala combines object-oriented and functional programming.
Type parameters in Scala can have upper bounds and context bounds for type restrictions. [ more ]
Medium
1 month ago
Scala

Use of Underscore(_) in Scala Language.

Underscore (_) in Scala has multiple uses like wildcard pattern, ignored variable, and anonymous function.
It is used for wildcard pattern to match any value, as an ignored variable when value is not needed, and in lambda expressions as a placeholder. [ more ]
[ Load more ]