<?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 Bishwas Jha on Medium]]></title>
        <description><![CDATA[Stories by Bishwas Jha on Medium]]></description>
        <link>https://medium.com/@bishwasjha?source=rss-6747940d180b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7ozxc741E9TS3A6AsAOdYw.jpeg</url>
            <title>Stories by Bishwas Jha on Medium</title>
            <link>https://medium.com/@bishwasjha?source=rss-6747940d180b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:30:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bishwasjha/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[DevOps Series: Streamlined Python Pre-Commit Checks Powered by uv]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://faun.pub/devops-series-streamlined-python-pre-commit-checks-powered-by-uv-343cdd448de1?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1536/1*411WE7aXnQQyp4Sm493agQ.png" width="1536"></a></p><p class="medium-feed-snippet">In this first piece, I will show how to get sub-second installs, ephemeral environments, and reproducible processes without ever affecting&#x2026;</p><p class="medium-feed-link"><a href="https://faun.pub/devops-series-streamlined-python-pre-commit-checks-powered-by-uv-343cdd448de1?source=rss-6747940d180b------2">Continue reading on FAUN.dev()  »</a></p></div>]]></description>
            <link>https://faun.pub/devops-series-streamlined-python-pre-commit-checks-powered-by-uv-343cdd448de1?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/343cdd448de1</guid>
            <category><![CDATA[shell-script]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Sun, 25 May 2025 18:35:34 GMT</pubDate>
            <atom:updated>2025-05-31T07:35:04.499Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Generative AI for Sustainability Improvements in Code]]></title>
            <link>https://towardsaws.com/generative-ai-for-sustainability-improvements-in-code-2db49d66d30c?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db49d66d30c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Sun, 14 Jul 2024 14:31:44 GMT</pubDate>
            <atom:updated>2024-07-14T14:31:44.214Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Using Amazon Bedrock with AWS code pipeline</strong></p><p>In today’s rapidly evolving technological landscape, sustainability is becoming a prime consideration for developers and businesses alike. With the increasing demand for energy-efficient and environmentally friendly solutions, leveraging Generative AI (Gen AI) for sustainability improvements and improvement suggestions in code is an innovative approach. In this article, we will explore how Gen AI can be used to identify and implement sustainability enhancements in code, using an example script designed to interact with <strong>Amazon Titan Text Express</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhVcnEC7fBgkS-e2V3eQfA.png" /><figcaption>note: ai generated art</figcaption></figure><p>Furthermore, the integration of Generative AI (Gen AI) as a tool for providing feedback on sustainability efforts is transforming the way we approach eco-friendly practices. This article explores the advantages of being sustainable and the role of Gen AI in enhancing sustainability.</p><h3>The Advantages of Being Sustainable</h3><h4>1. Environmental Protection</h4><p>Sustainability directly contributes to the protection and preservation of our environment. By adopting sustainable practices, businesses and individuals can reduce their carbon footprint, decrease pollution, and conserve natural resources. This helps mitigate climate change and preserves biodiversity for future generations.</p><h4>2. Cost Savings</h4><p>Sustainable practices often lead to significant cost savings. Energy-efficient technologies, waste reduction, and resource optimisation can reduce operational expenses. For instance, using renewable energy sources or implementing energy-saving measures can lower utility bills.</p><h4>3. Enhanced Brand Reputation</h4><p>Companies that prioritise sustainability tend to have better brand reputations. Consumers are increasingly aware of environmental issues and prefer to support businesses that demonstrate a commitment to sustainability. A strong sustainability profile can attract customers, investors, and top talent, enhancing the overall brand image and market position.</p><h4>4. Regulatory Compliance</h4><p>Governments and regulatory bodies are imposing stricter environmental regulations. By adopting sustainable practices, businesses can ensure compliance with these regulations, avoiding fines and legal issues. Proactive sustainability efforts can also position companies to benefit from government incentives and grants aimed at promoting eco-friendly practices.</p><h4>5. Long-term Viability</h4><p>Sustainability ensures the long-term viability of businesses by promoting resilience and adaptability. Sustainable practices help companies manage risks associated with resource scarcity, climate change, and supply chain disruptions. By focusing on sustainability, businesses can build more robust and future-proof operations.</p><p>A major question that frequently arises is when developers should consider sustainability and where the best options for implementation might be. Drawing from my experience and as i said as a speaker at a <a href="https://youtu.be/9GIBlyMvdPU?si=l3oTZ793bc5w8be5">Python conference</a>, I suggest focusing on sustainability during code reviews and within CI/CD pipelines. To illustrate these key points, I will explain both phases where integrating sustainability indicators and suggesters is most feasible. In this article, I will demonstrate a basic example that can be elevated through advanced prompt engineering.Understanding the Example Script:</p><p>The example script consists of three blocks: Main Code Block (The code uses Amazon bedrock and is a simple block that reads the example code and prompts the output text drawn and modified from example provoded by AWS) is the initial code to find sustainability gains, Example.py is code upon which sustainability suggestions are made, and output showcases the improvements to be done in code for sustainability enhancements.</p><h4>CodeSmells.py</h4><p>The first block is a Python script that uses the Amazon Titan Text Express model to generate text. The script involves invoking the model and handling potential errors.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb22c5ed9ddcaab235ceb3a1fd0e9fea/href">https://medium.com/media/fb22c5ed9ddcaab235ceb3a1fd0e9fea/href</a></iframe><p><strong>CICD Pipeline</strong>: placing the CodeSmell checker in pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*hB18Vwoz-N9kCoSDI7B_XQ.png" /></figure><h4>Example.py: <strong>Code where we will identify possible improvements</strong></h4><p>The second block of code is to identify potential issues in the script that could impact sustainability and get some suggestions on improvements. These issues include hardcoding values, creating unnecessary objects, and not optimizing resource usage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/de2caca065d11af2325978e41f8f0d07/href">https://medium.com/media/de2caca065d11af2325978e41f8f0d07/href</a></iframe><h4>Sustainability Enhancements suggestions by CodeSmells.py</h4><p>The third block shows the improvement for the code for sustainability implementation.</p><pre># Sustainability improvements:<br><br># Use the boto3.client() function with the default region to create the Bedrock client.<br># This reduces the number of unnecessary network requests and improves sustainability.<br><br># Specify the region and model ID directly in the invoke_endpoint() function call.<br># This avoids hardcoding the region and model ID in the code and makes it more flexible.<br><br># Use the boto3.resource() function to create the CloudWatch log group and log stream resources.<br># This ensures that the resources are properly cleaned up after use, reducing resource waste.<br><br># Define the input data as a string directly in the invoke_endpoint() function call.<br># This avoids creating unnecessary byte objects and reduces memory usage.<br><br># Check the response status code directly in the if statement.<br># This avoids the need to store the response in a variable and reduces memory usage.<br><br># Use the print() function with the &quot;end&quot; parameter to add a newline character after each print statement.<br># This improves the readability of the code and reduces unnecessary whitespace.<br><br># Consider using the boto3.session() function to create a persistent connection to the AWS service.<br># This can improve performance and reduce the number of network requests.<br><br># Explore other sustainability improvements, such as reducing the use of resources, optimizing network requests, and using energy-efficient computing resources.</pre><h3>Benefits of Including Generative AI for Sustainability Feedback</h3><p>Generative AI is revolutionising the way we approach sustainability by providing intelligent feedback and suggestions for improvement. Here are some ways Gen AI contributes to sustainability:</p><h4>1. Automated Sustainability Audits</h4><p>Gen AI can perform automated audits of business processes, operations, and code to identify areas where sustainability can be improved. This reduces the need for manual audits, saving time and resources. AI-driven audits can be more thorough and precise, uncovering inefficiencies that might be overlooked by human auditors.</p><h4>2. Real-time Monitoring and Feedback</h4><p>Gen AI can provide real-time monitoring and feedback on sustainability metrics. For example, AI systems can track energy usage, emissions, and resource consumption, offering instant suggestions for optimisation. This enables businesses to make data-driven decisions and implement sustainability measures promptly.</p><h4>3. Predictive Analytics</h4><p>By leveraging predictive analytics, Gen AI can forecast future sustainability challenges and opportunities. AI models can analyse trends and patterns to predict resource shortages, environmental impacts, and regulatory changes. This allows businesses to proactively address potential issues and capitalise on opportunities for sustainability improvements.</p><h4>4. Enhancing Efficiency</h4><p>Gen AI can suggest specific improvements to enhance the efficiency of processes and operations. For instance, AI can optimise supply chain logistics to reduce fuel consumption, suggest energy-efficient production methods, or recommend sustainable materials. These suggestions can lead to significant reductions in resource usage and environmental impact.</p><h4>5. Personalized Sustainability Strategies</h4><p>Gen AI can tailor sustainability strategies to the unique needs and goals of individual businesses. By analysing specific data, AI can provide customised recommendations that align with a company’s operational context, industry, and sustainability objectives. This personalised approach ensures that sustainability efforts are both effective and relevant.</p><h3>Conclusion</h3><p>Incorporating Gen AI for sustainability improvements in code is not just an innovative approach but also a necessary step towards creating more eco-friendly and efficient software solutions. By leveraging the capabilities of models like Amazon Titan Text Express, developers can significantly enhance the sustainability of their code, contributing to a greener and more sustainable future.</p><p>This is a tailored example to showcase use case of Gen AI for CICD metrics on sustainability checks. Please share your feedback in comments if you like to know more about use case of Gen AI with examples for DevOps Engineers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db49d66d30c" width="1" height="1" alt=""><hr><p><a href="https://towardsaws.com/generative-ai-for-sustainability-improvements-in-code-2db49d66d30c">Generative AI for Sustainability Improvements in Code</a> was originally published in <a href="https://towardsaws.com/">Towards AWS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Resiliency Hub: Enhancing Cloud Infrastructure Resilience]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://towardsaws.com/aws-resiliency-hub-enhancing-cloud-infrastructure-resilience-9a9da14b1c65?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1176/1*QGNuSmLub_Wor1iNoP4drg.png" width="1176"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://towardsaws.com/aws-resiliency-hub-enhancing-cloud-infrastructure-resilience-9a9da14b1c65?source=rss-6747940d180b------2">Continue reading on Towards AWS »</a></p></div>]]></description>
            <link>https://towardsaws.com/aws-resiliency-hub-enhancing-cloud-infrastructure-resilience-9a9da14b1c65?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a9da14b1c65</guid>
            <category><![CDATA[well-architected]]></category>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[resilience]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Mon, 01 Apr 2024 02:38:05 GMT</pubDate>
            <atom:updated>2024-04-01T02:38:05.588Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Statistics and Linear Algebra]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/adventures-of-ai/day-4-statistics-and-linear-algebra-85ea673fbcd9?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1024/1*oTRoQea1H9e2Ml-Ntpc00Q.png" width="1024"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/adventures-of-ai/day-4-statistics-and-linear-algebra-85ea673fbcd9?source=rss-6747940d180b------2">Continue reading on Adventures of AI »</a></p></div>]]></description>
            <link>https://medium.com/adventures-of-ai/day-4-statistics-and-linear-algebra-85ea673fbcd9?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/85ea673fbcd9</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[algebra]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 17:01:04 GMT</pubDate>
            <atom:updated>2024-07-13T20:13:00.345Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Day 3: Visualisation in Machine Learning]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/adventures-of-ai/day-3-visualisation-in-machine-learning-ce72a70f3958?source=rss-6747940d180b------2">Continue reading on Adventures of AI »</a></p></div>]]></description>
            <link>https://medium.com/adventures-of-ai/day-3-visualisation-in-machine-learning-ce72a70f3958?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce72a70f3958</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[matplotlib]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 17:01:34 GMT</pubDate>
            <atom:updated>2023-12-18T17:01:34.382Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Day 2 — Mastering DataFrames]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/adventures-of-ai/day-2-mastering-dataframes-eeb686040790?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1024/1*oTRoQea1H9e2Ml-Ntpc00Q.png" width="1024"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/adventures-of-ai/day-2-mastering-dataframes-eeb686040790?source=rss-6747940d180b------2">Continue reading on Adventures of AI »</a></p></div>]]></description>
            <link>https://medium.com/adventures-of-ai/day-2-mastering-dataframes-eeb686040790?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeb686040790</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[dataframes]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 17:02:08 GMT</pubDate>
            <atom:updated>2023-12-17T17:02:08.428Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Day 1: Python Basics]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/adventures-of-ai/day-1-python-basics-4925a1350989?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1024/1*oTRoQea1H9e2Ml-Ntpc00Q.png" width="1024"></a></p><p class="medium-feed-snippet">Welcome to the first day of our machine learning expedition!</p><p class="medium-feed-link"><a href="https://medium.com/adventures-of-ai/day-1-python-basics-4925a1350989?source=rss-6747940d180b------2">Continue reading on Adventures of AI »</a></p></div>]]></description>
            <link>https://medium.com/adventures-of-ai/day-1-python-basics-4925a1350989?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4925a1350989</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Sat, 16 Dec 2023 17:17:36 GMT</pubDate>
            <atom:updated>2023-12-16T17:17:36.448Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A 30-Day Adventure into AI and Machine Learning!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/adventures-of-ai/a-30-day-adventure-into-ai-and-machine-learning-3804e2549a31?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1024/1*nPxCpSJChlXqha9R5c9bXg.png" width="1024"></a></p><p class="medium-feed-snippet">Welcome to the AI Adventure! Welcome, intrepid learners, to your 30-day comic journey into the world of Artificial Intelligence (AI) and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/adventures-of-ai/a-30-day-adventure-into-ai-and-machine-learning-3804e2549a31?source=rss-6747940d180b------2">Continue reading on Adventures of AI »</a></p></div>]]></description>
            <link>https://medium.com/adventures-of-ai/a-30-day-adventure-into-ai-and-machine-learning-3804e2549a31?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3804e2549a31</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gans]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 17:02:06 GMT</pubDate>
            <atom:updated>2023-12-29T14:52:42.904Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Boosting Agile Development with Prism Mock Server: A Seamless Collaboration Journey]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devgenius.io/boosting-agile-development-with-prism-mock-server-a-seamless-collaboration-journey-7f477eab58b7?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/600/1*w36b4k2gPVl0XoEf1A11VQ.gif" width="600"></a></p><p class="medium-feed-snippet">In the fast-paced world of software development, building a product efficiently and effectively is essential. This is where the story of&#x2026;</p><p class="medium-feed-link"><a href="https://blog.devgenius.io/boosting-agile-development-with-prism-mock-server-a-seamless-collaboration-journey-7f477eab58b7?source=rss-6747940d180b------2">Continue reading on Dev Genius »</a></p></div>]]></description>
            <link>https://blog.devgenius.io/boosting-agile-development-with-prism-mock-server-a-seamless-collaboration-journey-7f477eab58b7?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f477eab58b7</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[prism]]></category>
            <category><![CDATA[open-api]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Fri, 13 Oct 2023 20:27:24 GMT</pubDate>
            <atom:updated>2023-10-16T19:32:38.082Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From Novice to Ninja: Decoding the Milestones of Python Mastery]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devgenius.io/from-novice-to-ninja-decoding-the-milestones-of-python-mastery-faa6aca9a1c6?source=rss-6747940d180b------2"><img src="https://cdn-images-1.medium.com/max/1024/1*kn8RwHcZqDJvWCtQgJUQ2w.png" width="1024"></a></p><p class="medium-feed-snippet">The allure of Python lies in its simplicity, enhanced by a vast array of libraries. Many embark on this programming journey, but there&#x2026;</p><p class="medium-feed-link"><a href="https://blog.devgenius.io/from-novice-to-ninja-decoding-the-milestones-of-python-mastery-faa6aca9a1c6?source=rss-6747940d180b------2">Continue reading on Dev Genius »</a></p></div>]]></description>
            <link>https://blog.devgenius.io/from-novice-to-ninja-decoding-the-milestones-of-python-mastery-faa6aca9a1c6?source=rss-6747940d180b------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa6aca9a1c6</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Bishwas Jha]]></dc:creator>
            <pubDate>Sat, 19 Aug 2023 17:46:53 GMT</pubDate>
            <atom:updated>2023-08-21T09:17:32.129Z</atom:updated>
        </item>
    </channel>
</rss>