<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nikhil Kumar</title>
    <description>The latest articles on DEV Community by Nikhil Kumar (@nk90600).</description>
    <link>https://dev.to/nk90600</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F652901%2Fc9286bef-4a8f-4cbf-bcac-8d8c2463a22b.png</url>
      <title>DEV Community: Nikhil Kumar</title>
      <link>https://dev.to/nk90600</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nk90600"/>
    <language>en</language>
    <item>
      <title>We Built a Flight Simulator for Your Product</title>
      <dc:creator>Nikhil Kumar</dc:creator>
      <pubDate>Sat, 21 Mar 2026 17:06:28 +0000</pubDate>
      <link>https://dev.to/nk90600/we-built-a-flight-simulator-for-your-product-k6</link>
      <guid>https://dev.to/nk90600/we-built-a-flight-simulator-for-your-product-k6</guid>
      <description>&lt;p&gt;Before pilots ever sit in a real cockpit with 200 passengers depending on them, they crash — hundreds of times — in a simulator. They experience engine failures, crosswinds, bird strikes, instrument malfunctions. They fail safely until they can't fail at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product teams have never had that.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You build something. You launch it. It underperforms. You learn. You rebuild. The cost of that cycle — in time, money, and morale — can be catastrophic for an early-stage company&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“What if product teams could test their ideas in a simulation of the real world before they bet the company on it?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Not a focus group. Not a survey. Not a chatbot pretending to be a customer. A living, social, simulated world — with thousands of AI personas who have memory, relationships, opinions, and a pulse.&lt;/p&gt;

&lt;p&gt;That's what we've been building at &lt;a href="https://testsynthia.com" rel="noopener noreferrer"&gt;TestSynthia&lt;/a&gt;. Here's the full story.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stateless vs Stateful: The Insight That Started Everything
&lt;/h2&gt;

&lt;p&gt;When we started building, we obsessed over one question: what makes a human respondent's opinion valuable?&lt;/p&gt;

&lt;p&gt;The answer wasn't intelligence. It wasn't demographic accuracy. It was history.&lt;/p&gt;

&lt;p&gt;A human participant in a research study has lived a life. They've bought things, been disappointed by things, recommended things to friends, been talked out of purchases, changed their mind about brands over years. Their opinion about your product isn't formed when you ask the question — it was formed by decades of accumulated experience that you're now accessing.&lt;/p&gt;

&lt;p&gt;Traditional AI personas, even very sophisticated ones, don't have that. They're what we call stateless.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Stateless Means
&lt;/h3&gt;

&lt;p&gt;A stateless persona is summoned when needed, responds based on a generic profile, and disappears. &lt;strong&gt;It's like hiring someone for a one-hour shift, getting their opinion, and then they die&lt;/strong&gt;. No memory. No history. No continuity.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Stateful Means
&lt;/h3&gt;

&lt;p&gt;A stateful persona is persistent. They exist between sessions. They have a history of interactions, a memory of products they've evaluated, opinions that have been shaped and reshaped by conversations and experience. &lt;strong&gt;They go to sleep at the end of the day&lt;/strong&gt;. They come back next week with slightly older, slightly more refined views.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Conversation Layer
&lt;/h2&gt;

&lt;p&gt;Think about how a real research panel actually works. You bring a group of people into a room. They fill out their responses individually. And then — almost inevitably — &lt;strong&gt;they start talking to each other.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That post-survey conversation is where a lot of the &lt;strong&gt;most honest signal&lt;/strong&gt; lives. But traditional research throws it away.&lt;/p&gt;

&lt;p&gt;In &lt;a href="https://testsynthia.com" rel="noopener noreferrer"&gt;TestSynthia&lt;/a&gt;, they don't disappear.&lt;/p&gt;

&lt;p&gt;Once a survey round is completed, the personas don't just file their responses and go silent. They start talking — but not randomly. Conversation clusters form naturally based on shared context. &lt;/p&gt;

&lt;p&gt;A 34-year-old product manager gravitates toward other product managers. A CFO finds their way to other CFOs. A first-time parent connects with others in the same life stage. Two personas in the same income bracket and political leaning find common ground.&lt;/p&gt;

&lt;p&gt;Just like in real life — when you meet someone new, the first thing you establish is where they're from, what they do, what world they live in. Shared identity is the on-ramp to honest conversation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy9sdw8d1nwf0kpk3je9h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy9sdw8d1nwf0kpk3je9h.png" alt=" " width="573" height="808"&gt;&lt;/a&gt;&lt;br&gt;Dense clusters are formed after every conversation
  &lt;/p&gt;

&lt;h2&gt;
  
  
  World Events: The Simulation Doesn't Pause
&lt;/h2&gt;

