<?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: Sadique Rehman</title>
    <description>The latest articles on DEV Community by Sadique Rehman (@sadique010).</description>
    <link>https://dev.to/sadique010</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%2F4036262%2F60d5e659-87c6-4539-ab88-6bcd5bcaffe6.png</url>
      <title>DEV Community: Sadique Rehman</title>
      <link>https://dev.to/sadique010</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sadique010"/>
    <language>en</language>
    <item>
      <title>I Built Brickday: A Gamified Productivity App with XP, Levels, Streaks, and Custom Rewards</title>
      <dc:creator>Sadique Rehman</dc:creator>
      <pubDate>Sun, 22 Nov 2026 07:54:19 +0000</pubDate>
      <link>https://dev.to/sadique010/i-built-brickday-a-gamified-productivity-app-with-xp-levels-streaks-and-custom-rewards-684</link>
      <guid>https://dev.to/sadique010/i-built-brickday-a-gamified-productivity-app-with-xp-levels-streaks-and-custom-rewards-684</guid>
      <description>&lt;p&gt;I've been exploring an interesting question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can we borrow progression mechanics from games to make everyday productivity more engaging?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That exploration resulted in Brickday — a browser-based productivity application that transforms task completion into a simple progression system.&lt;/p&gt;

&lt;p&gt;Instead of just maintaining a to-do list, users earn experience points, progress through levels, build activity streaks, and redeem custom rewards.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74deuaea8unh52caz9r3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74deuaea8unh52caz9r3.png" alt=" " width="800" height="408"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fddu8on5d5gu8v3xfo4xj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fddu8on5d5gu8v3xfo4xj.png" alt=" " width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The application is now live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://sadique010.github.io/Brickday/" rel="noopener noreferrer"&gt;https://sadique010.github.io/Brickday/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Product Overview
&lt;/h2&gt;

&lt;p&gt;Brickday is built around three primary modules.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Task Management and XP Allocation
&lt;/h3&gt;

&lt;p&gt;Users can create tasks with a title, description, difficulty, and recurrence schedule.&lt;/p&gt;

&lt;p&gt;The application supports three difficulty levels:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Difficulty&lt;/th&gt;
&lt;th&gt;XP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Easy&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hard&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When a task is completed, the corresponding XP is awarded.&lt;/p&gt;

&lt;p&gt;Other functionality includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating, editing, and deleting tasks.&lt;/li&gt;
&lt;li&gt;Pending and completed task views.&lt;/li&gt;
&lt;li&gt;Daily and weekly recurring tasks.&lt;/li&gt;
&lt;li&gt;Completion confirmation and a time-limited undo mechanism.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  2. Custom Reward Economy
&lt;/h3&gt;

&lt;p&gt;Users can define their own rewards and assign an XP cost to each.&lt;/p&gt;

&lt;p&gt;The reward system uses two separate values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;earned&lt;/code&gt;: Total lifetime XP accumulated.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;spent&lt;/code&gt;: Total XP redeemed through rewards.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The available balance is calculated as:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;balance = earned - spent&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This separation is important because level progression depends on lifetime XP rather than the remaining spendable balance.&lt;/p&gt;

&lt;p&gt;Redeeming a reward therefore affects the available balance without reversing level progression.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Profile and Activity Tracking
&lt;/h3&gt;

&lt;p&gt;The profile module provides an overview of user progression.&lt;/p&gt;

&lt;p&gt;It includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current level.&lt;/li&gt;
&lt;li&gt;XP progress toward the next level.&lt;/li&gt;
&lt;li&gt;Lifetime XP earned.&lt;/li&gt;
&lt;li&gt;Total tasks completed.&lt;/li&gt;
&lt;li&gt;Current activity streak.&lt;/li&gt;
&lt;li&gt;Recent reward redemption history.&lt;/li&gt;
&lt;li&gt;Monthly activity heatmap.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These statistics are derived from the application's persisted state.&lt;/p&gt;
&lt;h2&gt;
  
  
  Implementing the Level Progression
&lt;/h2&gt;

&lt;p&gt;I wanted a progression curve that was simple to understand but gradually increased the effort required to advance.&lt;/p&gt;

