<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RAYZEN</title>
    <description>The latest articles on DEV Community by RAYZEN (@rayzen).</description>
    <link>https://dev.to/rayzen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4286216%2Fd0e630a8-d0c8-493a-8d39-864244f0ef00.png</url>
      <title>DEV Community: RAYZEN</title>
      <link>https://dev.to/rayzen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rayzen"/>
    <language>en</language>
    <item>
      <title>Why junior developers are terrified of Stack Overflow (and what healthy communities do differently)</title>
      <dc:creator>RAYZEN</dc:creator>
      <pubDate>Sun, 06 Dec 2026 12:24:41 +0000</pubDate>
      <link>https://dev.to/wild_devs_net/why-junior-developers-are-terrified-of-stack-overflow-and-what-healthy-communities-do-differently-3onb</link>
      <guid>https://dev.to/wild_devs_net/why-junior-developers-are-terrified-of-stack-overflow-and-what-healthy-communities-do-differently-3onb</guid>
      <description>&lt;p&gt;Almost every programmer has done this at least once: you spend 45 minutes crafting a question. You carefully format your code snippets, sanitize database credentials, write a clear summary of what you tried, and right before hitting the submit button, you close the browser tab.&lt;/p&gt;

&lt;p&gt;The hesitation is not irrational. You can already predict the incoming responses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Closed as duplicate of [obscure thread from 2012 that uses an obsolete library version]."&lt;/li&gt;
&lt;li&gt;"Why are you even trying to do this with X? You should rewrite your entire architecture in Y."&lt;/li&gt;
&lt;li&gt;Silent downvotes without a single sentence explaining what was missing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stack Overflow and massive public forums were designed to build a canonical library of technical solutions for search engines, not to mentor people. When an archive prioritizes strict deduplication over human conversation, asking for help starts feeling like defending a dissertation.&lt;/p&gt;

&lt;p&gt;For junior engineers, self-taught developers, and even experienced programmers picking up an unfamiliar language, this dynamic shuts down curiosity fast.&lt;/p&gt;

&lt;h2&gt;
  
  
  The defensive barrier in public developer forums
&lt;/h2&gt;

&lt;p&gt;When a platform treats questions as transactions rather than conversations, developers develop defensive habits.&lt;/p&gt;

&lt;p&gt;You start adding disclaimers to every sentence: "I already googled this for three hours", "Please be gentle", "I know X is bad practice, but my boss asked for it". You spend more time defending your right to ask than explaining the actual bug.&lt;/p&gt;

&lt;p&gt;The most damaging side effect is that beginners stop asking questions entirely. They waste days spinning their wheels on simple configuration typos or missing environment variables because they would rather lose time than get humiliated publicly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What psychological safety actually looks like in code
&lt;/h2&gt;

&lt;p&gt;Psychological safety in a developer community is not about banning technical debate or pretending all code is equally good. Code either runs or it fails; types either check or they do not.&lt;/p&gt;

&lt;p&gt;The difference lies entirely in how feedback is framed. Healthy technical groups tend to share a few common habits:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Explaining the mechanism instead of dropping a raw command
&lt;/h3&gt;

&lt;p&gt;When someone asks how to fix a failing git rebase or a weird CORS header, dumping a cryptic command like &lt;code&gt;git rebase --onto&lt;/code&gt; with no explanation does not teach anything. It just shows off. Taking 30 seconds to explain what the flag actually does turns a panic moment into a mental model the developer will remember next year.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Handling the XY problem without the condescension
&lt;/h3&gt;

&lt;p&gt;Most experienced developers know the XY problem: a beginner asks how to extract the last three characters of a filename string when what they actually need is &lt;code&gt;path.extname()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In hostile spaces, someone drops a link to xyproblem.info like an insult. In constructive spaces, people simply ask: "What is the broader goal here? There might be a built-in helper that avoids string slicing entirely."&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Normalizing stupid bugs
&lt;/h3&gt;

&lt;p&gt;Every senior engineer has spent four hours debugging an issue that turned out to be an extra comma, a cached Docker layer, or a missing &lt;code&gt;.env&lt;/code&gt; entry. When experienced team members openly admit their own dumb mistakes, it removes the shame around being stuck.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why smaller communities are replacing massive forums
&lt;/h2&gt;

