<?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 Kishor Jena on Medium]]></title>
        <description><![CDATA[Stories by Kishor Jena on Medium]]></description>
        <link>https://medium.com/@kishorjena?source=rss-dc42b31b8721------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Kishor Jena on Medium</title>
            <link>https://medium.com/@kishorjena?source=rss-dc42b31b8721------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:18:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kishorjena/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[Why Bun is faster than NodeJS?]]></title>
            <link>https://medium.com/@kishorjena/why-bun-is-faster-then-nodejs-41c3658fe905?source=rss-dc42b31b8721------2</link>
            <guid isPermaLink="false">https://medium.com/p/41c3658fe905</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[buns]]></category>
            <dc:creator><![CDATA[Kishor Jena]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 06:26:13 GMT</pubDate>
            <atom:updated>2025-12-11T06:26:42.976Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOsjm4hTMMB4XzhZbjxtXA.png" /><figcaption>Node vs Bun speed</figcaption></figure><p>The recent surge in popularity of alternative JavaScript runtimes like Bun and Deno has sparked intense debate over performance, often challenging Node.js’s decade-long dominance. While Bun is frequently cited as “3x faster” than Node.js, a deeper dive into its architecture reveals a more nuanced reality where performance gains are heavily dependent on the type of task being executed.</p><p>Here is a fact-based breakdown of why Bun can be significantly faster in certain scenarios, and why this advantage often diminishes or reverses in large, real-world applications.</p><h3>1. The Low-Level Code Advantage: Zig vs. JavaScript</h3><p>The primary factor driving Bun’s initial speed advantage is the <strong>composition of its core codebase</strong>, which is overwhelmingly written in low-level systems languages, contrasting sharply with Node.js’s reliance on JavaScript for its core modules.</p><ul><li><strong>Bun’s Composition:</strong> Bun is built largely with <strong>Zig</strong> (approximately 61%) and C++ (23%), with only about 11% of the core written in JavaScript/TypeScript. Zig is a modern, high-performance systems language that provides direct memory control and highly optimized compilation, similar to C but with modern safety features.</li><li><strong>Node.js’s Composition:</strong> Node.js’s core is predominantly JavaScript (around 62%), with C++ (22%) and C (2.7%) handling most of the I/O and low-level system calls.</li><li><strong>The Result:</strong> When core runtime tasks, especially <strong>system-level async operations</strong> (like file I/O or network handling), are executed by highly optimized Zig code in Bun, they are inherently faster than equivalent code executed in Node.js, even if Node’s native components are in C++. This is due to Bun’s modern, streamlined architecture versus Node’s older, more complex, and larger C++ codebase .</li></ul><p>Similarly, Deno, which is approximately 49% Rust and 51% JavaScript/TypeScript, achieves performance gains over Node.js by moving a substantial part of its core logic into a low-level language.</p><h3>2. The JavaScript Engine Dilemma: JavaScriptCore vs. V8</h3><p>A critical counterpoint to Bun’s low-level language gains is its choice of JavaScript engine:</p><ul><li><strong>Bun’s Engine:</strong> Bun uses <strong>JavaScriptCore (JSC)</strong>, the engine powering Safari (WebKit).</li><li><strong>Node.js/Deno’s Engine:</strong> Both Node.js and Deno use <strong>V8</strong>, the engine developed by Google for Chrome.</li></ul><p>While JSC excels at specific tasks, particularly <strong>JSON parsing/stringifying</strong> (where it can be up to 1.5x faster than V8), V8 generally maintains a superior performance profile for general JavaScript execution.</p><ul><li><strong>V8’s Superiority in JS Execution:</strong> V8 is renowned for its highly sophisticated Just-In-Time (JIT) compilation, garbage collection, and aggressive optimization pipelines (like TurboFan). The general consensus is that for complex, CPU-bound JavaScript code (including complex business logic and regular expressions), <strong>Node.js/V8 will often outperform Bun/JSC</strong>.</li><li><strong>The Trade-off:</strong> The high-speed advantages Bun gains from its Zig core for I/O and low-level tasks are significantly diminished, or even entirely lost, as the project scales and becomes more <strong>JavaScript-heavy</strong>, due to the comparative slowness of JSC in handling intensive JS computations.</li></ul><h3>3. The HTTP Benchmarking “Cheat”: uWebSockets</h3><p>Bun’s initial claims of being “3x faster” often stem from its HTTP server benchmarks. This speed is attributed to its internal use of <strong>uWebSockets</strong>, a highly optimized, C++-based library, which is integrated directly into the runtime.</p><ul><li><strong>The Core Issue:</strong> Bun uses this ultra-fast library out-of-the-box, whereas Node.js, by default, uses its native (and slower) http module.</li><li><strong>A Level Playing Field:</strong> When Node.js is configured to use the same <strong>uWebSockets.js</strong> library, it often performs <em>as well as, or even marginally better</em> than Bun’s built-in server. This suggests the massive performance difference is largely due to the choice of the built-in HTTP server implementation, not a fundamental flaw in the Node.js runtime itself.</li></ul><h3>Conclusion: When Does Bun Win?</h3><p>The performance profile of Bun makes it a “speed demon” only in very specific use cases:</p><ol><li><strong>System/Async Operations:</strong> Bun is genuinely faster for I/O-bound tasks like <strong>file system operations</strong> and lightweight HTTP/network requests due to the optimizations in its Zig-based core.</li><li><strong>DevOps Tasks:</strong> Bun excels as an all-in-one package manager, bundler, and test runner, where its fast startup time and Zig-optimized code (like package installation) provide significant productivity gains.</li><li><strong>Micro-Benchmarks:</strong> Bun looks great in “Hello World” or simple, I/O-focused benchmarks.</li></ol><p>However, for <strong>medium to large-scale, JS-heavy projects</strong> involving significant business logic, database queries, and complex JavaScript operations, the superior optimization of the V8 engine in Node.js and Deno means the speed difference is likely to <strong>nullify or even favor Node.js/Deno</strong>. Deno, in particular, is positioned as a strong middle ground, combining the speed benefits of a low-level language (Rust) for its core with the highly optimized V8 engine for JavaScript execution.</p><p>This video highlights some of the performance claims and practical differences between Node.js and Bun. <a href="https://www.youtube.com/shorts/tdnXbCjYaRg">Node vs Bun: WebSockets #programming #code #javascript</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtdnXbCjYaRg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtdnXbCjYaRg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtdnXbCjYaRg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc72a93f85e8b93216ecbf69782ba580/href">https://medium.com/media/fc72a93f85e8b93216ecbf69782ba580/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41c3658fe905" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Opera like speed dials in Chrome with AI and extra perks]]></title>
            <link>https://medium.com/@kishorjena/opera-like-speed-dials-in-chrome-with-ai-and-extra-perks-ae3c385db3d8?source=rss-dc42b31b8721------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae3c385db3d8</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Kishor Jena]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 11:54:54 GMT</pubDate>
            <atom:updated>2025-10-08T11:54:54.228Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever missed Opera’s iconic Speed Dial or still swear by it but wish you could enjoy Chrome’s ecosystem , you’re not alone. Those visual tiles that launch your favorite sites with one click are fast, intuitive, and addictive. With Tabsome, you can finally bring that Opera-style speed dial experience to Chrome, turning your New Tab page into a sleek, customizable dashboard that makes the web feel instant again.</p><h4>What is a speed dial (and why it’s faster than bookmarks)?</h4><p>A speed dial is a visual grid of your most‑used websites , each site is a “tile” or “card” with a cover images (or just logo or initials). Instead of digging through folders or typing URLs, you click once and go. It’s:</p><ul><li><strong>Faster</strong>: One-click access beats typing and searching.</li><li><strong>Visual</strong>: Recognize sites at a glance.</li><li><strong>Organized</strong>: Group tiles by project, mood, or workflow.</li></ul><h4>Meet Tabsome: Opera-like speed dials for Chrome and Chromium Browsers like Brave, Edge etc.</h4><p>Tabsome replaces your default New Tab with a clean, blazing‑fast speed dial page that feels familiar to Opera users but tailored for Chrome power users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y0CID9NeK9FHD_fGXSO9IQ.png" /><figcaption>Tabsome Home Tab UI Screenshot</figcaption></figure><h4>Hightlights:</h4><ul><li><strong>Cusomizable Speed dials</strong>: Fully Customizable speed dials with folder grouping, sorting with drag n drop and more.</li><li><strong>Omni Search</strong> : Use any search engine with shortcuts</li><li><strong>AI</strong> : Command the ai to customize extension or simply ask anything</li><li><strong>Spotlight Widget </strong>: Create widgets using AI prompts</li><li>Widgets: Clock and Weather widgets.</li><li>Import/Export</li></ul><p><strong>Beta features :</strong></p><ul><li><strong>Keyboard shortcuts </strong>: Open dials with keyboard keys</li><li><strong>Workspaces </strong>: Separate personal, work, and side‑project setups.</li><li><strong>Sync</strong>: Keep your dials collection and setting with your profile</li><li>Notification dot over tiles</li><li>many more…</li></ul><blockquote><em>Comment down if you want to know how to access these beta features.</em></blockquote><p>Install:</p><p>Chrome WebStore Link: <a href="https://chromewebstore.google.com/detail/tabsome-new-tab-with-ai/cibcnchlbnblalcpgjaccapodkmjookf">https://chromewebstore.google.com/detail/tabsome-new-tab-with-ai/cibcnchlbnblalcpgjaccapodkmjookf</a></p><h4>Some screenshots of Tabsome Extension</h4><p>Folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wU7kj9ycqQxwA2dqtdJ2KQ.png" /><figcaption>Screenshot of Folder View UI of Tabsome</figcaption></figure><p>AI in searchbar:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*TaFO-szfDs1mNMVtKwMCbw.png" /></figure><p>Spotlight Widget (AI powered widget making)</p><p>Create widgets by instructing AI. Although it is not stable in v2 yet. Feedbacks required to improve this feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qP1gBC1jIPyez78vJW0N8w.png" /><figcaption>Screenshot of Spotlight Widget of Tabsome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MubUnRIEiAe12QN3dvoKg.png" /><figcaption>Screenshot of Spotlight Widget of Tabsome</figcaption></figure><p>Edit Speed Dials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Xr7haNTC69Ue4FvfZExcA.png" /></figure><p>Settings (v2)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63zEsn5I5n6mTT8iCObRDQ.png" /><figcaption>Screenshot of Tabsome V2 Options Page.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qx8FI0tAvWvLyJyhKecquQ.png" /><figcaption>Screenshot of Tabsome V2 Advance Options Page.</figcaption></figure><h4>Why Tabsome over other “new tab” extensions?</h4><ul><li>Speed and simplicity: No bloated widgets — just a crisp, fast grid.</li><li>Zero learning curve: Add, drag, click. Done.</li><li>Designed for focus: Minimal distractions, maximum throughput.</li><li>Made for power users: Shortcuts, AI actions and more.</li></ul><p>Extension Link: <a href="https://chromewebstore.google.com/detail/tabsome-new-tab-with-ai/cibcnchlbnblalcpgjaccapodkmjookf">https://chromewebstore.google.com/detail/tabsome-new-tab-with-ai/cibcnchlbnblalcpgjaccapodkmjookf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae3c385db3d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Implementing a Likes System using Cloud Firestore of Firebase]]></title>
            <link>https://medium.com/@kishorjena/implementing-a-likes-system-in-firestore-850029da2958?source=rss-dc42b31b8721------2</link>
            <guid isPermaLink="false">https://medium.com/p/850029da2958</guid>
            <category><![CDATA[node]]></category>
            <category><![CDATA[firestore]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Kishor Jena]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 08:45:12 GMT</pubDate>
            <atom:updated>2026-03-28T19:55:39.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kt40mFszCx05IJhS" /><figcaption>Photo by <a href="https://unsplash.com/@sana1_ullah?utm_source=medium&amp;utm_medium=referral">Sana Ullah</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Learning about the lifecycle of a like in Firebase Firestore can be quite challenging, especially when it comes to the optimization of the same. This guide describes how to effectively collect and get likes, specifically when getting all posts or post that a particular user has liked.</p><h3>❌ This Guide Does NOT Cover</h3><ul><li>A separate `likes` collection not belonging to `posts`.</li><li>likes stored under the `users/{userId}/likes` subcollection.</li><li>Other NoSQL databases (this is Firestore). The structure<br>Each post has a `likes` sub-collection and the document ID of each doc is same as `userId`. The document contains metadata concerning the like, e.g. `timestamp`</li></ul><h3>✅ Sample Firestore Structure</h3><pre>/posts/{postId}/likes/{userId} → { likedAt: Timestamp }</pre><p>This means that</p><ul><li>It’s easy to use `doc.exists()` for checking whether a user has liked a post.</li><li>To find the total number of likes, there are simple approaches including `snapshot.data().count` method.</li></ul><h3>Store Likes Efficiently</h3><p>On the like/unlike of a post, update the Firestore document with the following lines of code.</p><pre>const toggleLike = async (userId, postId) =&gt; {<br>    const likeRef =  db.collection(&#39;posts&#39;).doc(postId).collection(&#39;likes&#39;).doc(userId);<br>    const likeDoc =  await likeRef.get();<br><br>    if (likeDoc.exists) {<br>        await likeRef.delete(); //  Unlike<br>    } else {<br>    await likeRef.set({ userId, likedAt: FieldValue.serverTimestamp()}); //  Like<br>    }<br>};</pre><h3>Fetching Liked Packs Efficiently</h3><h4>Solution 1: Using Collection Group Queries (Ideal for Small to Medium Sized Applications)</h4><p>If each `likes` sub-collection has a `userId` field then you can get all the liked posts by the user:</p><pre>const userId = &quot;user-id-from-session&quot;;<br>const likesSnapshots =  await db.collectionGroup(&#39;likes&#39;)<br>   .where(&#39;userId&#39;, &#39;==&#39;, userId)<br>    .get();</pre><p>This will fetch all the `likes` documents from all the posts that the user has liked.</p><h4>Solution 2: Matching docid of like doc with userid (Less Efficient but Works)</h4><p>If you don’t want to add the `userId` in the docs of `likes` collection, use document paths instead. Here we match the doc id in likes collection with user id. We have set docid using userid in like toggle :</p><pre>const postsSnapshot = await db.collection(&#39;posts&#39;).get();<br>const  likesSnapshots = await Promise.all(<br>    postsSnapshot.docs.map(doc =&gt;<br>        db.collectionGroup(&#39;likes&#39;)<br>       .where(FieldPath.documentId(), &#39;==&#39;, `posts/${doc.id}/likes/${userId}`)<br>       .get()<br>  )<br>);</pre><h3>Getting the Posts That a User Has Liked</h3><h4>✅ Approach 1: Fetch by Document IDs</h4><p>Get all the document IDs of the liked posts and then get the posts.</p><pre>const postIds = [.new Set(likesSnapshots.docs.map(doc =&gt; <br> doc.ref.parent.parent.id<br>))];<br>const postsSnapshot = await db.collection(&#39;posts&#39;)<br> .where(FieldPath.documentId(), &#39;in&#39;, postIds)<br> .get();</pre><h4>✅ Approach 2: Get Post Details Together With Like Details</h4><p>This fetches both the metadata of the like and the details of the post.</p><p>We have snapshots of likes docs from all the docs of posts collection. Now we use snapshot to get all the posts. I have logged the posts. You can use it to return the data to requesting client side by structuring as per your requirements of application.</p><pre>const  likedPosts = await Promise.all(<br>    likesSnapshots.flatMap(snapshot =&gt;<br>        snapshot.docs.map(async  likeDoc =&gt; ({<br>            likeData: likeDoc.data(),<br>            post: (await  likeDoc.ref.parent.parent.get()).data(),<br>        }))<br>    ))<br>```<br>);<br>console.log(`Posts liked by  ${userId}:`, likedPosts);</pre><p>Ref:</p><ul><li><a href="https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query">Perform simple and compound queries in Cloud Firestore | Firebase</a></li><li><a href="https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query">Perform simple and compound queries in Cloud Firestore | Firebase</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=850029da2958" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving Server-to-Client Data Flow in Next.js: Handling Index and Non-Index Pages]]></title>
            <link>https://medium.com/@kishorjena/solving-server-to-client-data-flow-in-next-js-handling-index-and-non-index-pages-62d9194537cc?source=rss-dc42b31b8721------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d9194537cc</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nextjs-13]]></category>
            <category><![CDATA[nextjs-app-router]]></category>
            <category><![CDATA[nextjs-15]]></category>
            <category><![CDATA[nextjs14]]></category>
            <dc:creator><![CDATA[Kishor Jena]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 16:13:19 GMT</pubDate>
            <atom:updated>2025-01-07T18:50:02.721Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Route" src="https://cdn-images-1.medium.com/max/1024/1*HPU39AvJyw4PmhBuUPUZtQ.jpeg" /></figure><p>Whenworking with Next.js App Directory, developers often encounter a common challenge: <strong>how to fetch data server-side and pass it to client components</strong>. This problem is especially tricky due to the separation of concerns between server and client components, along with restrictions like async/await not being supported directly in client components.</p><p>In this article, I’ll discuss solutions for two common scenarios:</p><ol><li>Passing server-fetched data to client components.</li><li>Handling this seamlessly for the index page (app/page.jsx) in the App Directory structure.</li></ol><p>Server components in Next.js allow for optimized rendering, but they can’t use hooks like useState or useEffect. Meanwhile, client components enable interactivity but can&#39;t directly call asynchronous server-side functions. This separation requires creative solutions to bridge the gap, especially when trying to avoid <strong>skeleton states</strong> or <strong>prop drilling</strong>.</p><h3>Scenario 1: Server Data for Client Components in Non-Index Pages</h3><p>For non-root pages (e.g., app/settings/page.jsx), the solution is straightforward:</p><ol><li><strong>Re-export the client component</strong> with a &#39;use client&#39; directive, even if it’s already a client component.</li><li>Use the re-exported client component within a server component.</li></ol><h4>Example: Passing Data to a Client Component</h4><p><strong>Directory structure</strong>:</p><pre>app<br>├── settings<br>│   ├── page.jsx           # Client component <br>│   ├── layout.jsx         # Server component<br>│   ├── ClientSection.jsx         # Client Servercomponent<br>│   └── ReExportClientSection.jsx  # Client component</pre><p><strong>Page Component (Client Component)</strong>:</p><pre>// settings/page.jsx<br>&#39;use client&#39;;<br>export default async function Page() {<br>    return (<br>      &lt;&gt;<br>        &lt;p&gt; Page component &lt;/p&gt;<br>      &lt;/&gt;<br>     )<br>}</pre><p><strong>Client Section (Client Component)</strong>:</p><pre>// settings/ClientSection.jsx<br>&#39;use client&#39;;<br>export default function ClientSection({ initialData }) {<br>    return &lt;div&gt;Data: {initialData}&lt;/div&gt;;<br>}</pre><p>Re-export the client component which needs to be rendered inside server component.</p><pre>// settings/ReExportClientSection.jsx<br>&#39;use client&#39;;<br>import ReExportClientSection from &#39;./ReExportClientSection&#39;;<br>export default ReExportClientSection;</pre><p>And finally render the client compnent in server to pass data</p><pre>// settings/layout.jsx<br>&#39;use server&#39;<br>import ReExportedComponent from &#39;./ReExportComponent&#39;;<br>export default async function Layout({children}){<br>  <br>  const initialData = await fetch(url);<br>  return (<br>    &lt;&gt;<br>      {children}<br>      &lt;ReExportedComponent initialData={data}/&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><p>This approach ensures the data is fetched on the server and passed directly to the client component, avoiding client-side fetches or skeleton loaders. This will avoid UI flicker or temporary blank ui or skeleton on reload even fetched data is same as previously fetched data.</p><h3>Scenario 2: Handling Data Flow for the Index Page (app/page.jsx)</h3><p>The index or root page introduces additional complexity because it’s directly tied to the root layout (app/layout.jsx). Usually it renders a children prop which comes from all the routes and apart from that we use it to render some specific section like a footer, header or app bar section to keep it visible in all paths. Here we cannot render specific component of index page in root layout. One tweak would be conditional rendering of specific component of index page by reading the url. But here we talk about more disciplined and modular approaches.</p><h4>Option 1: Re-export and Render</h4><p>This approach involves making app/page.jsx a server component and using the re-exported client component as shown earlier.</p><p>Example:</p><p>here we made app/page.jsx file a server component by Make it async and ‘use server’ directive.</p><pre>// app/page.jsx<br>&#39;use serber&#39;<br>import ReExportedComponent from &#39;./ReExportComponent&#39;;<br>export default async function Page(){<br>  <br>  const initialData = await fetch(url);<br>  return (<br>    &lt;&gt;<br>      &lt;ReExportedComponent initialDat={initialData}/&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><h4>Option 2: Use Parallel Routing</h4><p>Parallel routing offers flexibility and prevents cluttering the root layout with conditional rendering logic.</p><p><strong>Directory structure with parallel routing</strong>:</p><pre>app<br>├── layout.jsx          # Root layout<br>└── (home)<br>    ├── layout.jsx     # Layout for &#39;/&#39;<br>    ├── page.jsx       # Top section (server component)<br>    └── @bottomSection<br>        ├── layout.jsx # Bottom section layout<br>        └── page.jsx   # Bottom section (client component)</pre><p><strong>Home Layout</strong>:</p><p>Don’t worry user won’t need to hit /home path to render it. We have used (folder) so this will be ignored and layout and page file inside it will rendered for ‘/’ path. So it is replcaement of app/page with its dedicated layout file which will be used by (home)/page.jsx file only.</p><p>Now you have two way<br>Option A: If you want to stop here and don’t want go more complex then simply use layout.jsx to render page.jsx along with explicite component like follow:</p><pre>// (home)/layout.jsx<br>&#39;use server&#39;;<br>import ReExportedComponent from ...;<br>export default function Layout({ children }) {<br>    const initialData = await fetch(...);<br>    return (<br>        &lt;div&gt;<br>            // everything from page.jsx<br>            &lt;div&gt;{children}&lt;/div&gt; <br>            // render a specific client component explicitly<br>            // to pass down server fetched data<br>            &lt;ReExportedComponent initialData/&gt; <br>        &lt;/div&gt;<br>    );<br>}</pre><p>Option B : But if you want more flexibilities then use slot for parallel routing</p><p>For that our route group (home) should structured like this</p><pre>app<br>├── layout.jsx          # Root layout<br>└── (home)<br>    ├── layout.jsx     # Layout for &#39;/&#39;<br>    ├── page.jsx       # Top section (server component)<br>    └── @bottomSection<br>        ├── layout.jsx # Bottom section layout<br>        └── page.jsx   # Bottom section (client component)</pre><p>The main (home) layout :</p><p>here I made small changes we removed the client component and made it to render children. For ease I named it top and bottom sections.</p><p><em>Note that the parameter ‘bottomSection’ is the same as the folder name @bottomSection. You may have multiple such folders and render them in the layout by using the same names as the folder names</em></p><pre>// (home)/layout.jsx<br>export default function Layout({ children: topSection, bottomSection }) {<br>    return (<br>        &lt;main&gt;<br>            &lt;div&gt;{topSection}&lt;/div&gt;<br>            &lt;div&gt;{bottomSection}&lt;/div&gt;<br>        &lt;/main&gt;<br>    );<br>}</pre><p><em>Remember: In above code snippet the children (alias as topSection) will render the page.jsx exist on same level i.e. (home)/page.jsx. It’s like index page app/page.jsx</em></p><p><strong>Bottom Section (Client Component)</strong>:</p><pre>// (home)/@bottomSection/layout.jsx<br>&#39;use server&#39;;<br>import ReExportedComponent from &#39;...&#39;;<br>export default function Layout({ children }) {<br>    <br>    const initialData = await fetch(...);<br>    <br>    return (<br>        &lt;&gt;<br>            // children<br>            &lt;ReExportedComponent initialData={initialData}/&gt;<br>        &lt;/&gt;<br>    );<br>}</pre><pre>// (home)/@bottomSection/page.jsx<br>&#39;use server&#39;;<br>export default function Page() {<br>    return null;<br>}</pre><h4><strong>Tip for enhancement</strong>:</h4><p>Use dynamic imports (i.e. for bottom section ) with a loading placeholder to avoid UI flickering, blank screens, or unnecessary loading indicators on other parts of the page</p><p><em>Note: If you want to use page.jsx to render anything then simply replcae the null value with your components</em></p><p>This structure gives you full control over where and how sections of the index / root page are rendered, without affecting other routes.</p><h3>Best Practices</h3><ol><li><strong>Use Re-exports for Client Components</strong>: Always create a file with &#39;use client&#39; to re-export client components, even if the original file has it. This ensures compatibility when importing them into server components.</li><li><strong>Avoid Prop Drilling</strong>: Use <strong>parallel routing</strong> to pass server-fetched data directly to the intended component instead of deeply nested children.</li><li><strong>Leverage Server Components for Data Fetching</strong>: Server components are designed to fetch and render data efficiently, ensuring faster page loads and optimized performance.</li><li><strong>Plan Your Component Hierarchy</strong>: With the App Directory, a well-thought-out folder structure can simplify routing and data flow.</li></ol><h3>Key Takeaways</h3><p>Next.js App Directory introduces a powerful yet challenging paradigm for building modern web applications. While the separation of server and client components may initially seem cumbersome, it ultimately leads to better performance and maintainability. By following the techniques shared here, you can ensure a seamless data flow between server and client components.</p><p><strong>Have more questions or solutions?</strong><br> Feel free to share them in the comments or reach via social platforms</p><p>This draft incorporates your original answers, expands on them with examples, and organizes the content for clarity and engagement. Let me know if you’d like to tweak any sections!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d9194537cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Maximize Your Tech Potential with Cohesive AI]]></title>
            <link>https://medium.com/@kishorjena/how-to-maximize-your-tech-potential-with-cohesive-ai-eea09061b107?source=rss-dc42b31b8721------2</link>
            <guid isPermaLink="false">https://medium.com/p/eea09061b107</guid>
            <category><![CDATA[cohesive-ai]]></category>
            <category><![CDATA[tech-potential]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kishor Jena]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 07:34:03 GMT</pubDate>
            <atom:updated>2023-07-09T11:17:15.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2WrN_0WSg-_DyYmk" /><figcaption>Photo by <a href="https://unsplash.com/es/@carlheyerdahl?utm_source=medium&amp;utm_medium=referral">Carl Heyerdahl</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Table of contents</h3><ul><li>Introduction</li><li>Understanding Cohesive AI</li><li>Implementing Cohesive AI in Your Business</li><li>Maximizing the Potential of Cohesive AI</li><li>Challenges and Considerations with Cohesive AI</li><li>Future of Cohesive AI</li><li>Conclusion</li></ul><h3>Introduction</h3><p>Ah, artificial intelligence — the holy grail of modern technology. But what happens when you fuse multiple AIs together? You get Cohesive AI, the next step in tech evolution. The definition of Cohesive AI is the integration of multiple AI systems to create more advanced and diverse solutions, making it a key component of many organizations’ digital transformation agendas. The benefits of Cohesive AI range from increased efficiency to personalized customer involvement, expanding beyond traditional AI’s capabilities. By integrating different types of AI systems, businesses now have the potential to revolutionize real-world scenarios. The applications of Cohesive AI are ever-growing, including healthcare, marketing, finance, e-commerce, and many more. The potential is tremendous, and the future is exciting. Ready to dive into the world of Cohesive AI and take your business to the next level? Let’s explore it together in this blog.</p><h3>Understanding Cohesive AI</h3><p>What is Cohesive AI? It’s the integration of multiple AI systems or models that work together on a specific task, providing a unified output. Cohesive AI is designed to complement, rather than replace, traditional AI approaches. It’s a collective and collaborative effort that enhances the effectiveness of AI processes. How is Cohesive AI different from traditional AI? Traditional AI operates on a single system or model to perform a specific task. Cohesive AI, on the other hand, utilizes multiple systems or models that work together to accomplish a task. Cohesive AI also fosters a highly collaborative and integrated approach, allowing for more accurate and comprehensive outcomes. Types of Cohesive AI include Collaborative AI, where multiple AI agents work together to solve problems, Fuzzy AI, which uses probabilities and statistics to make decisions, and Hybrid AI, where multiple AI methods are combined to optimize performance. By leveraging cutting-edge Cohesive AI tools, businesses can enhance their operations, improve customer satisfaction, and streamline workflows. But, as the technology is still an emerging field, navigating the potential challenges will be crucial down the line. With the increasing popularity of Cohesive AI, it’s important to keep data privacy and ethical considerations in mind. Combining various AI technologies can generate biased and unfair outcomes. Ensuring that your AI systems and models are transparent and ethical is critical. A well-designed Cohesive AI system in business can also optimize employee productivity and overall profitability. As Cohesive AI becomes more common, it will continue to reshape the future of work and innovation. It’s an exciting development that has the potential to revolutionize entire industries and transform the daily operations of businesses.</p><h3>Implementing Cohesive AI in Your Business</h3><p>Implementing Cohesive AI in Your Business: If you’ve decided that Cohesive AI can benefit your organization, you’ll need to approach implementation with a specific plan in mind. The following are some key points you can consider: Identifying areas in your business where Cohesive AI can be implemented: Start by identifying the areas of your business that would benefit the most from Cohesive AI. It could be in marketing, customer service, or operations management. Cohesive AI can be integrated into any process that involves collecting and analyzing data. Identify the key challenges in these areas and see how Cohesive AI can help overcome them. Setting up a Cohesive AI team: A Cohesive AI team consists of individuals with different skill sets, including data scientists, IT professionals, and business analysts. It’s essential to have a strong leadership team that understands your organization’s needs and can drive implementation. A team should work in close collaboration with business units and be trained to work with AI tools. Integrating Cohesive AI into existing workflows: The integration of Cohesive AI should be seamless and not cause disruption to existing workflows. The aim is to enhance existing processes and make them better. Cohesive AI can be used to automate repetitive tasks, free up time to focus on more critical issues, and provide insights that would otherwise be missed. It’s essential to establish clear goals and metrics to measure the ROI of Cohesive AI implementation. Data and insights collected will need to be evaluated and tweaked until you achieve the desired results. Finally, ensure that you have systems in place to manage data privacy and security concerns when dealing with large amounts of data. By implementing Cohesive AI, not only will it save your business time and resources, but it will open up endless possibilities to analyze and find insights in your data. The next section delves into how to best utilize Cohesive AI to maximize its potential.</p><h3>Maximizing the Potential of Cohesive AI</h3><p>The potential applications of cohesive AI are limitless, and businesses are finding innovative ways to use it to their advantage. By incorporating Cohesive AI into their operations, businesses can personalize recommendations for customers, enhance their overall experience, and optimize their operations to increase productivity. One significant way to leverage Cohesive AI is by using it for personalized recommendations and marketing. By analyzing data on customer behavior, preferences, and purchase histories, businesses can predict what products or services their customers will want and recommend them accordingly. This approach not only provides a more personalized experience to customers but also increases the chances of them making a purchase. Cohesive AI can also be used to enhance customer experience. One application of this is by using chatbots to provide quick and efficient customer service. Chatbots can easily answer frequently asked questions and provide support to customers without the need for human intervention. Additionally, cohesive AI can create a more efficient and personalized checkout process by streamlining the payment and delivery process. Moreover, Cohesive AI can optimize business operations. By automating tedious and repetitive tasks, cohesive AI can increase efficiency and save time for employees. Through machine learning, Cohesive AI can predict production levels, maintenance needs, and other essential factors to optimize workflows and ensure maximum productivity. Last but not least, Cohesive AI can improve employee productivity by providing them with valuable insights into their work patterns. Cohesive AI can track employee performance, identifying areas for improvement, and provide recommendations for training and support. By analyzing employee data, businesses can optimize staffing plans and work hours to ensure employees are working most efficiently. In conclusion, by leveraging cohesive AI, businesses can provide customers with personalized recommendations and enhanced experiences, optimize their operations, and improve employee productivity. As this technology continues to advance and new applications emerge, it’s clear that Cohesive AI will play a crucial role in shaping the future of business.</p><h3>Challenges and Considerations with Cohesive AI</h3><p>While Cohesive AI has the potential to revolutionize businesses, there are also certain challenges and considerations that need to be addressed. The first concern is data privacy and security. With Cohesive AI requiring large amounts of data to function, it is crucial to ensure that sensitive business and personal information is protected from unauthorized access or breaches. Therefore, implementing strong security measures and complying with relevant regulations must be a top priority. Another crucial consideration is ensuring ethical and transparent use of Cohesive AI. This means being open and honest about how data is collected and used, as well as avoiding any actions or decisions that may harm individuals or groups. It is important to establish ethical guidelines and regularly assess and evaluate the impact of Cohesive AI on both businesses and society. Addressing bias and fairness in Cohesive AI is also crucial. While AI is designed to be objective, it can still be influenced by inherent biases in the data and algorithms used to train it. This can lead to unfair treatment and unequal outcomes for certain groups. Therefore, it is important to create diverse and unbiased datasets, as well as regularly monitoring and adjusting the algorithms to ensure fairness. Finally, seamless integration with existing systems is vital for successful implementation of Cohesive AI. Integrating Cohesive AI into existing workflows can be challenging, and it is important to anticipate and address potential issues before implementation. This includes working with IT teams to ensure smooth integration and testing the system thoroughly before launch. Overall, while challenges and considerations exist, with proper planning and implementation, Cohesive AI has the potential to greatly benefit businesses and society as a whole.</p><h3>Future of Cohesive AI</h3><p>The future of cohesive AI is exciting and full of possibilities. As technology continues to advance, we can expect to see even more innovative applications of cohesive AI across diverse industries. One trend that’s emerging is the use of cohesive AI for predictive analytics, allowing businesses to make more informed decisions based on data-driven insights. Regarding the future of work, cohesive AI has the potential to revolutionize the way we work. By automating routine tasks and streamlining workflows, cohesive AI can help increase productivity and free up time for more meaningful, creative work. From personalized learning to virtual assistance, there are so many ways that cohesive AI can enhance our work experiences. Innovation and creativity with cohesive AI can lead to even more exciting and unexpected possibilities. For example, we could see the emergence of entirely new industries, as cohesive AI continues to evolve and become more sophisticated. Overall, the future of cohesive AI is bright, and we can expect to see even more exciting developments in the years to come. By embracing cohesive AI and its potential, businesses can stay ahead of the curve and continue to innovate and grow.</p><h3>Conclusion</h3><p>To summarize, Cohesive AI is revolutionizing the way businesses operate, providing benefits such as personalized recommendations, improved customer experience, optimized operations and employee productivity. While there are challenges to consider, the future of Cohesive AI looks promising with emerging trends and potential impacts on the future of work. We encourage businesses to explore the possibilities of Cohesive AI and leverage its potential to its fullest extent. Don’t be left behind in this AI revolution!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eea09061b107" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>