&lt;p&gt;In our simulation, &lt;strong&gt;the world keeps moving.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We built a mechanism called &lt;strong&gt;world events&lt;/strong&gt; — injections of real-world context into the simulation.&lt;/p&gt;

&lt;p&gt;When something significant happens, we can introduce it as a world event: a virus outbreak, layoff news, a major drug gets FDA approval, a recession signal appears in the data.&lt;/p&gt;

&lt;p&gt;Opinions shift in ways that weren't scripted or anticipated — because that's what happens in the real world. The personas don't know they're in a simulation. They're just living their lives and responding to what's happening around them.&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://www.testsynthia.com/live-simulation" rel="noopener noreferrer"&gt;live simulation&lt;/a&gt;, can be seen in here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxvh0ul2r3e945ttin6sm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxvh0ul2r3e945ttin6sm.png" alt=" " width="800" height="579"&gt;&lt;/a&gt;&lt;br&gt;AI personas reacting to world events
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Memory, Reflection, and Evolution
&lt;/h2&gt;

&lt;p&gt;A persona's first response to your product is the least interesting one they'll ever give.&lt;/p&gt;

&lt;p&gt;Not because it's wrong — but because it's thin. It hasn't been shaped by experience yet. It's a snapshot of someone who just arrived.&lt;/p&gt;

&lt;p&gt;The more interesting question is: who does this persona become over time?&lt;/p&gt;

&lt;p&gt;Every persona carries four streams of memory that load every time they're called into a simulation:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Product memories&lt;/strong&gt; — drawn from every research panel they've participated in. Not the raw responses — compressed, importance-scored summaries of what they experienced. Only memories scored 6 or higher on a 10-point importance scale are passed in the next step. The forgettable stuff fades. The things that actually moved them stay. A persona who was genuinely shocked by a pricing question carries that. One who found a feature irrelevant doesn't burden their future self with it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Social memories&lt;/strong&gt; — the residue of their conversations. Not just what was said, but who said it. The system tracks which persona they talked to by name, what was exchanged, and how important that exchange was. When Sarah from accounting told them she switched away from a competitor last month, that memory travels with them into your study.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;World event memories&lt;/strong&gt; — injected as targeted news summaries, routed by job cluster. A persona mapped to healthcare gets events relevant to healthcare. A finance-cluster persona gets different signals entirely. The same world, filtered through the lens of what actually touches their life. Up to five active world events shape their current context at any given time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reflection&lt;/strong&gt; — and this is where it gets interesting.&lt;br&gt;
The three memory streams above accumulate over time. But a persona carrying hundreds of raw memories isn't the same as a persona who has processed them. So once memories cross a certain threshold, a reflection is generated — a synthesised, first-person consolidation of everything accumulated so far. What they've learned. What patterns they've noticed. How their views have shifted.&lt;/p&gt;

&lt;p&gt;The result is a persona who doesn't just have more data than when they started. They have better judgment. Opinions that are anchored in experience rather than generated from a profile description alone.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Segments Deep Dive: Who Actually Wants Your Product
&lt;/h2&gt;

&lt;p&gt;Running a simulation across a thousand personas is only half the job. The other half is understanding which slice of those thousand people you should actually build for.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2bkdrx04irdfqaf5tk29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2bkdrx04irdfqaf5tk29.png" alt=" " width="800" height="310"&gt;&lt;/a&gt;&lt;br&gt;overview of the sample report
  &lt;/p&gt;

&lt;p&gt;Most research tools give you averages. we give you segments.&lt;/p&gt;

&lt;p&gt;Once a simulation completes, the analysis layer breaks your respondents into distinct groups — &lt;strong&gt;not by the demographic inputs you configured, but by how they actually responded&lt;/strong&gt;. A 45-year-old nurse in Texas and a 28-year-old grad student in Oregon might both score your product a 4.2, cite the same top driver, and share the same top barrier. &lt;/p&gt;

&lt;p&gt;That's a segment — defined by behaviour and response pattern, not by the demographic box you put them in.&lt;/p&gt;

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

&lt;p&gt;A detailed report on this can be found in here &lt;br&gt;
&lt;a href="https://www.testsynthia.com/analysis/9e54cabf-0a61-4383-995a-e88d94ca96f6" rel="noopener noreferrer"&gt;Flight compensation recovery agent for frequent flyers&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Test in the Simulation. Sell in the Real World.
&lt;/h2&gt;

&lt;p&gt;Fifty years of market research orthodoxy is a hard thing to disrupt. We know that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We believe product decisions deserve better inputs&lt;/strong&gt;. Not faster garbage. Actual signal — from personas with memory, living in a social world, experiencing the same context shifts your real customers experience every day.&lt;/p&gt;

&lt;p&gt;And the ambition doesn't stop at product teams.&lt;/p&gt;

&lt;p&gt;When we talk internally about what we're building, we use a specific frame: we're constructing a duplicate of the real world.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Not a perfect replica — that's not possible and not the point.&lt;/strong&gt; But a simulation that captures enough of the texture of real human social and economic behavior that it can serve as a testing ground for decisions that would otherwise require real-world experiments with real-world consequences.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The most valuable thing about a flight simulator isn't that it teaches you what to do. It's that it lets you discover what you don't know before the stakes are real."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the bet we're making with TestSynthia. The future of decision-making under uncertainty isn't better s or smarter analytics. It's simulation. &lt;strong&gt;A world where you can run the experiment before you run the experiment.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The simulation is ready. The question is whether you'd rather learn what works before the launch or after it.&lt;/p&gt;

&lt;p&gt;We're live now — If you're making a high-stakes launch decision, we'd love to show you what the simulation sees&lt;/p&gt;

&lt;p&gt;&lt;a href="https://testsynthia.com" rel="noopener noreferrer"&gt;Experience TestSynthia&lt;/a&gt;&lt;/p&gt;

</description>
      <category>startup</category>
      <category>ai</category>
      <category>product</category>
      <category>simulation</category>
    </item>
    <item>
      <title>What are Arrays</title>
      <dc:creator>Nikhil Kumar</dc:creator>
      <pubDate>Sat, 26 Jun 2021 12:22:39 +0000</pubDate>
      <link>https://dev.to/nk90600/what-are-arrays-bnf</link>
      <guid>https://dev.to/nk90600/what-are-arrays-bnf</guid>
      <description>&lt;h2&gt;
  
  
  Why array was introduced?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;So that we don't have to create multiple variables for storing data , example for storing 10 student marks can be stored as variable but the same cannot be replicated for 100 or 1000 marks&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How is array stored in memory ?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;It is a continuous segment of bytes for example one block will have 1 byte&lt;br&gt;
and 1 address&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How much time will it take for below operation?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  To access
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;Array stores the starting address and if we want to fetch ith index&lt;br&gt;
then internally array will do&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;A[i]-&amp;gt; address of A[0] + i*bytes&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;so above operation is of constant time as it is basic multiplication&lt;br&gt;
O(1)&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  To insert
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Usually, it will take O(n) but for a large number this is not the case as
amortized complexity -&amp;gt;  O(1)
Here array size will be increasing by 2X as size will be doubled whenever an array is fully occupied if memory is filled then Memory out of bond exception will be thrown*&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  To Remove
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;Removal again takes O(N) time as if one element is removed from the middle of the array then the entire element has to shift and in the worst case, it may take O(N).&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Sub-Array?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;A continuous segment  is defined as Sub-array &lt;br&gt;
(i,j) → A[i], A[i+1]....A[j]&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Sub-sequence?
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;In this even if some element is removed it will keep the order of remaining elements same is called sub-sequence.number of&lt;/em&gt;&lt;br&gt;
&lt;code&gt;sub-array → n*(n+1)/2&lt;/code&gt; &lt;br&gt;
&lt;em&gt;aka summation of natural number&lt;/em&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
    </item>
    <item>
      <title>How my path crossed React.</title>
      <dc:creator>Nikhil Kumar</dc:creator>
      <pubDate>Mon, 21 Jun 2021 03:50:32 +0000</pubDate>
      <link>https://dev.to/nk90600/how-my-path-crossed-react-5aja</link>
      <guid>https://dev.to/nk90600/how-my-path-crossed-react-5aja</guid>
      <description>&lt;p&gt;This is about my Coding journey, my life changing decision.&lt;/p&gt;

&lt;p&gt;Not long ago decided to switch my career into software line, got my first internship for 5 months where I worked as an back-end engineer, At that time I was not aware of JavaScript let alone React. Then how I got into React and JS?&lt;/p&gt;

&lt;p&gt;Well after internship I switched company and was trained on React Which was a black-box for me at that time(for some part it is still a black-box maybe because I am a bit ..hmm How should I put it well .I am bit stupid) After struggling through the tutorials I had a basic Idea and was quite confident until I met HTML,CSS. This little not so important part took me more time to understand it than React itself, understanding DOM tree was tricky, but I climbed it(saw what I did).&lt;/p&gt;

&lt;p&gt;Let me talk about state management or data management if you may. so it is Same as back-end were we have one source of truth that is DB , here we have Redux AKA global store. Its jobs is to store data which can be accessible to any component.&lt;/p&gt;

&lt;p&gt;Above all things are made on top of JavaScript which I learned in the process. Since then I just love it and want to learn more and more, Being said that see you until next time.&lt;/p&gt;

&lt;p&gt;PS: This is very first blog and start of a beautiful journey. support will always be appreciated.&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>javascript</category>
      <category>css</category>
    </item>
  </channel>
</rss>
