Scala

[ follow ]
Medium
6 days 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
7 hours 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
3 days ago
Scala

Why Java 17 growth is 'exploding'

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

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

Think pragmatically when considering Microservices and Kubernetes [ more ]
Workhunty
1 week 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
4 days 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
1 week 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

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
1 week 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
1 week 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
2 weeks 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 ]
morescala
functional-programming
Medium
1 week 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
6 days 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
1 week 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
3 days 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 ]
Virtuslab
1 week ago
Scala

Changelog | Besom - Pulumi Scala

Support for ConfigGroup, ConfigFile resources in Kubernetes provider 4.11.0+ now available in Besom! [ more ]
Medium
6 days 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 ]
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 ]
Neander
6 days 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
6 days 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
1 week 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 ]
SoftwareMill
1 week 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 ]
Alvinalexander
1 week 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.
Alvinalexander
1 week 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
2 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
3 weeks 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
3 weeks 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
2 weeks 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
2 weeks 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
3 weeks 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 ]
Alvinalexander
3 weeks 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.
scala-3
Alvinalexander
3 weeks 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
3 weeks 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
Lightbend
3 weeks 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
3 weeks 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
4 weeks 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 ]
Medium
1 month ago
Scala

A quick overview of access modifiers in Scala

Scala access modifiers resemble Java's but have additional levels.
Scala defaults to public access, unlike Java's package private default. [ more ]
morejava
Alvinalexander
3 weeks 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
3 weeks 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
3 weeks 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
4 weeks 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
4 weeks 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 ]
Medium
1 month ago
Scala

Troubleshooting Scala Memory Leaks

Understanding the history and recent changes of a product can aid in troubleshooting memory leaks effectively.
Identifying memory leaks may require trying various approaches, as there is no universal solution. [ more ]
Medium
1 month ago
Scala

Understanding the Pattern Matching in Scala.

Pattern matching in Scala allows for matching data structures like case classes and lists.
Sealed types in Scala are used for exhaustive pattern matching and restricting subclasses. [ more ]
Alvinalexander
1 month ago
Scala

How to convert a Scala Array/List/Seq (sequence) to string with mkString

Using mkString method of Array class can convert Scala sequence (like Array, List, Seq) to a String.
mkString function can be customized with any separator string to format the output as desired. [ more ]
Alvinalexander
1 month ago
Scala

Scala if then else syntax (and returning a value from an if statement)

Scala 2 and Scala 3 if/then/else syntax differences.
Scala allows if/then statements to return a value, eliminating the need for a ternary operator. [ more ]
programming-languages
Artima
1 month ago
Scala

The Autoproxy Plugin - Part I

Code passes through various error detection techniques before production, leading to a difference in defect rates for fresh code and production code.
Defect rates seem consistent across programming languages, highlighting the importance of reducing the number of lines of code to decrease errors. [ more ]
Artima
1 month ago
Scala

A (Brief) History of Object-Functional Programming

Scala evolved from a risky, new language to a mature and widely-used option.
Programming languages evolve through a process of artificial selection and hybrid vigor. [ more ]
moreprogramming-languages
Artima
1 month ago
Scala

The Autoproxy Plugin - Part II

Scala REPL under MS Windows faced issues with JLine library.
Proposal for a swing-based REPL in Scala for improved functionality. [ more ]
Medium
1 month ago
Scala

2024 SKODA Scala Design Caracteristicas

SKODA Scala Design features modern and efficient TSI engines ranging from 70 kW to 110 kW.
The 2024 SKODA Scala Design prioritizes safety with a rigid body, advanced assistance systems, and the option for Matrix LED TOP headlights. [ more ]
Medium
1 month ago
Scala

Understanding the Currying function in Scala.

Currying in Scala transforms functions to take single arguments, enabling partial application.
Key benefits of currying include partial application, function composition, and improved type inference. [ more ]
Alvinalexander
1 month ago
Scala

Java stack and heap definitions

Java stack holds local variables and partial results, while Java heap is where memory for class instances and arrays is allocated. [ more ]
Medium
1 month ago
Scala

Why we bet on Scala at SwissBorg

Scala helped SwissBorg beat the average by leveraging its expressiveness and ecosystem.
Scala's scalability, coupled with partnerships with Scala-specialized companies, supported SwissBorg's growth. [ more ]
towardsdev.com
1 month ago
Scala

Exploring Type Constraints and Encoders in Scala

Context bound in Scala defines type requirements for subtype and implicit instance
Encoders in Apache Spark handle serialization and deserialization for Spark SQL [ more ]
Medium
1 month ago
Scala

Higher Order Functions in Scala.

Functions in Scala are first-class citizens, allowing assignment, passing as arguments, and return from functions.
First-class functions enable the creation of higher-order functions, enhancing code expressiveness. [ more ]
Medium
1 month ago
Scala

"Unlocking the Power of Apache Spark: Essential Techniques for Data Manipulation and Analysis"

Medium
1 month ago
Scala

Scala Higher-Order Functions

Functions in Scala are treated as first-class values, allowing functions to be used in a variety of contexts.
Higher-order functions in Scala can take functions as parameters, enabling functional programming concepts like function composition. [ more ]
Alvinalexander
1 month ago
Scala

Java: How to find the longest String in an array of Strings

Finding the longest string in a Java String array can be achieved by iterating through the array and comparing string lengths.
Knowing the length of the longest string in a Java String array can be useful for tasks like setting prototype values. [ more ]
[ Load more ]