Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT NachrichtenRechnungshof: EU nicht genug gegen Cyberangriffe gewappnet(22.09.2026 um 07:42 Uhr)
Android Tipps & SecuritySamsung lässt Besitzer der Galaxy-S26-Smartphones weiter zappeln(22.09.2026 um 07:57 Uhr)
IT NachrichtenRechnungshof: EU nicht genug gegen Cyberangriffe gewappnet(22.09.2026 um 07:42 Uhr)
Android Tipps & SecuritySamsung lässt Besitzer der Galaxy-S26-Smartphones weiter zappeln(22.09.2026 um 07:57 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

I built a daily Python challenge app — here's how it works

If you've ever tried to learn Python consistently, you know the problem: you do a tutorial, feel great, then open your laptop three days later and have forgotten everything. That's why I built DuCode — a platform that gives you one P…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

If you've ever tried to learn Python consistently, you know the problem:

you do a tutorial, feel great, then open your laptop three days later

and have forgotten everything.



That's why I built DuCode — a platform that

gives you one Python coding challenge every day, tracks your streak,

and rewards you with XP.



## How it works



Every day a new challenge drops. You get a code snippet like this:




def make_counter(start=0):
def counter(step=1, *, reset=False):
if reset:
counter._val = start
return counter._val
counter._val = getattr(counter, '_val', start) + step
return counter._val
counter._val = start
return counter

c = make_counter(10)
results = [c(), c(2), c(), c(reset=True), c(3), c()]
print(sum(results))






And you have to figure out the output before the timer runs out.

The faster you answer, the more XP you earn. Wrong answers cost XP —

so it pays to think before you type.



The XP + streak system



Every correct answer earns XP based on:




  • How much time is left on the timer

  • How many wrong attempts you made (each costs a penalty)



Your streak resets if you miss a day. This sounds brutal, but it's

the mechanic that actually keeps people coming back. Nothing hurts

more than breaking a 14-day streak.



Creator bundles



The part I'm most excited about: creators can build multi-day

challenge bundles — think "30 Days of Python Data Structures" or

"7 Days of Recursion". Players buy the bundle and get one challenge

unlocked per day.



The whole payment flow runs through Whop with automatic revenue share,

so creators earn 90% of every sale directly.



Tech stack




  • Frontend: React 19 + TypeScript + Vite — no component library,
    everything is inline CSS

  • Backend: Supabase (Postgres + Auth + Edge Functions)

  • Payments: Whop (webhooks → Supabase Edge Function → unlock access)

  • Hosting: deployed on the edge



One thing I'm proud of: the timer runs in localStorage so if you

close the tab mid-challenge, the timer keeps counting. No pausing to

cheat. ⏱️



What I learned



Supabase RLS is powerful but tricky. Writing row-level security

policies that correctly scope reads/writes without leaking data took

more iterations than I expected. Worth investing the time upfront.



Webhooks need idempotency. Whop can fire the same event more than

once. The first version of my webhook was creating duplicate purchases.

Always check for existing records before inserting.



localStorage > sessionStorage for game state. Players close tabs.

If your game timer or score lives in sessionStorage, you'll get bug

reports that are impossible to reproduce.



Try it



DuCode is free to play — https://ducode.online.



Today's challenge is already up. Let me know in the comments what your

streak is after a week. 👇






Creator bundles (coming soon)



The part I'm most excited about: in a few weeks creators will be able

to build multi-day challenge bundles — think "30 Days of Python

Data Structures" or "7 Days of Recursion". Players buy the bundle and

get one challenge unlocked per day.



The whole payment flow will run through Whop with automatic revenue

share, so creators earn 90% of every sale directly.



We're onboarding the first creators now — if you're interested in

building and selling your own Python challenge bundle, drop a comment

below. 👇






Built with React, Supabase, and too much coffee.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a daily Python challenge app — here's how it works

Thematisch verwandte Begriffe: built, daily, Python, challenge · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61647 | NotebookLM MCP is an MCP server and HTTP service for interacting with Go…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick