<?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 Ratnesh Chandak on Medium]]></title>
        <description><![CDATA[Stories by Ratnesh Chandak on Medium]]></description>
        <link>https://medium.com/@ratneshchandak?source=rss-6c35dc1e350c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Bh5P7urFfOD1Rka2.</url>
            <title>Stories by Ratnesh Chandak on Medium</title>
            <link>https://medium.com/@ratneshchandak?source=rss-6c35dc1e350c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:01:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ratneshchandak/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[Creating a Chrome Password Manager Using Kiro’s AI Vibe Coding]]></title>
            <link>https://medium.com/@ratneshchandak/from-idea-to-production-creating-a-chrome-password-manager-using-kiros-ai-vibe-coding-3ad991cac134?source=rss-6c35dc1e350c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ad991cac134</guid>
            <category><![CDATA[kiro]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ratnesh Chandak]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 19:05:55 GMT</pubDate>
            <atom:updated>2025-09-14T19:30:19.731Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, I’m Ratnesh Chandak, a software developer with over five years of experience building secure and efficient applications. Recently, I embarked on a project to create a Chrome extension password manager that puts user security and privacy front and center. Unlike many solutions that save data in the cloud, this extension keeps all your credentials stored locally on your device, giving you full control and peace of mind knowing your sensitive information never leaves your system.</p><p>You might be wondering, how did I bring this all together? Enter vibe coding — an exciting new approach to software development where you describe what you want using natural, plain language, and AI transforms those instructions into working code. Instead of battling through tedious syntax or boilerplate, I simply guided the AI, refining and iterating as we went. This shift not only accelerated the project but also made coding accessible and fun, allowing me to focus on what really matters — the user experience and security.</p><p>Using vibe coding in the Kiro IDE, I built a password manager packed with powerful features: AES-256-GCM encryption, master password protection, encrypted import/export using a unique 16-word key phrase, seamless login, and manual credential management behind password re-authentication. Additionally, the extension detects login forms to autofill credentials and supports quick credential saves via a right-click context menu. Best of all? The entire project is <a href="https://github.com/ratnesh93/PasswordManager">open source on GitHub</a> for you to explore and build upon.</p><p>At signup, users create their account with a master password and receive a secure 16-word key phrase generated from the BIP39 word list — this key phrase unlocks encrypted import and export of their vault. Beyond the basics, features like session timeout and auto-logout, encrypted backups, and granular permission management provide enterprise-grade security wrapped in a smooth user experience. On the technical side, AES encryption, PBKDF2 key derivation, secure salt and IV generation, and thorough unit testing safeguard the password manager’s core integrity.</p><p>Here’s how it works: Kiro begins by asking me for the project requirements in natural language. It then breaks down these broad goals into detailed sub-requirements(<a href="https://github.com/ratnesh93/PasswordManager/blob/main/.kiro/specs/chrome-password-manager/requirements.md">requirement</a>) and drafts a high-level design(<a href="https://github.com/ratnesh93/PasswordManager/blob/main/.kiro/specs/chrome-password-manager/design.md">design</a>)— which I can iteratively adjust at any point. Once the design’s set, it converts the work into small subtasks(sample: <a href="https://github.com/ratnesh93/PasswordManager/blob/main/.kiro/specs/chrome-password-manager/tasks.md">task1</a> , <a href="https://github.com/ratnesh93/PasswordManager/blob/main/.kiro/specs/password-visibility-with-auth/tasks.md">task2</a>), generating tests first (following test-driven development) and then the code necessary to pass those tests. This cycle repeats until the entire extension module is built, tested, and ready for use.</p><p>The benefits were immediate and profound. Productivity skyrocketed as the AI handled boilerplate and let me focus on feature design and security. The spec-driven workflow ensured a cleaner architecture and consistent coverage across cryptography, session management, and permissions. Unlike traditional coding, AI collaboration felt dynamic and efficient — letting me prototype quickly while maintaining code quality. Of course, AI-generated code sometimes needed stylistic tuning or deeper error handling, reminding me that oversight remains essential.</p><p>Ready to try it out? Clone the repo:</p><blockquote>git clone <a href="https://github.com/ratnesh93/PasswordManager.git">https://github.com/ratnesh93/PasswordManager.git</a></blockquote><p>Then, enable developer mode in chrome://extensions/, hit Load unpacked, and select the cloned project folder. The extension will load immediately, and you can start exploring its features.</p><p>I’m planning an official Chrome Web Store release soon, along with a detailed YouTube walkthrough. Until then, I invite you to experiment, dive into the code, and contribute new features or enhancements.</p><p>Vibe coding transformed how I build software — bringing together AI, rigorous engineering, and creativity into a seamless experience. If you’re curious about AI-assisted development, I highly recommend checking out tools like <a href="https://kiro.dev/docs/getting-started/">Kiro IDE</a>, which offers powerful capabilities beyond simple autocomplete.</p><p>Feel free to check out the project on <a href="https://github.com/ratnesh93/PasswordManager">GitHub</a>, share your thoughts, or collaborate. Let’s build the future of software development together!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*_xMtQx0Wmlj5wK8CIiERZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*HTkyLlpCNOH59N-f_caQJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG5h6LdhvgnhfCtxGbAgcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*I9d73hjN2ugYt15lBkaHOA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ad991cac134" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Python to Cython: Turbocharging Your Code for Lightning-Fast Execution]]></title>
            <link>https://medium.com/@ratneshchandak/from-python-to-cython-turbocharging-your-code-for-lightning-fast-execution-b5e883898ac6?source=rss-6c35dc1e350c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5e883898ac6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[cython]]></category>
            <dc:creator><![CDATA[Ratnesh Chandak]]></dc:creator>
            <pubDate>Sat, 10 Jun 2023 12:35:26 GMT</pubDate>
            <atom:updated>2023-06-11T14:44:33.026Z</atom:updated>
            <content:encoded><![CDATA[<p>On a quest for swift responsiveness in my python project, I embarked on a relentless search for solutions. Just when I thought all hope was lost, Cython crossed my path like a bolt of lightning. Intrigued, I decided to put it to the test, toying with its powers to unravel the truth about its performance wizardry. Brace yourself for the exhilarating tale of my encounter with Cython and the profound conclusions it revealed.</p><p>But before that lets get to some basics:</p><p><em>Compiler</em>: Converts the entire source code into efficient machine code or bytecode before execution. It optimizes code for performance and typically results in faster execution and lower memory usage.</p><p><em>Interpreter</em>: Executes code directly, line by line, without prior conversion. It analyzes and executes code in real-time, which may result in slower performance and potentially higher memory usage compared to compilers.</p><p>Cython, a powerful programming language, combines the ease of Python with the performance of C. By allowing developers to write Python code that gets translated into highly optimized C extensions, Cython opens doors to enhanced execution speed and efficient memory usage. It seamlessly integrates with existing Python code-bases, making it an attractive option for performance-critical sections of code. Let’s dive into the world of Cython and discover how it takes Python to new performance heights.</p><p><strong>Why performance optimization in software development?</strong></p><ul><li>User Experience</li><li>Efficiency and Scalability</li><li>Competitiveness</li><li>Cost Savings</li><li>Brand building</li></ul><p><strong>Transforming Python into Cython Compiled Code!</strong></p><ul><li>Assuming your Python file is named <strong>&lt;your_file_name&gt;.py</strong>, proceed to the next steps.</li><li>Begin by creating a <a href="https://stackoverflow.com/questions/54106071/how-can-i-set-up-a-virtual-environment-for-python-in-visual-studio-code/68076478#68076478"><strong>virtual environment</strong></a> and installing Cython within it.</li><li>Create a file named <strong>&lt;your_cython_file_name&gt;.pyx</strong> and copy the contents from <strong>&lt;your_file_name&gt;.py</strong> into it.</li><li>Next, create a <strong>setup.py</strong> file and include the following code snippet:</li></ul><pre>from setuptools import setup, Extension<br>from Cython.Build import cythonize<br><br>extensions = [Extension(&quot;&lt;your_cython_file_name&gt;&quot;, [&quot;&lt;your_cython_file_name&gt;.pyx&quot;])]<br><br>setup(<br>    ext_modules = cythonize(extensions)<br>)</pre><p>Please replace <strong>&lt;your_cython_file_name&gt;</strong> with the actual name of your Cython file.</p><p>This setup file defines the necessary configuration for building the Cython module using <strong>cythonize()</strong> from <strong>Cython.Build</strong>. When you run the setup script, it will generate the appropriate build files and compile your Cython code.</p><p>Remember to execute the setup script using the command:</p><pre>python3 setup.py build_ext --inplace</pre><ul><li>That’s it! You’re all set. Simply import your Cython class and start utilizing its functionality.</li><li>You only need two files: the <strong>.so</strong> (shared object) file and the <strong>.pyx</strong> file, both of which are created after the build process. Copy these files into your project directory.</li><li>Now, you can import the Cython class into your Python code and begin using its capabilities to enhance your project.</li></ul><p>With these files in place, your project can leverage the optimized performance provided by Cython, making your code faster and more efficient.</p><p><strong>Let’s dive into the Performance Analysis: Evaluating Execution Times with Python and Cython!</strong></p><p>To begin, we’ll start with a simple code snippet that takes a considerable amount of time to execute. You can find a sample code for testing performance at this <a href="https://github.com/ratnesh93/performace-poc/blob/main/python_to_cython/performance.py"><strong>GitHub link</strong></a>. This code will serve as the basis for our performance comparison.</p><p>Next, we’ll run the aforementioned code using both Python and Cython, making careful observations throughout the process. By comparing the execution times between the two approaches, we can gain valuable insights into the performance enhancements achieved by leveraging Cython’s capabilities.</p><p><strong>Experiment Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*o8sr0Cb0FDuUZfGeae91bA.png" /></figure><p><em>Average value of observations(in seconds)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*2LlyQuLTYmpZvhIcT1LAJQ.png" /></figure><p>Based on above result, we can see around <strong>23% improvement</strong> in sample python code.</p><p><strong>Conclusion</strong></p><p>Overall, Python and Cython complement each other in the Python ecosystem. Python provides a versatile, high-level programming language that enables fast development and easy integration with various libraries and frameworks. Cython, as an extension to Python, offers a way to optimize performance-critical sections of code by leveraging static typing and generating highly efficient C extensions. The combined use of Python and Cython allows developers to strike a balance between productivity and performance in their projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5e883898ac6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>