Skip to contentSkip to content
Verified credentials. On-chain. Forever.Learn more
Ewance
Sign in
Cover image for Convert an Imperative Recommendation Service to Pure Functional Style
Code

Convert an Imperative Recommendation Service to Pure Functional Style

FreeVerified credential3 weeksIntermediate

Overview

What this challenge is about.

Rewrite a Python ranking module in Scala 3 using pure functions and the Reader pattern, then deliver mock-free tests. Get a verifiable certificate.

The scenario

The startup (around EUR 5M ARR, 280k MAU) has a recommendation team that ships changes 3x slower than the rest of engineering, attributable to the test-double maintenance burden in the Python codebase.

CredentialBlockchain-anchored
ShareableLinkedIn-ready
LanguageEnglish
PaceSelf-paced

The Brief

What you'll do, and what you'll demonstrate.

Rewrite a recommendation-ranking module from imperative Python to pure-functional Scala with mock-free tests, demonstrating the functional-core/imperative-shell pattern.

Earning criteria — what you'll demonstrate

  • Separate a pure functional core from imperative shell
  • Apply the Reader pattern for dependency injection without DI frameworks
  • Write a test suite that needs no mocks because the code has no hidden dependencies
  • Communicate refactor patterns clearly to a Python-native team

Program Fit

Where this fits in your program.

Sharpens the same skills your degree expects you to demonstrate.

Aligned coursework coming soon.

One more thing

You can put a credential on your CV by Friday.

Convert an Imperative Recommendation Service to Pure Functional