Scala

[ follow ]

Kotlin for Java developers: Classes and coroutines

Kotlin simplifies class creation and management, enhancing Java developers' workflow with less boilerplate code and stronger flexibility.
from Alvinalexander
1 day ago

TechCrunch: Tracking layoffs in the technology industry

Tech layoffs in 2024 continue with over 130,000 job cuts across 457 companies, impacting both large firms and startups.

Last draft of the Scala Cookbook

On May 24, 2013, I finished with the last hardcopy chapters of the Scala Cookbook.I put all of the chapters next to the paper shredder as a way to show what I had just done.
#spark

WindowsJupyter Almond Scala

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

Customer Segmentation with Scala on GCP Dataproc

Customer segmentation can be effectively performed using k-means clustering in Spark after addressing missing data.

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.

WindowsJupyter Almond Scala

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

Customer Segmentation with Scala on GCP Dataproc

Customer segmentation can be effectively performed using k-means clustering in Spark after addressing missing data.

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.
morespark

How to Use KafkaJsonSchemaSerializer in Scala with Case Classes?

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

Working with Futures in Scala: A Quick Introduction

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

Akka expertise taken even further: Scalac-Lightbend partnership

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

Akka distributed computing platform adds Java SDK

Akka offers flexible deployment options including serverless, self-hosting, and cloud migrations.

Akka Unfurls PaaS for Building Distributed Java Applications - DevOps.com

Akka has launched a revamped platform with an SDK to enhance the development of distributed Java applications and serverless capabilities.

Akka expertise taken even further: Scalac-Lightbend partnership

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

Akka distributed computing platform adds Java SDK

Akka offers flexible deployment options including serverless, self-hosting, and cloud migrations.

Akka Unfurls PaaS for Building Distributed Java Applications - DevOps.com

Akka has launched a revamped platform with an SDK to enhance the development of distributed Java applications and serverless capabilities.
moreakka

This week in #Scala (Nov 18, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.
#zazen

How Katsuki Sekida taught Zen meditation (his style and techniques to reach samadhi)

Katsuki Sekida's meditation techniques focus on posture, breath awareness, and maintaining mindful presence, promoting concentration and self-exploration.

How Katsuki Sekida taught Zen meditation (his style and techniques to reach samadhi)

Katsuki Sekida emphasized practical techniques in Zazen for achieving concentration and insight through meditation.

How Katsuki Sekida taught Zen meditation (his style and techniques to reach samadhi)

Katsuki Sekida's meditation techniques focus on posture, breath awareness, and maintaining mindful presence, promoting concentration and self-exploration.

How Katsuki Sekida taught Zen meditation (his style and techniques to reach samadhi)

Katsuki Sekida emphasized practical techniques in Zazen for achieving concentration and insight through meditation.
morezazen
#shinzen-young

What did Shinzen Young do to get through his Shinto training? (Deity Yoga question)

Shinzen Young's Shinto training involved Deity Yoga, focusing on visualization, mantra repetition, and purification rituals to enhance meditation practices.

What did Shinzen Young do to get through his Shinto training? (Deity Yoga question)

Shinzen Young's training in Shinto and Deity Yoga significantly influenced his meditation practice, merging esoteric techniques with principles of focus and awareness.

What did Shinzen Young do to get through his Shinto training? (Deity Yoga question)

Shinzen Young's Shinto training involved Deity Yoga, focusing on visualization, mantra repetition, and purification rituals to enhance meditation practices.

What did Shinzen Young do to get through his Shinto training? (Deity Yoga question)

Shinzen Young's training in Shinto and Deity Yoga significantly influenced his meditation practice, merging esoteric techniques with principles of focus and awareness.
moreshinzen-young
#functional-programming

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.

Top

Functional programming has historical roots with significant contributions from languages like LISP and Haskell, influencing modern software development practices.

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.

Scalendar November 2024

November 2024 is a crucial month for developers with diverse Scala conferences and other tech events focused on modern advancements and collaboration.

Introduction to functional programming and Scala

Functional programming enhances data analysis with cleaner, more reliable code, facilitating better maintenance and debugging.

Mastering Fold Operations in Scala: fold, foldLeft, and foldRight

Understanding the differences between fold, foldLeft, and foldRight is crucial for mastering collections in Scala.

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.

Top

Functional programming has historical roots with significant contributions from languages like LISP and Haskell, influencing modern software development practices.

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.

Scalendar November 2024

November 2024 is a crucial month for developers with diverse Scala conferences and other tech events focused on modern advancements and collaboration.

Introduction to functional programming and Scala

Functional programming enhances data analysis with cleaner, more reliable code, facilitating better maintenance and debugging.

Mastering Fold Operations in Scala: fold, foldLeft, and foldRight

Understanding the differences between fold, foldLeft, and foldRight is crucial for mastering collections in Scala.
morefunctional-programming
#personal-experience

Stranded in Dease Lake, British Columbia

Kindness from strangers can shine through during difficult times, exemplified by the motel owner's selfless act.

Passed out for the 10th time

