#scala

[ follow ]
#kafka

How to Use KafkaJsonSchemaSerializer in Scala with Case Classes?

KafkaJsonSchemaSerializer requires proper class structure and annotations for effective serialization in Scala.

Real-Time Recommendations Using Apache Storm and Kafka in Scala

Implementing a real-time recommendation system using Apache Storm and Kafka can effectively process large streams of data in real-time.

Building an IoT Monitoring System with Spark Structured Streaming, Kafka and Scala

Developed IoT Smart Farm Monitoring system using Scala, Apache Spark Streaming, and Kafka for real-time data processing.

How to Use KafkaJsonSchemaSerializer in Scala with Case Classes?

KafkaJsonSchemaSerializer requires proper class structure and annotations for effective serialization in Scala.

Real-Time Recommendations Using Apache Storm and Kafka in Scala

Implementing a real-time recommendation system using Apache Storm and Kafka can effectively process large streams of data in real-time.

Building an IoT Monitoring System with Spark Structured Streaming, Kafka and Scala

Developed IoT Smart Farm Monitoring system using Scala, Apache Spark Streaming, and Kafka for real-time data processing.
morekafka
#asynchronous-programming

ZIO for Scala........... 101

ZIO provides a type-safe, functional approach to asynchronous and concurrent programming in Scala, facilitating better handling of side effects.

Working with Futures in Scala: A Quick Introduction

Scala's Futures enable efficient asynchronous task handling, crucial for applications with high concurrency demands.

ZIO for Scala........... 101

ZIO provides a type-safe, functional approach to asynchronous and concurrent programming in Scala, facilitating better handling of side effects.

Working with Futures in Scala: A Quick Introduction

Scala's Futures enable efficient asynchronous task handling, crucial for applications with high concurrency demands.
moreasynchronous-programming
#functional-programming

Scala: The Language of Functional and Object-Oriented Programming

Scala seamlessly integrates functional and object-oriented programming, making it efficient for scalable software development.

Mastering Functional Programming in Scala: Core Concepts and Best Practices

Scala perfectly blends functional and object-oriented programming, making it an excellent choice for building robust applications.

Unlocking the Power of Higher-Order Functions in Scala

Higher-order functions in Scala allow developers to pass functions as arguments and return functions, enabling cleaner and more reusable code.

Self-Referential Expressions in Functional Programming With Scala Examples

Self-referential expressions form the backbone of recursion and data structures in functional programming.

Why Scala is the Secret Sauce for Big Data: A Fun Dive into Functional Programming

Scala's functional programming features, such as pure functions and tail recursion, make it an ideal choice for managing big data efficiently.

Case Class in Scala : Nothing Lesser than a poetry

Scala's case classes simplify the modeling of immutable data with built-in functionalities.

Scala: The Language of Functional and Object-Oriented Programming

Scala seamlessly integrates functional and object-oriented programming, making it efficient for scalable software development.

Mastering Functional Programming in Scala: Core Concepts and Best Practices

Scala perfectly blends functional and object-oriented programming, making it an excellent choice for building robust applications.

Unlocking the Power of Higher-Order Functions in Scala

Higher-order functions in Scala allow developers to pass functions as arguments and return functions, enabling cleaner and more reusable code.

Self-Referential Expressions in Functional Programming With Scala Examples

Self-referential expressions form the backbone of recursion and data structures in functional programming.

Why Scala is the Secret Sauce for Big Data: A Fun Dive into Functional Programming

Scala's functional programming features, such as pure functions and tail recursion, make it an ideal choice for managing big data efficiently.

Case Class in Scala : Nothing Lesser than a poetry

Scala's case classes simplify the modeling of immutable data with built-in functionalities.
morefunctional-programming
#dataproc

Handling Missing Data in Distributed Systems: A Scala and GCP Dataproc Approach

GCP Dataproc enables efficient data pipeline creation with Scala for handling missing data in datasets.

Build the first data pipeline on GCP Dataproc with Scala

Dataproc streamlines data processing on Google Cloud, facilitating the execution of ETL tasks with ease using tools like Scala and Spark.

Handling Missing Data in Distributed Systems: A Scala and GCP Dataproc Approach

GCP Dataproc enables efficient data pipeline creation with Scala for handling missing data in datasets.

Build the first data pipeline on GCP Dataproc with Scala

Dataproc streamlines data processing on Google Cloud, facilitating the execution of ETL tasks with ease using tools like Scala and Spark.
moredataproc