&lt;p&gt;The level threshold is calculated using:&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;levelStart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;L&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="no"&gt;L&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;L&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="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The application determines the current level by comparing lifetime XP against successive thresholds.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Level 1:      0 XP
Level 2:     50 XP
Level 3:    150 XP
Level 4:    300 XP
Level 5:    500 XP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The progress bar then calculates the user's position between the current and next level thresholds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling Recurring Tasks
&lt;/h2&gt;

&lt;p&gt;Recurring tasks introduce an additional state-management challenge.&lt;/p&gt;

&lt;p&gt;A task should be completed only once within its recurrence period, but it should become available again when that period ends.&lt;/p&gt;

&lt;p&gt;Brickday supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Daily recurrence.&lt;/li&gt;
&lt;li&gt;Weekly recurrence, using Sunday as the start of the week.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each recurring task tracks the period in which it was completed.&lt;/p&gt;

&lt;p&gt;When the current period changes, completed recurring tasks are reset.&lt;/p&gt;

&lt;p&gt;This allows the same task to contribute to progression again in a subsequent period.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technology Stack
&lt;/h2&gt;

&lt;p&gt;I deliberately kept the project lightweight.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Technology&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;HTML5&lt;/td&gt;
&lt;td&gt;Document structure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CSS3&lt;/td&gt;
&lt;td&gt;Styling and responsive layout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React 18&lt;/td&gt;
&lt;td&gt;Component-based UI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTM&lt;/td&gt;
&lt;td&gt;JSX-like templating&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;React Hooks&lt;/td&gt;
&lt;td&gt;State and lifecycle management&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LocalStorage&lt;/td&gt;
&lt;td&gt;Client-side persistence&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The application is currently contained in a single HTML file.&lt;/p&gt;

&lt;p&gt;React, ReactDOM, and HTM are loaded through CDNs, so there is no build process or package installation required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Persistence
&lt;/h2&gt;

&lt;p&gt;Brickday currently uses browser LocalStorage for persistence.&lt;/p&gt;

&lt;p&gt;The application stores its state under:&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="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'brickday:v1'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The persisted state includes tasks, rewards, activity records, lifetime XP, spent XP, and redemption history.&lt;/p&gt;

&lt;p&gt;This makes the application easy to run and deploy without a backend.&lt;/p&gt;

&lt;p&gt;There are also some deliberate limitations in the current implementation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No user authentication.&lt;/li&gt;
&lt;li&gt;No cloud database.&lt;/li&gt;
&lt;li&gt;No cross-device synchronisation.&lt;/li&gt;
&lt;li&gt;Progress is tied to the browser's local storage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are important considerations for any future expansion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design Decisions
&lt;/h2&gt;

&lt;p&gt;I wanted the interface to have a distinct visual identity rather than resemble another conventional SaaS dashboard.&lt;/p&gt;

&lt;p&gt;The design uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bricolage Grotesque typography.&lt;/li&gt;
&lt;li&gt;A soft, colourful visual palette.&lt;/li&gt;
&lt;li&gt;Strong borders and offset shadows.&lt;/li&gt;
&lt;li&gt;Difficulty-based task card colours.&lt;/li&gt;
&lt;li&gt;Responsive layouts.&lt;/li&gt;
&lt;li&gt;Reduced-motion support.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective was to make the interface approachable while keeping the actual workflow straightforward.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;Brickday is an early product experiment.&lt;/p&gt;

&lt;p&gt;The larger question I'm interested in exploring is how game-inspired mechanics can support consistent behaviour without turning productivity into another source of pressure.&lt;/p&gt;

&lt;p&gt;There is a fine line between making progress rewarding and making users optimise for points instead of meaningful work.&lt;/p&gt;

&lt;p&gt;That's a design problem worth exploring.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Live application:&lt;/strong&gt; &lt;a href="https://sadique010.github.io/Brickday/" rel="noopener noreferrer"&gt;https://sadique010.github.io/Brickday/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'd appreciate feedback, particularly on the progression system, XP economy, and overall user experience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Discussion:&lt;/strong&gt; Do you think gamification can meaningfully improve personal productivity over the long term, or does it eventually become another layer of distraction?&lt;/p&gt;

&lt;p&gt;Thanks for checking out Brickday!&lt;/p&gt;