Repeated episodes of syncope raise health concerns, especially following a head injury.

Stranded in Dease Lake, British Columbia

Kindness from strangers can shine through during difficult times, exemplified by the motel owner's selfless act.

Passed out for the 10th time

Repeated episodes of syncope raise health concerns, especially following a head injury.
morepersonal-experience
#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
#type-safety

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.

Unpacking ZIO Schema's Accessors

ZIO Schema enables automated schema derivation for ZIO-based applications, promoting type safety and efficient data handling.

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.

Unpacking ZIO Schema's Accessors

ZIO Schema enables automated schema derivation for ZIO-based applications, promoting type safety and efficient data handling.
moretype-safety

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.

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.

My kidneys itch: A simple solution for itchy kidneys

AZO Cranberry tablets alleviate discomfort related to kidney issues.
Personal experience indicates a distinction between effective and allergic reactions to different AZO products.

Announcing the Business4s Mentorship Program

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

Random thoughts about randomness in Scala

Using Math.random() is error-prone for generating pseudorandom integers; prefer java.util.Random for more reliable and flexible random number generation.

Live to Forgive (book)

Jason Romano's 'Live to Forgive' illustrates the transformative power of forgiveness through his journey with his alcoholic father.
#meditation

Meditation benefit: Go anywhere and do anything with your own personal holodeck of the mind

Meditation can transform into a creative and fun experience, allowing personal exploration and joy.

What is Deity Yoga? (Shinzen Young mentions it in his book)

Deity Yoga enables practitioners in Vajrayana Buddhism to embody the qualities of deities for spiritual awakening.

Do you hear the murmuring sound of the mountain stream?

The essence of learning Zen lies in being present and attentive to one's environment.

Yoga tip: 50+ phrases to use before and during savasana

Use specific phrases during savasana to enhance relaxation and focus.

Meditation benefit: Go anywhere and do anything with your own personal holodeck of the mind

Meditation can transform into a creative and fun experience, allowing personal exploration and joy.

What is Deity Yoga? (Shinzen Young mentions it in his book)

Deity Yoga enables practitioners in Vajrayana Buddhism to embody the qualities of deities for spiritual awakening.

Do you hear the murmuring sound of the mountain stream?

The essence of learning Zen lies in being present and attentive to one's environment.

Yoga tip: 50+ phrases to use before and during savasana

Use specific phrases during savasana to enhance relaxation and focus.
moremeditation
#nature

Looking at Denali from the hill in Talkeetna, Alaska

The view of Denali is a rare spectacle for visitors, often only visible once every eight days.

Squirrel at the window

The author shares a quirky and humorous interaction with a squirrel, emphasizing the joy found in small moments with nature.

Looking at Denali from the hill in Talkeetna, Alaska

The view of Denali is a rare spectacle for visitors, often only visible once every eight days.

Squirrel at the window

The author shares a quirky and humorous interaction with a squirrel, emphasizing the joy found in small moments with nature.
morenature
#scala-3

Scala 3 FAQ: How does 'derives' work? (Notes on type classes, derivation macros, and compile-time derivation)

The derives keyword in Scala 3 streamlines creation of type class instances, specifically enhancing JSON handling in libraries like ZIO JSON.

Our Talks from 2019

Diverse topics covered in 2019 talks: mentoring, teaching, ethics in tech, type class derivation changes in Scala 3.

Scala 3 FAQ: How does 'derives' work? (Notes on type classes, derivation macros, and compile-time derivation)

The derives keyword in Scala 3 streamlines creation of type class instances, specifically enhancing JSON handling in libraries like ZIO JSON.

Our Talks from 2019

Diverse topics covered in 2019 talks: mentoring, teaching, ethics in tech, type class derivation changes in Scala 3.
morescala-3

Courage doesn't always roar

Courage doesn't always roar.Sometimes courage is the quiet voice at the end of the day saying, "I will try again tomorrow."
#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

This week in #Scala (Nov 11, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

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.

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.

Zen Master Seung Sahn, "What do you think about the beginning of this world?"

Your perception creates the reality of time and space, making you the architect of your own world.

How to use these mantras as reminders in different situations (Sri Nisargadatta Maharaj)

Sri Nisargadatta Maharaj provided practical guidance on using 'I am' mantras in various situations to cultivate awareness and separate identity from physical and emotional experiences.

Python Metaclasses in Eight Words

Metaclasses in Python allow for dynamic class creation and behavior modification, showcasing the unique relationship between types and classes.

Meditate like Eleven giving her all

If you're ever interested in meditation, I promise that if you work hard enough, you can achieve this kind of intensity.I'm fortunate that it happens to me from time to time now.

This week in #Scala (Nov 4, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.
#big-data

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.

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.

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.

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

ZIO 2: ZIO JDBC examples (SQL select, insert, drop, update, delete, transactions)

ZIO JDBC library has a new maintainer, ensuring continued access to its features and examples.
from InfoWorld
2 weeks ago

Google releases differential privacy software for JVM