Announcing the Business4s Mentorship Program

The mentorship program aims to support Scala engineers with both technical and business insight.

Type Refinements in Scala: Making Your Types More Sophisticated Than Your Friends

Scala offers tools enabling complex compile-time type manipulation, enhancing type safety and the creation of domain-specific languages.

Inductive Love: How Scala 3 Compiles Proofs, Two Steps at a Time!

Using compile-time typechecking in Scala can validate if a number is even via inductive types.

Erased but Not Forgotten: How Type Erasure Turns Scala's Free-Spirited Overloading Into a...

The Magnet Pattern allows flexible overloading in Scala by leveraging existential types, circumventing the challenges posed by type erasure.
#data-processing

Why Scala is the Best Choice for Big Data Applications: Advantages Over Java and Python

Scala is a premier choice for big data applications, especially with Apache Spark, due to its interoperability, performance, and productivity benefits.

Deploy a Scala Spark job on GCP Dataproc with IntelliJ

Creating a Scala Spark job on GCP Dataproc involves setting up IntelliJ, adding Spark dependencies, and writing the job code.

Why Scala is the Best Choice for Big Data Applications: Advantages Over Java and Python

Scala is a premier choice for big data applications, especially with Apache Spark, due to its interoperability, performance, and productivity benefits.

Deploy a Scala Spark job on GCP Dataproc with IntelliJ

Creating a Scala Spark job on GCP Dataproc involves setting up IntelliJ, adding Spark dependencies, and writing the job code.
moredata-processing
#generics

Universal Types Want It All, Existential Types Play It Cool: Covariance and Contravariance...

Universal and existential quantifiers in type theory differ in covariance and contravariance, affecting type interactions in Scala generics.

Universal vs. Existential Types: Is It For All or Existential Crisis?

Universal types allow code to work with any type due to their polymorphic nature, while existential types signify the existence of some unknown types.

Universal Types Want It All, Existential Types Play It Cool: Covariance and Contravariance...

Universal and existential quantifiers in type theory differ in covariance and contravariance, affecting type interactions in Scala generics.

Universal vs. Existential Types: Is It For All or Existential Crisis?

Universal types allow code to work with any type due to their polymorphic nature, while existential types signify the existence of some unknown types.
moregenerics
#case-classes

The case for Case Objects in Scala

Case classes in Scala simplify the modeling of immutable data structures and improve code efficiency.

Unboxing Scala's Match feature

Scala's match expression simplifies complex coding patterns by efficiently handling data through compiled techniques and extractors.

Tuple Trouble and Case Class Shenanigans: Scala's Wild World of Product Subtyping!

Product subtyping in Scala allows for flexible relationships in tuples and case classes, mainly via weakening and substitution.

Scala 101 Ep.2: Object-Oriented Programming Basics

OOP in Scala enhances code structure by grouping data and related functions, improving efficiency.

The case for Case Objects in Scala

Case classes in Scala simplify the modeling of immutable data structures and improve code efficiency.

Unboxing Scala's Match feature

Scala's match expression simplifies complex coding patterns by efficiently handling data through compiled techniques and extractors.

Tuple Trouble and Case Class Shenanigans: Scala's Wild World of Product Subtyping!

Product subtyping in Scala allows for flexible relationships in tuples and case classes, mainly via weakening and substitution.

Scala 101 Ep.2: Object-Oriented Programming Basics

OOP in Scala enhances code structure by grouping data and related functions, improving efficiency.
morecase-classes
#big-data

Scala vs. Java: The Superior Choice for Big Data and Machine Learning

Scala offers distinct advantages over Java for big data and machine learning, including functional programming features that enhance efficiency and maintainability.

FREE: Discover the Power of Spark Streaming with Scala-Build Real-Time Data Skills!

Spark Streaming with Scala enables real-time data processing, essential for developers and data engineers in a digital world.

Scala vs. Java: The Superior Choice for Big Data and Machine Learning

Scala offers distinct advantages over Java for big data and machine learning, including functional programming features that enhance efficiency and maintainability.

FREE: Discover the Power of Spark Streaming with Scala-Build Real-Time Data Skills!

Spark Streaming with Scala enables real-time data processing, essential for developers and data engineers in a digital world.
morebig-data

(In)Validating Library Design. DomainDocs4s: DDD, Reflection & Classpath Scanning.

