agentsclimarketplace

Scala

Skill G1Joshi/Agent-Skills/skills/languages/scala

Scala functional and OOP programming on the JVM with Akka. Use for .scala files.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill scala

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.2 KB, 290 tokens by cl100k_base, as published. Nobody here has run it

Scala

Scalable Language. It interops seamlessly with Java.

When to Use

  • Big Data processing (Spark)
  • High-concurrency systems (Akka)
  • Functional programming on the JVM
  • Complex domains

Quick Start

object Hello extends App {
  println("Hello, World!")

  val list = List(1, 2, 3)
  val doubled = list.map(_ * 2)
  println(doubled)
}

Core Concepts

Functional & OOP

Classes and traits mixed with higher-order functions and immutability.

Immutability

Default preference for immutable data structures (val vs var).

Pattern Matching

Powerful switch-like construct.

x match {
  case 1 => "one"
  case "two" => 2
  case _ => "other"
}

Case Classes

Immutable value objects with built-in equals, hashCode, and pattern matching support.

Best Practices

Do:

  • Prefer immutability (val)
  • Use Option instead of null
  • Leverage the type system
  • Use scalafmt

Don't:

  • Write "Java in Scala"
  • Overuse implicit conversions (can be confusing)
  • Use return keyword (expression-oriented)

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.