&lt;h1&gt;
  
  
  webdev #react #javascript #productivity #buildinpublic
&lt;/h1&gt;

</description>
      <category>developer</category>
      <category>productivity</category>
      <category>design</category>
      <category>tooling</category>
    </item>
    <item>
      <title>4 Mistakes That Make Beginners Quit Coding (and How to Fix Each One)</title>
      <dc:creator>Sadique Rehman</dc:creator>
      <pubDate>Sun, 08 Nov 2026 14:55:02 +0000</pubDate>
      <link>https://dev.to/sadique010/4-mistakes-that-make-beginners-quit-coding-and-how-to-fix-each-one-1kek</link>
      <guid>https://dev.to/sadique010/4-mistakes-that-make-beginners-quit-coding-and-how-to-fix-each-one-1kek</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I made the video linked at the end of this post. The advice below stands on its own, so you don't need to watch it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Picture a beginner's first week of coding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Day 1:&lt;/strong&gt; you're pumped. &lt;strong&gt;Day 7:&lt;/strong&gt; you've quit.&lt;/p&gt;

&lt;p&gt;Here are four things that I think cause that drop, and what to do about each one. These are common patterns, not statistics from a study.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake 1: Starting too big
&lt;/h2&gt;

&lt;p&gt;On day one, many beginners open a forty-hour course, or decide to build a whole app. It feels exciting for about an hour, then it feels impossible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; shrink the goal. Today's goal is one tiny thing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello, Sam&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the name, run it again, and you're done for the day. You wrote and edited a real program.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake 2: Watching tutorials without typing
&lt;/h2&gt;

&lt;p&gt;Watching feels like progress. But if you haven't typed a line, you haven't practiced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; pause the video and type every example yourself. Then change one thing and run it again. A simple rule: for every 10 minutes of watching, spend 10 minutes typing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake 3: Panicking at your first error
&lt;/h2&gt;

&lt;p&gt;Sooner or later you'll see a wall of red text, and your brain says, "maybe this isn't for me."&lt;/p&gt;

&lt;p&gt;Try it on purpose. Make a typo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;prnt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You'll get something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Traceback (most recent call last):
  File "main.py", line 1, in &amp;lt;module&amp;gt;
    prnt("Hello")
NameError: name 'prnt' is not defined
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(The exact wording depends on your Python version. Newer versions may also suggest "Did you mean: 'print'?")&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; read the last line. It says what's wrong: the name &lt;code&gt;prnt&lt;/code&gt; doesn't exist. Fix the typo, run it again, and it works. An error isn't failure. It's the computer telling you what to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake 4: Comparing yourself to people who've coded for years
&lt;/h2&gt;

&lt;p&gt;You see someone building a full app, and you feel behind. But they also started with &lt;code&gt;print("Hello")&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; compare yourself to you from last week. Keep a tiny log of what you ran each day, and look back at it when you feel stuck.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple 7-day starter plan
&lt;/h2&gt;

&lt;p&gt;This is a suggestion, not a rule. Adjust it to your pace.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Day 1:&lt;/strong&gt; print your name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 2:&lt;/strong&gt; change the text and print three different names.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 3:&lt;/strong&gt; follow one beginner tutorial and type every line yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 4:&lt;/strong&gt; break a line on purpose, read the error, fix it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 5:&lt;/strong&gt; break it a different way (a missing quote, say), and fix that too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 6:&lt;/strong&gt; use &lt;code&gt;input()&lt;/code&gt; to make a program that greets you by name.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Day 7:&lt;/strong&gt; redo Day 1 from memory, without looking.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You don't need to install anything. A free online compiler such as Programiz or Replit works in the browser, and free courses like CS50 and freeCodeCamp are good places to continue. Check that each is still free and available when you read this.&lt;/p&gt;

&lt;h2&gt;
  
  
  The video version
&lt;/h2&gt;

&lt;p&gt;If you'd rather watch, I covered the same four mistakes in a short video:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/a1Hj1xvGTYg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Over to you
&lt;/h2&gt;

&lt;p&gt;Which of the four almost made you quit, or has already? I'd like to hear how you got past it. Next in the series: variables.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>programming</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