The project focuses on building a library for generating domain documentation through code annotations and compile-time reflection.
from Medium
1 month ago

How do you write unit tests in Scala, and how do you use the mocking technique?

Tight coupling of services in functions complicates unit testing, necessitating strategies like dependency injection or mocking for flexibility.

Scala Code wonder 1

IO.parTraverseN(3) is faster than map+parSequenceN(3) due to better algorithmic optimization in the cats library.
#software-development

Akka expertise taken even further: Scalac-Lightbend partnership

Scalac's partnership with Lightbend enhances enterprise capabilities in developing responsive applications using Scala and Akka.

Scala 3.5.0 released!

Scala 3.5 introduces Scala CLI as the default runner, enhancing the development experience with improved tools and integration.

How to Automatically Generate an Advanced Scala Project with a Shell Script

Automating Scala project setup boosts productivity and allows developers to focus on coding rather than repetitive setup tasks.

3 Scala Libraries to Forget About Boilerplate Code (or Almost Forget))

Refactoring and eliminating boilerplate code are essential for maintaining high-load applications and improving code quality.

The "Bind" Concept (Scala 3 Video)

The bind function in Scala improves function composition and reduces errors in chaining function calls.

Akka expertise taken even further: Scalac-Lightbend partnership

Scalac's partnership with Lightbend enhances enterprise capabilities in developing responsive applications using Scala and Akka.

Scala 3.5.0 released!

Scala 3.5 introduces Scala CLI as the default runner, enhancing the development experience with improved tools and integration.

How to Automatically Generate an Advanced Scala Project with a Shell Script

Automating Scala project setup boosts productivity and allows developers to focus on coding rather than repetitive setup tasks.

3 Scala Libraries to Forget About Boilerplate Code (or Almost Forget))

Refactoring and eliminating boilerplate code are essential for maintaining high-load applications and improving code quality.

The "Bind" Concept (Scala 3 Video)

The bind function in Scala improves function composition and reduces errors in chaining function calls.
moresoftware-development
#traits

Traits in Scala : The Avenger's Skills

Scala's traits serve as powerful tools for code reuse and functionality, allowing classes to inherit features without the complexity of multiple inheritance.

Clases Abstractas en Scala. Estrategias para modelar jerarquias

Clases abstractas permiten crear código más mantenible y flexible al definir comportamientos reutilizables y constructores con parámetros.

Traits in Scala : The Avenger's Skills

Scala's traits serve as powerful tools for code reuse and functionality, allowing classes to inherit features without the complexity of multiple inheritance.

Clases Abstractas en Scala. Estrategias para modelar jerarquias

Clases abstractas permiten crear código más mantenible y flexible al definir comportamientos reutilizables y constructores con parámetros.
moretraits
from Medium
1 month ago

WindowsJupyter Almond Scala

Jupyter Notebook is more effective for debugging Spark programs compared to IDEs like IDEA.

Apache Fury Serialization 0.8.0 released

Apache Fury 0.8.0 release improves Scala collection serialization and adds GraalVM support.

Why Scala Is the Worst Programming Language You Can Learn

Learning Scala may be overwhelming for beginners due to its complexity and verbose syntax, making it less ideal compared to simpler languages.

Apache Hudi on AWS Glue

Hudi tables can be efficiently written in AWS Glue using Scala with proper setup and configuration steps.

ETL Process with Scala and Akka Framework (Concurrency, Distributed, and Resilient Systems)

Akka simplifies building concurrent, distributed systems in Scala, focusing on actors for managing state and fault tolerance.

Integrating Log4j2 with Kamon IO

Kamon IO can be easily integrated with Log4j2 to enhance logging and metrics in Scala 3 web servers.

Leetcode. 263. Ugly Number

The function `isUgly` determines if a number is an ugly number based on its prime factors: 2, 3, and 5.
#repl

How to clear/reset a Scala REPL session (without having to kill the session)

The Scala REPL allows users to reset the session with the :reset command, clearing all history and state.

How to enter multiline commands (statements) into the Scala REPL

Using :paste in the Scala REPL allows for testing multiline commands without premature evaluation.

How to clear/reset a Scala REPL session (without having to kill the session)

The Scala REPL allows users to reset the session with the :reset command, clearing all history and state.

How to enter multiline commands (statements) into the Scala REPL

Using :paste in the Scala REPL allows for testing multiline commands without premature evaluation.
morerepl
#programming

