<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mainuddin</title>
    <description>The latest articles on Forem by Mainuddin (@mainuddin_1).</description>
    <link>https://forem.com/mainuddin_1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3806862%2Fe70f6795-8ba2-479f-98ca-2be475e25781.jpg</url>
      <title>Forem: Mainuddin</title>
      <link>https://forem.com/mainuddin_1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mainuddin_1"/>
    <language>en</language>
    <item>
      <title>Beyond the Code: Mentoring the Next Generation of Engineers at Six Flags</title>
      <dc:creator>Mainuddin</dc:creator>
      <pubDate>Tue, 05 May 2026 17:36:16 +0000</pubDate>
      <link>https://forem.com/mainuddin_1/beyond-the-code-mentoring-the-next-generation-of-engineers-at-six-flags-58f2</link>
      <guid>https://forem.com/mainuddin_1/beyond-the-code-mentoring-the-next-generation-of-engineers-at-six-flags-58f2</guid>
      <description>&lt;p&gt;Technology is often viewed through the lens of lines of code and GitHub commits, but its true impact lies in the community it builds. Recently, representatives from Open Source with SLU stepped away from our development environments to serve as ambassadors for the future of computer science during a regional outreach event.&lt;/p&gt;

&lt;p&gt;While the setting was informal, the goal was high-stakes: inspiring curiosity in middle and high school students. As a representative of our open-source program, my role wasn't just to talk about software, but to demystify the "black box" of technology for students who are just starting to explore STEM.&lt;/p&gt;

&lt;p&gt;We focused our conversations on the core philosophy of Open Source:&lt;/p&gt;

&lt;p&gt;Collaboration: Explaining how developers who have never met can build global tools together.&lt;/p&gt;

&lt;p&gt;Transparency: Showing students that they don't just have to use apps—they can actually read, understand, and change the code behind them.&lt;/p&gt;

&lt;p&gt;Accessibility: Breaking down the barrier that computer science is only for "math geniuses" and showing it as a creative toolkit for problem-solving.&lt;/p&gt;

&lt;p&gt;Professional leadership in a technical context is often measured by project management or code quality. However, this experience reminded me that true leadership also includes mentorship and advocacy. Seeing a student’s perspective shift from "I could never do that" to "How do I start?" is a powerful reminder of why we share our knowledge.&lt;/p&gt;

&lt;p&gt;As computer science students, we often get lost in the logic of our specific sprints. Acting as a bridge for these younger students allowed us to step back and see the "big picture" of our field.&lt;/p&gt;

&lt;p&gt;Being a leader means being the best advocate for your community. By representing Open Source with SLU in a public, high-energy environment, we strengthened our program’s external presence and took a meaningful step in fostering the next generation of technical talent.&lt;/p&gt;

</description>
      <category>leadership</category>
      <category>mentorship</category>
      <category>opensource</category>
      <category>steminism</category>
    </item>
    <item>
      <title>Building an AI Prediction API with FastAPI: Lessons from an Open Source Project</title>
      <dc:creator>Mainuddin</dc:creator>
      <pubDate>Thu, 05 Mar 2026 02:05:31 +0000</pubDate>
      <link>https://forem.com/mainuddin_1/building-an-ai-prediction-api-with-fastapi-lessons-from-an-open-source-project-3ng0</link>
      <guid>https://forem.com/mainuddin_1/building-an-ai-prediction-api-with-fastapi-lessons-from-an-open-source-project-3ng0</guid>
      <description>&lt;p&gt;Artificial Intelligence projects often focus heavily on training models, but an equally important step is making those models usable. A trained model is only truly useful when other systems or users can interact with it easily. One of the most practical ways to do this is by exposing the model through an API.&lt;/p&gt;

&lt;p&gt;While working on an open-source AI research project, I had the opportunity to build a prediction API using FastAPI. The goal was simple: allow users to send input data and receive predictions from the model quickly and reliably. During this process, I learned several useful lessons about building clean, maintainable AI APIs.&lt;/p&gt;

