<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Adebayo Temitope on Medium]]></title>
        <description><![CDATA[Stories by Adebayo Temitope on Medium]]></description>
        <link>https://medium.com/@temitopeayodeji?source=rss-3eaea963efb4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9NST03n7wZZFvAhc3H6fsg.jpeg</url>
            <title>Stories by Adebayo Temitope on Medium</title>
            <link>https://medium.com/@temitopeayodeji?source=rss-3eaea963efb4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:58:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@temitopeayodeji/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One Label or Five Fields: What Two AI Computer-Vision Projects Taught Me]]></title>
            <link>https://medium.com/@temitopeayodeji/one-label-or-five-fields-what-two-ai-computer-vision-projects-taught-me-7d77ea3cfc92?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d77ea3cfc92</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[nigeria]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 09:06:54 GMT</pubDate>
            <atom:updated>2026-11-18T09:06:54.755Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built a medicine checker that lets Gemini read a medicine pack — and an emergency-vehicle classifier that did make the call.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZlRZhMuITzDMmy9IToqk5w.png" /></figure><h3>The refusal</h3><p><a href="https://www.rx-ray.com.ng/">Rx-Ray</a> will not tell you whether your medicine is genuine.</p><p>It photographs a pack, reads the NAFDAC registration number and four other fields, checks it against the public Greenbook, and returns one of four outcomes: Registered &amp; active, Partial match, Not in the register, or Needs a better photo. It shows what it could verify and what it couldn’t. It never issues a green tick that means “safe” or a red cross that means “fake.”</p><p>That refusal is the product. I only understood why after building a model that was happy to make the call.</p><h3>The model that made the call</h3><p>Before Rx-Ray, I trained a CNN to classify images as emergency or non-emergency vehicles: 1,646 labelled images, a one-convolution baseline, then a “better” custom model with three convolutional blocks, batch normalisation, dropout, L2 and global average pooling.</p><p>The baseline won. It reached 77.3% accuracy, 67.6% recall and a 71.1% F1. The custom model reached 63.6% accuracy and 23.7% F1, with recall of 13.7% — it missed 88 of 102 emergency vehicles. Precision was 87.5%, which sounds good until you notice it almost never predicted “emergency” at all.</p><p>The training curves showed the custom model overfitting: validation loss climbed while training loss fell. But the checkpoint early stopping restored was the one with the lowest validation loss — an early epoch, before the model had learned to identify the minority class reliably. The run overfit later; the model I evaluated was the underfit one. That distinction matters more than the headline result.</p><h3>One label or five fields</h3><p>Both projects begin with pixels and learned visual features. They ask different questions.</p><p>Classification asks: <em>which of my known classes is this?</em> The model collapses the image into one label. Extraction asks: <em>what does this image say, and can you put it into this structure?</em> The model expands the image into facts.</p><p>The vehicle model needed a fixed taxonomy and a labelled dataset. Rx-Ray needed neither. A NAFDAC pack can have any layout, font or glare. Collecting and labelling thousands of Nigerian packs would have been the whole project. A vision-language model could read a pack it had never seen, zero-shot, given the right schema and rules.</p><h3>The prompt is the product</h3><p>Rx-Ray sends the photo to Gemini 3.5 Flash Lite with a strict extraction prompt: five fields, one JSON object, and a confidence label per field. Flash Lite returned the same extraction in about four seconds instead of 90–200 with larger models.</p><pre>Return only this shape:<br>{<br>  &quot;product_name&quot;:  { &quot;value&quot;: string | null, &quot;confidence&quot;: &quot;clear&quot; | &quot;uncertain&quot; | &quot;not_visible&quot; },<br>  &quot;nafdac_reg_no&quot;: { &quot;value&quot;: string | null, &quot;confidence&quot;: &quot;clear&quot; | &quot;uncertain&quot; | &quot;not_visible&quot; },<br>  &quot;batch_no&quot;:      { &quot;value&quot;: string | null, &quot;confidence&quot;: &quot;clear&quot; | &quot;uncertain&quot; | &quot;not_visible&quot; },<br>  &quot;expiry_date&quot;:   { &quot;value&quot;: string | null, &quot;confidence&quot;: &quot;clear&quot; | &quot;uncertain&quot; | &quot;not_visible&quot; },<br>  &quot;manufacturer&quot;:  { &quot;value&quot;: string | null, &quot;confidence&quot;: &quot;clear&quot; | &quot;uncertain&quot; | &quot;not_visible&quot; }<br>}<br>Only report what is legible. Never guess, infer or auto-correct.</pre><p>A model that guesses is worse than one that says “I can’t read this,” because the second can be acted on. The failure mode to watch is hallucination — a plausible value that was never on the pack — which is why unreadable fields stay null. When the print is worn, the user can type the number instead; the matcher runs without the model.</p><h3>AI reads, the register decides</h3><p>The model never decides whether a medicine is genuine. Its output goes into ordinary, deterministic code: normalise the registration number, look it up exactly in the Greenbook, and fall back to fuzzy product-name matching only when the number is missing.</p><pre>const rows = await prisma.greenbookProduct.findMany({<br>  where: { normalizedRegNo: normalizeRegNo(regNo) },<br>});</pre><p>If the number is Active and the printed name is consistent, the result is “Registered &amp; active” — which confirms the registration, not the contents of the pack. If the number is absent, the result is “Not in the register.” If nothing was legible, it asks for a better photo. The model can still misread a digit, but it cannot declare a verdict. That separation makes the failure visible and testable.</p><h3>What I’d tell the next builder</h3><ul><li>Decide what the model is allowed to decide. In a high-stakes product, make it a sensor, not a judge.</li><li>Match the model to the task. A fixed label set is classification; an open-ended document is extraction.</li><li>Confidence is a claim, not a probability. A sigmoid score and an LLM’s “clear” are different kinds of certainty.</li><li>Evaluate the error that costs the most. For ambulances, recall. For medicine, exact match on the registration number — and the rate of invented values.</li><li>Treat the prompt as product logic: version it, test it, and log the raw output.</li></ul><p>One label or five fields. Same pixels, different questions — and a different place to put the trust boundary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d77ea3cfc92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your .env.example Is Lying to You (Mine Was)]]></title>
            <link>https://medium.com/@temitopeayodeji/your-env-example-is-lying-to-you-mine-was-90d3488214c3?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/90d3488214c3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 18:21:08 GMT</pubDate>
            <atom:updated>2026-08-08T18:21:08.389Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqjE7ZfQ435iEKcOD8V6QA.jpeg" /></figure><p>You know that feeling when you clone a repo, run `npm install`, hit `npm run dev`, and… nothing happens? Not an error. Not a crash. Just a blank page, a silent 500, or a build that breaks three layers deep in a stack trace that has nothing to do with the actual problem, because somewhere, a `process.env.SOMETHING` came back `undefined` and nobody told you it needed to exist?</p><p>Yeah. That was me on a project I’d started bootstrapping a while back and finally came back to. You know how that goes: you’re moving fast, wiring up auth and a database and a couple of third-party integrations, and `.env.example` is the file you always mean to set up “once things settle down.” Things didn’t settle down. I came back weeks later, tried to get it running again, and hit exactly the wall from that first paragraph; no `.env.example` at all, a blank screen, no error message pointing anywhere useful.</p><p>Instead of searching through every file by hand hunting for `process.env` reads to figure out what the app actually needed, I pointed a tool I’d been building at the codebase to get the full picture in one shot.</p><p><strong>What envconform actually does</strong></p><p>envconform doesn’t diff files against each other. It builds three sets of keys and tells you where they disagree:</p><p>- <strong>DECLARED</strong> — every key in your `.env.example` (or `.env.sample`, `.env.template` or whatever you call your template)</p><p>- <strong>PRESENT</strong> — every key that actually has a value in your `.env` / `.env.local`</p><p>- <strong>USED</strong> — every key your code actually reads, found by parsing your JS/TS into a real AST</p><p>Then it does the boring, mechanical thing that’s genuinely useful precisely because it’s boring: it tells you where those three sets don’t line up. A var used in code but missing from the template is the headline case; that’s the “teammate’s first `npm run dev` crashes” bug, caught before it ships. But it also catches the quieter stuff: keys sitting in your `.env.example` that nobody’s read in months (dead documentation, safe to delete), keys you’ve got a real value for locally but never told anyone about, and the softer case of stuff that only lives in `.env.local`; which is usually fine, since `.env.local` is where personal, machine-specific values belong.</p><p>It came back with the full list in one pass; every var the code touched, everything I actually had a value for, and nowhere for the two to be checked against each other, since the template didn’t exist yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*gI-Z8nWPaFlhuX6-idVZBA.png" /></figure><p>⚠️ No template file found (e.g. .env.example) — ‘template’ below refers to that missing file. Every key is flagged because there is nothing to compare against yet.</p><p>Run `npx envconform init` to generate one from what you already have, or if you already have one under a different name (not ending in .example/.sample/.template); run `npx envconform config init` to create envconform.config.json, then add its exact filename to “templates” there.</p><p>Notice it also tells you explicitly when there’s no template at all, instead of just silently flagging everything and leaving you to guess why. That distinction matters more than it sounds like it should: “template” is only ever recognized by filename; anything ending in `.example`, `.sample`, or `.template`, case-insensitive, never by peeking at the contents to guess. That covers the overwhelming majority of real projects, but if your team named it something else; I’ve genuinely seen `.env.rules` in the wild — envconform won’t error, it’ll just quietly report zero template files, which is a much worse failure mode than an error would be, because nothing <em>looks</em> wrong.</p><p>First pass at that warning just said “add it to `envconform.config.json`” ; which is technically correct and completely useless if that file doesn’t exist yet, which it usually doesn’t. So there’s a second command now:</p><pre>npx envconform config init</pre><p>Writes `envconform.config.json` with every field already set to its actual default — not a template with placeholder comments, the <em>real</em> values the tool already uses, so you’re editing a working file instead of guessing at the shape of one from documentation. Point it at your oddly-named template with one line:</p><pre>{ &quot;templates&quot;: [&quot;your-template-exact-filename&quot;] }</pre><p>and it’s recognized from then on, no matter what it’s called.</p><p>One command fixed nearly all of it:</p><pre>npx envconform init</pre><p>That builds a fresh `.env.example` from everything the code actually uses and everything that already has a real value; with every value blanked, obviously (a tool that “helps” by leaking your Stripe key into a file you’re about to commit would be a pretty bad tool). Ran the check again right after:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*bM8WeOSe9ElRTtlWRgwnCw.png" /></figure><p>One real, legitimate finding — `EMAIL_FROM_ADDRESS` is read in code but was never actually set locally. That’s not noise, that’s the tool doing exactly its job. And that’s the same arc that played out on the real project that started this whole thing: one pass to see everything at once, sorted by how urgent it actually is, instead of an afternoon of manual detective work — and one genuine gap left once the template existed.</p><p><strong>Using it</strong></p><pre>npx envconform # human-readable report<br>npx envconform - json # machine-readable, for scripting<br>npx envconform - ci # non-zero exit code if something&#39;s used but undocumented<br>npx envconform init # generate .env.example from what you already have<br>npx envconform - fix # add only the missing keys to an existing template<br>npx envconform config init # scaffold envconform.config.json with real defaults</pre><p>Drop ` — ci` into a GitHub Actions step and the class of bug that used to surface as “why doesn’t this work on your machine” in a Slack thread now surfaces as a failed check on the PR, before it merges:</p><pre>- run: npx envconform - ci</pre><p>Everything’s configurable via an optional `envconform.config.json`; which vars to ignore (`NODE_ENV` is ignored by default, since your framework sets that one for you), which finding categories should actually fail CI, which directories to scan. Zero config needed to get useful output on day one, though.</p><p><strong>Try it</strong></p><pre>npx envconform</pre><p>- GitHub: [github.com/stonyDeveloper/envdiff](https://github.com/stonyDeveloper/envdiff)</p><p>- npm: [npmjs.com/package/envconform](https://www.npmjs.com/package/envconform)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d3488214c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Blackjack Game with Next.js: Technical Implementation Details]]></title>
            <link>https://medium.com/@temitopeayodeji/building-a-blackjack-game-with-next-js-technical-implementation-details-c0b1bcbefc9e?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0b1bcbefc9e</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Fri, 15 May 2026 09:36:44 GMT</pubDate>
            <atom:updated>2026-05-15T09:36:44.467Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-1AXC7FfxR0ds6CJMy_gQ.png" /></figure><p>This project showcases how I built a game application using Next.js, complete with user authentication, real-time statistics, smooth animations, and immersive sound effects.</p><p>In this article, I’ll walk through the technical implementation of <a href="https://blackjaq.vercel.app/">Blackjaq</a>, covering everything from the game engine architecture to the user dashboard and animation system. Whether you’re interested in game development, state management, or modern web application architecture, you’ll find valuable insights in this comprehensive breakdown.</p><h3><strong>Project Setup &amp; Technology Stack</strong></h3><p><strong>Core Technologies</strong></p><p>The foundation of Blackjaq rests on a carefully selected stack of modern web technologies:</p><pre>{<br>  &quot;dependencies&quot;: {<br>    &quot;next&quot;: &quot;16.1.6&quot;,<br>    &quot;react&quot;: &quot;19.2.3&quot;,<br>    &quot;@clerk/nextjs&quot;: &quot;^7.3.3&quot;,<br>    &quot;@prisma/client&quot;: &quot;^7.8.0&quot;,<br>    &quot;zustand&quot;: &quot;^5.0.11&quot;,<br>    &quot;framer-motion&quot;: &quot;^12.35.2&quot;,<br>    &quot;gsap&quot;: &quot;^3.14.2&quot;,<br>    &quot;howler&quot;: &quot;^2.2.4&quot;,<br>    &quot;prisma&quot;: &quot;^7.8.0&quot;,<br>    &quot;pg&quot;: &quot;^8.20.0&quot;<br>  }<br>}</pre><p><strong>Next.js 16 with App Router</strong> provides the framework foundation, offering server-side rendering, API routes, and excellent performance optimization out of the box. The App Router structure allows for clean separation between server and client components.</p><p><strong>TypeScript</strong> ensures type safety throughout the application, catching errors at compile time rather than runtime. This is crucial for a game application where state management and data integrity are paramount.</p><h3><strong>Project Structure</strong></h3><p>src/</p><p>├── app/ # Next.js App Router pages</p><p>│ ├── play/ # Main game page</p><p>│ ├── sign-in/ # Authentication pages</p><p>│ └── layout.tsx # Root layout with metadata</p><p>├── components/</p><p>│ ├── game/ # Game-specific components</p><p>│ ├── ui/ # Reusable UI components</p><p>│ └── three/ # 3D components (React Three Fiber)</p><p>├── lib/</p><p>│ ├── game/ # Game engine logic</p><p>│ ├── animations/ # Animation configurations</p><p>│ └── db.ts # Database connection</p><p>├── store/ # Zustand state management</p><p>├── hooks/ # Custom React hooks</p><p>└── types/ # TypeScript type definitions</p><h3><strong>Game Engine Architecture</strong></h3><p><strong>State Management with Zustand + Immer</strong></p><p>The heart of Blackjaq is its game state management system. I chose Zustand for its simplicity and performance, combined with Immer for immutable state updates:</p><pre>import { create } from &#39;zustand&#39;<br>import { immer } from &#39;zustand/middleware/immer&#39;<br><br>export const useGameStore = create&lt;GameStore&gt;()(<br>  immer((set, get) =&gt; ({<br>    phase: &#39;IDLE&#39;,<br>    deck: [],<br>    playerHands: [],<br>    activeHandIndex: 0,<br>    dealerHand: emptyHand(&#39;dealer&#39;),<br>    balance: 1000,<br>    currentBet: 0,<br>    message: null,<br>    stats: INITIAL_STATS,<br>    <br>    placeBet: (amount: number) =&gt; {<br>      set((state) =&gt; {<br>        state.currentBet = amount<br>        state.balance -= amount<br>        state.phase = &#39;BETTING&#39;<br>      })<br>    },<br>    <br>    deal: () =&gt; {<br>      const { deck, currentBet } = get()<br>      const shuffled = shuffleDeck(deck)<br>      <br>      set((state) =&gt; {<br>        state.deck = shuffled<br>        state.phase = &#39;DEALING&#39;<br>        // Deal cards logic here<br>      })<br>    }<br>  }))<br>)</pre><p><strong>Game Phases System</strong></p><p>The game follows a strict phase-based state machine:</p><pre>export type GamePhase =<br>  | &#39;IDLE&#39;        // Waiting for bet<br>  | &#39;BETTING&#39;     // Bet placed, waiting to deal<br>  | &#39;DEALING&#39;     // Cards being dealt<br>  | &#39;PLAYER_TURN&#39; // Player making decisions<br>  | &#39;DEALER_TURN&#39; // Dealer playing<br>  | &#39;RESOLVING&#39;   // Calculating results</pre><p>This phase system ensures that game actions only occur when appropriate, preventing invalid states and making the codebase more predictable.</p><h3><strong>Core Game Logic</strong></h3><p>The game engine handles all blackjack rules, including</p><p><strong>Hand Evaluation</strong>: Proper calculation of hand values with ace handling</p><p><strong>Dealer Logic</strong>: Standard casino rules (hit on 16, stand on 17)</p><p><strong>Betting Actions</strong>: Hit, stand, double down, split, surrender</p><p><strong>Payout Calculations</strong>: Correct odds for blackjack (3:2), regular wins (1:1), and pushes</p><pre>export function determineWinner(playerHand: Hand, dealerHand: Hand): HandResult {<br>  if (playerHand.isSurrendered) return &#39;SURRENDER&#39;<br>  <br>  const playerBust = isBust(playerHand.cards)<br>  if (playerBust) return &#39;BUST&#39;<br>  <br>  const dealerBust = isBust(dealerHand.cards)<br>  const playerBJ = isBlackjack(playerHand.cards) &amp;&amp; !playerHand.isSplit<br>  const dealerBJ = isBlackjack(dealerHand.cards)<br>  <br>  if (playerBJ &amp;&amp; dealerBJ) return &#39;PUSH&#39;<br>  if (playerBJ) return &#39;BLACKJACK&#39;<br>  if (dealerBJ) return &#39;LOSE&#39;<br>  if (dealerBust) return &#39;WIN&#39;<br>  <br>  const playerValue = calculateHandValue(playerHand.cards).value<br>  const dealerValue = calculateHandValue(dealerHand.cards).value<br>  <br>  if (playerValue &gt; dealerValue) return &#39;WIN&#39;<br>  if (dealerValue &gt; playerValue) return &#39;LOSE&#39;<br>  return &#39;PUSH&#39;<br>}</pre><h3><strong>Database Design &amp; User Management</strong></h3><p><strong>PostgreSQL Schema with Prisma</strong></p><p>The database schema is designed to track user progress and game history:</p><pre>model User {<br>  id          String        @id           // Clerk user ID<br>  email       String        @unique<br>  username    String?<br>  balance     Int           @default(1000)<br>  <br>  // Lifetime statistics<br>  handsPlayed Int           @default(0)<br>  handsWon    Int           @default(0)<br>  handsLost   Int           @default(0)<br>  handsPushed Int           @default(0)<br>  blackjacks  Int           @default(0)<br>  biggestWin  Int           @default(0)<br>  bestStreak  Int           @default(0)<br>  <br>  sessions    GameSession[]<br>}</pre><pre>model GameSession {<br>  id            String   @id @default(cuid())<br>  userId        String<br>  user          User     @relation(fields: [userId], references: [id])<br>  <br>  result        String   // WIN | LOSE | PUSH | BLACKJACK | BUST | SURRENDER<br>  bet           Int<br>  payout        Int      // net gain or loss<br>  balanceBefore Int<br>  balanceAfter  Int<br>  <br>  createdAt     DateTime @default(now())<br>}</pre><p><strong>Clerk Authentication Integration</strong></p><p>Authentication is handled by Clerk, which provides a complete auth solution:</p><pre>// middleware.ts<br>import { clerkMiddleware, createRouteMatcher } from &#39;@clerk/nextjs/server&#39;<br><br>const isPublicRoute = createRouteMatcher([&#39;/&#39;, &#39;/sign-in(.*)&#39;, &#39;/sign-up(.*)&#39;])<br><br>export default clerkMiddleware(async (auth, request) =&gt; {<br>  if (!isPublicRoute(request)) {<br>    await auth.protect()<br>  }<br>})</pre><p>The middleware protects all routes except the landing page and authentication pages, ensuring only authenticated users can access the game.</p><p><strong>User Data Synchronization</strong></p><p>When users arrive at the game, their data is synchronized between Clerk and our database:</p><pre>// app/play/page.tsx<br>export default async function Home() {<br>  const { userId } = await auth()<br>  if (!userId) return null<br>  <br>  const clerkUser = await currentUser()<br>  const email = clerkUser?.emailAddresses[0]?.emailAddress ?? `${@unknown.com&quot;&gt;userId}@unknown.com`<br>  const username = clerkUser?.username ?? clerkUser?.firstName ?? null<br>  <br>  const dbUser = await prisma.user.upsert({<br>    where: { id: userId },<br>    update: { email, username },<br>    create: { id: userId, email, username, balance: 1000 }<br>  })<br>  <br>  return &lt;GameClient initialBalance={dbUser.balance} initialStats={...} /&gt;<br>}</pre><h3><strong>Core Game Features</strong></h3><p><strong>User Dashboard</strong></p><p>The dashboard provides comprehensive statistics and user information:</p><pre>interface PlayerStats {<br>  handsPlayed: number<br>  handsWon: number<br>  handsLost: number<br>  handsPushed: number<br>  blackjacks: number<br>  biggestWin: number<br>  currentStreak: number<br>  bestStreak: number<br>}</pre><p>Users can track their performance over time, including win rate, average bet size, and streak patterns. This data is persisted in real-time to the PostgreSQL database.</p><p><strong>Sound System Integration</strong></p><p>Sound effects are implemented using Howler.js for cross-browser compatibility:</p><pre>import { Howl } from &#39;howler&#39;<br><br>const cardSound = new Howl({<br>  src: [&#39;/sounds/card-deal.mp3&#39;],<br>  volume: 0.5<br>})<br><br>const winSound = new Howl({<br>  src: [&#39;/sounds/win.mp3&#39;],<br>  volume: 0.7<br>})<br><br>export const useSounds = () =&gt; {<br>  const playCardSound = () =&gt; cardSound.play()<br>  const playWinSound = () =&gt; winSound.play()<br>  <br>  return { playCardSound, playWinSound }<br>}</pre><p>The sound system includes controls for users to toggle audio on/off, with preferences persisted to local storage.</p><p><strong>Animation System</strong></p><p>Animations are crucial for an engaging game experience. I implemented a dual-library approach:</p><p><strong>Framer Motion</strong> for React-based animations:</p><pre>export const cardVariants: Variants = {<br>  initial: {<br>    y: -220,<br>    x: 130,<br>    opacity: 0,<br>    scale: 0.5,<br>    rotate: -14,<br>  },<br>  animate: {<br>    y: 0,<br>    x: 0,<br>    opacity: 1,<br>    scale: 1,<br>    rotate: 0,<br>  }<br>}</pre><p><strong>GSAP</strong> for complex timeline animations:</p><pre>export function flashResult(element: HTMLElement, result: HandResult) {<br>  const tl = gsap.timeline()<br>  <br>  if (result === &#39;WIN&#39; || result === &#39;BLACKJACK&#39;) {<br>    tl.to(element, { scale: 1.1, duration: 0.2 })<br>      .to(element, { scale: 1, duration: 0.2 })<br>  }<br>  <br>  return tl<br>}</pre><h3><strong>Advanced Features</strong></h3><p><strong>Game History Tracking</strong></p><p>Every game session is recorded with detailed information:</p><pre>export interface LastRoundSummary {<br>  payout: number<br>  balanceBefore: number<br>  balanceAfter: number<br>  totalBet: number<br>  handsWonDelta: number<br>  handsLostDelta: number<br>  handsPushedDelta: number<br>  blackjacksDelta: number<br>  biggestWinThisRound: number<br>}</pre><p>This data powers the user dashboard and provides insights into playing patterns and performance trends.</p><p><strong>Responsive Design</strong></p><p>The game adapts seamlessly across devices using custom breakpoints:</p><pre>type LayoutSize = &#39;sm&#39; | &#39;md&#39; | &#39;lg&#39;<br><br>const LAYOUTS: Record&lt;LayoutSize, {<br>  cardWidth:  number<br>  feltPad:    string<br>  outerPad:   string<br>  outerGap:   number<br>  innerGap:   number<br>}&gt; = {<br>  lg: { cardWidth: 71, feltPad: &#39;22px 20px 26px&#39;, outerPad: &#39;12px 12px&#39;, outerGap: 14, innerGap: 10 },<br>  md: { cardWidth: 62, feltPad: &#39;14px 16px 18px&#39;, outerPad: &#39;8px 12px&#39;,  outerGap: 10, innerGap: 8  },<br>  sm: { cardWidth: 54, feltPad: &#39;8px 12px 12px&#39;,  outerPad: &#39;6px 10px&#39;,  outerGap: 7, innerGap: 6  }<br>}</pre><p>The responsive system uses a custom hook to detect screen size and adjust card dimensions, spacing, and layout accordingly.</p><h3><strong>Real-Time Features</strong></h3><p><strong>Game Session API</strong></p><p>The backend API handles game session persistence:</p><pre>// app/api/game/session/route.ts<br>export async function POST(request: Request) {<br>  const { userId } = await auth()<br>  const summary: LastRoundSummary = await request.json()<br>  <br>  const session = await prisma.gameSession.create({<br>    data: {<br>      userId,<br>      result: summary.result,<br>      bet: summary.totalBet,<br>      payout: summary.payout,<br>      balanceBefore: summary.balanceBefore,<br>      balanceAfter: summary.balanceAfter,<br>    }<br>  })<br>  <br>  return Response.json(session)<br>}</pre><p><strong>Live Statistics Updates</strong></p><p>Game statistics are updated in real-time as users play:</p><pre>useEffect(() =&gt; {<br>  if (!lastRoundSummary) return<br>  <br>  fetch(&#39;/api/game/session&#39;, {<br>    method: &#39;POST&#39;,<br>    headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>    body: JSON.stringify(lastRoundSummary),<br>  }).catch(console.error)<br>}, [lastRoundSummary])</pre><h3><strong>User Experience Features</strong></h3><p><strong>Instant Redirects</strong></p><p>One of the key UX challenges was eliminating the flash of content during authentication redirects. The solution was a client component that returns `null` while handling the redirect:</p><pre>export default function LandingRedirect() {<br>  const { isLoaded, isSignedIn } = useAuth()<br>  const router = useRouter()<br><br>  useEffect(() =&gt; {<br>    if (!isLoaded) return<br>    router.replace(isSignedIn ? &#39;/play&#39; : &#39;/sign-in&#39;)<br>  }, [isLoaded, isSignedIn, router])<br><br>  return null<br>}</pre><p><strong>Sound Settings</strong></p><p>Users can control their audio experience through a settings panel:</p><pre>export default function SoundSettings() {<br>  const { soundEnabled, toggleSound } = useGameStore()<br>  <br>  return (<br>    &lt;button onClick={toggleSound}&gt;<br>      {soundEnabled ? &#39;🔊&#39; : &#39;🔇&#39;}<br>    &lt;/button&gt;<br>  )<br>}</pre><h3><strong>Technical Challenges</strong></h3><p><strong>State Synchronization</strong></p><p>One of the biggest challenges was maintaining state consistency between the client-side game state and the server-side database. The solution involved:</p><p><strong>Optimistic Updates</strong>: Client state updates immediately for responsiveness</p><p><strong>Background Sync</strong>: Database updates happen asynchronously</p><p><strong>Error Recovery</strong>: Failed sync attempts are retried with exponential backoff</p><p><strong>Animation Timing</strong></p><p>Coordinating animations with game logic required careful timing management:</p><pre>export const DEAL_ANIM_MS = 750      // Wait for cards to fly in<br>export const HOLE_FLIP_MS = 900      // Hole card flip duration<br>export const DEALER_CARD_MS = 520    // Pause between dealer hits<br>export const DEALER_THINK_MS = 900   // Pause after hole flip</pre><p>These constants ensure animations complete before the game state advances, preventing visual glitches.</p><p><strong>Performance Optimization</strong></p><p>The game maintains smooth 60fps performance through:</p><p><strong>Memoized Components</strong>: Prevent unnecessary re-renders</p><p><strong>Efficient State Updates</strong>: Immer ensures minimal object creation</p><p><strong>Animation Optimization</strong>: CSS transforms for hardware acceleration</p><p><strong>Sound Preloading</strong>: Audio files loaded during app initialization</p><p>The key takeaways from this project are:</p><p>1. <strong>Modern Tooling Makes Complex Applications Possible</strong>: Next.js, TypeScript, and modern libraries enable building sophisticated applications with relatively small teams</p><p>2. <strong>State Management is Critical</strong>: A well-designed state management system is the foundation of any complex application</p><p>3. <strong>User Experience Matters</strong>: Smooth animations, instant feedback, and thoughtful design separate good applications from great ones</p><p>4. <strong>Type Safety Pays Dividends</strong>: TypeScript catches bugs early and makes the codebase more maintainable</p><p>For developers looking to build their own game applications, I hope this detailed breakdown provides valuable insights into the architecture, implementation details, and lessons learned from building a production-ready blackjack game.</p><p>The complete source code is available for study, and I welcome questions and discussions about any aspect of the implementation. Happy coding!</p><p>Code — <a href="https://github.com/stonyDeveloper/blackjaq">https://github.com/stonyDeveloper/blackjaq</a><br>Game — <a href="https://blackjaq.vercel.app/">https://blackjaq.vercel.app/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0b1bcbefc9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[54 Years Later: What the Data Behind Humanity’s Return to the Moon Shows]]></title>
            <link>https://medium.com/@temitopeayodeji/54-years-later-what-the-data-behind-humanitys-return-to-the-moon-shows-a992ce5783d4?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a992ce5783d4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[space]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[astrophysics]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Sun, 19 Apr 2026 11:39:42 GMT</pubDate>
            <atom:updated>2026-04-19T12:10:16.438Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I reconstructed the physics of a real lunar mission, visualised cislunar space in 3D, and compared it to every Apollo mission using Python.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DNohy4V8OCqF_qmQHg8tuQ.jpeg" /></figure><p>On April 1, 2026, four astronauts climbed inside an Orion capsule atop a Space Launch System rocket at Kennedy Space Center and flew farther from Earth than any human had in over half a century.</p><p>Artemis II wasn’t a landing. There was no moonwalk, no flag planted, no golf shot. It was something more fundamental: a proof that humans could go back — that we hadn’t lost the ability or the will. After 54 years, the most extreme address any human being had ever lived at was no longer Apollo 17’s landing site at Taurus-Littrow. It was somewhere in deep cislunar space, 406,771 kilometres from home.</p><p>I wanted to understand that journey properly. Not just read the NASA press release, but actually dig into the data — the trajectory, the speeds, the radiation environment, the comparison to every Apollo mission. So I built a platform to do it.</p><p>This is the story of what I found, and how I built it.</p><h3><strong>The Problem: The Data Didn’t Exist Yet</strong></h3><p>The first thing you discover when you try to analyse a mission that just happened is that the data you want isn’t available yet. JPL Horizons — NASA’s definitive repository of spacecraft state vectors — typically publishes trajectory data weeks to months after a mission. Artemis II telemetry was not yet public.</p><p>So I did what mission analysts have always done: I reconstructed it from physics.</p><p>The core shape of a lunar free-return trajectory has been understood since the 1960s. You launch, perform a trans-lunar injection burn, coast outward as Earth’s gravity decelerates you, swing around the Moon using its gravity as a slingshot, and fall back toward Earth. The distance profile is deterministic given a handful of anchor values — and NASA published all of them: launch date, mission duration, maximum distance, time of closest lunar approach.</p><pre>def free_return_distance_profile(<br>    t_norm: np.ndarray,<br>    max_distance_km: float,<br>    moon_flyby_fraction: float = 0.55,<br>    flyby_dip_km: float = 15_000.0,<br>) -&gt; np.ndarray:<br>    distances = np.zeros_like(t_norm)<br><br>    for i, t in enumerate(t_norm):<br>        if t &lt;= moon_flyby_fraction:<br>            progress = t / moon_flyby_fraction<br>            # Cubic ease-in-out: slow start, rapid middle, slow near Moon<br>            if progress &lt; 0.5:<br>                eased = 4 * progress ** 3<br>            else:<br>                eased = 1 - (-2 * progress + 2) ** 3 / 2<br>            distances[i] = max_distance_km * eased<br>        else:<br>            progress = (t - moon_flyby_fraction) / (1.0 - moon_flyby_fraction)<br>            if progress &lt; 0.5:<br>                eased = 4 * progress ** 3<br>            else:<br>                eased = 1 - (-2 * progress + 2) ** 3 / 2<br>            distances[i] = max_distance_km * (1.0 - eased)<br><br>    # Gaussian dip at lunar flyby<br>    dip_width = 0.05<br>    dip = flyby_dip_km * np.exp(<br>        -((t_norm - moon_flyby_fraction) ** 2) / (2 * dip_width ** 2)<br>    )<br>    distances -= dip<br>    return np.clip(distances, EARTH_RADIUS_KM, None)</pre><p>The cubic ease-in-out is not arbitrary. It mirrors the real physics: a spacecraft leaving Earth accelerates quickly through the atmosphere and LEO, then decelerates as it climbs against Earth’s gravity well, slows to a near-crawl near the lunar sphere of influence, then falls back. The Gaussian dip captures the characteristic distance reduction at closest approach.</p><p>Every output file carries a <em>`data_source = “reconstructed”`</em> column. The methodology is transparent by design. When JPL eventually publishes the real telemetry, it slots in and replaces the reconstruction with zero changes to anything else.</p><h3><strong>The Architecture: A Single Source of Truth</strong></h3><p>The most important design decision in the whole project was making `src/data/missions.py` the single source of truth for everything.</p><p>Every mission — all eleven of them, from Apollo 8 in 1968 to Artemis II in 2026 — is defined once:</p><pre>&quot;Artemis II&quot;: {<br>    &quot;name&quot;:          &quot;Artemis II&quot;,<br>    &quot;color&quot;:         &quot;#4cc9f0&quot;,<br>    &quot;year&quot;:          2026,<br>    &quot;era&quot;:           &quot;Artemis&quot;,<br>    &quot;mission_type&quot;:  &quot;lunar_flyby&quot;,<br>    &quot;rocket&quot;:        &quot;SLS Block 1&quot;,<br>    &quot;crew&quot;: [<br>        &quot;Reid Wiseman — Commander (NASA)&quot;,<br>        &quot;Victor Glover — Pilot (NASA)&quot;,<br>        &quot;Christina Koch — Mission Specialist 1 (NASA)&quot;,<br>        &quot;Jeremy Hansen — Mission Specialist 2 (CSA)&quot;,<br>    ],<br>    &quot;launch_dt&quot;:       datetime(2026, 4, 1, 18, 10),<br>    &quot;max_distance_km&quot;: 406_771,<br>    &quot;events&quot;: [<br>        {&quot;name&quot;: &quot;Trans-Lunar Injection&quot;,         &quot;day&quot;: 0.3,  &quot;type&quot;: &quot;maneuver&quot;},<br>        {&quot;name&quot;: &quot;Closest Moon approach (7,600 km)&quot;, &quot;day&quot;: 5.5, &quot;type&quot;: &quot;flyby&quot;},<br>        {&quot;name&quot;: &quot;Record distance: 406,771 km&quot;,   &quot;day&quot;: 6.5,  &quot;type&quot;: &quot;record&quot;},<br>        {&quot;name&quot;: &quot;Far-side passage&quot;,              &quot;day&quot;: 6.7,  &quot;type&quot;: &quot;milestone&quot;},<br>        {&quot;name&quot;: &quot;Splashdown (Pacific, San Diego)&quot;, &quot;day&quot;: 9.7, &quot;type&quot;: &quot;splashdown&quot;},<br>    ],<br>    ...<br>}</pre><p>The dashboard, notebooks, 3D visualisation, charts, and data pipeline all import from this registry. Change the colour for Apollo 13 in one place and it updates everywhere. Add a new mission and it appears on every chart automatically.</p><p>This is the kind of discipline that separates a one-time project from something you can actually maintain.</p><h3><strong>What the Data Shows</strong></h3><p><strong>Finding 1: Apollo 13 Held the Human Distance Record for 56 Years</strong></p><p>This was the finding that surprised me most.</p><p>Everyone knows Apollo 13 as the mission that didn’t land — the oxygen tank explosion, Jim Lovell’s “Houston, we’ve had a problem,” the CO₂ scrubber built from a sock. What is less discussed is what the abort trajectory did to the distance record.</p><p>When Mission Control cancelled the lunar landing and executed the PC+2 burn to curve Odyssey around the Moon and back to Earth, they sent the crew on a path that took them 401,056 km from Earth. That is farther than any Apollo landing mission. Apollo 17, the last Moon landing, only reached 400,187 km. Apollo 13’s desperate emergency trajectory quietly set a human distance record that stood from 1970 until Artemis II broke it in April 2026.</p><p>Fifty-six years.</p><pre>&quot;Apollo 13&quot;: {<br>    &quot;max_distance_km&quot;: 401_056,<br>    &quot;mission_type&quot;:    &quot;free_return_abort&quot;,<br>    &quot;note&quot;: &quot;Oxygen tank explosion → landing aborted → crew survived using LM as lifeboat&quot;,<br>    &quot;achievements&quot;: [<br>        &quot;Human distance record 1970–2026: 401,056 km&quot;,<br>        &quot;LM used as lifeboat — saved 3 lives&quot;,<br>        &quot;Greatest improvised rescue in spaceflight history&quot;,<br>    ],<br>}</pre><p>Artemis II beat it by 5,715 km. The record that survived a moon landing programme, a Space Shuttle era, a Space Station era, and the entire history of commercial spaceflight fell to a crew of four on a deliberate sightseeing loop.</p><p><strong>Finding 2: The Speed Profile Tells You What Kind of Mission It Was</strong></p><p>One of the most revealing things you can do with trajectory data is compare speed profiles across missions. The reconstructed speed is derived from the rate of change of distance — a simplification, but directionally accurate.</p><p>What jumps out immediately is Apollo 13. Its speed profile is a spike. The abort burn accelerated the crew far above the nominal free-return speed at that point in the trajectory. You can see the emergency in the data without reading a single word of mission history.</p><p>Artemis I — the uncrewed shakedown flight in 2022 — shows the opposite pattern. Its 25-day distant retrograde orbit produces a slow, meandering speed profile completely unlike any crewed mission. It is the tortoise to every Apollo mission’s hare.</p><p><strong>Finding 3: Artemis II Was 7.9% Farther Than Apollo 8 — But Apollo 13 Was Farther Than Both</strong></p><p>The headline comparison — Artemis vs Apollo — is usually framed as Artemis II vs Apollo 8, the first lunar mission. That framing makes Artemis II look like a clean record-breaker.</p><p>The full picture is more interesting. Apollo 8 reached 376,745 km. Apollo 17, the last Moon landing, reached 400,187 km. Apollo 13, by accident, reached 401,056 km. Artemis I, uncrewed, reached 430,000 km. Artemis II reached 406,771 km — a new <em>*crewed*</em> distance record, but not the absolute record.</p><p>Context matters. The distance record chart only makes sense when you show all eleven missions.</p><h3><strong>Building the 3D Visualisation</strong></h3><p>The 3D cislunar view was the hardest part to get right. Cislunar space has an extreme scale problem: Earth has a radius of 6,371 km, the Moon sits at 384,400 km, and the trajectories swing out to 430,000 km. Rendering everything to true scale makes the bodies invisible. Render them larger and the spatial relationships become misleading.</p><p>The solution was to render Earth and Moon as proper spheres with correct radii, accept that they’ll look small relative to the trajectories, and add spatial context through reference rings.</p><pre>def trace_earth() -&gt; go.Surface:<br>    x, y, z = _sphere(EARTH_RADIUS_KM)<br>    return go.Surface(<br>        x=x, y=y, z=z,<br>        colorscale=[<br>            [0.00, &quot;#0a1628&quot;],<br>            [0.55, &quot;#1565c0&quot;],   # ocean<br>            [0.70, &quot;#1a6b3c&quot;],   # land<br>            [1.00, &quot;#1b5e20&quot;],<br>        ],<br>        lighting=dict(ambient=0.45, diffuse=0.85, specular=0.4),<br>        lightposition=dict(x=100_000, y=80_000, z=60_000),<br>        showscale=False,<br>    )</pre><p>The Van Allen radiation belts were a deliberate inclusion. Every crewed lunar mission crossed through them on departure and return — typically in two to three hours each way. They appear in the visualisation as semi-transparent oblate spheroids (flattened at the poles, which is physically accurate). Watching a mission trajectory punch through the inner belt, coast through cislunar space, and re-enter through the outer belt on return gives a visceral sense of what “beyond Earth’s magnetosphere” actually means.</p><pre>def trace_van_allen_belts() -&gt; list[go.Surface]:<br>    belts = [<br>        {<br>            &quot;name&quot;:    &quot;Inner Van Allen Belt&quot;,<br>            &quot;eq_r&quot;:    16_000,    # equatorial radius (km)<br>            &quot;pol_r&quot;:   16_000 * 0.25,  # polar radius — oblate<br>            &quot;color&quot;:   &quot;#ef5350&quot;,<br>            &quot;opacity&quot;: 0.09,<br>        },<br>        {<br>            &quot;name&quot;:    &quot;Outer Van Allen Belt&quot;,<br>            &quot;eq_r&quot;:    64_000,<br>            &quot;pol_r&quot;:   64_000 * 0.14,<br>            &quot;color&quot;:   &quot;#ffa726&quot;,<br>            &quot;opacity&quot;: 0.055,<br>        },<br>    ]<br>    ...</pre><p>The event markers — launch, TLI burn, closest Moon approach, distance record, splashdown — are pulled directly from the MISSIONS registry and projected onto each trajectory. When you hover over the diamond marker labelled “Record distance: 406,771 km” and see it floating at the far end of Artemis II’s arc, 406,000 kilometres from the blue sphere at the origin, the achievement becomes spatial in a way that a table of numbers cannot convey.</p><h3><strong>The Data Pipeline</strong></h3><p>The fetching architecture is modular: four independent modules in `src/data/fetchers/`, each wrapping one external API.</p><p>src/data/fetchers/</p><p>├── horizons.py # JPL Horizons — spacecraft state vectors</p><p>├── donki.py # NASA DONKI — solar flares, CMEs, SEPs</p><p>├── images.py # NASA Images — mission photograph metadata</p><p>└── noaa.py # NOAA SWPC — Kp index, solar cycle</p><p>Each module has a clean public interface:</p><pre># src/data/fetchers/horizons.py<br>def fetch_or_reconstruct(mission_name: str, mission_meta: dict) -&gt; pd.DataFrame:<br>    &quot;&quot;&quot;Try JPL Horizons; fall back to physics reconstruction.&quot;&quot;&quot;<br>    if not mission_meta.get(&quot;jpl_available&quot;, False):<br>        return _reconstruct(mission_name, mission_meta)<br>    try:<br>        return fetch(mission_name, mission_meta[&quot;jpl_id&quot;], ...)<br>    except Exception:<br>        return _reconstruct(mission_name, mission_meta)</pre><p>The orchestration layer — `scripts/fetch_all.py` — is intentionally thin. It decides what to fetch, where to save it, and whether to skip existing files. All the logic lives in the fetchers.</p><p>Running the full pipeline is a single command:</p><pre>python scripts/fetch_all.py</pre><h3><strong>Space Weather: The Hidden Context</strong></h3><p>One dimension of the mission that rarely makes the headlines is what the Sun was doing while the crew was outside Earth’s magnetosphere.</p><p>April 2026 falls within Solar Cycle 25, which reached its predicted maximum in late 2025. The Artemis II crew spent ten days with no magnetic shielding. Three experiments measured the radiation environment in real time:</p><p>- <strong>AVATAR</strong> — organ-on-a-chip devices measuring radiation effects on human tissue</p><p>- <strong>AstroRad</strong> — a radiation-shielding vest worn by Koch and Glover, tested as a prototype for Artemis III and beyond</p><p>- <strong>MARE</strong> — a phantom torso mannequin with hundreds of dosimeters measuring radiation distribution throughout the body</p><p>The mission window itself was quiet — no major solar flares or CMEs were recorded in the April 1–10 window by NASA DONKI. For Artemis III, which will involve a lunar landing and surface EVAs, the radiation picture will matter far more. The Artemis II data establishes the baseline.</p><h3><strong>What I Built, and What Comes Next</strong></h3><p>The full platform covers:</p><p>- <strong>11 missions</strong> — every crewed cislunar mission from Apollo 8 to Artemis II</p><p>- <strong>479 trajectory data points</strong> across all missions, 6-hour resolution</p><p>- <strong>7-page interactive dashboard</strong> (trajectory &amp; speed, 3D cislunar map, mission comparison, space weather, mission images)</p><p>- <strong>3 analysis notebooks</strong> for trajectory analysis, mission comparison, and space weather</p><p>- <strong>Modular fetcher architecture</strong> ready to plug in real JPL telemetry when it’s published</p><p>The natural next step is Artemis III — the first lunar landing since 1972. When that mission flies, the platform will need one registry entry in `missions.py` and a trajectory CSV. Everything else — the dashboard, charts, 3D view, comparisons — picks it up automatically.</p><p>That is the point. Not a one-time analysis, but infrastructure for the entire Artemis era.</p><h3><strong>Technical Stack</strong></h3><p>Mission registry — Python dataclasses + dicts</p><p>Trajectory model — NumPy — cubic ease-in-out, Gaussian flyby dip</p><p>Data pipeline — requests, astroquery (JPL Horizons)</p><p>Data wrangling — pandas</p><p>Visualisation — Plotly (2D + 3D)</p><p>Dashboard — Streamlit</p><p>Notebooks — Jupyter</p><p><strong>Running It Yourself</strong></p><pre>git clone &lt;repo&gt;<br>pip install -r requirements.txt<br><br># Generate reconstructed trajectories<br>python generate_trajectories.py<br><br># Fetch live NASA data (free API key at api.nasa.gov)<br>python scripts/fetch_all.py<br><br># Launch the dashboard<br>python -m streamlit run dashboard/app.py</pre><p>View Dashboard: <a href="https://artemis2-analytics.streamlit.app/">https://artemis2-analytics.streamlit.app/</a><br>Source Code: <a href="https://github.com/stonyDeveloper/artemis2-analytics">https://github.com/stonyDeveloper/artemis2-analytics</a></p><p><em>*The last time humans were this far from Earth before April 2026, Richard Nixon was President, the Vietnam War was ongoing, and the internet did not exist. Artemis II was not a small thing. The data agrees.*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a992ce5783d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-Tenancy as Product Strategy]]></title>
            <link>https://medium.com/@temitopeayodeji/multi-tenancy-as-product-strategy-1abda2b316f4?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1abda2b316f4</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Mon, 07 Jul 2025 08:32:22 GMT</pubDate>
            <atom:updated>2025-07-07T08:32:22.121Z</atom:updated>
            <content:encoded><![CDATA[<p>I was sitting in a project meeting a couple of weeks ago, drowning in acronyms. SaaS this, B2B that, PaaS everywhere — tech loves its jargon. But there was one term that came up that I didn’t fully grasp until now: <strong>multi-tenancy</strong>.</p><p>We’re building a platform that needs to serve multiple businesses, and early on we had to make a choice: single-tenant or multi-tenant architecture. I initially saw this as a technical decision for the engineering team to figure out.</p><p>But the more I dug into it, the more I realized this choice affects everything — how we price the product, how it scales, how we roll out new features, even how our customers experience the software.</p><h3>Understanding Multi-Tenancy: The Apartment Analogy</h3><p>To demystify it, think of real estate.</p><ul><li><strong>Single-Tenant Architecture</strong> is like owning a house: one user per property. Full control, full isolation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jez3CkudNh2K8diOmE6Q2Q.png" /></figure><ul><li><strong>Multi-Tenant Architecture</strong> is like renting/buying an apartment in a secure building: shared infrastructure with others, private units.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfKksAoBp_Az69sVcvcl9g.png" /></figure><p>In a multi-tenant SaaS, all customers use the same application instance. Their data is securely partitioned, but the backend, codebase, and infrastructure are shared. This structure makes a significant difference — not just in code, but in how the product behaves, scales, and evolves.</p><h4>Why Multi-Tenancy Is a Strategic Product Decision</h4><ol><li><strong>Lower Costs, Wider Reach</strong></li></ol><p>A multi-tenant platform spreads infrastructure, maintenance, and development costs across all customers. That means we can offer powerful capabilities at a lower price point — bringing enterprise-level tools to small and medium businesses. From a product standpoint, this unlocks a much broader market and drives adoption without compromising quality.</p><p><strong>2. Fast Iteration, Continuous Delivery</strong></p><p>With a single shared codebase, new features and improvements are deployed once and instantly available to all users. There’s no fragmentation or versioning nightmare. From a product perspective, this means faster innovation and a better user experience, with minimal friction or delay.</p><p><strong>3. Built-in Scalability</strong></p><p>As users grow, so does their demand. Multi-tenancy makes it possible to scale horizontally, adjusting resources across tenants without spinning up new infrastructure per customer. This ensures consistent performance and supports long-term growth — a critical aspect of any product’s ability to evolve with its users.</p><p>4. <strong>Operational Simplicity = More Focus on Value</strong></p><p>Instead of managing multiple customer-specific instances, a multi-tenant platform centralizes maintenance, security, and updates. This operational simplicity frees up engineering and product teams to focus on what matters — delivering value, not just keeping systems running.</p><h3>Common Concerns</h3><h4>🔸 <em>“What about custom needs?”</em></h4><p>We’re designing for configuration, not deep customization — allowing users to adjust workflows, branding, roles, and permissions within guardrails. This ensures flexibility without complexity or instability.</p><h4>🔸 <em>“Is data secure?”</em></h4><p>Yes. Tenant data is logically separated and access-controlled. Security protocols, encryption, and infrastructure isolation are baked in from day one. Security is not an afterthought — it’s part of the product design.</p><h3>Final Thoughts</h3><p>Choosing multi-tenancy wasn’t just about engineering efficiency. It was about how to serve users better, faster, and more affordably. It shaped our pricing, our support model, our roadmap, and how we prioritize development.</p><p>It’s easy to see architecture as an engineering concern, but in reality, it can be a strategic product decision — one that influences how you scale, how you innovate, and how much value you can offer your users over time.</p><p>So if you’re building SaaS, don’t just ask “what’s technically easier?” Ask: What supports the product we want to build — and the users we want to empower?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1abda2b316f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The One dangerouslySetInnerHTML Trick That Saved My Next.js Loader (and Sanity)]]></title>
            <link>https://medium.com/@temitopeayodeji/the-one-dangerouslysetinnerhtml-trick-that-saved-my-next-js-loader-and-sanity-c48ffe1cc3d1?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48ffe1cc3d1</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 10:10:05 GMT</pubDate>
            <atom:updated>2025-06-19T08:38:10.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0fHJ2HwkRYcfoDkRllSq-Q.png" /></figure><p>You know how some React concepts feel like legends? You’ve heard about them, maybe even used them once or twice in a rush, but they mostly just float at the edge of your tooling consciousness?</p><blockquote>Yeah. That’s me and dangerouslySetInnerHTML</blockquote><p>As a React developer, I’ve been through all kinds of browser quirks, hydration mismatches, async components gone rogue — you name it. But recently, while building a Next.js landing page, I tripped on something that felt too basic to be so annoying: a suspense loader that just wouldn’t show.</p><h3>🧩 When Suspense Fails to Load (Visibly)</h3><p>I was working on a landing site for an e-commerce project. We went with Next.js for the usual suspects — SEO optimization and server-side rendering for better Core Web Vitals. You know the drill.</p><p>Next.js offers several inherent advantages for Search Engine Optimization (SEO), making it a popular choice for landing pages and marketing sites. These advantages primarily stem from its rendering capabilities:</p><p><strong>Server-Side Rendering (SSR) and Static Site Generation (SSG):</strong> Next.js allows developers to pre-render pages on the server (SSR) or at build time (SSG). This means that when a search engine crawler visits a Next.js page, it receives a fully formed HTML document with all the content already present. This is crucial for SEO because crawlers can easily parse and index the content, unlike client-side rendered (CSR) applications where content might not be available until JavaScript executes.</p><p><strong>Improved Core Web Vitals:</strong> Next.js is designed with performance in mind, which directly impacts Core Web Vitals (CWV) — a set of metrics Google uses to evaluate user experience. Features like automatic image optimization, font optimization, and code splitting contribute to faster loading times (Largest Contentful Paint — LCP), better interactivity (First Input Delay — FID), and stable layouts (Cumulative Layout Shift — CLS). Better CWV scores can lead to higher search rankings.</p><p><strong>Metadata Management:</strong> Next.js provides straightforward ways to manage metadata (like title tags, meta descriptions, and Open Graph tags) for each page. This allows for precise control over how pages appear in search results and social media shares, which is vital for attracting clicks and improving visibility.</p><p><strong>Optimized Routing and Linking:</strong> Next.js’s file-system based routing and next/link component enable efficient client-side navigation while still providing proper &lt;a&gt; tags for crawlers, ensuring all pages are discoverable.</p><p>These features collectively make Next.js a robust framework for building SEO-friendly landing pages that perform well in search engine rankings.</p><p>The site was pretty straightforward stuff — global shopping concept, smooth transitions, polished user experience. I wanted a splashy loader screen that shows up before React kicks in, something more elegant than the basic fallback={&lt;div&gt;Loading…&lt;/div&gt;} approach.</p><p>So, naturally, I reached for Suspense.</p><pre>&lt;Suspense fallback={&lt;div&gt;Loading...&lt;/div&gt;}&gt;<br>  &lt;App /&gt;<br>&lt;/Suspense&gt;</pre><p>Except… the loader didn’t show. At all. Just a blank screen, then — bam! — the app appears. No fade. No suspense. No grace.</p><h3>🕵️‍♂️ “It’s Gotta Be SSR, Right?”</h3><p>My Next.js experience kicked in immediately. The pages render on the server first, so that loader fallback is essentially useless until the JavaScript bundle loads and React hydrates on the client. Which means the initial screen experience is just… invisible suspense.</p><p>I went down a bit of a rabbit hole after that — and eventually stumbled on a clever workaround: use good old-fashioned inline JavaScript to show and hide the loader <em>before</em> React kicks in. And the only way to pull that off inside a React component? Enter dangerouslySetInnerHTML.</p><h3>⚠️ That One Property with the Scary Name</h3><p>dangerouslySetInnerHTML.</p><p>I’ve always known it existed. I’ve always known it was “dangerous” (like, capital-D dangerous). But I never really used it in production code. It’s one of those things you read about in docs but rarely touch.</p><p>Still, desperate times called for desperate measures.</p><p>What if I inject a &lt;script&gt; tag into the initial HTML using this prop? Something simple that shows a loader on page load and hides it after React is ready?</p><p>Boom — that actually worked.</p><h3>🛠️ Here’s the Approach (In Theory)</h3><p>The solution steps outside React’s hydration process entirely:</p><ol><li>Initial HTML renders with a static loader div and some CSS animations</li><li>Vanilla JavaScript kicks in (injected via dangerouslySetInnerHTML) that waits for DOMContentLoaded</li><li>Timer ensures minimum loading time (nobody likes flashing content)</li><li>React hydrates and a small wrapper component cleans up the loader</li><li>Smooth transition from static loader to hydrated app</li></ol><p>The key insight? You don’t need to wait for React. The browser can handle showing stuff immediately while your JavaScript bundle loads in the background.</p><h3>🤯 Why This Actually Works</h3><p>This solution works because you step outside React’s hydration lifecycle and just do what browsers do best: show content immediately. You use static HTML and client-side JavaScript that runs before React even starts.</p><p>It’s the equivalent of saying: “React, take your time hydrating. I’ve got the user experience covered until you’re ready.”</p><p>Once hydration completes, you clean everything up with a useEffect in a client wrapper component. No conflicts, no flash of unstyled content, no awkward transitions.</p><h3>✍️ So, About dangerouslySetInnerHTML… (And Why It’s Not So Dangerous Here)</h3><p>For anyone who’s only heard whispers about this prop, here’s the breakdown:</p><p>dangerouslySetInnerHTML is a React prop that allows you to directly inject raw HTML into the DOM. As its name suggests, it’s considered “dangerous” because it bypasses React’s built-in protection against Cross-Site Scripting (XSS) vulnerabilities. XSS attacks occur when malicious scripts are injected into a website, often through user-supplied content, and then executed by other users’ browsers. This can lead to data theft, session hijacking, or defacement of the website.</p><h4>When it’s acceptable (and why it was used in this case):</h4><p>Despite its intimidating name, dangerouslySetInnerHTML has legitimate and safe use cases, particularly when you have absolute control over the content being injected. In this specific scenario, it was the perfect tool to inject a small, self-contained JavaScript snippet and CSS directly into the initial HTML for a pre-hydration loading screen.</p><h3>Alternative Approaches for Pre-Hydration Loading Screens in Next.js</h3><p>While dangerouslySetInnerHTML provided an effective solution for an immediate pre-hydration loader, it’s important to acknowledge alternative strategies, especially those that align more closely with modern Next.js practices and avoid the inherent “danger” of injecting raw HTML.</p><p><strong>Next.js loading.js (App Router):</strong> The official, built-in method for App Router. It’s server-rendered and automatic, but specific to the App Router and offers limited control over complex animations.</p><p><strong>Custom Server-Side Rendered Loader Component:</strong> Involves rendering a simple HTML/CSS loader directly in _document.js (Pages Router) or layout.tsx (App Router), then hiding it with client-side JavaScript after hydration. Offers full control and works with both routers, but requires manual implementation and can lead to FOUC if not handled carefully.</p><p><strong>CSS-only Loaders:</strong> Purely CSS-based solutions for simple indicators. They are extremely fast and lightweight as they don’t require JavaScript for display, but offer limited complexity and still need JavaScript to hide after hydration.</p><p><strong>Third-Party Libraries:</strong> Libraries that simplify loading screen creation. They offer convenience and community support, but add dependency overhead and may have a learning curve.</p><h3>The Implementation: A Peek Under the Hood</h3><p>First, in our RootLayout (which is a server component in Next.js), we inject both the critical CSS for our loader and the initial JavaScript to manage its display. This ensures they are part of the initial HTML sent from the server, making the loader visible immediately.</p><pre>// app/layout.tsx<br>import { Suspense } from &quot;react&quot;;<br>import ClientHydrationWrapper from &quot;./ClientHydrationWrapper&quot;; // Assuming ClientHydrationWrapper is in the same directory<br><br>export default function RootLayout({<br>  children,<br>}: Readonly&lt;{<br>  children: React.ReactNode;<br>}&gt;) {<br>  return (<br>    &lt;html lang=&quot;en&quot;&gt;<br>      &lt;head&gt;<br>        {/* Inline CSS for immediate loading screen - shows before React hydrates */}<br>        &lt;style dangerouslySetInnerHTML={{<br>          __html: `<br>            #initial-loader {<br>              position: fixed;<br>              top: 0;<br>              left: 0;<br>              width: 100%;<br>              height: 100%;<br>              background: white;<br>              display: flex;<br>              align-items: center;<br>              justify-content: center;<br>              z-index: 9999;<br>            }<br>            .fade-out {<br>              opacity: 0;<br>              transition: opacity 0.3s ease-out;<br>            }<br>          `,<br>        }} /&gt;<br>      &lt;/head&gt;<br>      &lt;body&gt;<br>        {/* Initial loading screen - visible immediately */}<br>        &lt;div id=&quot;initial-loader&quot;&gt;<br>          {/* Your loader animation/content here, e.g., a spinner or logo */}<br>          Loading...<br>        &lt;/div&gt;<br><br>        &lt;Suspense fallback={&lt;div&gt;Loading app...&lt;/div&gt;}&gt;<br>          &lt;ClientHydrationWrapper&gt;<br>            {children}<br>          &lt;/ClientHydrationWrapper&gt;<br>        &lt;/Suspense&gt;<br><br>        {/* Script to hide loader after hydration */}<br>        &lt;script dangerouslySetInnerHTML={{<br>          __html: `<br>            window.addEventListener(&#39;DOMContentLoaded&#39;, function() {<br>              // Hide loader after a minimum time and when React is ready<br>              setTimeout(function() {<br>                const loader = document.getElementById(&#39;initial-loader&#39;);<br>                if (loader) {<br>                  loader.classList.add(&#39;fade-out&#39;);<br>                  setTimeout(function() {<br>                    loader.style.display = &#39;none&#39;;<br>                  }, 300);<br>                }<br>              }, 800); // Minimum loading time<br>            });<br>          `,<br>        }} /&gt;<br>      &lt;/body&gt;<br>    &lt;/html&gt;<br>  );<br>}</pre><p>And here’s the ClientHydrationWrapper component, which is a client component. Its useEffect hook runs only after React has hydrated on the client side, allowing us to gracefully hide the initial loader.</p><pre>// ClientHydrationWrapper.tsx<br>&quot;use client&quot;;<br><br>import { useEffect } from &quot;react&quot;;<br><br>export default function ClientHydrationWrapper({<br>  children,<br>}: { <br>  children: React.ReactNode <br>}) {<br>  useEffect(() =&gt; {<br>    // Hide the initial loader<br>    const hideLoader = () =&gt; {<br>      const loader = document.getElementById(&#39;initial-loader&#39;);<br>      if (loader) {<br>        loader.classList.add(&#39;fade-out&#39;);<br>        setTimeout(() =&gt; {<br>          loader.style.display = &#39;none&#39;;<br>        }, 300);<br>      }<br>    };<br><br>    // Small delay to ensure smooth transition<br>    const timer = setTimeout(hideLoader, 100);<br>    <br>    return () =&gt; clearTimeout(timer);<br>  }, []);<br><br>  // Show children immediately on server, and after hydration on client<br>  return &lt;&gt;{children}&lt;/&gt;;<br>}</pre><p>As you can see, the dangerouslySetInnerHTML is used twice: once for the inline CSS within the &lt;style&gt; tag in the &lt;head&gt;, and once for the JavaScript snippet within a &lt;script&gt; tag just before the closing &lt;/body&gt; tag. This strategic placement ensures that the loader’s styling and initial display logic are available as early as possible in the page load process.</p><p>The ClientHydrationWrapper then takes over, ensuring that once React is fully up and running, the initial loader gracefully fades out, handing over control to the fully interactive Next.js application. This combination provides that seamless, immediate visual feedback for the user while the rest of your Next.js application hydrates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48ffe1cc3d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create a Catch-and-Avoid Game with ZIM: A Comprehensive Guide]]></title>
            <link>https://medium.com/@temitopeayodeji/how-to-create-a-catch-and-avoid-game-with-zim-a-comprehensive-guide-7401fb9c5819?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7401fb9c5819</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 11:36:48 GMT</pubDate>
            <atom:updated>2025-01-31T14:35:57.578Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZNuhGytqGB0GgNYieYOPGA.png" /></figure><p>We’ll walk through the process of building a simple yet engaging “Catch and Avoid” game using the ZIM framework. ZIM is a framework built on top of the HTML5 Canvas and JavaScript, designed to make game development and interactive projects accessible and fun. By the end of this guide, you’ll have a fully functional game where players catch falling flowers to score points while avoiding wasps that deduct points. Let’s dive in!</p><h4>Introduction to the Game</h4><p>Our game, which we’ll call Bee Garden, involves a player-controlled “bee” that moves left and right at the bottom of the screen. The goal is to avoid wasps, which subtract scores, and grab falling flowers, which earn points. The game runs for 30 seconds, and the player’s score is displayed at the end. The game also includes instructions and a restart option.</p><h4><strong>Setting Up the Environment</strong></h4><p>Before we start building, we need to set up our development environment. Here’s what you’ll need:</p><p>A Code Editor: Use any code editor like Visual Studio Code, Sublime Text, or Atom.</p><p>A Web Browser: Modern browsers like Chrome, Firefox, or Edge will work.</p><p>ZIM Framework: We’ll import ZIM directly from its CDN.</p><h4>HTML Structure</h4><p>The HTML file is minimal. It includes a &lt;script&gt; tag to import ZIM and a &lt;canvas&gt; element where the game will be rendered. Here’s the basic structure:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;utf-8&quot; /&gt;<br>    &lt;title&gt;Bee Garden Game&lt;/title&gt;<br>    &lt;style&gt;<br>      html,<br>      body {<br>        margin: 0;<br>        padding: 0;<br>        overflow: hidden;<br>        background-color: #87ceeb; /* Sky blue background */<br>      }<br>    &lt;/style&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;script type=&quot;module&quot;&gt;<br>      // Game code goes here<br>    &lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><h4>Importing ZIM</h4><p>ZIM is imported as an ES module. We use the following line to include it:</p><pre>import zim from &quot;https://zimjs.org/cdn/017/zim&quot;;</pre><p>This gives us access to all the ZIM classes and functions, such as Frame, Rectangle, Label, and more. ES modules are a modern way to organize and load JavaScript code, making it easier to manage dependencies and reuse code.</p><h4>Creating the Game Frame</h4><p>The Frame class is the foundation of any ZIM project. It sets up the canvas and provides a stage for adding objects. Here’s how we initialize it:</p><pre>const frame = new Frame(&quot;fit&quot;, 800, 600, &quot;#87CEEB&quot;, &quot;dark&quot;, ready);<br><br>function ready() {<br>  const stage = frame.stage;<br>  const stageW = frame.width;<br>  const stageH = frame.height;<br>  // Game initialization code will go here<br>}</pre><p>Let’s break down the parameters:</p><ul><li>&quot;fit&quot;: Ensures the canvas fits the screen. This is useful for making the game responsive.</li><li>800, 600: The initial width and height of the canvas.</li><li>&quot;#87CEEB&quot;: The background color (sky blue).</li><li>&quot;dark&quot;: The theme for ZIM’s interface (optional). This affects the appearance of ZIM’s debugging tools.</li><li>ready: A callback function that runs when the frame is ready. This is where we’ll write most of our game code.</li></ul><h4>Game Variables and Initialization</h4><p>Inside the ready function, we define variables to track the game state:</p><pre>let score = 0;<br>let timeLeft = 30;<br>let gameRunning = false;<br>let lastTickTime = Date.now();<br>const flowers = []; // Array to store flower objects<br>const wasps = []; // Array to store wasp objects</pre><p>These variables are essential for managing the game’s logic:</p><ul><li>score: Tracks the player’s score.</li><li>timeLeft: Tracks the remaining time in the game.</li><li>gameRunning: A boolean that indicates whether the game is currently running.</li><li>lastTickTime: Stores the timestamp of the last game update. This is used to manage the countdown timer.</li><li>flowers and wasps: Arrays that store the game objects for flowers and wasps, respectively.</li></ul><p>Next, we create the player (a bee) and add it to the stage</p><pre>const player = new Rectangle({<br>  width: 100,<br>  height: 20,<br>  color: &quot;#FFD700&quot;, // Gold color<br>  borderColor: &quot;#333&quot;,<br>  borderWidth: 2,<br>}).addTo(stage);<br>player.pos(stageW / 2, stageH - 50); // Position at the bottom center</pre><p>The player is represented by a Rectangle object with a gold color. It’s positioned at the bottom center of the screen, ready to catch falling objects.</p><h4>Adding Labels for Score and Time</h4><p>Using ZIM’s Label class, we can display the score and time remaining:</p><pre>const scoreLabel = new Label({<br>  text: `Score: ${score}`,<br>  size: 24,<br>  color: &quot;#000&quot;,<br>}).addTo(stage);<br>scoreLabel.pos(10, 10); // Top-left corner<br><br>const timeLabel = new Label({<br>  text: `Time: ${timeLeft}`,<br>  size: 24,<br>  color: &quot;#000&quot;,<br>}).addTo(stage);<br>timeLabel.pos(stageW - 120, 10); // Top-right corner</pre><p>These labels are positioned at the top of the screen and updated dynamically as the game progresses.</p><h4>Game Instructions</h4><p>Before the game starts, instructions are shown on the screen:</p><pre>const instructionsLabel = new Label({<br>  text: `Instructions:\n\nMove left and right using the arrow keys.\nCatch the flowers (Pink, Yellow, Green) to score points!\nAvoid the wasps (Black, Red) to prevent losing points.\n\nPress SPACE to Start!`,<br>  size: 24,<br>  color: &quot;#FFF&quot;,<br>  backgroundColor: &quot;rgba(0,0,0,0.5)&quot;,<br>  padding: 20,<br>  corner: 10,<br>}).addTo(stage);<br>instructionsLabel.center().y -= 100; // Center and adjust vertical position</pre><p>The instructions are displayed in a centered label with a semi-transparent background. This ensures they are easy to read and visually appealing.</p><h4>Handling Player Movement</h4><p>The left and arrow keys will be tracked with the keydown and keyup events.</p><pre>const keyState = { left: false, right: false };<br><br>window.addEventListener(&quot;keydown&quot;, (e) =&gt; {<br>  if (e.key === &quot;ArrowLeft&quot;) keyState.left = true;<br>  if (e.key === &quot;ArrowRight&quot;) keyState.right = true;<br>});<br><br>window.addEventListener(&quot;keyup&quot;, (e) =&gt; {<br>  if (e.key === &quot;ArrowLeft&quot;) keyState.left = false;<br>  if (e.key === &quot;ArrowRight&quot;) keyState.right = false;<br>});</pre><h4>Creating Falling Objects</h4><p>According to out game’s logic, flowers and wasps are to randomly fall from the top of the screen. We use ZIM’s Circle class to represent them:</p><pre>const createFallingObject = () =&gt; {<br>  if (!gameRunning || [...flowers, ...wasps].length &gt;= 10) return;<br><br>  const isFlower = rand(0, 1) &lt; 0.8; // 80% chance of being a flower<br>  const colorPoints = isFlower<br>    ? { &quot;#FF69B4&quot;: 10, &quot;#FFFF00&quot;: 15, &quot;#00FF00&quot;: 20 } // Flower colors and points<br>    : { &quot;#000000&quot;: -15, &quot;#FF0000&quot;: -20 }; // Wasp colors and points<br><br>  const colors = Object.keys(colorPoints);<br>  const chosenColor = colors[rand(0, colors.length - 1)];<br>  const points = colorPoints[chosenColor];<br><br>  const obj = new Circle({<br>    radius: 15,<br>    color: chosenColor,<br>  }).addTo(stage);<br><br>  obj.pos(rand(0, stageW - 30), -30); // Random horizontal position<br>  obj.speed = rand(2, isFlower ? 4 : 5); // Random speed<br>  obj.points = points;<br>  obj.isFlower = isFlower;<br><br>  (isFlower ? flowers : wasps).push(obj); // Add to the appropriate array<br>};</pre><p>This function creates a new falling object (either a flower or a wasp) with a random color, speed, and position. The object is added to the appropriate array for later processing.</p><h4>Game Loop</h4><p>Implement the main game loop using ZIM’s Ticker:</p><pre>const tick = () =&gt; {<br>  if (!gameRunning) return;<br><br>  // Update timer<br>  const currentTime = Date.now();<br>  const deltaTime = (currentTime - lastTickTime) / 1000;<br>  if (deltaTime &gt;= 1) {<br>    timeLeft--;<br>    timeLabel.text = `Time: ${timeLeft}`;<br>    lastTickTime = currentTime;<br>    if (timeLeft &lt;= 0) endGame();<br>  }<br><br>  // Update player position<br>  if (keyState.left) player.x = Math.max(0, player.x - 5);<br>  if (keyState.right) player.x = Math.min(stageW - player.width, player.x + 5);<br><br>  // Update falling objects<br>  [...flowers, ...wasps].forEach((obj) =&gt; {<br>    obj.y += obj.speed;<br>    // Handle collisions<br>    if (zim.hitTestBounds(obj, player)) {<br>      score = Math.max(0, score + obj.points);<br>      scoreLabel.text = `Score: ${score}`;<br>      obj.removeFrom();<br>      const index = obj.isFlower ? flowers : wasps;<br>      index.splice(index.indexOf(obj), 1);<br>    }<br>    // Remove objects that fall off screen<br>    if (obj.y &gt; stageH) {<br>      obj.removeFrom();<br>      const index = obj.isFlower ? flowers : wasps;<br>      index.splice(index.indexOf(obj), 1);<br>    }<br>  });<br><br>  // Create new objects<br>  if (rand(0, 1) &lt; 0.03) createFallingObject();<br><br>  stage.update();<br>};</pre><h4>Game State Functions</h4><p>Starting the Game</p><pre>const startGame = () =&gt; {<br>  if (gameRunning) return;<br>  <br>  gameRunning = true;<br>  score = 0;<br>  timeLeft = 30;<br>  flowers.forEach((f) =&gt; f.removeFrom());<br>  wasps.forEach((w) =&gt; w.removeFrom());<br>  flowers.length = 0;<br>  wasps.length = 0;<br>  <br>  instructionsLabel.visible = false;<br>  gameOverLabel.visible = false;<br>  scoreLabel.text = &quot;Score: 0&quot;;<br>  timeLabel.text = `Time: ${timeLeft}`;<br>  <br>  Ticker.add(tick);<br>};</pre><p>Ending the Game</p><pre>const endGame = () =&gt; {<br>  gameRunning = false;<br>  Ticker.remove(tick);<br>  gameOverLabel.text = `Game Over! Score: ${score}\nPress SPACE to restart`;<br>  gameOverLabel.visible = true;<br>};</pre><h4>Conclusion</h4><p>In this article, we’ve built a simple yet engaging “Catch and Avoid” game using the ZIM framework. We covered everything from setting up the environment to handling player input, creating game objects, and managing the game loop. ZIM’s simplicity and flexibility make it an excellent choice for beginners and experienced developers alike.</p><p>Feel free to expand on this game by adding new features, such as power-ups, levels, or sound effects. Happy coding! 🐝🎮</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7401fb9c5819" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Guest Checkout Essential for Your E-commerce Product?]]></title>
            <link>https://medium.com/@temitopeayodeji/is-guest-checkout-essential-for-your-e-commerce-product-58d85876ec92?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/58d85876ec92</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Tue, 27 Feb 2024 11:26:20 GMT</pubDate>
            <atom:updated>2024-02-27T11:26:20.087Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re constantly fine-tuning your online store to provide the best shopping experience, you’ve likely pondered the guest checkout feature. It’s that magic feature that lets users breeze through purchases without going through the traditional signup process. But is it still worth it in 2024? Let’s dive into the details of guest checkout, uncovering its perks and pitfalls, and decide if it’s the right fit for your e-commerce haven.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2lLXS-7KtYEMl_Du" /><figcaption>Photo by <a href="https://unsplash.com/@posterpos?utm_source=medium&amp;utm_medium=referral">Poster POS</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What is Guest Checkout</h3><p>Guest checkout is an e-commerce feature that allows shoppers make purchases without having to create an account. This is in contrast to the more widely used customer account checkout process that would involve storing customer details for future use. Guest checkout isn’t just a convenience; it’s a game-changer. Picture this experience: a potential customer lands on your site, ready to buy an item. With guest checkout, they can skip the tedious registration process and go straight to payment. It’s all about simplicity and speed, and reducing shopping cart abandonment.</p><h3>Pros of Guest Checkout:</h3><p><strong>1. Seamless Shopping Journey:</strong> Ever been irritated by a lengthy checkout process? Exactly! Guest checkout helps customers avoid that annoying experience, offering a smooth ride from browsing to buying.</p><p><strong>2. Reduced Shopping Cart Abandonment:</strong> Any item(s) that is added to a shopping cart and is not successfully paid for is classified as “abandoned”. Cart abandonment is the arch-nemesis of e-commerce as a high abandonment rate could imply a leaky sales funnel or bad user experience. By removing account creation barriers, you could slash cart abandonment rates and boost your bottom line.</p><p><strong>3. Welcoming New Faces:</strong> Guest checkout does appeal to casual customers who are on your website for a first-time or one-time purchase. Not everyone wants to commit to an account on their first visit. Guest checkout warmly welcomes these casual shoppers, expanding your reach and potential customer base.</p><p><strong>4. Privacy Priority:</strong> In today’s security-conscious world, trust is everything. Guest checkout respects your customers’ privacy by only asking for essential details, building trust and loyalty in return. This way you can also interest users who do not wish to have their personal and card details stored.</p><h3><strong>Cons of Guest Checkout:</strong></h3><p><strong>1. Missing Customer Insights:</strong> One notable trade-off associated with implementing guest checkout functionality is the compromise on valuable customer insights. By requiring users to register before making a purchase, businesses often gather vital information such as email addresses, demographics, and purchase history, which can inform targeted marketing campaigns and products. While guest checkout keeps things breezy, it also means missing out on valuable customer data that are needed for product strategy and business decisions.</p><p><strong>2. Security Concerns:</strong> While guest checkout offers a streamlined and convenient purchasing experience, it also raises legitimate concerns about security. The absence of user accounts means that transactions lack the additional layer of protection provided by account-based authentication measures. By bypassing the account creation process, guest checkout may inadvertently create an opportunity for fraudsters to exploit the anonymity of transactions.</p><p><strong>3. Order Organization:</strong> Unlike orders associated with registered user accounts, which neatly categorize customer information and preferences, guest orders present a unique challenge in terms of organization and management. Without the structured framework provided by user accounts, processing guest orders can be trickier, requiring additional effort and resources to maintain order. Moreover, processing returns without associated user accounts requires manual verification of purchase details, leading to slower turnaround times and increased administrative overhead.</p><h3>Guest Checkout in 2024</h3><p>Guest checkout and customer accounts both have benefits and downsides. So, why not find a balance by adopting a hybrid approach. This means offering both guest checkout and account creation options to cater to different preferences. You can get creative with a strategy that involves incentivizing account creation with perks like exclusive discounts or access to special promotions.</p><p>When implementing guest checkout, simplicity is key. Provide clear options at the checkout stage: returning customer, new customer, or guest checkout. This empowers customers to choose the path that suits them best.</p><p>Another effective strategy is to allow customers to complete their purchase as a guest initially. Then, after the transaction is completed, prompt them with an option to create an account for future convenience. This approach respects the customer’s time and preferences while still providing an opportunity for account creation.</p><p>Ultimately, the decision to incorporate guest checkout into your e-commerce website depends on your specific goals and priorities. By carefully considering the pros and cons and tailoring the checkout experience to align with your brand’s values, you can set yourself up for success in the competitive e-commerce landscape. So, why not give guest checkout a try and see how it can enhance user experience?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58d85876ec92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leverage the Least Privilege Principle for Enhanced Security in Admin Systems]]></title>
            <link>https://medium.com/@temitopeayodeji/leverage-the-least-privilege-principle-for-enhanced-security-in-admin-systems-414808c1ed3d?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/414808c1ed3d</guid>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[best-practices]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Wed, 21 Feb 2024 10:18:09 GMT</pubDate>
            <atom:updated>2024-02-21T13:21:04.018Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Leveraging the Least Privilege Principle for Enhanced Security in Admin Systems</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*snUK6cV_zDmsT0CW" /><figcaption>Photo by <a href="https://unsplash.com/@sigmund?utm_source=medium&amp;utm_medium=referral">Sigmund</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One thing we have to keep talking about in software engineering is security — it’s a big deal! Think about it: our lives revolve around software these days, from apps on our phones to complex systems running entire businesses. But with all this tech comes the risk of hackers, data breaches, and all sorts of cyber mayhem. That’s why security practices in software engineering are like your digital armor — they keep your stuff safe from the bad guys.</p><p>In the development of any administrative system, it is imperative to prioritize robust security measures at every stage of the design and implementation process. While the development of innovative features holds merit, the paramount concern must be the safeguarding of the system and its users.</p><blockquote>Information security and Cybersecurity are vast fields that can often be riddled with complexity and ambiguity. But today, we’re focusing on one of its key practices — least privilege — and how it can be leveraged for improved security.</blockquote><h4>What is Least Privilege?</h4><p>At its core, the least privilege principle advocates for granting users only the minimum level of access or permissions required to perform their designated tasks. For example, granting administrator privileges over the network to a sales account manager is not necessary or appropriate.</p><p>This approach minimizes the attack surface, limiting the potential impact of security breaches and unauthorized actions. When applied to admin systems, it means carefully scrutinizing user roles, permissions, and access controls to ensure that individuals have precisely the privileges necessary to fulfill their responsibilities — no more, no less.</p><p>Here are some practical steps to leverage the least privilege principle when building admin systems:</p><h4>1. Role-Based Access Control (RBAC)</h4><p>Use a role-based access control methodology to categorize users into roles based on their job responsibilities and functions within the organization. Define the roles as they align with specific tasks or duties, and assign permissions accordingly. This ensures that users are granted access only to the resources and functionalities essential to their roles.</p><p>Permissions can be allocated to roles enabling them to perform Create, Read, Update, and Delete (<a href="https://developer.mozilla.org/en-US/docs/Glossary/CRUD">CRUD</a>) operations within administrative systems, ensuring efficient management and oversight of organizational resources and data.</p><p>Consider a healthcare system where different roles like doctors, nurses, and administrators have distinct responsibilities. Doctors may need access to patient records and diagnostic tools, while nurses require access to patient charts and scheduling systems. Admins, on the other hand, might oversee user management and system configuration. By implementing RBAC, each user group receives precisely the permissions necessary for their tasks, minimizing the risk of unauthorized access to sensitive medical data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQRLgw-uyxrzfiwjW4OnVg.png" /></figure><h4>2. Regular Access Reviews</h4><p>Conduct regular reviews of user access rights to identify and remove unnecessary privileges. As roles and responsibilities evolve over time, it’s essential to reassess access permissions and make adjustments accordingly.</p><p>An example is in a financial institution, where employee roles may change due to promotions, transfers, or changes in job responsibilities. Conducting periodic access reviews ensures that employees have access only to the resources required for their current roles. This helps mitigate the risk of insider threats and unauthorized access to financial data.</p><h4>3. Privilege Escalation Controls</h4><p>Implement controls to manage privilege escalation, ensuring that users cannot arbitrarily elevate their permissions without proper authorization. You can use safeguards such as multi-factor authentication, approval workflows, and session monitoring to mitigate the risks associated with privilege escalation attempts.</p><p>Imagine an e-commerce platform where customer support representatives typically have limited access to customer accounts. However, in certain situations, they may need to escalate their privileges to resolve complex issues or process refunds. By implementing privilege escalation controls, such as requiring managerial approval or additional authentication steps, the platform can prevent unauthorized access to sensitive customer data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y6xLBq5FrCetKR4YBq-maQ.png" /></figure><h4>4. Monitoring and Logging</h4><p>Deploy robust monitoring and logging mechanisms to track user activities and detect suspicious behavior. By closely monitoring admin system activities, organizations can promptly identify anomalies, unauthorized access attempts, or policy violations, enabling timely intervention and response.</p><p>Here’s a use case: In a government agency’s IT infrastructure, monitoring and logging tools can help detect potential security incidents, such as unauthorized access attempts to classified documents or attempts to modify critical system configurations. By analyzing logs and monitoring user activities in real-time, the agency can take immediate action to prevent data breaches or unauthorized disclosures of sensitive information.</p><h4>5 . Training and Awareness</h4><p>Educate users about the importance of least privilege and security best practices through comprehensive training programs and awareness initiatives. Encourage employees to adopt a security-conscious mindset and emphasize their role in safeguarding sensitive information and admin systems.</p><p>In a corporate environment, conducting regular security awareness training sessions helps employees understand the significance of least privilege and the role they play in maintaining a secure IT environment. By educating staff about common cybersecurity threats, phishing attacks, and the importance of following access control policies, organizations can reduce the likelihood of security incidents caused by human error or negligence.</p><h4>Conclusion</h4><p>By incorporating these strategies into the design and implementation of your admin systems, organizations can establish a robust security posture grounded in the principle of least privilege. Limiting access to only the necessary resources and functionalities gives organizations some leeway in the mitigation of the risks of data breaches, insider threats, and unauthorized access, thereby bolstering the overall resilience of administrative infrastructures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=414808c1ed3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who is the inevitable? Mr. Incredible or Vector Tha Viper]]></title>
            <link>https://medium.com/@temitopeayodeji/who-is-the-inevitable-mr-incredible-or-vector-tha-viper-333ca3c79b96?source=rss-3eaea963efb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/333ca3c79b96</guid>
            <category><![CDATA[music]]></category>
            <category><![CDATA[mi-abaga]]></category>
            <dc:creator><![CDATA[Adebayo Temitope]]></dc:creator>
            <pubDate>Sat, 05 Oct 2019 15:16:26 GMT</pubDate>
            <atom:updated>2019-10-05T15:16:26.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*xLtWjPaSJvSUH8kFqqpmQw.jpeg" /><figcaption>M.I Abaga and Vector (Source: naijaloaded.com)</figcaption></figure><p>The occasional yet critical happenings in the Nigerian Hip-Hop industry may not be as acknowledged as those in the “other” segments of the music industry, however, the rumblings that have gone on for long enough cannot be neglected, even by the most aloof Nigerian rap audience.</p><p>Yes, this is about the brewing enmity between M.I Abaga and Vector Tha Viper. We are no strangers to rap beefs — on the international and local level, but the timing of these sordid lyrical explosions couldn’t have been better. Right now, there are series of diss tracks flying around from different corners of the industry. While some of these are totally unprovoked, some are quite founded and absolutely necessary.</p><p>Blaqbonez declared himself the best rapper in Africa and he put out a dope track to that effect. Of course, this didn’t sit well with a lot of rappers as evident in the replies from Payper Corleone, Vader, and Ten-Tik. Davolee recently aimed several top-tier rappers, including M.I, Blaqbonez, Dremo, Ycee, and even Falz; in my opinion, this was an unnecessary track. If we would number them, lyrical shots that have been fired since the beginning of the years may well be in thousands, yet, there has been no beef as juicy and rich as that between M.I and Vector.</p><p>A Timeline</p><p>Apparently, this hostility is not as a result of some recent occurrence; no, it is more profound than that. M.I and Vector came up in the same era but M.I has always taken the lead and somehow he managed to attain legendary status as the rapper who first enjoyed great commercial success in the Nigerian Industry.</p><p>Vector did enjoy reasonable commercial success and acclaim for his versatility and freestyle ability. Dropping his first album “State of Surprise” in 2010, it was here that Vector would first say something about M.I. He didn’t attack M.I in particular, in fact, he called him “<em>a cool kid</em>”; it was a nice thing to say, albeit a little condescending, but hey, it is rap music and that’s how things are said.</p><p>Vector’s freestyling abilities are unmatched in the Nigerian rap scene and there’s not much anyone can say to dispute it. He has two albums that did well commercially, his third album “Lafiaji” didn’t do so well. M.I has released four studio albums with at least three of them doing well commercially. The hip-hop scene did go through a form of metamorphosis at the coming of the “local” rappers and then English rap relegated.</p><p>From 2011 to 2018, there was no actual confrontation between the two. There were comparisons, however, as to who the better rapper was and it has always been a cause for argument between fans of these two rappers. They never featured each other, even though they appeared on songs together. Obviously, there was this cold war going on but no one could say what it was about and the best guess would have been that it was about the “Throne”.</p><p>In 2018, when M.I released “You Rappers Should Fix Up Your Lives” in an apparent bid to spur back to life the decadent rap culture, Vector wasn’t too pleased and he made it known in an interview with Cool F.M that M.I shouldn’t have recorded such a track.</p><p>Apart from being hip-hop heads, they are both brand ambassadors and through some twisted divine stratagem, they are ambassadors for competing brands. Vector is a brand ambassador for Hennessy and M.I is one for Martell. Both brands sponsor cyphers from time to time, with the Hennessy cyphers taking place more frequently and being more popular. You should keep it in mind that Vector as at this time had already voiced out his displeasure as regards the “You Rappers Should Fix Up Your Lives” track.</p><p>When the Martell cypher dropped in January 2019, it started a chain reaction of happenings in the industry, the effects of which we are still feeling today. On the cypher M.I took a shot at the Hennessy brand saying “<em>and that other cognac, this is how to spend your budget</em>”. One could say he also took a shot at Vector by rapping “<em>There’s no rapper I can beef with, man, I son em all</em>”; this is highly debatable though.</p><p>On the second part of the Martell Cypher that dropped in September, 2019, another shot was taken at the Hennessy brand by M.I, saying the Hennessy 2019 cyphers were “<em>like an economic forum or like an oil drilling my nigga, that shit was boring</em>”. He might have been referring to Vector when he said “Anybody close to dude better stop him or tell him to get a coffin”.</p><p>Vector had to reply in some way, his personality was being attacked and so was his brand. Together with Payper Corleone and Vader, Vector released “The Purge” directly aimed at M.I and his crew. To be fair, the track was cool and had some fire lines from Vector himself. The line “<em>This is the tale of a fool who’s thinking how to make a name so he picks 2 letters</em>” was obviously for M.I and yes, the tracked sparked excitement among Nigerian rap lovers.</p><p>As if this was not enough, Vector went ahead to releases a solo diss track “Tetracycling” directed at M.I. Technically, it was not so dope and many fans were quite disappointed. M.I himself expressed disappointment upon listening to the track.</p><p>On the 5th of October, 2019. M.I finally released his reply to Vector, titling it “The Viper”. In all truth, it is exactly what a diss track should sound like even though he claimed on the track that “<em>This isn’t a diss, this is truth listen</em>”. Instead of going all out to attack and discredit Vector, M.I assumed the position of a father talking to a son and he calmly advised him, pointing out his wrongdoings and the futility of his entire career.</p><p>The Throne</p><p>Legendary status is not achieved easily and it is not so easily taken away from one. M.I Abaga has undeniably attained this status when we talk about Rap in Nigeria and even in Africa as a whole. Fans will forever battle over who the best is, who is richer, and who is more successful. One fact is that everyone is entitled to their opinion but when we talk about who sits on the throne, M.I Abaga is the one and only inevitable King; not taking away anything from Vector.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=333ca3c79b96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>