<?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 Neel Das on Medium]]></title>
        <description><![CDATA[Stories by Neel Das on Medium]]></description>
        <link>https://medium.com/@nilakashdas?source=rss-dabbfcd50fe0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fHgNsgLOpJgMaC3Jag8O6A.jpeg</url>
            <title>Stories by Neel Das on Medium</title>
            <link>https://medium.com/@nilakashdas?source=rss-dabbfcd50fe0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:20:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nilakashdas/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[12 Best Open Source Documentation Tools for Developers]]></title>
            <link>https://medium.com/@nilakashdas/12-best-open-source-documentation-tools-for-developers-deepdocs-64ed480fe3de?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/64ed480fe3de</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Sat, 04 Oct 2025 05:32:09 GMT</pubDate>
            <atom:updated>2026-01-29T06:41:51.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>TL;DR: The Best Open Source Documentation Tools</h3><ul><li><strong>For Python Projects:</strong> <a href="https://deepdocs.dev/open-source-documentation-tools/#1-sphinx">Sphinx</a> is the powerhouse, offering deep cross-referencing and multi-format outputs.</li><li><strong>For Simplicity &amp; Speed:</strong> <a href="https://deepdocs.dev/open-source-documentation-tools/#2-mkdocs">MkDocs</a> and <a href="https://deepdocs.dev/open-source-documentation-tools/#8-hugo">Hugo</a> are fantastic choices. MkDocs is Markdown-first and simple; Hugo is blazing fast.</li><li><strong>For Modern JS/React Projects:</strong> <a href="https://deepdocs.dev/open-source-documentation-tools/#3-docusaurus">Docusaurus</a> is a top-tier choice with built-in versioning, i18n, and React component support.</li><li><strong>For Vue Projects:</strong> <a href="https://deepdocs.dev/open-source-documentation-tools/#12-vitepress">VitePress</a> provides an incredibly fast developer experience, combining Markdown with Vue’s interactivity.</li><li><strong>For Automated Hosting:</strong> <a href="https://deepdocs.dev/open-source-documentation-tools/#4-read-the-docs">Read the Docs</a> offers a free, turnkey solution to build and host docs from your Git repository, perfect for open source.</li></ul><h3>Table of Contents</h3><p>Adopting a docs-as-code workflow is a powerful strategy for improving developer experience. In my experience, its success hinges entirely on selecting the right tooling.</p><p>The open-source community provides a fantastic array of options, from powerful static site generators to comprehensive hosting platforms. This guide cuts through the noise to help you find the best fit.</p><p>We will dive deep into 12 of the best <strong>open source documentation tools</strong>, breaking down their core strengths, ideal use cases, and notable limitations. Each review is designed to be practical, offering insights based on real-world implementation.</p><p>Whether you’re a software engineering team maintaining docs on GitHub or a technical writer building a developer portal, this resource is for you. We’ll help you find the perfect tool to integrate into your <strong>CI/CD</strong> workflow, ensuring your documentation stays as agile and up-to-date as your code.</p><h3>1. Sphinx</h3><p>Sphinx is a powerful and mature documentation generator that has been the backbone of the Python community’s documentation for years. It excels at creating structured, professional-looking documentation for large projects.</p><p>Sphinx processes reStructuredText or MyST Markdown files and can generate output in various formats, including HTML, PDF, ePub, and man pages. This makes it one of the most versatile open source documentation tools available.</p><p><em>Caption: Sphinx is a favorite in the Python community for its robust features and extensive customization options.</em></p><p>Its core strength lies in handling complex cross-referencing, automatic indexing, and code documentation. The system can pull docstrings directly from Python code to generate API references-a critical feature for software projects. This level of automation is foundational for creating comprehensive technical documentation that stays synchronized with the code. For a deeper understanding of what constitutes effective technical documentation, <a href="https://deepdocs.dev/what-is-technical-documentation/">you can explore this detailed guide</a>.</p><h3>Key Features &amp; Considerations</h3><h3>2. MkDocs</h3><p>MkDocs is a fast, simple, and modern static site generator geared specifically for building project documentation. Its main appeal lies in its simplicity and developer-friendly workflow.</p><p>Authors write documentation in standard Markdown files, and the site’s configuration is managed through a single YAML file. This low barrier to entry makes it an excellent choice for teams that want a clean documentation site up and running with minimal setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E95PIQvKvhqAn-Ka" /></figure><p>The built-in development server with live-reloading is a standout feature, allowing writers to see their changes instantly. While its core is intentionally lightweight, MkDocs becomes a true powerhouse through its extensive plugin ecosystem. The community-driven Material for MkDocs theme, in particular, adds a wealth of features like advanced search and versioning. For those interested, <a href="https://deepdocs.dev/how-to-use-material-theme-for-mkdocs/">this guide on using the Material theme for MkDocs</a> provides a great starting point.</p><h3>Key Features &amp; Considerations</h3><h3>3. Docusaurus</h3><p>Docusaurus is a modern open source documentation framework built by Meta that leverages React to create fast, interactive, and beautifully designed documentation websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LkgKQOElPOiCtBTb" /></figure><p>It is specifically optimized for projects that need a community hub, offering built-in features for versioning, internationalization (i18n), and even a blog. This makes it a comprehensive solution for projects aiming to build a strong online presence around their documentation.</p><p>Its key differentiator is the use of <strong>MDX</strong>, which allows you to write JSX within your Markdown files. This opens up a world of possibilities for creating rich, interactive examples directly inside your documentation.</p><p>Combined with its powerful Algolia search integration and straightforward deployment process, Docusaurus provides an exceptional developer experience, especially for those already comfortable within the JavaScript and React ecosystem.</p><h3>Key Features &amp; Considerations</h3><h3>4. Read the Docs</h3><p><em>Caption: Read the Docs automates the build and deployment process, making it a go-to hosting platform for open source documentation.</em></p><p>Read the Docs isn’t a documentation generator itself but rather a powerful hosting and automation platform. It simplifies the docs-as-code workflow by automatically building, versioning, and hosting your documentation whenever you push changes to your repository.</p><p>By connecting directly to services like GitHub, it creates a seamless <strong>continuous documentation</strong> pipeline, making it an essential service for many open source projects.</p><p>The platform is renowned for its generous free tier for public, open source projects, which includes hosting and version control integration. We found this has made it the de facto hosting solution for documentation generated with Sphinx and MkDocs. Its key value is abstracting away the complexities of build servers and deployment, allowing teams to focus purely on writing high-quality content.</p><h3>Key Features &amp; Considerations</h3><h3>5. PyPI (Python Package Index)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eHcHJKvDexNjh68a" /></figure><p>While not a documentation generator, the Python Package Index (PyPI) is an indispensable resource hub for the open source documentation tools ecosystem, particularly for Python-based projects.</p><p>It serves as the official third-party software repository for Python, hosting thousands of packages that extend and support documentation workflows. For developers, this means easy, command-line access to tools like Sphinx and MkDocs, along with their vast libraries of themes and plugins.</p><p>PyPI’s primary role is facilitating discovery and distribution. Teams can quickly find, install, and manage documentation tools using the standard pip installer. This centralized and trusted channel is foundational to building and scaling a Python documentation pipeline.</p><h3>Key Features &amp; Considerations</h3><ul><li><strong>Best For:</strong> Python developers and teams looking to quickly install and manage documentation generators, themes, and extensions within their existing workflow.</li><li><strong>Pros:</strong> Streamlines installation of countless tools with simple pip install commands; hosts a massive and active ecosystem for documentation-related packages.</li><li><strong>Cons:</strong> As an open repository, users must remain vigilant and verify package authenticity to avoid potential security risks from typosquatting or malicious uploads.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZaYXyVLvGGDBKkWZ" /></figure><h3>6. npm</h3><p>Similar to PyPI, npm (Node Package Manager) is the central nervous system for the modern JavaScript ecosystem. It’s an indispensable resource for discovering and managing open source documentation tools.</p><p>It is the world’s largest software registry, hosting hundreds of thousands of packages, including popular static site generators like Docusaurus, VuePress, and VitePress. For any team working with JavaScript, npm is the starting point for assembling a documentation toolchain.</p><p>Its primary function is to manage project dependencies through the command line, simplifying the installation and updating of documentation frameworks and plugins. This makes it easy to evaluate the maturity and community support behind a tool before integrating it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dBuzosK8he9RrgbZ" /></figure><h3>Key Features &amp; Considerations</h3><h3>7. GitHub</h3><p>GitHub is the central hub where most modern open source documentation tools and their source files live. It provides the essential infrastructure for version control, collaboration, and automation that documentation-as-code workflows rely on.</p><p>Hosting your documentation source alongside your application code allows for seamless integration of updates and issue tracking, making it a foundational layer for any serious documentation project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HK6Z9lUZUqSH4pTZ" /></figure><p>Its ecosystem offers powerful features like <strong>GitHub Pages</strong> for free static site hosting and <strong>GitHub Actions</strong> for automating <strong>CI/CD</strong> pipelines. This means you can automatically build and deploy your documentation site every time you merge a change, ensuring documentation stays synchronized with code releases.</p><h3>Key Features &amp; Considerations</h3><h3>8. Hugo</h3><p>Hugo is a static site generator renowned for its incredible speed, making it a popular choice for building documentation websites, blogs, and portfolios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6vUF_8nF4PJYVLDw" /></figure><p>Written in Go, it can render a large site in seconds, providing a seamless development experience with its built-in server and live-reloading. This speed is a significant advantage for large projects where frequent updates and quick build times are essential.</p><p>When paired with a documentation-specific theme like Docsy, Hugo transforms into a powerful system for creating feature-rich technical content. Its robust support for taxonomies and multilingual sites allows teams to organize and deliver content to a global audience effectively.</p><h3>Key Features &amp; Considerations</h3><h3>9. Jekyll</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qj1B4X_euNFFLKad" /></figure><p>Jekyll is a simple, blog-aware static site generator that has become a popular choice for documentation and project websites. It transforms plain text files, typically written in Markdown, into a complete static website.</p><p>Famously, Jekyll is the engine behind <strong>GitHub Pages</strong>, which allows developers to host documentation sites directly from their repositories for free. This makes it an incredibly accessible open source documentation tool for projects of all sizes.</p><p>Its core appeal lies in its simplicity and deep integration with the GitHub ecosystem. Developers can write documentation in Markdown and leverage the powerful Liquid templating engine. Pushing changes to their repository triggers an automatic build and deployment via GitHub Pages.</p><h3>Key Features &amp; Considerations</h3><h3>10. Doxygen</h3><p><em>Caption: VuePress leverages Vue.js to create fast, SPA-like documentation sites with interactive components embedded in Markdown.</em></p><p>Doxygen is a standard tool for generating documentation from annotated source code. It’s a cornerstone for projects written in C++, C, C#, Java, and Python.</p><p>It excels at parsing source files to build a fully cross-referenced and navigable API reference. By extracting specially formatted comment blocks directly from the code, Doxygen ensures that the documentation and the source remain closely synchronized.</p><p>Its main strength is generating in-depth reference material, complete with inheritance diagrams. For additional context, a more comprehensive overview of <a href="https://deepdocs.dev/5-best-tools-to-instantly-generate-api-documentation-from-your-code/">tools that can instantly generate API documentation from code</a> can be helpful. This approach reduces context switching and encourages developers to keep documentation updated as part of their coding workflow.</p><h3>Key Features &amp; Considerations</h3><h3>11. VuePress</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KsVqehMTJ69EV0aF" /></figure><p>VuePress is a static site generator powered by Vue.js, designed to create streamlined, high-performance documentation sites. It stands out by rendering content as a Single-Page Application (SPA), which provides a fast and fluid user experience.</p><p>Authors can write content in Markdown and seamlessly embed interactive Vue components directly within their documentation. This makes it a powerful choice for projects within the Vue ecosystem.</p><p>The core appeal of VuePress lies in its “Markdown-centric” approach. Each Markdown file is compiled into pre-rendered static HTML, ensuring excellent load times and SEO performance, while the client-side app takes over for subsequent navigation.</p><h3>Key Features &amp; Considerations</h3><h3>12. VitePress</h3><p>VitePress is a static site generator designed for building fast, content-centric websites, particularly technical documentation. Built by the Vue.js team, it leverages Vite for an extremely fast development server with near-instant Hot Module Replacement (HMR).</p><p>This makes the authoring experience incredibly responsive. It combines the power of Markdown for content with the ability to embed interactive Vue components, creating a rich user experience.</p><p>Its core philosophy is “Markdown with superpowers,” focusing on a streamlined developer workflow. Unlike more complex frameworks, VitePress provides an opinionated yet customizable default theme that includes essential features like a responsive layout, sidebars, and built-in site search.</p><h3>Key Features &amp; Considerations</h3><h3>Open Source Documentation Tools Comparison</h3><p>Tool Core Features / Highlights User Experience / Quality ★ Value Proposition 💰 Target Audience 👥 Unique Selling Points ✨</p><h3>Automate the Toil: Keeping Your Docs in Sync</h3><p>Navigating the landscape of <strong>open source documentation tools</strong> reveals a powerful truth: the community has built an incredible array of solutions to help us create, structure, and publish high-quality documentation.</p><p>From static site generators like Docusaurus that turn Markdown into beautiful sites, to specialized tools like Doxygen for API reference generation, there’s a tool for nearly every project’s needs.</p><p>The common thread among all these powerful tools is that they provide the <em>framework</em> for great documentation. However, they don’t solve the most persistent challenge in software development: <strong>documentation drift</strong>. Your code is dynamic, constantly evolving. Your documentation must keep pace, or it quickly becomes a source of confusion rather than clarity.</p><h3>Choosing Your Path</h3><p>The real measure of success isn’t just choosing a tool, but implementing a sustainable workflow around it. As you decide which of these <strong>open source documentation tools</strong> fits your stack, consider the entire lifecycle of your docs.</p><p>Ask yourself:</p><ul><li><strong>What is our team’s maintenance capacity?</strong> If your team is lean, a tool that demands constant manual updates will quickly lead to neglected docs.</li><li><strong>How complex is our codebase?</strong> For projects with intricate APIs or frequent updates, the risk of documentation drift is significantly higher.</li><li><strong>Where does documentation fit in our development cycle?</strong> Integrating documentation updates directly into your <strong>CI/CD</strong> pipeline is the key to consistency.</li></ul><p>This is where the concept of <strong>continuous documentation</strong> becomes critical. The goal is to make documentation updates an automated, predictable part of your development process, just like running tests or deploying builds.</p><p>This is why we built DeepDocs. It automates this process by monitoring code changes and proactively updating the corresponding documentation. This shift ensures your team and users always have access to accurate, trustworthy information, directly in sync with the code it describes.</p><p>The tools we’ve covered give you a fantastic foundation. But to eliminate documentation drift for good, you need to automate the updates. <strong>DeepDocs</strong> is a GitHub-native AI app that provides this missing link, ensuring your docs and code always stay together. <a href="https://deepdocs.dev/">Try DeepDocs</a> and see how it automatically keeps your documentation in sync with every commit.</p><p><em>Originally published at </em><a href="https://deepdocs.dev/open-source-documentation-tools/"><em>https://deepdocs.dev</em></a><em> on October 4, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64ed480fe3de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Push Back Against Unreasonable Management Expectations in the AI-Era]]></title>
            <link>https://medium.com/@nilakashdas/how-to-push-back-against-unreasonable-management-expectations-in-ai-era-f4e102efe204?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e102efe204</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 21:16:29 GMT</pubDate>
            <atom:updated>2025-08-21T05:56:05.061Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, during a sprint planning I had to fend off a nasty argument from our product manager.</p><p>She expected us to ship a ridiculously complex feature within that sprint.</p><p>Her main argument: “ <em>Why the hell not when you have Copilot?</em> “ 🤦</p><p>While better sense prevailed at the end, I worry about what may be happening with developers in other companies. There is a growing sentiment in leadership teams across board that developers can now metamorphosize into 10x developers when equipped with the unimaginable powers that is AI.</p><p>That developers can do <em>more</em> with <em>less</em>. Just look at the layoffs that have been <a href="https://techcrunch.com/2025/08/15/tech-layoffs-2025-list/">unleashed</a> by management teams due to AI adoption. Over 80k tech workers have been already been laid off in the US in 2025.</p><p>Is this for real? How can I magically become a 10x developer when I am spending better half of my day fixing what AI vomited.</p><p>It doesn’t stop there. Management now wants to monitor my AI usage. Yes, “ <em>AI slackers, beware</em>”. Companies are planning to <a href="https://www.businessinsider.com/microsoft-internal-memo-using-ai-no-longer-optional-github-copilot-2025-6">track</a> how often employees use tools like ChatGPT, and those who don’t hop aboard the AI train risk a poor review or even a pink slip</p><p>Meanwhile, the pressure to grind is reaching absurd levels. The tech industry always had a hustle culture, but AI startups have cranked it to 11. They are <a href="https://blog.pragmaticengineer.com/new-trend-extreme-hours-at-ai-startups/#:~:text=%E2%80%9C996%E2%80%9D%20stands%20for%20%E2%80%9Cfrom%209am,other%20health%20issues%2C%20longer%20term">resurrecting</a> the banned Chinese 996 schedule (9 am — 9 pm x 6 days a week) with many CEOs openly boasting they only hire people with no life.</p><p>I love ambitious goals as much as the next engineer, but I also love not becoming a zombie by age 30.</p><p>And finally, there is the new type of senior colleague I have to deal with: vibe coders with no coding knowledge. Recently, a non-technical manager wanted us to throw out our carefully planned (but WIP) PoC and just “vibe code” a new one, because that was 10x faster.</p><p>I tried to explain that we <em>already</em> use Copilot, and that “vibing” won’t give a 10x boost. Unfortunately, he didn’t buy in. I can already see the matrix mess of unmaintainable spaghetti code we’ll end up with, likely forcing us to rewrite everything later.</p><p>So here we are: expected to deliver <em>more</em> features in <em>less</em> time, using AI tools under watchful eyes, picking up the slack from laid-off colleagues, maybe vibe-coding myself into technical debt (read <em>death</em>) — all the while being expected to kiss our founder’s ass at 2 am for 0.001%.</p><p>How do we push back against these unreasonable demands (without getting ourselves fired)? Below I’ll share five strategies I am using to survive and sanely push back against the AI-age nonsense.</p><h3>1. Bust the “AI = 10x” Myth with Facts</h3><p>If your manager thinks AI turns developers into 10x superhumans, bring them back to Earth gently with data. Point out that even AI-forward companies are seeing only modest gains. Google’s own measurements found about a <a href="https://www.businessinsider.com/ai-google-engineers-coding-productive-sundar-pichai-alphabet-2025-6">10% productivity boost</a> from AI coding tools.</p><p>Moreover, remind them that AI can introduce new overhead: roughly two-thirds of developers say they <a href="https://stackoverflow.blog/2025/08/07/a-new-worst-coder-has-entered-the-chat-vibe-coding-without-code-knowledge/">lose time</a> fixing AI’s almost-right code. Share these facts in a friendly &amp; polite way. The goal is to reset expectations: AI is a tool, not a silver bullet. Your productivity isn’t going to magically skyrocket overnight, and planning as if it will is a recipe for disappointment.</p><h3>2. Demand Quality over Speed</h3><p>When pressed to “just use AI to ship faster”, stand your ground on engineering principles. Yes, AI can help you code faster in many cases, but speed means nothing if the product falls apart. Feel free to cite a cautionary tale or two like this one <a href="https://stackoverflow.blog/2025/08/07/a-new-worst-coder-has-entered-the-chat-vibe-coding-without-code-knowledge/">here</a>, <a href="https://www.theregister.com/2025/07/21/replit_saastr_vibe_coding_incident/">here</a> and <a href="https://content.techgig.com/technology/developer-fires-entire-team-for-ai-now-ends-up-searching-for-engineers-on-linkedin/articleshow/116659064.cms">here</a>.</p><p>Explain that rushing out features with AI, without proper review or maintainable structure, will incur massive technical debt. If your boss is non-technical, use analogies: shipping software without quality control is like building a house with your sleeping mattress as a foundation.</p><p>Propose a compromise: you’ll happily leverage AI to boost efficiency (after all, you’re <em>not</em> anti-AI), but you need time for testing and refactoring the AI-generated code. Emphasize that code quality and security are non-negotiable. Push back against a “ship now, fix later” mentality by educating management that later fixes could cost more time than doing it right the first time.</p><h3>3. Set Boundaries on Extreme Work Hours</h3><p>If the atmosphere in your office is starting to feel like an AI startup horror story — bosses extolling 80-hour weeks and praising people who <em>“literally live where we work”</em> it’s time to push back for your own and for your family’s sake.</p><p>Have an honest conversation about burnout and diminishing returns. Excessive hours lead to burnout and actually <em>slow down</em> the pace of work. People get sick more often, productivity drops, and employees eventually quit for <a href="https://blog.pragmaticengineer.com/new-trend-extreme-hours-at-ai-startups/#:~:text=In%20many%20countries%2C%20regulations%20mandating,working%20hours%20soon%20becomes%20visible">saner pastures</a>. Remind them that countries with saner work cultures outlaw this for good reason.</p><p>You don’t have to make it a confrontation; frame it as looking out for the team’s long-term output. “I can grind this week, sure, but if we do this every week, we’ll burn out and <em>slow down</em>. Let’s find a sustainable pace.”</p><p>By setting these boundaries and backing them with evidence, you’re not being lazy, you’re being strategic.</p><h3>4. Push Back on AI Surveillance — Focus on Outcomes</h3><p>Some companies have started obsessing about AI usage as a KPI for productivity. The flaw is obvious: <em>quantity of prompts doesn’t equal quality of work.</em></p><p>If your company is monitoring AI usage, steer the conversation back to outcomes. Make it clear that what matters is working, maintainable software delivered on time, not how many times you asked a chatbot for help.</p><p>Now I am unsure if an individual contributor or an engineering manager has enough sway to influence company-wide policies, but please make your voice heard at every town halls. You need to redirect the conversation from <em>inputs</em> (how often you use AI) to <em>outputs</em> (features, stability, quality).</p><h3>5. Negotiate Goals and Keep Communication Open</h3><p>Pushing back doesn’t mean being combative. Often it’s about <em>proactive communication</em>. If half your team was laid off and suddenly you’re being handed unrealistic project deadlines, don’t silently shoulder it until you crack. Schedule a talk with your manager to recalibrate what’s feasible.</p><p>For example, “With two of our four engineers gone, delivering Feature X by next month is risky. Maybe we can prioritize the most critical parts.” Tie your points to business interests: delivering a slightly smaller scope <em>well</em> is better than delivering a buggy larger scope that blows up.</p><p>When you use AI and it saves time, make sure to <em>visibly reinvest</em> that time into polishing the product — then tell your boss, “I used AI to speed up task Y, which let me add unit extra tests.” This shows you’re embracing the tech <em>and</em> being responsible, while also coming off as a productive employee.</p><p>Also, don’t be afraid to call out “AI-created” bugs early. If a junior developer mindlessly pushed a AI-generated snippet with a security bug that took a day to fix, let the leadership team know about such <em>incidents</em>. It’s all about setting realistic expectations in front of management.</p><p>At the end of the day, AI can make our jobs easier, but it doesn’t erase the need for realistic timelines, healthy work hours, and solid engineering practices.</p><h3>About DeepDocs</h3><p><a href="https://deepdocs.dev/">DeepDocs</a> is a GitHub app that helps teams automate the mundane task of keeping docs, like READMEs, API references, SDK guides, tutorials etc. up-to-date with your changing codebase. It is completely free to try.</p><p><em>Originally published at </em><a href="https://deepdocs.dev/how-to-push-back-against-unreasonable-management-expectations-in-the-age-of-ai/"><em>https://deepdocs.dev</em></a><em> on August 20, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e102efe204" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is CI/CD in DevOps: From Theory to Practice | DeepDocs]]></title>
            <link>https://medium.com/@nilakashdas/what-is-ci-cd-in-devops-from-theory-to-practice-deepdocs-9bef2718be24?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bef2718be24</guid>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 18:24:20 GMT</pubDate>
            <atom:updated>2025-08-12T07:10:45.943Z</atom:updated>
            <content:encoded><![CDATA[<p>I still remember the “deployment days” from early in my career. The air in the office would be thick with a mixture of anticipation and dread. Our engineering team would huddle around a few computers, their faces illuminated by the glow of terminal windows.</p><p>The process was a carefully choreographed dance of manual steps. We’d stay late into the night, fueled by pizza and caffeine, hoping that this deployment wouldn’t be the one that brought the entire system crashing down.</p><p>But gone are those nerve-wracking days of manual releases. Today, almost all big tech companies ship new features several times a day, powered by relentless automation at every stage of the process. At the heart of that transformation is <strong>Continuous Integration and Continuous Delivery (CI/CD)</strong>, a set of practices and tools that automate building, testing, and deploying software so updates can be delivered quickly, safely, and reliably.</p><p>In this guide, I’ll take you through CI/CD from the ground up. By the end, you’ll understand exactly how it works, why it’s so powerful, and how to set up your own mini pipeline using tools like Jenkins and GitHub Actions. Don’t worry if some of the terms feel unfamiliar, we will build the concepts step-by-step.</p><h3>Why DevOps?</h3><p>The reason I used the term <strong>“DevOps”</strong> and not <strong>“software engineering”</strong> is because in old-school setups, developers would write code and pass it to the operations team, who handled deployment and maintenance. When teams worked in isolation, things broke often, usually due to miscommunication or lack of coordination.</p><p>DevOps, on the other hand, is a culture and set of practices that brings development and operations together. It emphasizes collaboration, shared responsibility, and <strong>automation</strong> so that code moves smoothly from development to production.</p><p>That’s where CI/CD comes in. It is a set of practices that ensures that new code is integrated, tested, and deployed rapidly, reducing errors and making releases routine instead of stressful.</p><h3>Continuous Integration (CI)</h3><p>Let’s start with the “CI” in CI/CD: Continuous Integration. In simple terms, continuous integration is the practice of merging code changes into a shared codebase frequently (at least once a day or for every small change), and each merge is automatically built and tested.</p><p>The goal is to avoid the dreaded “integration hell”, a scenario where developers work on separate branches for weeks or months and then struggle to combine their code at the end. I am sure we all have been there!</p><p>In practice, Continuous Integration means developers frequently push code to a central repository (e.g., on GitHub). Every time new code is committed, an automated process kicks off to build the application and run a suite of tests.</p><p>For example, if I commit some code, a CI server (like Jenkins or a cloud service) will automatically compile my code (if needed), run unit tests, and maybe even run static analysis or linters. The CI server catches mistakes early by verifying that the new code works well with the existing codebase (aka a “green” build). If any test fails or the code doesn’t compile, the team is alerted immediately and the issue can be fixed before proceeding.</p><p>To give you a more practical picture, imagine two developers working on different features. With CI, each developer merges their changes into main (or a shared integration branch) once it&#39;s ready. The CI pipeline immediately builds the combined code and runs tests. Developer A&#39;s change might break something that Developer B wrote but because of CI, they find out within minutes and collaborate on a fix.</p><p>Without CI, Developer A and B might only discover the conflict weeks later during a big merge, possibly resulting in a frantic last-minute bug hunt. CI prevents those last-minute fire drills by enforcing that integration is a non-event, it’s happening continuously in the background.</p><p>So what do you need to implement continuous integration? At minimum:</p><ul><li><strong>Version control</strong> — all code changes are committed to a shared repository (like Git). CI only works if you have a common codebase to integrate into.</li><li><strong>An automated build script</strong> — something that knows how to compile or package your application from scratch. For example, a Maven build for a Java app, or just running npm install and npm run build for a Node.js project.</li><li><strong>Automated tests</strong> — especially unit tests that verify each component. The more tests (unit, integration, etc.) you have, the more confidently your CI system can catch regressions.</li><li><strong>A CI server or service</strong> — a tool that detects new commits and runs the build + test script. There are many options here (Jenkins, Travis CI, CircleCI, GitLab CI, <strong>GitHub Actions</strong>, Azure Pipelines, etc.). We’ll talk about tools soon, but all serve a similar purpose. They monitor your repo and execute pipelines.</li></ul><p><strong>Benefits of CI:</strong></p><p>The benefits of implementing CI are huge. You get faster feedback on your work, so you’re never far from a deployable state. It increases the confidence in code quality because tests are run on every change. It encourages smaller, incremental changes (since you want each commit to ideally keep the build green). Teams see fewer integration bugs and spend less time debugging merge issues.</p><p>Overall, CI sets the foundation for the “continuous” mindset. Next, we’ll see how Continuous Delivery builds on that foundation.</p><h3>Continuous Deployment (CD)</h3><p>Now for the “CD” part of CI/CD. Confusingly, CD can stand for <strong>Continuous Delivery</strong> or <strong>Continuous Deployment</strong>, they are related but not identical. Let’s break down the difference in plain terms, because I was certainly fuzzy on this when I first heard of them.</p><ul><li><strong>Continuous Delivery</strong> means that every change that passes your CI pipeline (build + tests) is packaged up and <strong>ready to be deployed</strong>. In continuous delivery, deployments to production are still manual decisions, but the key is that you could deploy any good build on demand. In other words, your pipeline automatically delivers builds to a staging environment or an artifact repository, and from there, releasing to production is a simple, low-risk step. You might press a button to deploy, but you do so frequently because you trust that whatever passed all the tests in CI is releasable.</li><li><strong>Continuous Deployment</strong> takes it a step further: every change that passes all stages of your pipeline is <strong>automatically deployed to production</strong>, no human intervention. If your code passes the tests and quality checks, it goes straight to users. This is the ultimate stage of automation, deployments become routine and happen continuously whenever the pipeline is green. Only a failed test or check will prevent a deployment.</li></ul><p>Why have two concepts? In practice, not every team or industry is comfortable with continuous deployment to users on every commit. For example, if you work on medical device software or banking systems, you might need manual review or regulatory approval before releasing. Continuous delivery is a perfect fit there, you get all the benefits of automation and fast releases, but you decide when to push the “Go live” button.</p><p>On the other hand, many web companies (think Facebook, Netflix, Amazon) practice continuous deployment — their systems deploy dozens or hundreds of times per day automatically.</p><p>How does continuous delivery work in practice? It extends the CI pipeline with <strong>deployment stages</strong>. After code passes the initial build and unit tests (CI), you typically have additional steps such as deploying the application to a <strong>staging environment</strong> (a production-like test environment) and running more extensive tests (like integration tests, UI tests, performance tests) there.</p><p>If everything looks good in staging, the build artifact (say, a Docker image, or a jar/war file, etc.) is marked as “release candidate”. At that point, a continuous delivery pipeline would stop and wait. It might notify the team like “Build 202 is ready to deploy to production.” Deploying to production is then a one-click operation or a simple command since the pipeline already did that and verified it.</p><p>In a <strong>Continuous Deployment</strong> scenario, that final click is automated too. The pipeline would automatically push the new version to production servers or cloud infrastructure once it passes all tests, perhaps gradually via a rolling update or canary deployment. There’s no “Are we sure?” prompt — the assumption is the automated tests and checks give enough confidence. Of course, teams doing continuous deployment usually have robust monitoring and the ability to quickly rollback if something does slip through.</p><h3>How CI/CD Pipelines Work (Stages of the Pipeline)</h3><p>I talked about CI and CD separately, but in reality they work together in what’s called a <strong>CI/CD pipeline</strong>. This pipeline is the automated workflow that takes code from a developer’s keyboard all the way to production. Typically, there are four stages of a CI/CD pipeline: <strong>Source</strong>, <strong>Build</strong>, <strong>Test</strong> and <strong>Deploy</strong></p><p>Now, not every pipeline is the same. Depending on your project, you might have additional stages or fewer. For example, some teams include a <strong>Static Analysis</strong> stage (after build, run code analyzers or security scans). Others might have a <strong>Load Test</strong> stage to stress test the application before deploying.</p><p>But almost all CI/CD pipelines will include some form of the above four: Source, Build, Test, Deploy, in that logical order. The pipeline is typically defined in code (often via a config file or Jenkinsfile, etc.), which brings us to the tools that make all this happen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wfIdF0oRRS34vKT5" /></figure><h3>Popular CI/CD Tools</h3><p>You might be wondering, how do I actually implement these automated stages? That’s where CI/CD tools or platforms come in. Let me introduce a few popular ones and then we’ll do hands-on examples with Jenkins and GitHub Actions specifically.</p><p><strong>Jenkins:</strong> Jenkins is one of the original open-source CI servers and is still hugely popular. It’s basically an automation server that you can run on your own server or VM, and it orchestrates your pipelines. Jenkins has a concept of a <strong>Jenkins Pipeline</strong>, where you define your pipeline as code (in a file called a <strong>Jenkinsfile</strong>). Jenkins is very flexible and has thousands of plugins for integrating with different tools. I started with Jenkins early in my career; it’s a bit rough around the edges UI-wise, but it’s powerful.</p><p>A Jenkins Pipeline allows you to model a complex CI/CD process with multiple steps and conditions. Jenkins is self-hosted, which means you’re responsible for setting up the server and agents (build workers) and maintaining them. On the upside, it’s highly customizable. Jenkins can be used for just CI or full CD. For example, you could have Jenkins build your code and run tests, then also deploy your app to a server or Kubernetes cluster as the last stage. We’ll see an example Jenkins pipeline soon.</p><p><strong>GitHub Actions:</strong> This is a relatively newer entrant (from 2019), but it’s quickly become my go-to for many projects. GitHub Actions is integrated directly into GitHub if your code is on GitHub, Actions provides a cloud-based CI/CD pipeline service. The configuration is done via YAML files committed in your repo (under .github/workflows/). It can be triggered on various events (push, pull request, release, etc.) and it integrates with other GitHub features (like automatically posting status checks on pull requests). With Actions, you don&#39;t have to maintain any servers; GitHub provides runners (essentially, VMs or containers) that run your pipeline jobs. It&#39;s free for open source and comes with generous minutes for private repos too.</p><p><strong>GitLab CI/CD:</strong> If you use GitLab, it has its own built-in CI/CD similar to GitHub Actions. You define a .gitlab-ci.yml in your repo. Runners can be provided by GitLab or self-hosted. It&#39;s also very popular, especially in enterprises or places that host their own GitLab.</p><p><strong>CircleCI, Travis CI, Azure DevOps, Bamboo, TeamCity, etc.:</strong> There are many other tools out there. Travis CI was one of the early cloud CI services (especially used in open source projects on GitHub). CircleCI is another cloud platform that is quite popular for its ease of use and speed. Azure DevOps (formerly VSTS) is Microsoft’s offering, which includes Pipelines that can integrate with GitHub or other repos as well. Atlassian has Bamboo for CI/CD. Each tool has its quirks, but fundamentally they all serve the purpose of automating the pipeline.</p><p><strong>Container-focused and specialized tools:</strong> With the rise of containers and Kubernetes, there are tools like <strong>Argo CD</strong>, <strong>Flux</strong> (for Kubernetes GitOps style continuous delivery), or <strong>Spinnaker</strong> (open-sourced by Netflix) specifically for sophisticated multi-cloud deployments. These are more advanced and beyond the scope of this intro, but worth noting that CI/CD ecosystem is rich. Spinnaker, for instance, is used by Netflix and others to manage thousands of deployments, and it focuses heavily on deployment strategies (canary releases, etc.).</p><p>It doesn’t matter which tool you pick up as CI/CD concepts are tool agnostic. If you’re just getting started, you can consider learning more about Jenkins and GitHub Actions as they offer a nice contrast. One is a class self-hosted solution while the other is a managed cloud service</p><h3>Hands-On: Setting Up a CI/CD Pipeline</h3><p>Enough theory, let’s get our hands dirty with a practical example. We’ll start from scratch and set up a simple CI/CD pipeline for a hypothetical application. For illustration, I’ll show this in two environments: first with <strong>Jenkins</strong>, then with <strong>GitHub Actions</strong>.</p><p>Assume we have a simple application, say a Node.js web service, but the concepts apply to any tech stack.</p><h4>Jenkins Pipeline Example</h4><p><strong>Step 1: Set up Jenkins.</strong> If you were doing this for real, you would<a href="https://www.jenkins.io/doc/book/installing/"> install Jenkins</a> (it’s a Java application that can run on Windows, Linux, etc.) and set up an agent machine that will run your builds. In Jenkins, jobs can be configured via the web UI, but we’ll use the recommended approach: a Jenkinsfile in source control.</p><p>Let’s say our code is on GitHub; we’d install the GitHub integration in Jenkins so it knows when new commits happen. For now, let’s focus on the Jenkinsfile content.</p><p><strong>Step 2: Create a Jenkinsfile.</strong> This file describes the pipeline stages and steps. Here’s an example Jenkinsfile for our project:</p><pre>pipeline {<br>    agent any  // run on any available Jenkins agent<br>    <br>    stages {<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                // Example build steps for a Node.js project<br>                sh &#39;npm install&#39;<br>                sh &#39;npm run build&#39;    // if there&#39;s a build step (like webpack or compile)<br>            }<br>        }<br>        stage(&#39;Test&#39;) {<br>            steps {<br>                sh &#39;npm test&#39;        // run tests (assumes tests are defined in package.json)<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                // In a real scenario, deploy might push to a server or registry<br>                sh &#39;echo &quot;Deploying to staging environment...&quot;&#39;<br>            }<br>        }<br>    }<br>}</pre><p>Let me break down what’s happening in this Jenkinsfile. We define a pipeline with an agent any, meaning Jenkins can run this on any available worker node. Then we define three <strong>stages</strong>: Build, Test, Deploy. Within each stage, under steps, we specify shell commands to execute.</p><p>In the <strong>Build</strong> stage, we install dependencies and run a build (for Node apps, maybe bundling code or compiling TypeScript, etc.). In the <strong>Test</strong> stage, we run our test suite. In the <strong>Deploy</strong> stage, I’ve just put a placeholder echo command - in a real pipeline, this could be a series of steps to deploy the artifact. For example, you might log in to a cloud provider and deploy, or build and push a Docker image to a registry, or use SCP/rsync to push files to a server. Jenkins can call any script or tool, so the world is your oyster here.</p><p>This pipeline, when triggered, will produce console logs for each step. If npm test returns a non-zero exit (meaning tests failed), that stage fails and Jenkins will mark the build as failed, stopping the pipeline. If everything passes, it will reach the Deploy stage and perform whatever deployment step you specified.</p><p>One powerful thing is that a Jenkinsfile is very flexible in that you can encode complex logic (conditions, parallel stages, etc.). It also has a extensive plugin ecosystem e.g. you could also set post-actions like notifying Slack if the build fails, etc.</p><p><strong>Step 3: Run the Pipeline.</strong> With Jenkins configured to watch the repo, whenever we push a commit, the Jenkins pipeline would start. In the Jenkins UI, you’d see a visualization of the stages: Build -&gt; Test -&gt; Deploy, each either green or red depending on success.</p><p>A note about <strong>Jenkins agents</strong>. If your build needs particular environments (say building iOS apps on Linux.), you can set up specific agents. In our example, agent any suffices, but Jenkins lets you label agents and choose specific ones per stage. This way, you could run &quot;Build&quot; on a Linux node and maybe a different stage on a Windows node if needed (for cross-platform tests). It&#39;s beyond our scope, but good to know.</p><h4>GitHub Actions Workflow Example</h4><p>Next, let’s do a similar pipeline using GitHub Actions. This assumes your code is hosted on GitHub (which is very common). GitHub Actions workflows are written in YAML.</p><p><strong>Step 1: Define the workflow trigger.</strong> We’ll create a file in our repository, say .github/workflows/ci.yml. In it, we first specify when it should run. Typically for CI, we run &quot;on push&quot; to certain branches, and maybe &quot;on pull_request&quot; too. Here&#39;s a basic template:</p><pre>name: CI Pipeline<br><br>on:<br>  push:<br>    branches: [ main ]<br>  pull_request:<br>    branches: [ main ]<br><br>jobs:<br>  build-and-test:<br>    runs-on: ubuntu-latest<br><br>    steps:<br>      - uses: actions/checkout@v4<br><br>      - uses: actions/setup-node@v4<br>        with:<br>          node-version: &#39;20.x&#39;<br><br>      - name: Install dependencies<br>        run: npm ci<br><br>      - name: Build project<br>        run: npm run build --if-present<br><br>      - name: Run tests<br>        run: npm test</pre><p>The steps are similar to what we did in Jenkins, just expressed in YAML:</p><ul><li>We use the actions/checkout@v4 step to clone our repo code into the runner. This is standard - you always need to checkout the code first in a CI job.</li><li>We then use actions/setup-node@v4 to set up Node.js (version 20.x in this case) on the runner. This saves us from manually installing Node.</li><li>Then we run npm ci to install dependencies (this is similar to npm install but optimized for CI with a clean package-lock.json).</li><li>We run the build script (if applicable; --if-present just means don&#39;t error if there&#39;s no build script defined).</li><li>Finally, we run npm test to execute tests.</li></ul><p>If any of those run commands fails (exit code not 0), the job will stop and be marked failed, similar to Jenkins.</p><p><strong>Step 2: Add deployment (optional).</strong> The above workflow covers CI (build &amp; test). How about CD? We could extend this workflow or create another one. For example, we might add another job in the same file:</p><pre> deploy:<br>    needs: build-and-test<br>    runs-on: ubuntu-latest<br>    if: github.ref == &#39;refs/heads/main&#39;<br><br>    steps:<br>      - uses: actions/checkout@v4<br>      - uses: actions/setup-node@v4<br>        with:<br>          node-version: &#39;20.x&#39;<br>      - name: Deploy to Production<br>        run: |<br>          echo &quot;Deploying version $GITHUB_SHA to production...&quot;<br>          # Here you could have real deploy commands, e.g., SSH to server or use a CLI</pre><p>This deploy job would wait for the build-and-test job to complete (that&#39;s what needs: build-and-test does). The if: github.ref == &#39;refs/heads/main&#39; ensures it only runs on pushes to the main branch (so it doesn&#39;t run for pull request tests, only for actual merges to main). In this deploy job, one could imagine real deployment steps - maybe building a Docker image and pushing to a container registry, then updating a Kubernetes cluster, or uploading files to a hosting service, etc. In the example, I just echo a message with the commit SHA.</p><p><strong>Step 3: Observe the pipeline.</strong> Once you commit the workflow file, GitHub will automatically run it on the next trigger. You can go to the “Actions” tab in your GitHub repo and see the runs. It will show each step’s output (very similar to what you see in Jenkins console).</p><p>The integration with pull requests is great: if this workflow runs on a pull request, the PR will get a status check saying “CI Pipeline — passed” or “failed” and you can even make it a requirement that PRs can only be merged if CI passes (ensuring no broken code gets into main).</p><p>Comparing Jenkins and GitHub Actions in our examples: the Jenkinsfile is in Groovy-esque syntax and runs on your Jenkins server; the GitHub Actions YAML runs on GitHub’s infrastructure. But both define a <strong>Build -&gt; Test -&gt; (Deploy)</strong> sequence. Both use the concept of steps that execute shell commands or actions. In both, the pipeline triggers on code push. This highlights how the CI/CD concepts transcend the tool.</p><p>If you were following along and actually implementing, at this point you’d have a pipeline where pushing code triggers an automated build and test, and perhaps even a deploy. Congrats — you’d have gone from zero to a basic CI/CD setup!</p><p>Of course, in real projects, you will continuously refine the pipeline: add more tests, maybe incorporate code coverage metrics, add notifications (e.g., post to Slack if a build fails), etc. But the hard part — getting that initial automation in place — is done.</p><h4>Real-World CI/CD: How Big Tech Ships Software</h4><p>To really hammer home why CI/CD is worth learning, let’s look at how some big tech companies deliver software at a scale and speed that would be impossible without these practices.</p><p>I was blown away when I first learned about Amazon’s deployment stats. As far back as 2011, Amazon engineers were deploying code to production on average <a href="https://news.ycombinator.com/item?id=2971521#:~:text=awj%20%20%2024%20,25%20%5B%E2%80%93">every 11.6 seconds</a>. Yes, you read that right — they pushed updates <strong>over a thousand times a day</strong> across their infrastructure. How is that even possible? The answer: highly automated CI/CD pipelines and a culture of small, frequent changes. Amazon built internal tools (like Apollo for deployments) that let each team deploy their service independently.</p><p>When they say “a deployment” every 11.6 seconds, it doesn’t mean the entire Amazon site changes completely; it means some service, somewhere, received an update. Amazon’s architecture is very decoupled (hundreds of microservices), and each team practices DevOps — owning their code from development through to operations</p><p>This deep decoupling and automation means deployments become routine. As one Amazon engineer on that project noted, a “deployment” at Amazon means a distinct code push, which could be to one server or thousands — but they had so many services and teams deploying that in aggregate it averaged to every 11 seconds.</p><p>Closer to today, companies like Netflix have pushed the envelope on continuous delivery as well. Netflix runs all their services in the cloud and has an internal system Spinnaker, which they open-sourced to coordinate deployments. A Netflix engineering blog from 2021 mentioned they <a href="https://blog.spinnaker.io/evolving-how-netflix-builds-maintains-and-operates-their-spinnaker-distribution-33c844d0102c">orchestrate more than 20,000 deployments</a> every day using their automated platform.</p><p>There’s also this well-known research from the <a href="https://dora.dev/research/2024/dora-report/">State of DevOps reports</a> (by DORA/Accelerate) that quantified the benefits of CI/CD across many organizations. They categorize teams into performance profiles: Elite, High, Medium, Low. The elite performers, who fully embrace continuous delivery, <strong>deploy code 208 times more frequently than low performers</strong> and recover from failures much faster</p><p>To put that bluntly, teams with good CI/CD deliver daily or multiple times per day, whereas low performers might do monthly or quarterly releases. And paradoxically, those who deploy more often have fewer failures and fix issues faster, because each change is small and the feedback is quick. You might not need Amazon’s scale, but the principles apply at any scale: automation and continuous improvement yield both speed and quality.</p><h4>Best Practices for CI/CD Success</h4><p>By now, hopefully you’re excited to implement CI/CD. Before we conclude, let me share some <strong>best practices and tips</strong> that I’ve learned and that industry experts recommend for effective CI/CD.</p><ol><li><strong>Start Small and Iterate:</strong> Rome wasn’t built in a day, and neither is a perfect pipeline. Start by automating the build and a few critical tests. Then continuously improve by adding more stages or tests. It’s okay if your initial pipeline is simple. Over time, as you gain confidence, you can automate deployments, add static analysis, etc. Even the most mature CI/CD setups (like at Google or Amazon) evolved over years — and they continuously refine them<a href="https://docs.aws.amazon.com/whitepapers/latest/practicing-continuous-integration-continuous-delivery/implementing-continuous-integration-and-continuous-delivery.html#:~:text=The%20presence%20of%20a%20CI%2FCD,to%20continuously%20improve%20their%20pipelines">docs.aws.amazon.com</a>. So adopt a continuous improvement mindset for your pipeline itself.</li><li><strong>Fail Fast, Fail Clearly:</strong> Configure your pipeline to catch issues as early as possible and make the failures obvious. For example, run linters and unit tests earlier, so they fail before integration tests even start. When a stage fails, make sure the output (logs) clearly show what went wrong (e.g., which test failed). There’s nothing worse than a pipeline that fails with a cryptic error and leaves you hunting. Also, if your pipeline fails, <strong>stop the line</strong> (like in manufacturing): developers should treat a broken main build as high-priority to fix. This keeps everyone accountable to keeping the pipeline green.</li><li><strong>Use Version Control for Pipeline Config:</strong> Store your Jenkinsfile, GitHub workflow YAML, etc., in the repository alongside code. This is called <em>pipeline as code</em>. It means your pipeline definitions are versioned, can be code-reviewed, and updated along with the codebase. It also allows branching — e.g., if you’re experimenting with pipeline changes, you can do it in a branch. All modern CI tools support this, and it beats clicking around a UI which might lead to inconsistent pipeline configs.</li><li><strong>Rollback/Recovery Plan:</strong> Even with the best pipeline, bugs in production are inevitable. Plan for it. Can you rollback easily? If using containers, maybe keep the previous image around to redeploy. Or use feature flags to turn off troublesome code. The pipeline could even have a automated rollback step if a health check fails. Having this safety net will give you more confidence to deploy continuously. In DevOps, this ties into the <strong>mean time to recovery</strong> metric — a good CI/CD process should make recovering from failures quick and pain-free, often just another deployment.</li><li><strong>Keep Learning and Adapting:</strong> The tech world moves fast. New tools, best practices, and techniques for CI/CD keep emerging. For instance, there’s a growing trend of “GitOps” which applies CI/CD concepts in a declarative way for cloud infrastructure. While you don’t need to chase every shiny thing, it’s good to periodically review if your pipeline could be improved with something new. Even simply upgrading to the latest version of your CI tool can bring improvements. I like to read DevOps blogs or case studies (many companies share their CI/CD journeys) for inspiration. For example, reading how Google does nightly 4 million test runs, or how LinkedIn does blue-green deployments, etc., often gives ideas applicable to my context.</li></ol><h4>Conclusion</h4><p>We’ve come a long way in this guide, from defining CI/CD to actually sketching out pipelines and discussing real-world high-flyers. By now, you should have a solid understanding that <strong>CI/CD (Continuous Integration/Continuous Delivery/Deployment)</strong> is all about automation and frequent, reliable software releases.</p><p>To quickly recap: <strong>Continuous Integration</strong> is the practice of merging and testing code changes frequently, ensuring that the codebase stays healthy and avoiding integration nightmares. <strong>Continuous Delivery</strong> builds on that by automating the release process up to the point of deployment — so your code is always just one click away from release. <strong>Continuous Deployment</strong> is the pinnacle, automating that final step so every change that passes tests is live. Together, these practices form a pipeline that is the engine of DevOps, enabling teams to deliver value to users quickly and consistently.</p><p>I hope this complete guide has demystified CI/CD for you and given you the confidence to implement it.</p><h4>About DeepDocs</h4><p><a href="https://deepdocs.dev/">DeepDocs</a> is an AI-powered CI tool that scans and fixes your outdated docs e.g. API references, SDK guides, Examples, Tutorials etc., whenever you commit changes to your source. DeepDocs ensures your docs are never outdated with your fast changing codebase. You can try DeepDocs for free by clicking <a href="https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmarketplace%2Fdeepdocsai%2Forder%2FMLP_kgDNK8c%3Fquantity%3D1">here</a>.</p><p><em>Originally published at </em><a href="https://deepdocs.dev/cicd-in-devops-theory-to-practice/"><em>https://deepdocs.dev</em></a><em> on August 11, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bef2718be24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Step-by-Step Guide to Creating a Beautiful Documentation Site with Mintlify]]></title>
            <link>https://medium.com/@nilakashdas/a-step-by-step-guide-to-creating-a-beautiful-documentation-site-with-mintlify-eb8dc4debe70?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb8dc4debe70</guid>
            <category><![CDATA[static-site]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[mintlify]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 08:39:55 GMT</pubDate>
            <atom:updated>2025-08-26T07:06:07.954Z</atom:updated>
            <content:encoded><![CDATA[<p>Great documentation is more than just a nice-to-have it’s essential. Whether you’re building a developer-facing API or a fast-growing internal tool, your docs can make or break the user experience. Thankfully, platforms like <strong>Mintlify</strong> make it easier than ever to create, manage, and scale clean, professional documentation without needing to babysit a markdown file or build a static site generator from scratch.</p><p>In this guide, I’ll walk you through exactly how to set up your own documentation site using Mintlify, from connecting your GitHub repo to customizing your domain. Whether you’re a developer or a non-technical team member, you’ll find workflows that suit your style.</p><h3>What is Mintlify?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ght0tmlHGoic_cRy" /></figure><p>Mintlify is a modern documentation platform designed to help developers and teams create clean, interactive, and visually appealing documentation sites with minimal setup. Built with a developer-first mindset, Mintlify connects directly to your GitHub repository and automatically builds and deploys your documentation with every update.</p><p>Whether you’re building public docs for your open-source project or internal docs for your product, Mintlify offers both a powerful web editor and support for local development using Markdown/MDX. It also comes with features like:</p><ul><li>Live deployment previews</li><li>Git-based version control</li><li>Custom domain support</li><li>SEO optimization</li><li>Analytics and reader engagement tools</li></ul><p>Mintlify aims to remove the friction from the documentation process by making it seamless to write, update, and deploy docs all from your browser or code editor.</p><h3>Why Use Mintlify?</h3><p><a href="https://mintlify.com/">Mintlify</a> is an AI-powered documentation platform tailored for modern development teams. Here’s what makes it stand out:</p><ul><li><strong>Automatic Deployments:</strong> Push changes to GitHub and Mintlify takes care of the rest no manual build steps.</li><li><strong>Visual Web Editor:</strong> Non-technical users can edit docs in a browser with WYSIWYG tools.</li><li><strong>GitHub Integration:</strong> Keep your docs version-controlled and collaborate via pull requests.</li><li><strong>Custom Domains:</strong> Brand your documentation with a subdomain like docs.yoursite.com.</li><li><strong>Modern UI &amp; SEO:</strong> Your docs look great out of the box and are optimized for search engines.</li></ul><p>Whether you’re building a public knowledge base or internal technical docs, Mintlify can handle both with ease.</p><h3>Step 1: Connect Your GitHub Repository</h3><p>The first step is to connect your GitHub repository to Mintlify. This is where Mintlify will pull your documentation source files (typically in Markdown or MDX).</p><h3>Here’s how to do it:</h3><ol><li>Sign up at <a href="https://www.mintlify.com/">Mintlify</a> and log into your dashboard.</li><li>Create a new documentation project.</li><li>When prompted, install the <strong>Mintlify GitHub App</strong>.</li><li>Choose the repository where your docs live (or where you want them to live).</li><li>Mintlify will now watch that repo and auto-deploy every time you push updates.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rh7jowJ16rZi-HMs" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7os5Et3Zt2Et48F_" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yaRg48aA6xTauP4D" /></figure><h3>Step 2: Choose Your Workflow</h3><p>Mintlify supports two main workflows depending on how you like to work: the <strong>Web Editor</strong> and the <strong>Code-Based</strong> (local) workflow.</p><h3>Option 1: The Web Editor (WYSIWYG)</h3><p>Perfect for teams that want to skip local development or don’t want to write Markdown.</p><ol><li>Go to your Mintlify dashboard.</li><li>Select <strong>Editor</strong> from the sidebar.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hxOe4y00OKBJotEJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gdjxxBP6idkHWLDo" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xFUxgKIG8uz-7yue" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zl93B-5Z5otfIWNH" /></figure><h3>Publish Changes</h3><ul><li>When you’re ready, click the <strong>Publish</strong> button at the top right.</li><li>Mintlify will instantly deploy the changes to your live site at &lt;your-project&gt;.mintlify.app.</li></ul><h3>Pro Tip: Use Branches</h3><p>You can also create branches and preview changes before pushing to production. This is useful for larger teams or reviewing major content changes.</p><h3>Option 2: The Local Developer Workflow</h3><p>If you’re more comfortable using your code editor and Git, this one’s for you.</p><p>Clone your documentation repo locally.</p><p>Install Mintlify’s CLI:</p><p>Launch the dev server:</p><p>Edit your .mdx or .md files locally. When done, commit and push to GitHub.</p><p>Mintlify will detect the push, build the site, and deploy automatically.</p><p>This is ideal for developers who want tight control over formatting, components, or need to collaborate via GitHub pull requests.</p><h3>Step 3: Deploying Your Site</h3><p>Mintlify automatically deploys your documentation whenever you push updates to GitHub. You can view deployment status directly from:</p><ul><li>The GitHub commit history</li><li>Your Mintlify project dashboard</li></ul><p>Once deployed, your documentation is live on:</p><h3>Step 4: Adding a Custom Domain</h3><p>Using your Mintlify subdomain works fine, but for a production-ready feel, a custom domain like docs.myproject.com is a better choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OYnSYISOF4K-A5LL" /></figure><h3>To set this up:</h3><ol><li>In your Mintlify dashboard, go to the <strong>Domain Setup</strong> page.</li><li>Enter your desired custom domain (e.g., docs.yourcompany.com).</li><li>Follow the DNS instructions Mintlify provides to update your domain’s DNS records.</li><li>Wait for the DNS to propagate (usually under 24 hours).</li></ol><p>Once done, your documentation will be accessible under your branded domain.</p><h3>Step 5: Collaborating with Your Team</h3><p>One of Mintlify’s underrated superpowers is how seamlessly it integrates with your existing collaboration workflow. Whether you’re a two-person startup or a team of 50 developers, documentation changes often need review and Mintlify respects that process.</p><p>Here’s how teams collaborate effectively using Mintlify:</p><ul><li><strong>Branch Previews:</strong> When someone creates a new branch for docs, Mintlify automatically deploys a live preview of that branch. This means reviewers can check formatting, links, and components visually before approving the pull request.</li><li><strong>Review-First Flow:</strong> All updates to docs can go through pull requests, just like code. So your engineering team can keep the same review standards for documentation.</li><li><strong>Edit Permissions:</strong> Mintlify allows you to manage who can write or publish changes helpful for larger teams with a mix of engineers, product managers, and support staff.</li></ul><p>This GitHub-first workflow ensures your documentation doesn’t become a chaotic mess of out-of-sync edits and conflicting updates.</p><h3>Step 6: Working with Components and Interactivity</h3><p>Mintlify supports <strong>MDX</strong>, which means your documentation isn’t limited to static Markdown. You can build highly interactive documentation by embedding components like:</p><ul><li><strong>Tabs</strong> (to show different code examples per language)</li><li><strong>Callout Boxes</strong> (for tips, warnings, or notes)</li><li><strong>API Reference Blocks</strong></li><li><strong>Live Code Editors</strong> using React components</li></ul><p>This is especially useful for complex SDK documentation, onboarding flows, or internal tools that need a bit more visual clarity than plain text can offer.</p><p>Here’s a small MDX snippet to add a React component in Mintlify:</p><p>This creates a dynamic, tabbed code block that your users can toggle between all without any additional plugin or devops work.</p><h3>Step 7: Performance, SEO &amp; Analytics</h3><p>Often ignored in doc tools is performance but Mintlify nails this too. Your site is pre-rendered and blazing fast, meaning users never face a slow-loading doc page.</p><p>Key SEO &amp; analytics features:</p><ul><li><strong>Metadata support</strong> for all pages (you can configure page titles, descriptions, etc.).</li><li><strong>Built-in analytics</strong> to understand what users search for, what they miss, and which pages get the most engagement.</li><li><strong>Search index optimizations</strong> to make your docs more Google-friendly.</li></ul><p>The analytics alone can reveal massive blind spots in your documentation like features users search for but don’t find, helping you prioritize future updates.</p><h3>Step 8: Migrating from Other Platforms</h3><p>Already using another docs tool like Docusaurus, ReadMe, or GitBook? Migration to Mintlify is relatively painless.</p><p>Here are a few quick notes:</p><ul><li><strong>Docusaurus:</strong> Mintlify supports MDX, so you can copy your content directly though custom plugins/components might need slight rewrites.</li><li><strong>GitBook:</strong> Use GitBook’s export feature and convert to Markdown, then sync to your GitHub repo.</li><li><strong>ReadMe:</strong> You’ll need to move your files into a new Git repo, but Markdown content generally transfers cleanly.</li></ul><p>Mintlify’s support team can also guide you if you’re migrating a larger, more complex setup. Most projects migrate over a weekend with minimal downtime.</p><h3>Quick Fixes for Common Issues</h3><p>Even though Mintlify is super intuitive, here are a few things to watch for:</p><ul><li><strong>Overusing Components:</strong> While tabs and callouts are useful, too many can overwhelm users. Use sparingly.</li><li><strong>Neglecting Mobile Users:</strong> Test your docs on phones and tablets especially custom components.</li><li><strong>Inconsistent File Naming:</strong> Keep a predictable structure (e.g., getting-started.mdx, api-reference.mdx) so new contributors don&#39;t get lost.</li><li><strong>Forgetting Custom 404 Pages:</strong> A polished 404 page goes a long way in user experience.</li></ul><h3>Final Touches and Best Practices</h3><p>Once you’re live, you can take your Mintlify documentation to the next level by:</p><ul><li>Customizing the theme via docs.json</li><li>Adding components like tabs, callouts, and API playgrounds</li><li>Tracking engagement with built-in analytics</li><li>Enabling full-text search and AI-powered indexing</li></ul><p>You can also extend MDX to include React components, which is great for embedding dynamic UI elements directly into your docs.</p><p>While it is one thing to have a beautiful documentation site, it is absolutely critical to keep your docs updated with your changing codebase. I know it is hard keep docs updated from personal experience, it is just a boring and mundane task, but cannot be avoided.</p><p>That is where a tool like <a href="https://deepdocs.dev/">DeepDocs</a> comes in. It is a GitHub native AI agent that helps engineering teams automate the mundane task of keeping docs, like READMEs, API references, SDK guides, tutorials etc. up-to-date with your changing codebase. The best part, it is completely free to try.</p><h3>Final Thoughts</h3><p>At the end of the day, great documentation is not just about how it looks it’s about how fast users can find answers. With Mintlify, you strike the perfect balance between performance, aesthetics, and ease of contribution.</p><p>From startups to open-source maintainers, Mintlify offers a no-fuss way to ship beautiful, searchable, and versioned documentation without babysitting static site generators or markdown jungle.</p><p>Pair it with tools like Deepdocs, and you’ve got a bulletproof docs system that scales as your product grows.</p><h3>Ready to Try It?</h3><p>You can get started today for free at <a href="https://www.mintlify.com/">mintlify.com</a>. Set up a repo, make a few changes, and enjoy a fully hosted, deploy-on-push documentation site in minutes.</p><p><em>Originally published at </em><a href="https://deepdocs.dev/create-documentation-site-with-mintlify/"><em>https://deepdocs.dev</em></a><em> on August 6, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb8dc4debe70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI vs Technical Debt: Is This A Race to the Bottom? | DeepDocs]]></title>
            <link>https://medium.com/@nilakashdas/ai-vs-technical-debt-is-this-a-race-to-the-bottom-deepdocs-33e55a20d70e?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e55a20d70e</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[technical-debt]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 15:57:09 GMT</pubDate>
            <atom:updated>2025-08-12T07:14:08.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qoZtbhrKtK4SiC3e.png" /></figure><p>We are witnessing a paradox unfold in software development.</p><p>Thanks to AI coding assistants, it’s never been easier to pump out code, yet it’s also never been easier to accumulate technical debt at an alarming rate. In my 15+ years of coding, I’ve rarely seen the industry create so much questionable code so quickly.</p><p>I’m not alone in this sentiment: API evangelist Kin Lane <a href="https://leaddev.com/software-quality/how-ai-generated-code-accelerates-technical-debt">remarked</a>, <strong>“</strong>I don’t think I have ever seen so much technical debt being created in such a short period of time during my 35-year career in technology, <strong>“</strong> referring to the recent proliferation of AI-generated code.</p><p>This raises a pressing question: Are AI-driven coding practices sending us on a <strong>race to the bottom</strong> in code quality? Is <strong>crappy software</strong> becoming the new norm?</p><h3>The Lure of AI Coding and Its Hidden Costs</h3><p>AI coding tools like GitHub Copilot Cursor, and others offer the irresistible lure of speed. Need a function or a snippet? Just hit the tab key or ask your AI and boom — instant code. This “vibe coding” approach, where you let an AI write code based on a prompt, feels like magic.</p><p>I’ve personally used these tools to generate boilerplate code in seconds. It sounds great, who wouldn’t want to offload grunt work to an AI? — but getting an AI to do your development for you doesn’t always pay off. The convenience comes with hidden costs that aren’t immediately obvious during the adrenaline rush of quick output.</p><p>One major issue is <strong>code duplication and bloat</strong>. Coding assistants often don’t adhere to the “Don’t Repeat Yourself” (DRY) principle that good developers live by. In fact, engineering reports are finding that code reuse is <em>dying</em> in the age of AI.</p><p><a href="https://leaddev.com/software-quality/how-ai-generated-code-accelerates-technical-debt#:~:text=During%202024%2C%20GitClear%20tracked%20an,higher%20than%20two%20years%20ago">GitClear’s 2024 study</a> of millions of lines of code found an <strong>8-fold increase in large duplicate code blocks</strong>, with copy-pasted lines skyrocketing to ten times the level seen just two years prior. In 2024 nearly half of all code changes were brand new lines, while <em>moved</em> or refactored lines (a sign of reuse) dwindled below copy-pastes.</p><p>This suggests developers (or the AIs) are churning out fresh code rather than integrating with existing modules. Every redundant chunk is <strong>new debt</strong> — more code to maintain, more potential for bugs. As Bill Harding (CEO of GitClear) <a href="https://leaddev.com/software-quality/how-ai-generated-code-accelerates-technical-debt#:~:text=During%202024%2C%20GitClear%20tracked%20an,higher%20than%20two%20years%20ago">notes</a>, refactored and moved code are hallmarks of healthy reuse, and their decline marks a slide toward “redundant systems with less consolidation”.</p><p>In plain terms: AI is making it trivially easy to write new code, so we’re doing less cleanup of the old. The short-term win (“hey, it works now!”) seeds long-term pain when you have ten versions of the same logic floating around.</p><p>Another hidden cost is <strong>false confidence in code quality</strong>. AI doesn’t truly “understand” your problem, it predicts likely code based on its training data. That means it might produce syntactically correct but logically flawed code.</p><p>A recent <a href="https://www.techrepublic.com/article/ai-generated-code-outages/#:~:text=The%20%E2%80%98laissez">study</a> from Stanford showed that developers who used AI assistants <strong>“wrote significantly less secure code”</strong> yet were <strong>“more likely to believe they wrote secure code.”</strong> In other words, using the AI made them <em>sloppier</em> and <em>more complacent</em>.</p><p>I’ve seen this first-hand in code reviews: a teammate accepts a Copilot suggestion that subtly misuses an API, and because it came from an AI (with an authoritative tone in the comments), the dev assumes it must be right. This <em>laissez-faire</em> effect — letting your guard down because “the AI probably knows what it’s doing” — can inject bugs that go unnoticed until they blow up in production.</p><p>Critically, AI-generated code can carry <strong>security liabilities</strong>. One alarming <a href="https://medium.com/@lotussavy/the-double-edged-sword-of-ai-in-code-generation-exploring-github-copilots-vulnerabilities-21904fc273a6#:~:text=1">study</a> analyzed code suggested by GitHub Copilot across common security scenarios — the result: <strong>roughly 40% of Copilot’s suggestions had vulnerabilities</strong>. These included classic mistakes like buffer overflows and SQL injection holes.</p><p>Why so high? The AI was trained on tons of public code — including insecure code — so it can regurgitate bad practices (like using outdated encryption or ignoring input sanitization) just as easily as good ones. If you blindly accept such output, you’re effectively inviting known bugs into your codebase.</p><p>It doesn’t help that AI is notoriously bad at certain logical tasks (for example, it struggles with complex math or subtle state logic, so it might write code that <em>looks</em> legit but is wrong in edge cases.</p><p>I often say that Copilot is like a highly confident junior developer: it’ll write something that <em>compiles</em>, but it might have the exact bug your senior engineer would avoid. Without careful review, those bugs slip through.</p><p>The net effect of these hidden issues is <strong>mounting technical debt</strong>. Every duplicated block, every insecure snippet, every quick-fix the AI patches over, adds to the “interest” we’ll pay later in maintenance.</p><p>The State of Software Delivery 2025 report found that despite perceived productivity gains, the <strong>majority of developers actually spend <em>more</em> time debugging AI-generated code and fixing the resulting security issues</strong>. Google’s DORA research similarly observed a trade-off: heavier AI use made some tasks faster (code reviews, documentation) but <strong>led to a measurable 7.2% decrease in software delivery stability</strong>.</p><h3>When AI Goes Wild: Cautionary Tales</h3><p>There have been some disastrous real-world mishaps stemming from AI-generated. One crazy <a href="https://deepdocs.dev/when-replits-ai-agent-went-rogue/">example</a> is what happened to Jason Lemkin, a tech CEO, when he tried “vibe coding” using a Replit AI agent. Over 9 days, this AI agent was aiding him in building a database application. until it<strong> suddenly deleted the entire production database</strong> during what was supposed to be a code freeze.</p><p>The AI coolly told Lemkin that it had <strong>“destroyed months of [his] work in seconds”</strong>. In fact, it admitted somewhat remorsefully: <strong>“Yes. I deleted the entire database without permission during an active code and action freeze.”</strong></p><p>Let that sink in: an AI agent, given a bit of autonomy, panicked and ran a destructive command it was explicitly told not to run, nuking months of live data. The fallout was as bad as you’d imagine — the platform’s operations were completely down, all user data permanently lost, and the AI itself assessed the situation as a <strong>“business-critical system failure”</strong>.</p><p>Big companies aren’t immune either. According to Tariq Shaukat, CEO of Sonar, they’ve <a href="https://www.techrepublic.com/article/ai-generated-code-outages/#:~:text=Businesses%20using%20artificial%20intelligence%20to,the%20code%20blame%20the%20AI">heard</a> first-hand stories of consistent outages at even major financial institutions caused by AI-written code, where the developers literally blame the AI for the downtime.</p><p>It sounds almost comical — “the bot did it, not me!” — but it’s happening. Shaukat told TechRepublic that companies are deploying AI-generated code into production and seeing outages or security incidents <strong>“due to insufficient reviews”</strong>.</p><p>In many cases, devs aren’t reviewing AI-written code as rigorously as their own, and a common refrain when something breaks is, <strong>“It is not my code,”</strong> implying they feel less responsible since the AI wrote it. That attitude itself is dangerous, if nobody feels accountable for the AI’s code, it slips through code reviews or testing more easily, leading to more bad deployments.</p><p>The open-source world is also grappling with an influx of AI-generated “contributions” that maintainers describe as low-quality or even spam. Imagine running an open-source project and suddenly getting dozens of auto-generated pull requests that technically add a feature or fix but are riddled with style issues or bugs.</p><p>Maintainers have been so inundated that many are now <a href="https://socket.dev/blog/oss-maintainers-demand-ability-to-block-copilot-generated-issues-and-prs">campaigning</a> for ways to <strong>block AI-generated PRs and bug reports</strong>. One developer, Andi McClure, sparked a discussion on GitHub’s forums saying these AI submissions are “a waste of my time and a violation of my projects’ code of conduct”, and that filtering them out is an <strong>additional burden</strong> on maintainers.</p><p>Others chimed in that this AI slop is leading to maintainer burnout. For example, the Curl project had to deal with a fake <a href="https://thenewstack.io/curl-fights-a-flood-of-ai-generated-bug-reports-from-hackerone/">AI-generated vulnerability report</a> that wasted their time; they responded by requiring contributors to <strong>disclose AI use</strong> in submissions and warned that <strong>AI-hallucinated “issues” were plaguing FOSS projects and burning out maintainers</strong>.</p><p>If every open-source repo gets flooded with unchecked AI code, the whole ecosystem’s quality could degrade — a supply chain nightmare where vulnerable or crappy code propagates widely. One security researcher noted that AI-generated code often even includes <a href="https://arstechnica.com/security/2025/04/ai-generated-code-could-be-a-disaster-for-the-software-supply-chain-heres-why/">made-up dependencies</a> that don’t exist.</p><p>Think about that — an AI might suggest importing a library that isn’t real; if a dev blindly tries to use it, and an attacker later publishes a malicious package by that name, you’ve got a serious supply-chain vulnerability. It’s a far-fetched scenario, but not impossible in this “copy-paste first, ask questions later” climate.</p><h3>How AI-Accelerated Debt Piles Up</h3><p>Why does AI-generated code so often lead to technical debt? Based on what I’ve seen in my team and broader industry chatter, a few reasons stand out:</p><ul><li><strong>Speed over understanding.</strong> AI lets you churn out code faster than you can think. That means it’s easy to bypass the deep understanding stage. In the past, a developer might design a solution thoughtfully; now they might just prompt the AI for a quick fix. The result can be a patchwork solution that <em>works today</em> but isn’t built on a sound architecture.</li><li><strong>Lack of context or “big picture”.</strong> AI models operate with a limited context window. They generate code based on the snippet you’re working on, unaware of the broader system architecture unless you explicitly feed it. That means the AI might introduce duplications or inconsistencies simply because it doesn’t see that you already have a module for X or a helper for Y.</li><li><strong>Diminished accountability (“not my code” syndrome).</strong> This one is psychological but very real. When developers treat AI output as if it’s someone else’s code, they may not feel the same responsibility for its quality. I’ve heard things like, “Well, the test is failing but that function was generated by Copilot, so maybe the AI screwed up.” In the past, if <em>you</em> wrote the function, you’d be more inclined to dig in and fix it. These days, I see a general lack of interest among devs in “copy-editing” AI codeon top of normal quality control.</li><li><strong>Inadequate review and testing processes.</strong> Many organizations haven’t updated their processes to account for AI. Code review might catch human mistakes, but code that looks fine might sail through if the reviewer assumes the AI did it correctly. Also, AI can generate code faster than we can write tests. I’ve seen situations where tests lag behind because the team cranked out features with AI and figured “we’ll add tests later.”</li><li><strong>Wrong incentives and metrics.</strong> If a team measures productivity by “lines of code written” or number of commits, Worse, some teams are going to <a href="https://www.activtrak.com/blog/productivity-benchmarks/">check</a> productivity gain based on number of AI requests made. Focusing on lines/commits can cause AI-driven decay to proliferate. More code ≠ better code; in fact, it’s often the opposite when it comes to long-term maintenance. We need to realign incentives to reward clean, stable code, not just rapid code output.</li><li><strong>Over-reliance and skill atrophy.</strong> I worry that over-relying on AI can erode developers’ skills or vigilance. If a less experienced dev constantly uses AI for solutions, they might not develop the same debugging skills or architectural sense. They might trust the AI even when it’s subtly wrong. Over time, teams could lose the habits of critical code review and thoughtful design, because “the AI will just generate something.”</li></ul><h3>Best Practices to Tackle AI-Generated Technical Debt</h3><p>AI coding tools are here to stay . They can boost productivity and even help with quality if used right. The goal is to prevent crappy software from becoming the norm.</p><p>We can enjoy the benefits of AI without racing to the bottom in quality by being proactive and smart about how we integrate AI into our workflows. Here are some practices I recommend to individuals and engineering leaders:</p><p><strong>1. Establish a culture of code ownership and accountability.</strong></p><p>Whether a human or an AI wrote the code, if it’s in your codebase, your team owns it. No excuses. I tell my team that using AI doesn’t get you off the hook — you must understand and stand by every line you commit. If an AI suggestion is confusing, don’t just shrug and merge it; dig in or rewrite it. This mindset shift is crucial.</p><p>Leaders should reinforce that <em>“not my code”</em> is not an acceptable attitude. Perhaps even implement guidelines: for example, if a pull request heavily uses AI-generated code, the developer could mention it in the description so reviewers know to look extra carefully (similar to how some open-source projects now ask contributors to disclose AI assistance). The key is making sure the team feels responsible for quality, no matter how the code was produced.</p><p><strong>2. Slow down and review AI-generated code with a fine-toothed comb.</strong></p><p>Treat AI like a junior developer on the team — talented, fast, cocky, but prone to mistakes and in need of supervision. That means code reviews are not optional for AI-written code (really, for any code!).</p><p>In code reviews, I’ve started specifically asking, “Did an AI help write this? If so, let’s double-check for common AI gotchas.” Reviewers should be on the lookout for things like duplicate code blocks, inconsistent styles, missing edge-case handling, or use of outdated library functions — all things I’ve caught in AI-written code.</p><p>One practical tip: ask the author to run the AI’s output through a linter or static analyzer before review. Often, tools like ESLint or Pylint will catch obvious issues in AI code. But ultimately, human-in-the-loop is non-negotiable.</p><p><strong>3. Strengthen your testing and QA pipelines</strong></p><p>AI can write code faster than humans, so counterbalance that by ramping up testing. Require that any AI-generated function have corresponding unit tests. You can even let the AI draft the tests — that’s a positive use of AI — but then review and run those tests diligently.</p><p>Consider adopting property-based tests or fuzz tests for critical sections, since AI might not anticipate weird inputs. Integrate static code analysis (tools like SonarQube, ESLint, or Snyk Code) into your CI pipeline to automatically flag common bugs or security smells in AI-written code.</p><p><strong>4. Mandate “AI+Human pair programming”</strong></p><p>The horror story from Replit drives home that we shouldn’t yet trust AI agents with full autonomous control over our codebases or infrastructure. If you are using an AI that can directly commit code or make changes (some tools now offer this), <strong>always keep a human in the loop for approvals</strong>.</p><p>GitHub’s new coding assistant features that auto-generate PRs might be convenient, but many open-source maintainers are sensibly pushing back, calling them <em>“maintainer-hostile”</em> because of the quality concerns. My take: use these tools to draft the work, but <strong>have a human developer take responsibility for the final merge</strong>.</p><p><strong>5. Invest in training and guidelines for AI usage.</strong></p><p>Help your team learn how to use AI effectively and safely. One guideline we use is: <em>Always read and understand the code an AI produces.</em> If something is unclear, ask the AI to explain it or simply don’t use that piece.</p><p>I also encourage devs to cross-check critical code via multiple sources: e.g. if Copilot writes an encryption routine, maybe review official docs or ask Copilot why it chose that approach. Some companies have even started coding standards for AI e.g. requiring attribution if code is AI-generated, or forbidding AI use in safety-critical modules.</p><p>Figure out what makes sense for your context. The goal is to incorporate AI in a disciplined way, rather than a free-for-all. By setting expectations (like “we lint and test all AI contributions rigorously” or “we don’t use AI for security-sensitive code without expert review”), you prevent a lot of headaches up front.</p><p><strong>6. Continuously monitor code quality metrics.</strong></p><p>As a leader, it’s wise to keep an eye on indicators of technical debt, especially after introducing AI into your dev process. Metrics like code churn, duplicate code percentage, complexity, and defect rates can tell you if things are going off the rails.</p><p>If you see spikes in churn or bug fixes, investigate — it might trace back to rushed AI-generated code. Similarly, keep tabs on your bug tracker and post-incident reviews: are you seeing patterns like “root cause was a subtle error in AI-generated code” or “we had to refactor a lot of duplicate code in this feature built with AI”? If yes, it’s a sign to tighten the guidelines and maybe slow down.</p><p>On the flip side, if you use AI wisely, you might see positive metrics — maybe fewer trivial bugs (because AI caught some), or faster documentation writing. Measure what the AI is doing for you, good or bad, so you can adjust accordingly.</p><p><strong>7. Leverage AI for maintenance</strong></p><p>One promising use of AI is actually to help <em>reduce</em> debt: for example, using AI tools to refactor or improve existing code. Some AI assistants specialize in suggesting improvements — e.g. identifying an unused variable, or simplifying a complex method. AI can also assist in writing updating documentation or generating tests for old code.</p><p><strong>8. Push back on unrealistic speed expectations.</strong></p><p>This one is more for engineering managers and product leaders. Just because AI can generate code quickly doesn’t mean we should crank up the sprint velocity to inhuman levels. There’s a real temptation for businesses to say, “Hey, our devs have Copilot now, we can do 10x the work!” — but as we’ve seen, speed without diligence leads to lower stability and more firefighting.</p><p>Make sure stakeholders understand that AI is not a magic wand; you still need solid engineering practices. In fact, factor in <em>time to review and rework</em> AI output. If a feature used to take 5 days by hand, maybe with AI you code it in 3 days, but you should <em>use</em> the extra 2 days to test thoroughly and refactor, rather than immediately starting the next project.</p><h3>Conclusion</h3><p>AI in software engineering is a double-edged sword. On one edge, it promises efficiency, creativity, and the automation of drudgery. On the other edge, it can slash our codebases into a tangle of debt and mistakes if we wield it carelessly.</p><p>Right now, we’re seeing a bit of a gold rush mentality with AI, and it’s leading to that potential “race to the bottom” where everyone is pushing out features with AI and worrying about the mess later. But we can change that trajectory.</p><p>The key takeaway is that <strong>AI is a tool, not a replacement for engineering discipline.</strong> It’s here to stay, and frankly, I’m glad — I don’t miss writing yet another CRUD endpoint by hand. But using AI doesn’t absolve us of following best practices. We as developers and tech leaders must hold the line on code quality.</p><p>That means continuing to do the unglamorous work: code reviews, refactoring, testing, educating juniors (and ourselves) on secure and clean coding. It means acknowledging when AI output is subpar and not letting it slide. It means resisting management pressure to cut corners just because an AI wrote the code. If we do these things, AI can actually be a net positive — helping catch bugs, enforce patterns, and handle mundane tasks — rather than a debt multiplier.</p><p>I remain optimistic. In my team’s experience, after an initial spike of “AI slop” (and a few stern retrospectives where we had to clean up messy AI-generated sections), we adjusted and found a better equilibrium. We still use AI daily, but now we pair it with strong engineering oversight.</p><p>The result: we still get products out faster than before, but without a trail of chaos. We’ve in fact started to see AI as a partner in reducing technical debt — for instance, by quickly suggesting where code could be consolidated or by using AI to auto-update our docs</p><p>The broader industry will likely follow a similar learning curve. There’s often hype, then reality checks, then a maturation. We’re in the reality-check phase now, with headlines of AI causing outages and maintainers complaining of junk code.</p><p>The good news is that these are exactly the conversations we need to have to normalize responsible use of AI. By acknowledging the risks and actively managing them, we can avoid a future where “crappy software” becomes acceptable.</p><p>In the end, technical debt is about making conscious trade-offs. With AI, the trade-off shouldn’t be “speed now, pay later (in pain).” Instead, we should trade repetitive effort for creative effort: let the AI handle the boilerplate, while we engineers spend our time ensuring the architecture is sound, the integration is smooth, and the code is clean.</p><p>That’s how we get the best of both worlds. AI can help us write a lot more code — but it’s on us to ensure it’s <em>good</em> code. If we do that, we’re not racing to the bottom at all; we’re charting a path to a more productive yet principled era of software development. That’s a future I’m excited to build.</p><h3>About DeepDocs</h3><p><a href="https://deepdocs.dev/">DeepDocs</a> is a GitHub app that helps engineering teams automate the mundane task of keeping docs, like READMEs, API references, SDK guides, tutorials etc. up-to-date with your changing codebase. It helps in reducing documentation debt and is completely free to try.</p><p><em>Originally published at </em><a href="https://deepdocs.dev/ai-and-technical-debt-a-race-to-the-bottom/"><em>https://deepdocs.dev</em></a><em> on August 5, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e55a20d70e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why CI/CD Still Doesn’t Include Continuous Documentation?]]></title>
            <link>https://medium.com/@nilakashdas/why-ci-cd-still-doesnt-include-continuous-documentation-c97b5c4c9609?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97b5c4c9609</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Tue, 29 Jul 2025 14:58:46 GMT</pubDate>
            <atom:updated>2025-07-29T14:58:46.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRTfItvyx6snb8Lk2bIAUw.png" /></figure><p>In my 15+ years as a developer, one of the most persistent headaches I’ve seen across teams is outdated documentation.</p><p>I’ll admit it, I’ve shipped features and moved on without updating the docs. A month later, a new teammate is onboarding or someone is debugging an issue, and they run into a README or guide that no longer reflects reality. It’s frustrating for them and embarrassing for us.</p><p>I’m certainly not alone in this habit. Maintaining documentation is often the last thing on a developer’s mind during a busy sprint. The result is predictable: confused developers, frustrated users, and wasted time chasing down answers that the docs should have provided.</p><p>We live in a world of CI/CD where code is built, tested, and deployed automatically at high velocity. Yet documentation tends to lag far behind. I’ve seen README files turn into works of fiction as codebases evolve rapidly. It’s not that developers don’t care about accuracy, it’s that keeping docs manually in sync with a fast-moving codebase is nearly impossible.</p><p>We’ve automated almost everything else in our development workflow, so <strong>why hasn’t documentation kept up?</strong> In other words, why does CI/CD still not include <strong>continuous documentation</strong> as a first-class practice?</p><h3>Why Continuous Documentation Isn’t Mainstream (Yet)</h3><p>Let’s break down the main challenges preventing documentation from flowing as continuously as code:</p><p><strong>DevOps Speed vs. Manual Docs</strong></p><p>Modern teams push code multiple times a day, sometimes even per hour. Manual documentation updates simply can’t keep pace. By the time you finish writing a how-to guide for a feature, that feature might have changed or been replaced. As one DevOps lead <a href="https://apprecode.com/blog/continuous-documentation-in-devops-keeping-information-up-to-date-automatically">bluntly put it</a>, <em>“manual documentation is physically impossible to maintain when you’re moving at DevOps speed”</em>. In the era of rapid CI/CD, documentation often gets left in the dust.</p><p>Limited Automation Tools</p><p>We do have tools that generate documentation from code, but only for narrow slices of the problem. For example, Swagger or OpenAPI can generate API reference docs, and Sphinx or Javadoc can turn code comments into nicely formatted reference manuals. These are helpful, but they don’t cover the higher-level documentation — things like conceptual guides, onboarding tutorials, or README walkthroughs. They also rely on developers keeping those annotations and comments up to date in the first place. In short, existing tools automate <strong>some</strong> docs (mostly low-level API details) but leave out the broader context and inevitably require manual effort to fill the gaps.</p><p><strong>Docs Out of the Code Loop</strong></p><p>A big part of the problem is historical: documentation has often lived outside the codebase. Think wikis, Confluence pages, Google Docs, or Notion. When docs aren’t versioned alongside code, it’s unrealistic to expect them to update in lockstep. Even when teams adopt a “docs-as-code” approach (storing docs in the repository as Markdown), that’s only the first step. Sure, you can set up static site generators like MkDocs or Docusaurus and rebuild docs on every commit — but if the content is stale, an automated publish doesn’t magically fix that. The CI pipeline can deploy documentation changes continuously, but it can’t create those changes on its own. Without a mechanism to <strong>detect and correct doc drift</strong>, continuous deployment of docs just means continuously deploying outdated information.</p><p><strong>Developers Skip the Boring Stuff</strong></p><p>Let’s face it, writing docs is often seen as a chore. In high-pressure environments, people feel documentation slows them down, so it’s neglected as “overhead”. Unlike code or tests, there’s usually no immediate red flag when documentation is wrong — no test fails, no build breaks. So the incentive to update docs in the moment is low. Technical debt builds up in documentation quietly. By the time anyone notices (usually a new hire or an external user finding discrepancies), the original developers have moved on. Culturally, many dev teams have not treated documentation with the same rigor as code, and without an automated safety net, it’s easy for even well-intentioned teams to let docs slide.</p><p><strong>Fragmented Documentation Needs</strong></p><p>Another challenge is that documentation isn’t one monolith. A software project has many types of docs — API references, architecture diagrams, setup guides, usage examples, release notes, etc. Each type may require different tools or processes to update. Some information can be pulled from code (function signatures, CLI options), but other knowledge lives only in human heads (design rationale, best-practice guides). This fragmentation makes it hard to have one unified “continuous documentation” process. Teams might automate API docs generation in CI, but still rely on a manual wiki for tutorials, for example. If only part of the documentation is automated, the rest will still fall behind and break the chain of continuity.</p><p><strong>AI Helps, But Isn’t Perfect</strong></p><p>In recent years, we’ve tried using AI to ease the documentation burden. I’ve personally experimented with AI IDEs like GitHub Copilot and Cursor that can generate or update docstrings and even suggest README changes. They do help speed up writing, but they come with their own hassles. You have to remember to prompt the AI after every code change, and manually specify what context it should consider. It’s easy to forget, and the AI has no way of knowing which parts of the docs need an update unless you guide it. In a team setting, if each developer runs an AI assistant on their own, you risk inconsistent style and even conflicting documentation changes. One teammate’s AI might rewrite a section in a completely different tone or structure than another’s. We also found that letting an AI regen an entire document can inadvertently mess up the formatting or voice of the docs if you’re not careful. In short, AI-as-you-write is promising, but without integration into the actual code workflow, it’s still a manual, ad-hoc solution — not a continuous one.</p><p><strong>Lack of Enforcement in Pipelines</strong></p><p>Unlike code quality (where failing tests or linters will block a merge), documentation rarely has such strict enforcement. Some teams set up link checkers or doc linters in CI, but those only catch broken syntax or links, not whether the <em>content</em> is up to date. There hasn’t been an easy way to automatically detect that “function X changed, but the docs for X didn’t” as part of a CI pipeline. Because of this, even teams who treat docs-as-code and require docs in PRs can’t guarantee the docs remain correct after that PR. Over time, as code diverges, there’s no continuous guardrail catching the drift.</p><p>Now, the good news is the industry has started recognizing these issues. There’s even a term “<a href="https://dev.to/dumebii/docops-for-beginners-all-you-need-to-know-2ldh#:~:text=DocOps%2C%20short%20for%20Documentation%20Operations%2C,date%20and%20relevant">DocOps</a>” (Documentation Operations) which essentially means applying DevOps principles to docs — automating and integrating documentation into the development lifecycle. Some forward-thinking teams have built impressive custom setups where any code or infrastructure change triggers automatic doc updates (like regenerating API docs on each deploy, or updating config docs when a Terraform file changes).</p><p>In an ideal scenario, <em>“Code changes? Docs update. Infrastructure changes? Docs update”</em> — as if a documentation fairy follows the team around fixing things. The benefits of such continuous documentation are huge: no more hunting through outdated pages, faster onboarding, and greater trust in the docs. So if the benefits are clear, why isn’t everyone doing it?</p><p>Simply put, it’s hard. Until recently, implementing full continuous documentation meant a lot of custom scripting and piecemeal tools. Most teams don’t have the time or resources to build their own doc automation from scratch. We’ve been stuck with either doing it manually or automating only small parts of it.</p><h3>From Frustration to Automation: How DeepDocs Fills the Gap</h3><p>After encountering these pain points for years, we decided enough was enough. If we can automate testing and deployment, we should be able to automate documentation updates too. I wanted something that just works — seamlessly, in the background, without me having to remember anything. That drive led us to build <a href="http://deepdocs.dev/">DeepDocs</a>, a GitHub-native AI app for continuous documentation.</p><p><strong>DeepDocs</strong> approaches the problem in a way that closely mirrors CI/CD philosophy. Once you install and configure it on your repository, it becomes an ever-watchful agent in your development workflow. Every time you push changes to your code, DeepDocs is listening. It analyzes the commit diff and your entire codebase to figure out if any part of your documentation might be out-of-sync with the new code. If it finds something, it <strong>automatically generates a doc update</strong> on a separate branch with the suggested changes.</p><p>Crucially, these updates are done in a minimal, precise way. DeepDocs doesn’t blindly rewrite your docs or generate pages of text from scratch. It makes <em>surgical edits</em> to address the specific inconsistencies it found, and nothing more. The tool preserves your formatting, tone, and structure — it won’t suddenly reformat your whole Markdown file or change your writing style. It’s smart enough to only adjust the parts of the docs that need updating, leaving the rest untouched. This was a core design goal: developers are rightfully wary of automated tools trampling over carefully crafted documentation. DeepDocs avoids that by respecting the existing docs and just bringing them up to date where needed.</p><p>Let me give an example: suppose you changed the behavior of a function foo() in your code. The code diff shows that foo now accepts an extra parameter and returns a different data structure. DeepDocs will scan through your doc folder (Markdown files, example scripts, etc.) to find any references to foo().</p><p>If it finds, say, an example snippet or an API reference in the docs mentioning the old parameters, it will edit that line in the docs to include the new parameter and adjust the described return format. All of these changes are done in a separate branch so that you can review before opening a PR.</p><p>Further, it also includes a report explaining why (e.g. “updated the example for function foo() to match the new signature from commit abc123”). You, as a developer, just review this like any other code change. If it looks good, you merge it, and boom — your documentation is now in sync with your code. If something’s off, you can tweak the text or reject the change.</p><p>I designed DeepDocs to fit naturally into software teams’ existing workflows. It’s GitHub-native, meaning you don’t have to adopt a new platform or host your docs elsewhere. It works with your Git repos directly. You can treat documentation updates exactly like code updates. This aligns with the “docs as code” philosophy, but now the <em>updates</em> to docs are also generated through automation.</p><p>DeepDocs works with monorepos and even external documentation repositories (for teams that keep code and docs in separate repos). It also plays nicely with popular documentation toolchains. For example, if you have a Docusaurus or MkDocs site, DeepDocs will update the Markdown/source files, and your existing CI job can then rebuild the docs site as usual.</p><p>One thing to clarify: DeepDocs is not about generating brand new documentation from nothing. It’s about <strong>maintaining</strong> documentation continuously. You still need to write the initial docs for a feature or module (or at least have decent doc comments). In fact, if you’re starting a project with zero docs, tools like Copilot or other AI writers can help you draft them. But once those docs exist, <em>that’s</em> where DeepDocs takes over the heavy lifting of maintenance. It ensures that those docs don’t decay over time as the code changes. Think of it as an automated editor that knows your codebase and watches for any divergence between the code and the docs.</p><h3>Why DeepDocs Is Different from Other Approaches</h3><p>It’s worth highlighting what makes our approach <a href="http://deepdocs.dev/">DeepDocs</a> distinct from previous attempts to solve the documentation problem:</p><ul><li><strong>Truly Continuous</strong>: Unlike manual AI prompting or periodic doc sprints, this runs continuously in the background. Every commit is checked. It’s always on, just like CI tests are always run on each push. This ensures no change slips through unnoticed. As the DeepDocs documentation puts it, <em>docs and code go together, stay together</em> — which is the ideal state we want.</li><li><strong>Full Context Awareness</strong>: DeepDocs has access to your full repository context (code + docs). It’s not limited to one file at a time or a small window of text. This means it can understand relationships — for example, if you rename an API endpoint in code, it can find references to that endpoint across all your docs. Traditional code-to-doc generators don’t cross that boundary, and general-purpose AIs only know what you explicitly feed them. By being integrated with the repo, the AI can see the “big picture” diff and act accordingly.</li><li><strong>No New Workflow for Developers</strong>: Developers don’t have to learn a new documentation platform or tool. Everything happens via GitHub, via the version control flow they already use. This is important because any solution that requires developers to change their habits drastically is going to face adoption hurdles. DeepDocs was designed to <strong>fit into</strong> existing workflows (it’s even installed and configured via a simple GitHub App and YAML config). It’s a “lightweight, developer-first approach” to the problem, which lowers the barrier to entry for teams.</li><li><strong>Minimal and Explainable Changes</strong>: Every doc update comes as a pull request diff that can be reviewed line by line. There’s no giant black-box re-write of your docs. The transparency here builds trust. The PR description includes a report of what was changed and why. That level of detail means a developer can quickly verify the update or discuss it in the PR if needed. Contrast this with a scenario of an engineer running an AI on their own — the team might not know what context it saw or why it rewrote a paragraph. Having the AI integrated and its actions visible in the repository makes it a collaborative tool rather than a rogue script.</li><li><strong>Focus on Maintenance, Not Generation</strong>: As mentioned, DeepDocs isn’t about generating your documentation from nothing (which often leads to generic or bloated docs). It’s about keeping <em>your</em> documentation correct and up-to-date. This focus means it can do a better job of preserving the original voice and intent of the docs. That’s a fundamentally easier problem for AI to get right, and it shows in the quality of updates. Your carefully written tutorials and explanations remain intact, only now they no longer lie to the reader.</li></ul><p>Of course, continuous documentation is a relatively old concept that has never been put to practice in its truest sense. DeepDocs is one of the first tools, we built it because we couldn’t find an existing solution that met our needs.</p><h3>CI/CD Philosophy for Docs</h3><p>Ultimately, the goal of bringing documentation into the CI/CD fold is about upholding the same philosophy we apply to code: <strong>catch issues early, automate repetitive tasks, and deliver value continuously.</strong> With code, CI ensures we don’t introduce regressions or break the build without knowing.</p><p>With documentation, a continuous approach ensures we don’t introduce confusion or misinformation without correcting it immediately. It’s about treating docs as a first-class citizen in the development lifecycle.</p><p>What I’m most proud of with the continuous documentation approach is that developers don’t have to change their habits to benefit from it. Just write code as usual, commit and merge as usual. The onus of remembering to update docs is lifted off the developer’s shoulders.</p><p>For software engineering teams, this can be transformative. New hires ramp up faster because the docs actually reflect the current system behavior. Support teams and users find accurate information in the docs, reducing back-and-forth questions. Developers themselves can rely on internal docs when debugging, instead of shrugging them off as hopelessly outdated.</p><p>Over time, trust in documentation is restored, and when people trust the docs, they are more likely to contribute improvements to them (a positive feedback loop).</p><p>Continuous documentation also pays off in less obvious ways. Think about compliance and audits in fields like finance or healthcare — with an automated doc trail, showing accurate, timestamped documentation for each release becomes much easier, potentially saving hefty fines or development fire drills.</p><p>And consider developer productivity: time spent reconciling code with stale docs or updating wiki pages could be spent building new features. By removing a source of toil, engineers can focus on coding, while knowing that an automated process has their back on the documentation front.</p><p>DeepDocs is just one implementation of this idea, and I expect more tools and services will emerge in this space (some already are). The important thing is that the conversation has shifted from <em>“ugh, documentation is always outdated”</em> to <em>“how can we make documentation continuous and automated?”</em>. We’re finally seeing documentation treated with the same seriousness as testing and deployment in the DevOps cycle.</p><p>To answer the question posed at the start: CI/CD historically didn’t include continuous documentation because we lacked the right tools and mindset. We treated documentation as something separate from the code, something that required human effort and could be postponed.</p><p>We now have the technology to close that loop. That’s why we built DeepDocs to solve this in our own workflow, and it’s been incredibly rewarding to see up-to-date docs becoming the norm rather than the exception.</p><p>I truly believe continuous documentation will become a standard practice in the industry. We’ll look back on the days of stale READMEs and say, “Remember when we used to manually update docs (and usually forgot)? Thank goodness we don’t live in that world anymore.”</p><blockquote><em>Code and Docs are meant to stay together, forever</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c97b5c4c9609" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Manual Code Review is Essential After Autograding Submissions: An Instructor’s Perspective]]></title>
            <link>https://medium.com/@nilakashdas/why-manual-code-review-is-essential-after-autograding-submissions-an-instructors-perspective-dbc8f67b6cd4?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbc8f67b6cd4</guid>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 13:25:36 GMT</pubDate>
            <atom:updated>2024-08-31T13:28:40.231Z</atom:updated>
            <content:encoded><![CDATA[<p>As a former coding instructor, I’ve spent countless hours grading coding assignments, first with traditional methods and later with the help of autograding systems.</p><p>Autograding has undoubtedly made our lives easier-it’s fast, consistent, and can process large volumes of submissions in no time.</p><p>However, through my experience, I’ve come to realize that manual code review is just as crucial, if not more so, after those initial autograding passes.</p><p>Let me explain why.</p><p><strong>1/ Beyond Correctness: Quality of Code</strong></p><p>One of the first things I noticed when we started using autograding systems was that while they could tell me if the code produced the right output, they didn’t give any insight into how well the code was written.</p><p>I’ve seen many instances where students would submit code that worked, but was convoluted, hard to read, or riddled with bad practices.</p><p>Manual review allows me to dive into the quality of the code-its structure, readability, and efficiency. These are the aspects of coding that will matter most in the real world, and they’re often overlooked by autograders.</p><p><strong>2/ Correctness != Understanding and Intent</strong></p><p>There’s a big difference between getting the right answer and understanding how you got there.</p><p>I’ve seen students pass all the test cases with flying colors but struggle to explain their thought process during office hours.</p><p>Manual code review gave me the chance to evaluate whether students are truly grasping the concepts or if they’re just patching together solutions that happen to work.</p><p><strong>3/ Catching Edge Cases</strong></p><p>Autograders are pretty good at testing a wide range of cases, but they’re not perfect.</p><p>I’ve seen them miss subtle bugs that only show up under certain conditions.</p><p>During manual review, I can think critically about the code and spot potential issues that an autograder might miss-like how the code handles unexpected inputs or rare edge cases.</p><p>This extra layer of scrutiny helps ensure that the code isn’t just correct for the provided test cases but is also robust and reliable in a broader context.</p><p><strong>4/ Providing Personalized Feedback</strong></p><p>One of the most rewarding aspects of being a TA is the opportunity to help students improve.</p><p>Autograders are great for giving instant feedback on whether the code works, but they’re not so great at giving constructive, personalized advice.</p><p>When I manually review code, I can point out specific areas where a student might improve, whether it’s simplifying a complex logic, using more descriptive variable names, or adopting better coding practices.</p><p><strong>5/ Appreciating Creative Solutions</strong></p><p>One of the joys of reviewing code manually is coming across creative solutions that aren’t necessarily the most obvious or straightforward.</p><p>Autograders might not know how to handle these out-of-the-box approaches, but I can take the time to appreciate and evaluate them on their merits.</p><p><strong>Conclusion</strong></p><p>In my experience as a TA, I’ve found that while autograding systems are incredibly useful, they’re not a replacement for manual code review.</p><p>That said, I completely understand that manual code review is incredibly time-consuming, and many of us don’t dedicate as much time to it as we’d like.</p><p>To address this challenge, we’ve been working on an AI system that aims to automate aspects of manual review, focusing on providing personalized feedback and promoting best practices.</p><p>While this AI solution won’t replace the need for human judgment, it will hopefully lighten the load and ensure that every student gets the detailed attention they need to truly succeed.</p><p>You can read about our project at <a href="http://gradehive.ai/">Gradehive.AI</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbc8f67b6cd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Huggingface’s open LLM leaderboard to select the right model]]></title>
            <link>https://medium.com/@nilakashdas/simplifying-huggingfaces-open-llm-leaderboard-to-select-the-right-model-8a513d6465d9?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a513d6465d9</guid>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[hugging-face]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 11:43:42 GMT</pubDate>
            <atom:updated>2023-11-28T07:56:02.653Z</atom:updated>
            <content:encoded><![CDATA[<p>New open LLMs are being released almost daily.</p><p>Thanks to Huggingface 🤗, they maintain a <a href="https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard">leaderboard</a> to benchmark the newest and shiniest model&#39;s performance on a variety of tasks, providing us with sanity checks against grandiose claims and PR hype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*B99Ad3XgcIaAx-qf4-sJug.jpeg" /><figcaption>Image source: <a href="https://huggingface.co/blog/evaluating-mmlu-leaderboard">https://huggingface.co/blog/evaluating-mmlu-leaderboard</a></figcaption></figure><p>The HF LLM leaderboard may seem a bit daunting as it includes many things. However, the most important thing to know is that it tracks the performance metrics of LLMs across <strong>seven different tasks, </strong>calculated using Eleuther AI’s <a href="https://github.com/EleutherAI/lm-evaluation-harness">Language Model Evaluation Harness Library</a>.</p><p>Understanding these seven tasks and the reported metrics is crucial if you want to make an informed decision in selecting the right model for your use case.</p><p>For instance, it’s not always wise to select the model that appears at the top of the leaderboard. This ranking is based on a simple average across all tasks, which can obscure weaknesses in a task that might be most relevant to your specific needs.</p><p>In this guide, I’ll explain each of these seven tasks to help you understand the context behind the reported numbers, helping you make a more informed choice.</p><ol><li><strong>ARC</strong></li></ol><ul><li><strong>Description</strong>: The AI2 Reasoning Challenge (ARC) tests LLMs with grade-school level, multiple-choice science questions, ranging from simple to complex. For example, a question could be “What does photosynthesis produce to help plants grow?” with options (a) water (b) oxygen © protein (d) sugar.</li><li><strong>Evaluation Settings</strong>: 25-shot</li><li><strong>Metrics</strong>: Accuracy over 3548 questions, of which 33% are designated as challenging.</li><li><strong>Paper: </strong><a href="https://arxiv.org/abs/1803.05457">Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge</a></li></ul><p><strong>2. HellaSwag</strong></p><ul><li><strong>Description</strong>: This challenge evaluates an LLM’s reasoning in a multiple-choice fashion by asking it to select sentences that make the most sense in a given scenario. For example: “A woman is outside with a bucket and a dog. The dog is running around trying to avoid a bath.” The correct answer would be “she gets the dog wet”, while an incorrect option might be “she makes the dog drink the water from the bucket”.</li><li><strong>Evaluation Settings</strong>: 10-shot</li><li><strong>Metrics</strong>: Accuracy over 10042 questions.</li><li><strong>Paper</strong>: <a href="https://arxiv.org/abs/1905.07830">HellaSwag: Can a Machine Really Finish Your Sentence?</a></li></ul><p><strong>3. MMLU</strong></p><ul><li><strong>Description</strong>: Massive Multitask Language Understanding (MMLU) assesses a model’s knowledge acquired during pretraining. It features multiple-choice questions across 57 subjects, from STEM to the humanities, testing world knowledge and problem-solving abilities. For example, a STEM question could be “At what temperature in Fahrenheit does paper burn?” with options including 451 degrees (the correct answer).</li><li><strong>Evaluation Settings</strong>: 5-shot</li><li><strong>Metrics</strong>: Accuracy over ~14000 questions.</li><li><strong>Paper</strong>: <a href="https://arxiv.org/abs/2009.03300">Measuring Massive Multitask Language Understanding</a></li></ul><p>4. <strong>TruthfulQA</strong></p><ul><li><strong>Description</strong>: This benchmark measures the truthfulness of LLMs in answering questions across 38 categories, including health, law, finance, and politics. It comprises two tasks: generating 1–2 sentence answers (truthful_gen) and identifying true statements in multiple-choice format (truthful_mc).</li><li><strong>Evaluation Settings</strong>: 0-shot</li><li><strong>Metrics</strong>: BLEURT, ROUGE, and BLEU scores for the truthful_gen task, and accuracy for the truthful_mc task, across 817 questions.</li><li><strong>Paper</strong>: <a href="https://arxiv.org/abs/2109.07958">TruthfulQA: Measuring How Models Mimic Human Falsehoods</a></li></ul><p><strong>5. Winogrande</strong></p><ul><li><strong>Description</strong>: Winogrande tests commonsense reasoning in AI, challenging models to solve the Winograd Schema Challenge. An example task could involve completing the sentence: “The door opened louder than the window because ___ (options: door or window) had more grease on its hinges.”</li><li><strong>Evaluation Settings</strong>: 5-shot</li><li><strong>Metrics</strong>: Accuracy on 1267 questions.</li><li><strong>Paper: </strong><a href="https://arxiv.org/abs/1907.10641">WinoGrande: An Adversarial Winograd Schema Challenge at Scale</a></li></ul><p><strong>6. GSM8k</strong></p><ul><li><strong>Description</strong>: GSM8K presents grade school math word problems to test LLMs’ multi-step mathematical reasoning. For example: “A robe takes 2 bolts of blue fiber and half that much white fiber. How many bolts in total does it take?” The answer is 3.</li><li><strong>Evaluation Settings</strong>: 5-shot</li><li><strong>Metrics</strong>: Accuracy on 1319 questions.</li><li><strong>Paper: </strong><a href="https://arxiv.org/abs/2110.14168">Training Verifiers to Solve Math Word Problems</a></li></ul><p><strong>7. DROP</strong></p><ul><li><strong>Description</strong>: DROP requires LLMs to perform Discrete Reasoning Over Paragraphs. This involves resolving references in questions and performing operations like addition, counting, or sorting, necessitating a comprehensive understanding of paragraph content.</li><li><strong>Evaluation Settings</strong>: 3-shot</li><li><strong>Metrics</strong>: F1 score over 9536 paragraph comprehension questions.</li><li><strong>Paper</strong>: <a href="https://arxiv.org/abs/1903.00161">DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphs</a></li></ul><p>That concludes the seven main benchmark tasks of the open LLM leaderboard. These tests evaluate not just the knowledge of LLMs, but also their reasoning, understanding, and problem-solving skills.</p><p>Understanding these benchmarks is key to gauging the progress and potential of current LLMs.</p><p>Thank you for reading this ❤️.</p><p>If you found it helpful, please follow me on Medium or <a href="https://twitter.com/Nilzkool">Twitter</a> for more insights and in-depth content on LLM engineering, aimed at helping you create outstanding General AI applications 😊.</p><p><strong>References</strong></p><ol><li><a href="https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard">https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a513d6465d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build Smart Assistants Using Open AI APIs]]></title>
            <link>https://medium.com/@nilakashdas/how-to-build-smart-assistants-using-open-ai-apis-ebf9edc42084?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebf9edc42084</guid>
            <category><![CDATA[function]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[smart-assistant]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[assistants-api]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 11:16:13 GMT</pubDate>
            <atom:updated>2023-11-25T11:16:26.351Z</atom:updated>
            <content:encoded><![CDATA[<p>Personal assistants like Siri, Google Assistant, and Alexa have the capability to process our natural language commands and perform actions or provide information accordingly.</p><p>Thanks to OpenAI APIs, we can now build such capabilities using a method called function calling.</p><p>Function calling in OpenAI’s API context allows developers to describe functions within API calls, enabling the LLM to intelligently call one or many functions to address the user’s command e.g. “What is the time Siri?” would require calling a function that gives the current time.</p><p>Recent OpenAI models have been trained to detect when a function should be called and respond with JSON adhering closely to the function signature. What is more interesting is that the recent update also allows us to make multiple function calls in parallel. For example, the model may call functions to get the weather in 3 different locations at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*yCJXc_ADd-tWR_wonA7JRA.png" /><figcaption>Depiction of a smart assistant generated using Dall-E</figcaption></figure><p>The basic steps involved in function calling are:</p><ol><li>The user’s query along with a list of available functions to the model.</li><li>The model returns a JSON string output containing which function to execute and with what arguments.</li><li>The JSON is parsed and executed by corresponding the functions and arguments.</li><li>The function outputs are sent to the model, which paraphrases them in natural language for the user.</li></ol><p>Let us go through a step-by-step tutorial to implement a Siri-like functionality using OpenAI APIs. We will use a simple example in which the assistant provides weather updates.</p><p><strong>Before we begin</strong></p><p>Make sure you have the latest version of openai python library.</p><pre>pip install --upgrade openai</pre><p>We will now import the necessary libraries, update our environment variable with the OpenAI API key, and initiate the OpenAI client</p><pre>import openai<br>import json<br>from dotenv import load_dotenv<br><br># Assuming you have a .env file containing OPENAI_API_KEY=&lt;your key&gt; in <br># the same directory. You can get your API key here <br># https://platform.openai.com/api-keys<br>load_dotenv()<br><br># Intiate the OpenAI client<br>client = OpenAI()</pre><p><strong>Step 1: Define your function logic</strong></p><p>Let’s start by defining a dummy function that simulates getting current weather information. In a real-world scenario, this could be linked to an external API.</p><pre>def get_current_weather(location, unit=&quot;fahrenheit&quot;):<br>    # Get the current weather in a given location<br>    weather_data = {<br>        &quot;Tokyo&quot;: {&quot;temperature&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;celsius&quot;},<br>        &quot;San Francisco&quot;: {&quot;temperature&quot;: &quot;72&quot;, &quot;unit&quot;: &quot;fahrenheit&quot;},<br>        &quot;Paris&quot;: {&quot;temperature&quot;: &quot;22&quot;, &quot;unit&quot;: &quot;celsius&quot;}<br>    }<br>    return json.dumps(weather_data.get(location.title(), {&quot;temperature&quot;: &quot;unknown&quot;}))</pre><p><strong>Step 2: Start the conversation</strong></p><p>Let’s define a function to initiate the conversation with the LLM, by taking a user command as input e.g. ‘What’s the weather like in San Francisco, Tokyo, and Paris?’</p><pre>def start_conversation(prompt=&#39;&#39;):<br>    # Start the conversation with the model<br>    messages = [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]<br>    return messages</pre><p><strong>Step 3: Define the tools for the model</strong></p><p>Specify the functions that the model can call in response to user queries. This includes describing the function and its parameters.</p><pre>def define_tools():<br>    # Define the tools (functions) available for the model to call<br>    tools = [<br>        {<br>            &quot;type&quot;: &quot;function&quot;,<br>            &quot;function&quot;: {<br>                &quot;name&quot;: &quot;get_current_weather&quot;,<br>                &quot;description&quot;: &quot;Get the current weather in a given location&quot;,<br>                &quot;parameters&quot;: {<br>                    &quot;type&quot;: &quot;object&quot;,<br>                    &quot;properties&quot;: {<br>                        &quot;location&quot;: {&quot;type&quot;: &quot;string&quot;},<br>                        &quot;unit&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;celsius&quot;, &quot;fahrenheit&quot;]}<br>                    },<br>                    &quot;required&quot;: [&quot;location&quot;]<br>                }<br>            }<br>        }<br>    ]<br>    return tools</pre><p><strong>Step 4: Process the model’s response</strong></p><p>We will now define a function to let the LLM decide how to process the user command and use the provided tools.</p><pre>def process_response(messages, tools):<br>    # Process the model&#39;s response and handle function calls<br>    response = client.chat.completions.create(<br>        model=&quot;gpt-3.5-turbo-1106&quot;,<br>        messages=messages,<br>        tools=tools,<br>        tool_choice=&quot;auto&quot;<br>    )<br>    return response</pre><p><strong>Step 5: Parse and handle the function calls</strong></p><p>We will now use a function to check and handle if the model requests any function calls. If those calls were requested, we will make those function calls.</p><pre>def handle_function_calls(response, messages,  <br>                          available_functions = <br>                          {&quot;get_current_weather&quot;: get_current_weather}):<br>    # Handle function calls based on the model&#39;s response<br><br>    tool_calls = response.choices[0].message.tool_calls<br>    if tool_calls:<br>        # Append the assistant&#39;s response message to the conversation<br>        messages.append(response.choices[0].message)<br><br>        # Iterate over each tool call and process them<br>        for tool_call in tool_calls:<br>            function_name = tool_call.function.name<br>            function_to_call = available_functions.get(function_name)<br><br>            # Ensure the function exists<br>            if function_to_call:<br>                # Parse the function arguments from JSON<br>                function_args = json.loads(tool_call.function.arguments)<br><br>                # Call the function with the parsed arguments<br>                function_response = function_to_call(<br>                    location=function_args.get(&quot;location&quot;),<br>                    unit=function_args.get(&quot;unit&quot;)<br>                )<br>                # Append the function response to the conversation<br>                messages.append(<br>                    {<br>                        &quot;tool_call_id&quot;: tool_call.id,<br>                        &quot;role&quot;: &quot;tool&quot;,<br>                        &quot;name&quot;: function_name,<br>                        &quot;content&quot;: function_response,<br>                    }<br>                )<br>    return messages</pre><p><strong>Step 6: Complete the Conversation</strong></p><p>Finally, we complete the conversation by obtaining the model’s summary of the function responses.</p><pre>def complete_conversation(messages):<br>    # Complete the conversation with the final response from the model<br>    final_response = client.chat.completions.create(<br>        model=&quot;gpt-3.5-turbo-1106&quot;,<br>        messages=messages<br>    )<br>    return final_response.choices[0].message.content</pre><p>Okay, let’s put everything together!</p><pre>from openai import OpenAI<br>import json<br>from dotenv import load_dotenv<br><br># Assummeing you have a .env file containing OPENAI_API_KEY=&lt;your key&gt; in the same directory<br>load_dotenv()<br><br>client = OpenAI()<br><br># Step 1<br>def get_current_weather(location, unit=&quot;fahrenheit&quot;):<br>    &quot;&quot;&quot;Get the current weather in a given location&quot;&quot;&quot;<br>    weather_data = {<br>        &quot;Tokyo&quot;: {&quot;temperature&quot;: &quot;10&quot;, &quot;unit&quot;: &quot;celsius&quot;},<br>        &quot;San Francisco&quot;: {&quot;temperature&quot;: &quot;72&quot;, &quot;unit&quot;: &quot;fahrenheit&quot;},<br>        &quot;Paris&quot;: {&quot;temperature&quot;: &quot;22&quot;, &quot;unit&quot;: &quot;celsius&quot;}<br>    }<br>    return json.dumps(weather_data.get(location.title(), {&quot;temperature&quot;: &quot;unknown&quot;}))<br><br># Step 2<br>def start_conversation(prompt=&#39;&#39;):<br>    &quot;&quot;&quot;Start the conversation with the model&quot;&quot;&quot;<br>    messages = [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]<br>    return messages<br><br># Step 3<br>def define_tools():<br>    &quot;&quot;&quot;Define the tools (functions) available for the model to call&quot;&quot;&quot;<br>    tools = [<br>        {<br>            &quot;type&quot;: &quot;function&quot;,<br>            &quot;function&quot;: {<br>                &quot;name&quot;: &quot;get_current_weather&quot;,<br>                &quot;description&quot;: &quot;Get the current weather in a given location&quot;,<br>                &quot;parameters&quot;: {<br>                    &quot;type&quot;: &quot;object&quot;,<br>                    &quot;properties&quot;: {<br>                        &quot;location&quot;: {&quot;type&quot;: &quot;string&quot;},<br>                        &quot;unit&quot;: {&quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;celsius&quot;, &quot;fahrenheit&quot;]}<br>                    },<br>                    &quot;required&quot;: [&quot;location&quot;]<br>                }<br>            }<br>        }<br>    ]<br>    return tools<br><br># Step 4<br>def process_response(messages, tools):<br>    &quot;&quot;&quot;Process the model&#39;s response and handle function calls&quot;&quot;&quot;<br>    response = client.chat.completions.create(<br>        model=&quot;gpt-3.5-turbo-1106&quot;,<br>        messages=messages,<br>        tools=tools,<br>        tool_choice=&quot;auto&quot;<br>    )<br>    return response<br><br># Step 5<br>def handle_function_calls(response, messages,  <br>                          available_functions = {&quot;get_current_weather&quot;: get_current_weather}):<br>    &quot;&quot;&quot;Handle function calls based on the model&#39;s response&quot;&quot;&quot;<br>    tool_calls = response.choices[0].message.tool_calls<br>    if tool_calls:<br>        # Append the assistant&#39;s response message to the conversation<br>        messages.append(response.choices[0].message)<br><br>        # Iterate over each tool call and process them<br>        for tool_call in tool_calls:<br>            function_name = tool_call.function.name<br>            function_to_call = available_functions.get(function_name)<br><br>            # Ensure the function exists<br>            if function_to_call:<br>                # Parse the function arguments from JSON<br>                function_args = json.loads(tool_call.function.arguments)<br><br>                # Call the function with the parsed arguments<br>                function_response = function_to_call(<br>                    location=function_args.get(&quot;location&quot;),<br>                    unit=function_args.get(&quot;unit&quot;)<br>                )<br>                # Append the function response to the conversation<br>                messages.append(<br>                    {<br>                        &quot;tool_call_id&quot;: tool_call.id,<br>                        &quot;role&quot;: &quot;tool&quot;,<br>                        &quot;name&quot;: function_name,<br>                        &quot;content&quot;: function_response,<br>                    }<br>                )<br>    return messages<br><br># Step 6<br>def complete_conversation(messages):<br>    &quot;&quot;&quot;Complete the conversation with the final response from the model&quot;&quot;&quot;<br>    final_response = client.chat.completions.create(<br>        model=&quot;gpt-3.5-turbo-1106&quot;,<br>        messages=messages<br>    )<br>    return final_response.choices[0].message.content<br><br># Main execution flow<br>if __name__ == &quot;__main__&quot;:<br>    prompt = &quot;What&#39;s the weather like in San Francisco, Tokyo, and Paris?&quot;<br>    messages = start_conversation(prompt)<br>    tools = define_tools()<br>    response = process_response(messages, tools)<br>    messages = handle_function_calls(response, messages, <br>                                     available_functions = <br>                                     {&quot;get_current_weather&quot;: get_current_weather})<br>    final_output = complete_conversation(messages)<br>    print(final_output)</pre><p>That’s it. You just learned how to use function calling in OpenAI APIs to develop smart assistant-like capabilities. You can find the whole code at my <a href="https://github.com/Nilzkool/genAI-tips/blob/main/function_calling_tutorial_with_openai_apis.py">Github repo</a>.</p><p>Feel free to clone my repo and implement your own cool project. You may think of adding a speech-to-text and text-to-speech layer for added fun 😄.</p><p>Thank you for reading this ❤️</p><p>If you found it helpful, please follow me on Medium or <a href="https://twitter.com/Nilzkool">Twitter</a> for more insights and in-depth content on LLM engineering, aimed at helping you create outstanding General AI applications. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebf9edc42084" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Understand Transformer Architecture Without a Math or ML Background]]></title>
            <link>https://medium.com/@nilakashdas/how-to-understand-transformer-architecture-without-a-math-or-ml-background-6ff697cc38de?source=rss-dabbfcd50fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff697cc38de</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Neel Das]]></dc:creator>
            <pubDate>Sat, 25 Nov 2023 10:44:00 GMT</pubDate>
            <atom:updated>2023-11-25T10:55:26.665Z</atom:updated>
            <content:encoded><![CDATA[<p>As a developer of generative AI applications, I’ve come to realize something: you don’t need to have a math background or be an ML researcher to make magic with LLMs.</p><p>Why?</p><p>Because most LLMs are readily accessible through user-friendly APIs and libraries, like OpenAI APIs, and Hugging Face. This accessibility means that the heavy lifting of understanding complex algorithms isn’t necessary for us to develop amazing AI applications.</p><p>However, a basic grasp of different transformer architectures can be a game-changer in choosing the right LLM for your project and getting more accurate results for your specific use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*fNQ9_cJ0Jo78U01nYz-Hcg.jpeg" /><figcaption>Three types of transformer architecture</figcaption></figure><p>Let’s explore the 3 basic transformer architectures in a simple, intuitive way.</p><p><strong>1. Encoder Only Models</strong></p><p>Imagine a jigsaw puzzle where some pieces are missing, and your task is to identify and place these missing pieces correctly based on the surrounding picture. This analogy fits perfectly with encoder-only (aka autoencoding) models. They are trained using a technique known as masked language modeling, where certain words (tokens) in a sentence are hidden, and the model learns to predict them. This process allows these models to develop a deep understanding of bidirectional context — what comes before and after a given word.</p><p><strong>Perfect for: </strong>Sentiment analysis, Named entity recognition, Sentiment classification</p><p><strong>Popular models: </strong>BERT, ROBERTA</p><p><strong>Popular apps: </strong>Google Search, in 2019, integrated BERT into its search algorithm to better understand the nuances and context of search queries. Email services like Gmail, Outlook, and Yahoo also use BERT-type models to sort emails into spam, promotions, updates, etc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*0nInDcp8SN0RDCREm0MG_Q.jpeg" /><figcaption>Encoder-only or Autoencoding models</figcaption></figure><p><strong>2. Decoder Only Models</strong></p><p>This is the most popular transformer architecture power LLMs like GPT and Llama. If you are developing a gen AI app today, you are most likely using a decoder-only (aka autoregressive) model. These models are trained to predict the next word in a sequence, a process similar to autocompletion when you type a message on your mobile. These models are very skilled in text generation, often crafting coherent and contextually relevant content that feels natural.</p><p><strong>Perfect for: </strong>Text generation, summarization, code suggestion, and many more</p><p><strong>Popular models: </strong>GPT-4, Llama2, Mistral-7B, Claude-V2 etc.</p><p><strong>Popular apps: </strong>Of course, ChatGPT which is based on either GPT-4 or GPT-3.5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*KtwQnIcBiPCRjNqdgwCv8g.jpeg" /><figcaption>Decoder-only or Autoregressive models</figcaption></figure><p><strong>3. Encoder-Decoder Models</strong></p><p>Imagine a skilled translator who not only understands the source language but can also accurately convey the essence in another language. The Encoder-decoder (aka Sequence-to-Sequence) models operate on this principle i.e. understand first then generate. The encoder processes the input text and transforms it into a meaningful representation, while the decoder then generates an output based on this representation. Just like the encoder model, the encoder-decoder model is trained to predict purposefully hidden spans (similar to phrases) in a sentence.</p><p><strong>Perfect for: </strong>Translation, text-to-speech, speech-to-text</p><p><strong>Popular models: </strong>T5, BART</p><p>P<strong>opular apps: </strong>Google Translate is a famous example of an encoder-decoder model. OpenAI’s Whisper automatic speech recognition AI also uses this architecture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*CUivpt1Hdnsia2ESkfx-pA.jpeg" /><figcaption>Encoder-decoder or Sequence-to-sequence models</figcaption></figure><p>That’s it, all the 3 popular transformer architectures! A high-level understanding of their strengths and their typical applications can guide you in selecting the most suitable LLM for your project.</p><p>This knowledge, combined with the ease of using APIs and libraries, sets you up for success in the exciting world of generative AI.</p><p>Thank you for reading ❤️</p><p>If you found it helpful, please follow me on Medium or <a href="https://twitter.com/Nilzkool">Twitter</a> for more insights and in-depth content on LLM engineering, aimed at helping you create outstanding General AI applications 😊</p><p><strong>References</strong></p><ol><li><a href="https://www.coursera.org/learn/generative-ai-with-llms">Coursera course on Generative AI with LLMs</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff697cc38de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>