&lt;p&gt;Large platforms are great when you need to copy a regex pattern for ISO date validation at 2:00 PM on a Tuesday. They are terrible when you are trying to understand why your state update is not triggering a re-render and you do not yet have the vocabulary to search for it properly.&lt;/p&gt;

&lt;p&gt;This is why small, independent communities have become so important. A discord server with 80 people who talk to each other like colleagues will always beat a server with 50 thousand lurkers where every post gets lost in noise.&lt;/p&gt;

&lt;p&gt;When you remove the threat of public judgment, people start posting messy, unformatted, half-finished thoughts. And that is usually where real learning happens: through rubber-duck debugging with someone who is willing to ask "what happens if you log that variable right before line 20?"&lt;/p&gt;

&lt;p&gt;Developers do not need sugar-coated criticism. They need an environment where not knowing something is treated as a temporary state rather than a character flaw.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>career</category>
      <category>community</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How we built a daily developer quiz that resists DevTools cheating</title>
      <dc:creator>RAYZEN</dc:creator>
      <pubDate>Sun, 06 Dec 2026 11:52:48 +0000</pubDate>
      <link>https://dev.to/wild_devs_net/how-we-built-a-daily-developer-quiz-that-resists-devtools-cheating-fe3</link>
      <guid>https://dev.to/wild_devs_net/how-we-built-a-daily-developer-quiz-that-resists-devtools-cheating-fe3</guid>
      <description>&lt;p&gt;When Wordle blew up in 2022, everyone who writes JavaScript probably did the exact same thing within thirty seconds of loading the page: opened DevTools, clicked into the sources panel, and found the entire solution list sitting in plaintext inside the bundle. It did not ruin Wordle, because most players are not software engineers. But if you build a daily puzzle specifically for programmers, sysadmins, and security folks, that assumption immediately falls apart.&lt;/p&gt;

&lt;p&gt;If your users spend their working hours debugging APIs, reading minified code, and inspecting DOM nodes, your game will be taken apart in the first five minutes. That was the main technical problem we had to solve when building 0xDLE, a daily bilingual puzzle with ten different tasks ranging from icon recognition and hex dumps to code snippets and timeline sorting.&lt;/p&gt;

&lt;p&gt;Here is how we structured the architecture to keep the game fast, playable without registration, and resilient against inspect-element shortcuts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why client-side validation is a dead end
&lt;/h2&gt;

&lt;p&gt;Most browser puzzles keep everything in the browser for good reasons. It is cheap to host, works offline, and gives instant feedback without network latency. The minute a player types an answer, the client already knows if it is right.&lt;/p&gt;

&lt;p&gt;For a developer game, that model is dead on arrival. You cannot just obscure strings with base64 or run a basic scrambler. Obfuscating client-side JavaScript only stops people who do not know how to set a breakpoint or read network traffic. The moment an answer exists anywhere in browser memory, someone will write a two-line console snippet to extract it.&lt;/p&gt;

&lt;p&gt;The only real boundary is moving evaluation entirely to the backend. The client receives the puzzle prompt, like a cropped icon, an obfuscated hex snippet, or an attribute list, but never the solution string or the lookup table.&lt;/p&gt;

&lt;p&gt;Here is the simplified flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ Browser UI ]
      |
      | 1. GET /api/day (receives prompts only: cropped images, snippets, metadata)
      v
[ Fastify Server ]
      |
      | 2. POST /api/solve { slot: 3, guess: "docker" }
      v
[ SQLite / Rules Engine ]
      |
      | 3. Verifies against server pool &amp;amp; records attempt in session row
      v
[ Response: { solved: true, tries: 2, points: 2 } ] (No future answers leaked)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Handling guests without registration friction
&lt;/h2&gt;

&lt;p&gt;Forcing people to sign up before playing a daily puzzle kills retention before you even start. Nobody wants to fill out a registration form just to guess an icon.&lt;/p&gt;