&lt;p&gt;Why FastAPI?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl87o8gc0l2cmw7vmzy6j.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl87o8gc0l2cmw7vmzy6j.jpg" alt=" " width="800" height="460"&gt;&lt;/a&gt;&lt;br&gt;
FastAPI has quickly become one of the most popular frameworks for building APIs in Python. It is particularly well suited for machine learning and AI projects.&lt;/p&gt;

&lt;p&gt;A few reasons why FastAPI works well for AI systems:&lt;/p&gt;

&lt;p&gt;It is fast and lightweight&lt;br&gt;
It works naturally with Python-based ML frameworks&lt;br&gt;
It provides automatic documentation&lt;br&gt;
It includes strong input validation&lt;/p&gt;

&lt;p&gt;For machine learning workflows where models are already written in Python, FastAPI provides a simple and efficient way to turn those models into services.&lt;/p&gt;

&lt;p&gt;Basic Architecture of an AI Prediction API&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft1mf16z0c1zw4zasqjiu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft1mf16z0c1zw4zasqjiu.jpg" alt=" " width="800" height="964"&gt;&lt;/a&gt;&lt;br&gt;
At a high level, the architecture of a prediction API is straightforward. A user sends data to the API, the API processes the request, the model generates a prediction, and the response is returned.&lt;/p&gt;

&lt;p&gt;The workflow typically looks like this:&lt;/p&gt;

&lt;p&gt;User → API Request → Model Prediction → Response&lt;/p&gt;

&lt;p&gt;In practice, the API needs to handle several tasks, including validating inputs, loading the model, and returning structured outputs.&lt;/p&gt;

&lt;p&gt;A Simple Example&lt;/p&gt;

&lt;p&gt;Below is a minimal example of a FastAPI prediction endpoint.&lt;/p&gt;

&lt;p&gt;from fastapi import FastAPI&lt;br&gt;
app = FastAPI()&lt;br&gt;
@app.get("/predict")&lt;br&gt;
def predict():&lt;br&gt;
    result = "sample prediction"&lt;br&gt;
    return {"prediction": result}&lt;/p&gt;

&lt;p&gt;This example is simple, but it demonstrates the core idea. The API exposes an endpoint, processes a request, and returns a structured response.&lt;/p&gt;

&lt;p&gt;In real applications, this endpoint would load a trained model and run inference using the provided input data.&lt;/p&gt;

&lt;p&gt;Lessons Learned&lt;br&gt;
While building this system, a few best practices became very clear.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Input validation is essential&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;APIs should never assume that incoming data is valid. FastAPI’s built-in validation tools help ensure that requests contain the correct data types and structure.&lt;/p&gt;

&lt;p&gt;This prevents many errors before they reach the model itself.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep the API separate from the model logic&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It is important to separate the model implementation from the API layer. This keeps the code organized and makes the system easier to maintain.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;Model code handles predictions&lt;br&gt;
API code handles requests and responses&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automate formatting and testing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In open-source projects, maintaining code quality is important. Tools such as:&lt;/p&gt;

&lt;p&gt;Black (for formatting)&lt;br&gt;
Flake8 (for linting)&lt;br&gt;
GitHub Actions (for CI)&lt;br&gt;
help ensure that code remains consistent across contributors.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Clear documentation improves collaboration&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One thing I noticed quickly is that good documentation makes a huge difference. When other developers can understand how the API works and how to interact with it, collaboration becomes much smoother.&lt;/p&gt;

&lt;p&gt;FastAPI automatically generates interactive API documentation, which is incredibly helpful for testing and onboarding new contributors.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;/p&gt;

&lt;p&gt;Building an AI model is only one part of the process. Making that model accessible through a clean and reliable API is what allows it to be integrated into real systems.&lt;/p&gt;

&lt;p&gt;FastAPI provides an excellent framework for this purpose. Its simplicity, performance, and strong Python ecosystem make it a great choice for AI and machine learning projects.&lt;/p&gt;

&lt;p&gt;For developers working on AI systems, learning how to expose models through APIs is a valuable skill that bridges the gap between research and real-world applications.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>fastapi</category>
      <category>opensource</category>
      <category>python</category>
    </item>
  </channel>
</rss>