Google's PipelineDP4j simplifies the implementation of differential privacy for Java developers.

Mastering the Complexity of High-Volume Data Transmission in the Digital Age | HackerNoon

Businesses must leverage real-time data processing tools like Apache Kafka to remain competitive as online data continues to grow exponentially.

This week in #Scala (Sep 30, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

This week in #Scala (Sep 23, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

This week in #Scala (Oct 14, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

This week in #Scala (Oct 28, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

A ZIO HTTP "Hello, world" example with description and key points

This example illustrates a simple ZIO HTTP server with basic functional programming principles.

Scala with Cats 2

Scala with Cats 2 update in progress, focusing on Cats 2 features like Parallel for improved error handling.

Scala 3 Manifesto 0.1.0

Over the weekend, I created Scala 3 Manifesto 0.1.0, a small library to re-implement scala.reflect.Manifest in Scala 3.
...
scala.reflect.Manifest

Postmortem of Scala 3.6.0

Incident Date: October 18th, 2024 Nature of the incident: Accidental release of 3.6.0-RC1 under 3.6.0 on Maven Central

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

Last week I got an idea.
...
This post goes through the process of transforming that idea to a draft of library design and then checking its technical feasibility.
from Amazic
1 month ago

How to use microservices architectures in Kubernetes to improve developer experience - Amazic

Kubernetes is essential for managing microservices, helping enterprises achieve scalability and flexibility in software applications.
#microservices

Mastering Microservices: Building Effective Architecture Governance for Scalability and Stability | HackerNoon

Microservices architecture offers scalability benefits but introduces operational complexity; governance practices are essential to manage these challenges effectively.

6 challenges of microservices architecture that only distributed tracing can resolve - Amazic

The microservices market exceeded USD 1.5 billion in 2023, driven by modularity's benefits across industries.

Mastering Microservices: Building Effective Architecture Governance for Scalability and Stability | HackerNoon

Microservices architecture offers scalability benefits but introduces operational complexity; governance practices are essential to manage these challenges effectively.

6 challenges of microservices architecture that only distributed tracing can resolve - Amazic

The microservices market exceeded USD 1.5 billion in 2023, driven by modularity's benefits across industries.
moremicroservices

Java 23

Java 23 enhances developer productivity and accessibility with features like primitive patterns and Markdown documentation.
New APIs simplify class file manipulations and improve stream processing capabilities.

Mastering Try-With-Resources in Java: All Java 7, 8, 9 Updates With Interview Questions

Try-With-Resources simplifies resource management in Java by ensuring automatic closure of resources, improving code reliability and reducing boilerplate code.
from Medium
1 month ago

Self-Referential Expressions in Functional Programming With Scala Examples

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

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.

Why Isomorphism Plays Significant Role in Self-Referential Types

Self-referential types and isomorphism illustrate that recursive data structures can be understood through structural equivalence in type theory.

kebab-case: Understanding thread pools through cats-effect- the IORuntime

Blocking and computing
The snooze task didn't do any calculating - its only operation was a Thread.sleep - so its thread didn't occupy a processor in order for the task to progress.

Java 23

Java 23 improves developer productivity through enhancements like pattern matching for primitives and Markdown documentation.

Mastering Try-With-Resources in Java: All Java 7, 8, 9 Updates With Interview Questions

Try-With-Resources simplifies resource management in Java, promoting automatic closure of resources and enhancing code reliability and readability.

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.

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.

How to use Java generics to avoid ClassCastExceptions

Type safety issues in generic methods can be resolved using bounded wildcards.

Pete Rose is Charlie Hustle

Pete Rose was Charlie Hustle.
All these years later, and the the game hasn't seen another player like him.
RIP, Pete, October, 2024.

Tips for moving from tut to mdoc

mdoc is recommended over tut for type-checking and executing Scala code in documentation, helping to ensure code accuracy while updating text.

Review Seq matching when porting to 2.13

Pattern matching on Seq in Scala 2.13 necessitates careful consideration of its type, especially when migrating from Scala 2.12.

Dream: An old man explains how a sigh relates to doing the right thing

Sighing can signify the internal conflict before making a decision to do the right thing.

Apache Fury Serialization 0.8.0 released

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

HOW FUNCTIONAL PROGRAMMING COMPARES TO OTHER PARADIGMS: UNLOCKING THE POWER OF FP (PART 2 OF 4)

Programming paradigms provide frameworks guiding developers' approach to coding and problem-solving.

This week in #Scala (Oct 7, 2024)

Welcome to the new edition of #ThisWeekInScala!
This blog keeps you updated with the latest Scala and Reactive programming news.

Fellow Christian Voters: Support Jesus's values when voting (and don't sell your soul)

Vote for candidates who genuinely embody Christian values of love, compassion, and integrity.
Supporting candidates who oppose Jesus's teachings jeopardizes not just ethical integrity but also spiritual well-being.

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.

First three months as a Scala Engineer at SwissBorg

A new job brings excitement and challenges, especially in understanding company culture and adapting to new technologies.
[ Load more ]