&lt;p&gt;To make this work without turning the backend into an open proxy for spam, we treat guests and registered accounts almost identically in the database. When someone visits for the first time, the server issues an anonymous, secure httpOnly session cookie. Solves, attempt counts, and daily streaks are attached to that visitor ID in SQLite.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Resolving actor identity cleanly in Fastify&lt;/span&gt;
&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resolveActor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;authService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;currentUser&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'user'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;// Fallback to anonymous session cookie&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;guestId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;authService&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getOrCreateGuestSession&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'guest'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;guestId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the player later decides to create an account, those guest rows get merged into the new user profile automatically. This keeps latency under twenty milliseconds while ensuring that no amount of client-side inspection can bypass the attempt counter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Server-side solve evaluation
&lt;/h2&gt;

&lt;p&gt;When a player submits a guess, the endpoint verifies the attempt count before doing any string comparisons. If a slot has already reached its maximum allowed tries, the request is rejected immediately:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;fastify&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/api/solve'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;actor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;resolveActor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;guess&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// 1. Fetch current progress row from SQLite&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;progress&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Progress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findOne&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;where&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;actorType&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;actorId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;todayBerlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;maxTries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;MAX_TRIES_BY_KIND&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;progress&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;solved&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;progress&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;maxTries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;reply&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Task already completed or out of tries'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="c1"&gt;// 2. Score the guess against server-only content pool&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isCorrect&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rulesEngine&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;verifyAnswer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;guess&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;newTries&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;progress&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tries&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="c1"&gt;// 3. Persist updated score&lt;/span&gt;
  &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Progress&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;actorType&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;actorId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;todayBerlin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;newTries&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;solved&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;isCorrect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;points&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;isCorrect&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;calculatePoints&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;slot&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;newTries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;solved&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;isCorrect&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;newTries&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;remainingTries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;maxTries&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;newTries&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because scoring happens on the server, players can inspect the network response all day: they will only ever see their own guess result and remaining attempts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rate limiting and dictionary attacks
&lt;/h2&gt;

&lt;p&gt;If you have a puzzle based on technology names or short definitions, a simple script could brute-force 5,000 common tech terms in under a minute.&lt;/p&gt;

&lt;p&gt;We mitigate this with two layers:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Hard attempt caps per puzzle: Most tasks permit between 3 and 6 attempts. After that, the task locks for the day. A brute-force script guessing random dictionary words simply burns the player's daily run on attempt 3.&lt;/li&gt;
&lt;li&gt;Fastify rate limiting: Endpoints are capped per IP and session to prevent automated discovery of API parameters.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Zero-spoiler share mechanics
&lt;/h2&gt;

&lt;p&gt;A daily game thrives on players sharing their results in chat channels, Discord servers, and social feeds. The share output has to communicate skill and effort without giving away a single answer.&lt;/p&gt;

&lt;p&gt;Our share string generates a compact matrix of status blocks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0xDLE #042 8/10 (26 pts)
🟩🟩🟨🟩🟩
🟩🟥🟩🟩🟩
https://0xdle.rayzen.dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Each block represents one of the ten daily tasks.&lt;/li&gt;
&lt;li&gt;Green indicates solved on first attempt, yellow on later attempts, red means out of tries.&lt;/li&gt;
&lt;li&gt;The clipboard helper uses standard navigator.clipboard with plain text, so it pastes cleanly into terminals, Slack, Discord, or X without breaking formatting.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Never ship solutions to the client if your players know what F12 does. Obfuscation is an inconvenience, not security.&lt;/li&gt;
&lt;li&gt;Fastify and SQLite (WAL mode) easily handle daily bursts with response times below 15ms, making server-side checks feel as responsive as local JavaScript.&lt;/li&gt;
&lt;li&gt;Guest sessions via signed httpOnly cookies let users play instantly without requiring accounts on day one.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;&lt;em&gt;Written by &lt;a href="https://rayzen.dev" rel="noopener noreferrer"&gt;RAYZEN&lt;/a&gt;, building browser games, niche tools, and web experiments with the &lt;a href="https://wild-devs.net" rel="noopener noreferrer"&gt;Wild Devs Community&lt;/a&gt;. Try today's run at &lt;a href="https://0xdle.rayzen.dev" rel="noopener noreferrer"&gt;0xDLE&lt;/a&gt; or join our &lt;a href="https://discord.wild-devs.net" rel="noopener noreferrer"&gt;Discord&lt;/a&gt; to talk.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>typescript</category>
      <category>security</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