Scala examples: Reading HOCON configuration files, and screen-scraping with JSoup and Sttp

The article discusses reading HOCON configuration files using Scala, demonstrating that AI-generated code can still be functional despite not being well-structured.

Scala 3 Video: Writing apply Methods to Create Constructors

Applying methods in companion objects enhances code readability.
Applicability of constructors through companion objects promotes better organization.

Tail recursion

Tail recursion enables memory-efficient recursion by allowing compilers to optimize and reuse stack frames, preventing overflow.

Scala 101 Ep.1 : Basic Syntax, Data Structures, Expressions Unit

Scala utilizes 'var' for mutable and 'val' for immutable variables, promoting architectural clarity.

Scala 3 Video: Writing unapply Methods to Enable Pattern Matching

Unapply methods in Scala companion objects are essential for allowing custom classes to participate in pattern matching.

Scala examples: Reading HOCON configuration files, and screen-scraping with JSoup and Sttp

The article discusses reading HOCON configuration files using Scala, demonstrating that AI-generated code can still be functional despite not being well-structured.

Scala 3 Video: Writing apply Methods to Create Constructors

Applying methods in companion objects enhances code readability.
Applicability of constructors through companion objects promotes better organization.

Tail recursion

Tail recursion enables memory-efficient recursion by allowing compilers to optimize and reuse stack frames, preventing overflow.

Scala 101 Ep.1 : Basic Syntax, Data Structures, Expressions Unit

Scala utilizes 'var' for mutable and 'val' for immutable variables, promoting architectural clarity.

Scala 3 Video: Writing unapply Methods to Enable Pattern Matching

Unapply methods in Scala companion objects are essential for allowing custom classes to participate in pattern matching.
moreprogramming

Scala Companion Object-A Deep Dive

Companion objects in Scala provide a bridge between instance and static contexts, enhancing encapsulation and object creation.

End-to-End ETL Process with PySpark and Scala: From MySQL to Redshift

ETL processes enable efficient data transfer and transformation, and PySpark with Scala enhances this capability.

Publishing SBT Modules Like a Pro

Automating sbt package releases minimizes manual errors and enhances efficiency in Scala and Java projects.

Sequence: Enabling Filtering In for (Scala 3 Video)

Implementing the withFilter method enables filtering in for-comprehensions for custom collections in Scala.

String Interpolators | Video: Free Introduction to Scala 3 Course

Use Scala String interpolators for efficient string construction and printing by embedding variables and expressions.
#higher-order-functions

Strings | Video: Free Introduction to Scala 3 Course

Scala String data type basics.

Higher-Order Functions, Part 1 (video)

Learn how to create higher-order functions in Scala with syntax examples and Scaladoc reading benefits.

Strings | Video: Free Introduction to Scala 3 Course

Scala String data type basics.

Higher-Order Functions, Part 1 (video)

Learn how to create higher-order functions in Scala with syntax examples and Scaladoc reading benefits.
morehigher-order-functions

ZIO and the Power of IOs (Part 2) | Video: Free Introduction to Functional Programming Course

Using ZIO.succeed to create a ZIO-based printing function

JIT: for Loops, Generators, and Guards | Video: Free Introduction to Functional Programming Course

Scala for loops start with generators which are sources of data, and for/yield combinations are expressions that yield values.

JIT: Using Option and Try in for-Expressions | Video: Free Introduction to Functional Programming Course

Understanding how Option, Try, and Either types work in Scala for expressions is essential for error handling and result manipulation.

Scala Variables (val, var, and more) | Video: Free Introduction to Scala 3 Course

Two types of variables in Scala: val in FP, val in OOP unless necessary.

ZIO 2 Example: Making an HTTP GET request with a timeout, using sttp client

The code provided demonstrates how to perform an HTTP GET request with a timeout using ZIO 2 and Scala sttp library, emphasizing a blocking approach.

Scala performance FAQ: Is there a reliable way to determine the number of CPUs or cores on a computer?

There is a reliable way to determine the number of CPUs or cores in Scala using the Java Runtime class.

Scala: How to convert multiple spaces to a single space (regex)

The key to converting multiple spaces in a string to a single space in Scala is to use trim and replaceAll methods.

Scala Intersection Types (video)

Intersection types combine multiple types in Scala.

Partial Functions (video)

Partial functions in Scala are functions that only work for a subset of input values.
[ Load more ]