scala-functional-object-programming
/scala-functional-object-programming
Pisze solidne aplikacje w Scali 3 z klasami przypadków, dopasowaniem wzorców, klasami typów i czystymi funkcjami. Przydaje się przy programowaniu funkcyjnym w Scali.
- Autor
- nextboxis ↗
- Repozytorium
- library-skill-agents ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pisze solidne aplikacje w Scali 3 z klasami przypadków, dopasowaniem wzorców, klasami typów i czystymi funkcjami. Przydaje się przy programowaniu funkcyjnym w Scali.
Oryginalny opis (EN)
Use this skill when authoring robust Scala 3 applications using case classes, pattern matching, type classes, and pure functions.
Jak działa
- When to use
- Prerequisites
- Step-by-step workflow
- Commands / code examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
Podgląd SKILL.md
---
name: scala-functional-object-programming
description: Use this skill when authoring robust Scala 3 applications using case classes, pattern matching, type classes, and pure functions.
---
# Scala Functional & Object-Oriented Programming
## When to use
Use this skill when you need to authoring robust Scala 3 applications using case classes, pattern matching, type classes, and pure functions.
## Prerequisites
- Working knowledge of relevant programming language or database fundamentals.
- Access to testing environment or local runtime instance.
## Step-by-step workflow
1. **Analyze operational requirements**: Review performance boundaries, data integrity constraints, and query patterns.
2. **Design schema / interface**: Define explicit data contracts, types, or indexes supporting planned operations.
3. **Implement core routines**: Construct declarative, type-safe, or parameterized queries and functions.
4. **Validate performance**: Verify execution metrics using profilers, EXPLAIN plans, or benchmark test suites.
5. **Implement defensive controls**: Enforce timeout boundaries, connection pooling limits, and transaction safety.
## Commands / code examples
```scala
sealed trait PipelineEvent
case class Ingested(id: String, payload: String) extends PipelineEvent
case class Processed(id: String, bytesCount: Int) extends PipelineEvent
case class Failed(id: String, reason: String) extends PipelineEvent
object EventAuditor:
def audit(event: PipelineEvent): String = event match
case Ingested(id, _) => s"Event $id successfully ingested into raw stream"
case Processed(id, count) => s"Event $id processed: $count bytes transformed"
case Failed(id, reason) => s"ALERT: Event $id failed due to $reason"
```
## Common mistakes & pitfalls
- Overlooking indexing strategies on foreign keys and frequently queried filter columns.
- Running unparameterized dynamic queries, creating severe SQL injection vulnerabilities.
- Holding open long-running database transactions during slow external network calls.
## Verification checklist
- [ ] Schema contracts and type signatures are strictly enforced.
- [ ] Queries are fully parameterized against injection vulnerabilities.
- [ ] Profiling or execution plans show optimal resource consumption.
- [ ] Error handling safely releases locks and rolls back aborted transactions.
## Related skills
- postgresql-query-optimization-explain
- sql-anti-patterns-remediation
- acid-transactions-isolation-levels
- secure-code-review-static-analysis-sast
Wersje
W bazie nie ma innych skilli o nazwie scala-functional-object-programming.
Migawka bazy z 13.11.2026 · wersja paczki 96ffb0bc60c6 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 85Scala Functional Patterns
Omawia wzorce programowania funkcyjnego w Scali: funkcje wyższego rzędu, niemutowalność, dopasowanie wzorców, typy algebraiczne, monady, for-comprehensions i kompozycję funkcji. - 95scala2
Sprawdza kod w Scala 2.12 i 2.13 pod kątem konwencji z przewodnika Databricks: typów i jakości kodu produkcyjnego. - 85Scala Type System
Omawia system typów Scali: generyki, wariancję, ograniczenia typów, konwersje niejawne, type classes, typy wyższego rzędu, typy zależne od ścieżki i abstrakcyjne składowe typów. - 100haskell-expert
Wspiera programowanie funkcyjne w Haskellu na poziomie eksperckim: rozbudowany system typów, monady, leniwa ewaluacja, czyste funkcje i typy algebraiczne z klasami typów. - 100scala-traits-protocols
Przekłada klasy Protocol z Pythona (typowanie strukturalne) na traity i type classes Scali, z abstrakcją opartą na traitach i implicit type classes. - 95python-scala-sealed-traits
Pomaga tłumaczyć Enum, Protocol i hierarchie klas abstrakcyjnych z Pythona na hierarchie sealed trait, case object i type class w Scali.