<?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 Olanipekun Olaide on Medium]]></title>
        <description><![CDATA[Stories by Olanipekun Olaide on Medium]]></description>
        <link>https://medium.com/@olanipekunolaide22?source=rss-565a241245d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JBt5bH8cu8O07sRXdTls6Q.png</url>
            <title>Stories by Olanipekun Olaide on Medium</title>
            <link>https://medium.com/@olanipekunolaide22?source=rss-565a241245d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:34:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olanipekunolaide22/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[Thinking in an AI‑Native Way: Why the Future Belongs to Those Who Go All‑In]]></title>
            <link>https://medium.com/@olanipekunolaide22/thinking-in-an-ai-native-way-why-the-future-belongs-to-those-who-go-all-in-e59d3f1ccde6?source=rss-565a241245d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e59d3f1ccde6</guid>
            <category><![CDATA[summary-of-ai]]></category>
            <category><![CDATA[future-of-ai]]></category>
            <category><![CDATA[thinkin-in-ai]]></category>
            <category><![CDATA[ai-and-work]]></category>
            <category><![CDATA[trusting-ai]]></category>
            <dc:creator><![CDATA[Olanipekun Olaide]]></dc:creator>
            <pubDate>Fri, 13 Feb 2026 01:33:57 GMT</pubDate>
            <atom:updated>2026-02-13T11:11:41.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="human thought with AI" src="https://cdn-images-1.medium.com/max/1024/1*_Rgm4CmwRHIPuZdI9XmflA.png" /></figure><p><strong>A Little dive into the history of AI<br></strong>Over the past few days, I’ve been doing a deep dive into the origins of AI, and a few things genuinely caught my attention. Artificial Intelligence didn’t start in the last decade as many assume. It dates all the way back to the 1950s. From those early rule‑based systems, it has evolved gradually into what we now know as Generative AI.</p><p>As I tried to describe AI in the simplest possible way from a developer’s perspective, I found myself thinking of it as a massive probability engine. It iterates over trillions of data points to identify patterns that most closely match what a user is asking for. Modern AI models process information in the form of <em>tokens</em>, which are essentially small chunks of text or pieces of words, whole words, or even punctuation. The model breaks down your input into these tokens, runs probability calculations across its learned patterns, and then generates the most likely response based on the context of your request.</p><p>tokenizer: <a href="https://platform.openai.com/tokenizer">https://platform.openai.com/tokenizer</a></p><p>When you zoom out and look at the evolution of AI from the era of hard‑coded chatbot responses, to the rise of search engines, to the autocomplete features we use every day, it’s fair to say that modern AI is essentially a super‑charged autocomplete system. It scans through learned patterns at an incredible scale and generates the closest possible match to what you’re asking.</p><p>The breakthrough that unlocked today’s Generative AI came from a 2017 research paper by Google researchers titled <em>“Attention Is All You Need.”</em> This work introduced the Transformer architecture, which fundamentally changed how AI models understand and generate language. That single innovation paved the way for the large language models we interact with today.</p><p><strong>Why People Fall Behind With AI</strong></p><p>Many people approach AI with hesitation, even fear, hovering on the sidelines and eventually falling behind. But AI shouldn’t be treated as an add‑on. It’s becoming a core component of how we work, think, and create. When you go all‑in, your pace accelerates exponentially.</p><p>To stay ahead, you need to adopt a mindset that treats AI as a partner, not a threat. Here are four principles that can give you a real advantage:</p><h3>1. Integrate AI into everything you do</h3><p>When you’re brainstorming, one of your first questions should be: <em>Can AI help me here?</em> Think about AI the same way we think about the internet an essential layer of modern life. The future will depend on AI just as heavily as we’ve depended on connectivity and search.</p><h3>2. Keep humans in the loop</h3><p>AI is like a plane&#39;s autopilot: powerful, fast, and incredibly helpful, but it still needs a human at the controls. You shape the direction, tone, and quality. AI becomes a force multiplier only when you stay actively involved.</p><h3>3. Leverage the power of context</h3><p>AI is fundamentally a pattern recognizer. What you put in determines what you get out. The clearer and more precise your instructions and feedback, the better the results. Guide it deliberately, and the output improves dramatically.</p><h3>4. Break through creative bottlenecks instantly</h3><p>Before AI, creative blocks meant stopping and taking a walk, waiting for inspiration, or stepping away. Not anymore. AI can help you push through any creative slowdown. Use your judgment and taste to refine its suggestions, but don’t pause when you feel stuck. Prompt. Explore. Let AI give you options that move you forward.</p><p>Satya Nadella captured this shift perfectly: <strong>“The new workflow is: I think with AI and work with my colleagues.”</strong></p><p>The leaders of tomorrow will train themselves now to think in AI‑native ways. They’ll bring AI into everything they do. They’ll move faster, break through barriers quicker, and never stay stuck.</p><p>The future won’t belong to those who fear AI; it will belong to those who learn to think with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e59d3f1ccde6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sentence Cropping: From JavaScript to a CSS-Only Approach]]></title>
            <link>https://medium.com/@olanipekunolaide22/sentence-cropping-from-javascript-to-a-css-only-approach-4dad6fc2a3aa?source=rss-565a241245d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dad6fc2a3aa</guid>
            <dc:creator><![CDATA[Olanipekun Olaide]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 12:44:08 GMT</pubDate>
            <atom:updated>2025-02-07T12:50:46.317Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FyJZ8EXhoYzB1-0AynypDw.jpeg" /></figure><p>When working with UI development, text truncation is a common challenge. We often need to crop sentences to fit within a specific container while maintaining readability. Initially, I wrote a <strong>JavaScript function</strong> to crop a sentence dynamically, but later, I discovered that <strong>CSS could achieve the same effect with much better performance</strong>.</p><p>FYI: I wrote this block of code using typescript:</p><p>🚀 The Initial JavaScript Approach</p><pre><br>type ResultType = { text: string; isEnd: boolean };<br><br>export const cropSentence = ({<br>  sentence,<br>  minLength,<br>  tolerance = 5,<br>}: {<br>  sentence: string;<br>  minLength: number;<br>  tolerance?: number;<br>}): string =&gt; {<br>  if (!sentence) return sentence;<br>  const words: string[] = sentence.replace(/\s\s+/g, &#39; &#39;).split(&#39; &#39;);<br>  const result: ResultType = words.reduce(<br>    (textObj: ResultType, current: string) =&gt; {<br>      const { text, isEnd } = textObj;<br>      if (isEnd) return { text, isEnd: true };<br><br>      const partialText = text === &#39;&#39; ? `${current}` : `${text} ${current}`;<br><br>      if (<br>        partialText.length &lt; minLength ||<br>        partialText.length &lt;= minLength + tolerance<br>      ) {<br>        return { text: partialText, isEnd: false };<br>      }<br>      return { text, isEnd: true };<br>    },<br>    { text: &#39;&#39;, isEnd: false }<br>  );<br><br>  return result.text;<br>};</pre><p><strong>Effect on Performance<br>While this works well</strong>, it has some <strong>downsides</strong>:</p><ul><li>It runs <strong>every time a sentence is rendered</strong>.</li><li>It increases <strong>JavaScript execution time</strong>, especially with large amounts of text.</li><li>It doesn’t handle <strong>dynamic container sizes</strong> efficiently.</li></ul><h3>🎨 The CSS-Only Solution</h3><p>After analyzing the function, I realized that <strong>CSS alone can achieve the same effect with just a few lines of code!</strong></p><pre>display: -webkit-box;<br>-webkit-line-clamp: 2;<br>-webkit-box-orient: vertical;<br>overflow: hidden;</pre><h3>🔍 How This Works:</h3><ul><li>display: -webkit-box; → Makes the element behave like a <strong>flexible box</strong> that respects line constraints.</li><li>-webkit-line-clamp: 2; → Specifies the <strong>maximum number of lines</strong> before truncation occurs.</li><li>-webkit-box-orient: vertical; → Ensures the text is cropped <strong>vertically</strong>.</li><li>overflow: hidden; → Prevents any <strong>excess text</strong> from being displayed beyond the limit</li></ul><h3>✅ Benefits of the CSS Approach:</h3><ol><li><strong>Zero JavaScript Execution</strong> → <strong>Improves performance</strong> by avoiding unnecessary computations.</li><li><strong>Dynamic Resizing</strong> → Works naturally with <strong>different screen sizes</strong> and container widths.</li><li><strong>Cleaner &amp; More Maintainable</strong> → No need for additional JavaScript logic.</li><li><strong>Better for Accessibility</strong> → The text remains in the DOM (unlike JavaScript-based truncation methods that modify the content).</li></ol><h3>Conclusion</h3><p>Refactoring the <strong>JavaScript-based sentence cropping</strong> to a <strong>CSS-only solution</strong> significantly improved <strong>performance, simplicity, and scalability</strong>. If you’re dealing with <strong>text truncation in UI development</strong>, CSS should be your <strong>first approach</strong> before resorting to JavaScript.</p><p>💡 <strong>Next time you need to crop text, try </strong><strong>-webkit-line-clamp first!</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dad6fc2a3aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A FUNNY IDENTIFIER OF WHAT A HOOK IS in ReactJs]]></title>
            <link>https://medium.com/@olanipekunolaide22/a-funny-identifier-of-what-a-hook-is-in-reactjs-974ab615677f?source=rss-565a241245d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/974ab615677f</guid>
            <dc:creator><![CDATA[Olanipekun Olaide]]></dc:creator>
            <pubDate>Sun, 18 Jul 2021 15:43:11 GMT</pubDate>
            <atom:updated>2021-07-18T15:43:11.576Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A funny image" src="https://cdn-images-1.medium.com/max/244/1*u7ztVJdb-_NJMtc8tYJNTA.jpeg" /></figure><p>So, what exactly is a hook? I once asked a friend of mine to give me examples of hooks in React, then she went ahead and said “are they not those things that start with USE something, like useEffect, useState, etc”, I could not help but laugh at her response, and honestly for a while I identified them as that too.</p><p>So the idea behind the design of React hooks was so that we can make reusable codes work, just the same way we do with regular Javascript functions, where we write a function that can be called and used anywhere by just passing in arguments.</p><p>The reason behind the consistent naming with a “USE” is as a result of the naming convention that the React team speculated.</p><p>Just as we have the already existing hooks, we can write our own hooks that suit our use-case and this is called a CUSTOM HOOK, it is basically writing a function that uses other hooks inside it. For instance, if we want to write a Hook to get an item from the local storage every time a page loads (meaning we would make use of the useEffect Hook ), deserialize it then displays the item on the screen, also it saves an item in the local storage when a particular state changes (useState Hook). Then we will probably name this Custom hook a useLocalStorage().</p><p>So the moment of truth, this is my first time ever writing an article, I always tried to understand how people just pick a pen and write and it turns into an article or a book and this was a thing that discouraged me for a long time, “the fear of what if what I write doesn’t make sense” or “what if people make jest of my writing” then I learned recently that first of all no one is born with the skill, everyone who writes today started by just picking a pen to write something, and over time they get better, and here I am saying I overcame that fear and this is just the start.</p><p>Thank you for reading, I hope you were able to get a better understanding of what a hook and custom hook means</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=974ab615677f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>