<?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>DEV Community: Toluwanimi </title>
    <description>The latest articles on DEV Community by Toluwanimi  (@zeekwrites).</description>
    <link>https://dev.to/zeekwrites</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1433687%2F8fe864c0-c85c-4d2d-9e99-b0037da6efe1.jpeg</url>
      <title>DEV Community: Toluwanimi </title>
      <link>https://dev.to/zeekwrites</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zeekwrites"/>
    <language>en</language>
    <item>
      <title>Stop Turning Every REST Endpoint into an MCP Tool: A Better Approach to AI Tool Design</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/stop-turning-every-rest-endpoint-into-an-mcp-tool-a-better-approach-to-ai-tool-design-4031</link>
      <guid>https://dev.to/zeekwrites/stop-turning-every-rest-endpoint-into-an-mcp-tool-a-better-approach-to-ai-tool-design-4031</guid>
      <description>&lt;p&gt;Having an API endpoint doesn't automatically mean an AI application needs a corresponding MCP tool.&lt;/p&gt;

&lt;p&gt;Exposing too many similar operations can make tool selection more complicated, increase the information presented to the model, and introduce unnecessary complexity into an integration.&lt;/p&gt;

&lt;p&gt;Instead of focusing on how many endpoints an API has, developers should think about what the AI application actually needs to accomplish.&lt;/p&gt;

&lt;p&gt;Let's have a look at a better approach to MCP tool design.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why One-to-One Endpoint Mapping Can Be a Problem
&lt;/h2&gt;

&lt;p&gt;Imagine an e-commerce application with the following REST endpoints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;
&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;
&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;delivery&lt;/span&gt;
&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;cancel&lt;/span&gt;
&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;order_id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;refund&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A developer could expose each endpoint as a separate MCP tool.&lt;/p&gt;

&lt;p&gt;The resulting tool catalogue might contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;get_order&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_order_items&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_order_status&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;get_order_delivery&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cancel_order&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;refund_order&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each tool has a specific purpose, so this approach isn't inherently wrong.&lt;/p&gt;

&lt;p&gt;However, consider what will happen when a customer asks:&lt;/p&gt;

&lt;p&gt;"Can you help check whether my order has been shipped and tell me when it will arrive?"&lt;/p&gt;

&lt;p&gt;The AI application may need to identify and invoke multiple tools to retrieve the order status and delivery information.&lt;/p&gt;

&lt;p&gt;Depending on the implementation, that could introduce additional tool calls and require the model to coordinate their results.&lt;/p&gt;

&lt;p&gt;As the number of available operations grows, the tool catalogue can become harder to navigate.&lt;/p&gt;

&lt;p&gt;But the problem isn't necessarily the number of tools alone. It's whether those tools are designed around meaningful tasks and whether their descriptions make their purposes clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Design Tools Around User Intent
&lt;/h2&gt;

&lt;p&gt;A more intentional approach is to consider what users actually want to accomplish.&lt;/p&gt;

&lt;p&gt;Still using the e-commerce example, customers are unlikely to think in terms of HTTP methods or database operations.&lt;/p&gt;

&lt;p&gt;They ask questions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where is my order?&lt;/li&gt;
&lt;li&gt;What items did I purchase?&lt;/li&gt;
&lt;li&gt;Has my order been shipped?&lt;/li&gt;
&lt;li&gt;Can I cancel my order?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are user intentions, not API endpoint names.&lt;/p&gt;

&lt;p&gt;An MCP server could expose a task-oriented tool such as:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;get_order_summary&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Instead of asking the AI application to coordinate several narrowly scoped retrieval operations, this tool could retrieve the relevant order details through the existing backend services.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"order_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"shipped"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"items"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"Wireless headphones"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"USB-C cable"&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"estimated_delivery"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-21"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The AI application can then use the returned information to answer the customer's question.&lt;/p&gt;

&lt;p&gt;This doesn't mean every operation should be combined into one large tool.&lt;/p&gt;

&lt;p&gt;A tool should have a clear responsibility and a predictable result. Combining unrelated operations into an overly broad tool can create a different set of problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Keep the Tool Catalogue Focused
&lt;/h2&gt;

&lt;p&gt;An MCP server exposes available tools through the &lt;code&gt;tools/list&lt;/code&gt; operation, and each tool has a name, description, and input schema.&lt;/p&gt;

&lt;p&gt;This information helps an MCP client understand which tools are available and what information they require.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"process_order"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Processes an order."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What does processing mean here?&lt;/p&gt;

&lt;p&gt;Does the tool retrieve an order, update its status, cancel it, or issue a refund? It's not clear&lt;/p&gt;

&lt;p&gt;The description doesn't provide enough context.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"get_order_summary"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Retrieves an order's current status, purchased items, and estimated delivery information. Use this tool when a customer asks for an overview or update on an existing order."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Comparing the two examples, this gives the model a clearer understanding of the tool's purpose and when it should be used.&lt;/p&gt;

&lt;p&gt;A useful tool definition should communicate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What the tool does.&lt;/li&gt;
&lt;li&gt;When the AI application should use it.&lt;/li&gt;
&lt;li&gt;What inputs it requires.&lt;/li&gt;
&lt;li&gt;What information it returns.&lt;/li&gt;
&lt;li&gt;Any important limitations or conditions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Clear descriptions and well-defined input schemas make tools easier to understand and use.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Separate Read Operations from Write Operations
&lt;/h2&gt;

&lt;p&gt;Not every tool carries the same level of risk.&lt;/p&gt;

&lt;p&gt;Retrieving an order summary is different from cancelling an order or issuing a refund. A read-only operation retrieves information without changing the application state.&lt;/p&gt;

&lt;p&gt;A write operation can create, update, or delete information. This difference influences how MCP tools are designed and exposed.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Read operations&lt;/th&gt;
&lt;th&gt;Write operations&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Retrieve order details&lt;/td&gt;
&lt;td&gt;Cancel an order&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Check delivery status&lt;/td&gt;
&lt;td&gt;Update delivery details&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;View purchased items&lt;/td&gt;
&lt;td&gt;Issue a refund&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Developers should apply the principle of least privilege by exposing only the operations required for the intended use case.&lt;/p&gt;

&lt;p&gt;MCP tool annotations can provide hints about a tool's behaviour, including whether an operation is read-only or potentially destructive. Actual permissions and safeguards must be implemented by the application and backend.&lt;/p&gt;

&lt;p&gt;The AI application should not receive unrestricted access simply because the underlying REST API supports the operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Don't Confuse Fewer Tools with Better Tools
&lt;/h2&gt;

&lt;p&gt;There is a big difference between reducing unnecessary tools and combining everything into one.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;get_order_summary&lt;/code&gt;: Retrieves relevant order information.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cancel_order&lt;/code&gt;: Requests cancellation of an eligible order.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;request_refund&lt;/code&gt;: Initiates a refund request subject to the required checks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tools are easier to describe, reason about, and secure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The goal isn't to have the fewest tools possible. It's to expose the right tools for the job.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A Practical Framework for Designing MCP Tools
&lt;/h2&gt;

&lt;p&gt;Before exposing an existing API operation through MCP, ask a few questions:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. What user problem does this tool solve?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Start with the task the AI application needs to accomplish instead of the HTTP endpoint you want to expose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Does this operation need to be a separate tool?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Consider whether it represents a distinct capability or whether it can be incorporated into a related, well-defined operation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Are the inputs and outputs clear?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use meaningful parameter names, appropriate data types, and descriptions that explain what the tool expects.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. What permissions does it require?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Differentiate read-only operations from actions that modify data or affect external systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Can the tool be tested independently?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Test expected inputs, invalid arguments, error conditions, permissions, and side effects before making the tool available to an AI application.&lt;/p&gt;

&lt;p&gt;These questions help prevent an MCP server from becoming a simple collection of API wrappers without a clear integration strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Should Backend Developers Take Away?
&lt;/h2&gt;

&lt;p&gt;Building an MCP server is not just about exposing existing REST endpoints to an AI application.&lt;/p&gt;

&lt;p&gt;It requires developers to think about how AI applications discover, understand, and use backend capabilities.&lt;/p&gt;

&lt;p&gt;OpenAPI can describe the existing HTTP API, but that description doesn't automatically determine which operations should become MCP tools.&lt;/p&gt;

&lt;p&gt;The design decision still requires an understanding of user intent, tool responsibilities, input schemas, permissions, and expected behaviour.&lt;/p&gt;

&lt;p&gt;A well-designed MCP integration doesn't have to expose every operation available in the backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further Reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/docs/concepts/tools" rel="noopener noreferrer"&gt;MCP Documentation — Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/server/tools" rel="noopener noreferrer"&gt;MCP Specification — Server Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/writing-tools-for-agents" rel="noopener noreferrer"&gt;Writing Effective Tools for AI Agents — Anthropic&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/mcp-strategies/mcp-tool-strategy-definitions.html" rel="noopener noreferrer"&gt;AWS Prescriptive Guidance — MCP Tool Strategy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;What do you think?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When designing an MCP server around an existing REST API, would you expose individual endpoints as tools or create task-oriented tools around what the AI application needs to accomplish? Share your thoughts in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>api</category>
      <category>backend</category>
    </item>
    <item>
      <title>Your REST API Isn't Automatically an AI Tool: Understanding OpenAPI and MCP</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/your-rest-api-isnt-automatically-an-ai-tool-understanding-openapi-and-mcp-5395</link>
      <guid>https://dev.to/zeekwrites/your-rest-api-isnt-automatically-an-ai-tool-understanding-openapi-and-mcp-5395</guid>
      <description>&lt;p&gt;REST APIs have been the backbone of modern application development for years now. They allow applications to communicate, exchange data, and perform operations through clearly defined HTTP endpoints.&lt;/p&gt;

&lt;p&gt;But as AI applications become more capable, developers are now facing a new question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How can an AI application interact with the functionality already exposed by a REST API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's possible to have an API that retrieves customer information, checks an order's status, processes payments, or manages user accounts. A traditional application can call these endpoints directly.&lt;/p&gt;

&lt;p&gt;But for an AI application, it needs more than just an endpoint URL. It needs a structured way to discover available capabilities, understand what they do, determine what inputs they require, and interact with them appropriately.&lt;/p&gt;

&lt;p&gt;This is where the two technologies become important: &lt;strong&gt;OpenAPI and the Model Context Protocol (MCP).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They help solve different problems, but understanding how they work together can help backend developers build applications that are easier to integrate with AI systems.&lt;/p&gt;

&lt;p&gt;Let's break them down.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. First, What Does a REST API Actually Do?
&lt;/h2&gt;

&lt;p&gt;A REST API provides a way for different software systems to communicate over HTTP.&lt;/p&gt;

&lt;p&gt;Just imagine an e-commerce application with an endpoint that retrieves an order's details.&lt;/p&gt;

&lt;p&gt;A client can send a request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;1024&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server processes the request and returns a response:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"order_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"shipped"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;45000&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What the API does is that it knows how to receive the request, process it, and return the relevant information.&lt;/p&gt;

&lt;p&gt;However, the API does not automatically explain itself to an AI application.&lt;/p&gt;

&lt;p&gt;A developer may know that &lt;code&gt;/api/orders/{id}&lt;/code&gt; retrieves an order, but an AI application needs a reliable description of what the endpoint does, the type of parameters it accepts, and what its response looks like.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What Is OpenAPI?
&lt;/h2&gt;

&lt;p&gt;OpenAPI is a specification for describing HTTP APIs in a machine-readable format.&lt;/p&gt;

&lt;p&gt;It helps developers to document an API's structure, like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Available endpoints and HTTP methods.&lt;/li&gt;
&lt;li&gt;Parameters and request bodies.&lt;/li&gt;
&lt;li&gt;Expected responses.&lt;/li&gt;
&lt;li&gt;Data types and schemas.&lt;/li&gt;
&lt;li&gt;Authentication requirements.&lt;/li&gt;
&lt;li&gt;Descriptions of individual operations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of relying on written documentation, developers can describe an API using a structured document, written in YAML or JSON.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;openapi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.1.0&lt;/span&gt;

&lt;span class="na"&gt;info&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Order Management API&lt;/span&gt;
  &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.0.0&lt;/span&gt;

&lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;/orders/{order_id}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;get&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Retrieve an order&lt;/span&gt;
      &lt;span class="na"&gt;parameters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;order_id&lt;/span&gt;
          &lt;span class="na"&gt;in&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;path&lt;/span&gt;
          &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
          &lt;span class="na"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;integer&lt;/span&gt;
      &lt;span class="na"&gt;responses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;"200"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Order retrieved successfully&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This describes an endpoint, its HTTP method, the parameter it expects, and the possible response.&lt;/p&gt;

&lt;p&gt;Tools can use an OpenAPI description to generate API documentation, validate requests, generate client libraries, and support integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Just think of OpenAPI as a structured instruction manual for an API.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It tells developers and compatible tools what an API offers and how they can communicate with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What Is the Model Context Protocol (MCP)?
&lt;/h2&gt;

&lt;p&gt;The Model Context Protocol is an open protocol that standardises how AI applications connect to external tools and sources of context.&lt;/p&gt;

&lt;p&gt;Before MCP, developers often had to build custom integrations for individual AI applications. Different applications could require different approaches to showing the same functionality.&lt;/p&gt;

&lt;p&gt;MCP provides a common communication framework between AI applications and external services.&lt;/p&gt;

&lt;p&gt;Its architecture has three main participants:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MCP Host:&lt;/strong&gt; The AI application that manages the interaction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP Client:&lt;/strong&gt; The component within the host that communicates with an MCP server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP Server:&lt;/strong&gt; The service that exposes capabilities to the AI application.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MCP uses JSON-RPC for communication between clients and servers. It also defines transport mechanisms, which include standard input/output (stdio) and Streamable HTTP.&lt;/p&gt;

&lt;p&gt;MCP provides a standardised way for AI applications to discover and interact with external capabilities.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What Is the Difference between OpenAPI vs MCP?
&lt;/h2&gt;

&lt;p&gt;This is where developers sometimes confuse the two technologies.&lt;/p&gt;

&lt;p&gt;OpenAPI and MCP can both describe capabilities in structured ways, but they are designed for different purposes.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;OpenAPI&lt;/th&gt;
&lt;th&gt;MCP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Describes HTTP APIs.&lt;/td&gt;
&lt;td&gt;Standardises communication between AI applications and external services.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Documents endpoints, parameters, and responses.&lt;/td&gt;
&lt;td&gt;Exposes tools, resources and prompts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commonly used for API documentation and tooling.&lt;/td&gt;
&lt;td&gt;Used to connect AI applications to external capabilities and context.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Describes how HTTP clients interact with an API.&lt;/td&gt;
&lt;td&gt;Defines how MCP clients and servers exchange messages.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The important thing to note is that &lt;strong&gt;OpenAPI describes an API, while MCP defines a protocol for exposing capabilities to AI applications.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They are not competing, and MCP does not replace REST APIs; they can complement each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Does Every REST API Need an MCP Server?
&lt;/h2&gt;

&lt;p&gt;Not every API needs to be exposed to an AI application.&lt;/p&gt;

&lt;p&gt;If a frontend or mobile application is the only client consuming your API, a conventional REST integration may be all you need.&lt;/p&gt;

&lt;p&gt;MCP becomes relevant when you want compatible AI applications to discover and interact with your backend capabilities through a standard protocol.&lt;/p&gt;

&lt;p&gt;MCP may be useful when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You're building an AI assistant that needs access to business operations.&lt;/li&gt;
&lt;li&gt;You want an AI application to retrieve information from existing services.&lt;/li&gt;
&lt;li&gt;You want to expose backend functions as reusable tools.&lt;/li&gt;
&lt;li&gt;You need a standardised integration between AI applications and external systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The decision should depend on the problem you're solving, not just because MCP is gaining popularity.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Security Still Matters
&lt;/h2&gt;

&lt;p&gt;Making backend functionality accessible to an AI application introduces security considerations that developers must take seriously.&lt;/p&gt;

&lt;p&gt;Here are four important things to consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authentication and authorisation: Verify who is making a request and whether they have permission to perform the requested action.&lt;/li&gt;
&lt;li&gt;Input validation: Validate tool arguments before passing them to backend services.&lt;/li&gt;
&lt;li&gt;Least privilege: Expose only the tools and operations necessary for the intended use case.&lt;/li&gt;
&lt;li&gt;Human confirmation: Require user approval before sensitive or irreversible actions, such as issuing refunds or deleting records.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MCP provides a standardised communication protocol, but developers are still responsible for securing the systems and operations behind their servers.&lt;/p&gt;

&lt;p&gt;The goal is not just to make an API accessible to AI. It is to make that integration useful without compromising application security.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Should Backend Developers Take Away?
&lt;/h2&gt;

&lt;p&gt;REST APIs, OpenAPI, and MCP belong to different parts of the software integration landscape.&lt;/p&gt;

&lt;p&gt;REST provides a way for applications to communicate over HTTP.&lt;/p&gt;

&lt;p&gt;OpenAPI describes the structure and behaviour of HTTP APIs in a machine-readable format.&lt;/p&gt;

&lt;p&gt;MCP provides a standardised way for AI applications to discover and interact with external capabilities.&lt;/p&gt;

&lt;p&gt;Understanding these differences matters because AI integration doesn't eliminate the need for good backend engineering.&lt;/p&gt;

&lt;p&gt;Your API still needs clear contracts, reliable responses, proper authentication, input validation, and predictable behaviour.&lt;/p&gt;

&lt;p&gt;For backend developers, the opportunity is not necessarily to replace existing systems with AI-specific infrastructure. It is to understand how existing systems can be extended to support new forms of interaction.&lt;/p&gt;

&lt;p&gt;And that starts with understanding the technologies connecting them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further Reading
&lt;/h2&gt;

&lt;p&gt;If you want to explore these technologies in more detail, these official resources are useful starting points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/docs/learn/architecture" rel="noopener noreferrer"&gt;Model Context Protocol — Architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/" rel="noopener noreferrer"&gt;Model Context Protocol — Official Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://spec.openapis.org/oas/latest.html" rel="noopener noreferrer"&gt;OpenAPI Specification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.openapis.org/" rel="noopener noreferrer"&gt;Learn OpenAPI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;What do you think?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Have you started exploring MCP, or are you still working primarily with traditional REST API integrations? Share your thoughts in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>mcp</category>
      <category>backend</category>
    </item>
    <item>
      <title>Python 3.15 Is Here: 6 Changes Developers Should Know About</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 20 Oct 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/python-315-is-here-6-changes-developers-should-know-about-2g0b</link>
      <guid>https://dev.to/zeekwrites/python-315-is-here-6-changes-developers-should-know-about-2g0b</guid>
      <description>&lt;p&gt;Python 3.15 is officially here.&lt;/p&gt;

&lt;p&gt;Released on October 9, 2026, Python 3.15 introduces several changes that affect how you import modules, handle text, work with data structures, write comprehensions, debug errors, and profile application performance.&lt;/p&gt;

&lt;p&gt;Some of these updates change how you write Python code. Others improve the tools you use to build and maintain applications.&lt;/p&gt;

&lt;p&gt;Whether you're learning Python, maintaining an existing codebase, or developing production services, understanding these changes can help you decide which features are worth adopting for you.&lt;/p&gt;

&lt;p&gt;Here are six Python 3.15 features you should know about, along with some practical examples and considerations for upgrading.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Lazy Imports: Load Modules When You Need Them
&lt;/h2&gt;

&lt;p&gt;When Python imports a module, it needs to locate the module, load it, and execute its top-level code. In an application with a large dependency tree, the work can add up even when some modules aren't needed for the operation you're performing.&lt;/p&gt;

&lt;p&gt;Python 3.15 introduces lazy imports through the &lt;code&gt;lazy&lt;/code&gt; keyword; it allows you to defer loading an imported module until its name is first used.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;lazy&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;
&lt;span class="n"&gt;lazy&lt;/span&gt; &lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pathlib&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Path&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Application starting...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;location&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Unlike an ordinary import, a lazy import moves the actual loading of the module until the imported name is accessed.&lt;/p&gt;

&lt;p&gt;This can be very useful in command-line applications, developer tools, and larger applications with optional functionality. If a particular execution path never uses an imported module, you may avoid loading it altogether.&lt;/p&gt;

&lt;p&gt;However, lazy imports are not a general performance fix.&lt;/p&gt;

&lt;p&gt;They can change when import-related errors occur and when module initialization code runs. You should also measure startup performance rather than assuming that every application will become faster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When should you use lazy imports?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When an application has expensive dependencies that aren't needed immediately, they are worth investigating when startup time matters more than the simplicity of eager imports.&lt;/p&gt;

&lt;p&gt;One of the benefits is that you can defer unnecessary import work without scattering conditional import statements throughout your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. UTF-8 Is Now Python's Default Encoding
&lt;/h2&gt;

&lt;p&gt;Text encoding is easy to overlook until an application reads a file incorrectly or displays unexpected characters.&lt;/p&gt;

&lt;p&gt;Python's default text encoding could depend on the operating system and environment, which created potential inconsistencies when developers open files without explicitly specifying an encoding.&lt;/p&gt;

&lt;p&gt;Python 3.15 makes UTF-8 the default encoding, following the change introduced by PEP 686.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Python 3.15 uses UTF-8 by default when
# no encoding is specified.
&lt;/span&gt;&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;message.txt&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nb"&gt;file&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python 3.15 uses UTF-8 by default when no encoding is specified. Explicitly setting &lt;code&gt;encoding="utf-8"&lt;/code&gt; remains a good practice when you want the expected encoding to be clear in your code. It documents your assumptions and helps other developers understand how the data should be interpreted.&lt;/p&gt;

&lt;p&gt;This is relevant when working with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text files containing international characters.&lt;/li&gt;
&lt;li&gt;CSV files and exported reports.&lt;/li&gt;
&lt;li&gt;Files exchanged between different operating systems.&lt;/li&gt;
&lt;li&gt;User-generated content.&lt;/li&gt;
&lt;li&gt;Applications that process text from external services.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;UTF-8 provides a consistent default, but it doesn't automatically detect or convert files stored in other encodings. If you receive legacy data encoded in a different format, you still need to handle it appropriately.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does this mean for existing Python applications?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most applications that already use UTF-8 explicitly should need little or no adjustment, but applications handling legacy text files may require testing.&lt;/p&gt;

&lt;p&gt;The practical benefit is greater consistency across development environments and deployment systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Meet &lt;code&gt;frozendict&lt;/code&gt;: A Built-In Immutable Dictionary
&lt;/h2&gt;

&lt;p&gt;Python dictionaries are useful because they let you store and retrieve key-value pairs efficiently. Ordinary dictionaries are mutable. You can change their contents after creating them.&lt;/p&gt;

&lt;p&gt;Consider this configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dark&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;language&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;en&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;light&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;light
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sometimes, you want a mapping that can't be modified after creation.&lt;/p&gt;

&lt;p&gt;Python 3.15 introduces &lt;code&gt;frozendict&lt;/code&gt;, a built-in immutable mapping type. It provides a way to represent key-value data whose mapping contents shouldn't change.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;frozendict&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;dark&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;language&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;en&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dark
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Attempting to assign a new value raises a &lt;code&gt;TypeError&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;theme&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;light&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is useful when you want to make the immutability of a mapping explicit rather than relying on developers to avoid modifying an ordinary dictionary.&lt;/p&gt;

&lt;p&gt;There is an important distinction, though: &lt;strong&gt;an immutable mapping doesn't automatically make its values immutable&lt;/strong&gt;. If a value references a mutable list or another mutable object, that object may still be modified.&lt;/p&gt;

&lt;p&gt;Python 3.15 gives you a built-in option for immutable mappings, reducing the need to immediately reach for a third-party library or a custom workaround.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Comprehensions Can Now Unpack Iterables
&lt;/h2&gt;

&lt;p&gt;Python comprehensions provide a concise way to create lists, sets, and dictionaries from existing data.&lt;/p&gt;

&lt;p&gt;Python 3.15 introduces unpacking support in comprehensions through PEP 798. This lets you use &lt;code&gt;*&lt;/code&gt; and &lt;code&gt;**&lt;/code&gt; to unpack iterables and mappings directly into comprehension expressions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unpacking Iterables in List Comprehensions
&lt;/h3&gt;

&lt;p&gt;Suppose you have a list of lists:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;groups&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Previously, you could flatten the nested lists with a nested comprehension:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;number&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;groups&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;number&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[1, 2, 3, 4, 5]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python 3.15 adds another way to express this transformation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;group&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a reliable working example of unpacking in a comprehension, consult the official Python 3.15 documentation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unpacking Mappings in Dictionary Comprehensions
&lt;/h3&gt;

&lt;p&gt;Mapping unpacking can also help when combining dictionaries.&lt;/p&gt;

&lt;p&gt;Consider these records:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;records&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Ada&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;language&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Grace&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;combined&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;record&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;records&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;combined&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python 3.15's unpacking support makes it possible to express mapping combination within a comprehension.&lt;/p&gt;

&lt;p&gt;When merging dictionaries, remember that duplicate keys need a defined resolution rule. As with ordinary dictionary construction, later values can replace earlier ones.&lt;/p&gt;

&lt;p&gt;The goal isn't to make every comprehension shorter. It's to give you another way to express data transformations without introducing unnecessary intermediate structures.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When should you use unpacking in comprehensions?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use it when the transformation becomes clearer with unpacking. If a nested comprehension or an explicit loop is easier to understand, keep it.&lt;/p&gt;

&lt;p&gt;Readable Python is more useful than compact Python that requires the next developer to stop and decode the syntax.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Better Error Messages Make Debugging Easier
&lt;/h2&gt;

&lt;p&gt;Debugging isn't always about finding a complicated algorithmic problem.&lt;/p&gt;

&lt;p&gt;Sometimes, the issue is simply that you called a method that doesn't exist or accessed an attribute on the wrong object.&lt;/p&gt;

&lt;p&gt;Python 3.15 continues to improve error messages, including suggestions that can help developers identify likely mistakes.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Developers familiar with JavaScript might instinctively use &lt;code&gt;push()&lt;/code&gt; to add an item to a list.&lt;/p&gt;

&lt;p&gt;Python lists use &lt;code&gt;append()&lt;/code&gt; instead.&lt;/p&gt;

&lt;p&gt;Python can provide a helpful suggestion along these lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AttributeError: 'list' object has no attribute 'push'.
Did you mean: '.append'?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The precise wording of an error message can vary, but the idea is straightforward: the interpreter can sometimes suggest a likely alternative instead of leaving you to investigate the mistake from scratch.&lt;/p&gt;

&lt;p&gt;These improvements can be useful when you're learning Python, working with unfamiliar APIs, or debugging code written by someone else.&lt;/p&gt;

&lt;p&gt;They can also help experienced developers catch simple mistakes more quickly.&lt;/p&gt;

&lt;p&gt;However, error suggestions aren't guaranteed to identify the correct solution. The interpreter can offer a likely match, but you still need to understand what the code is supposed to do.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does this matter?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Clearer diagnostics reduce the effort required to interpret common programming mistakes. That can make the development experience smoother, especially when you're working with unfamiliar methods or attributes.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Python's Profiling Tools Are Getting an Upgrade
&lt;/h2&gt;

&lt;p&gt;When a Python application becomes slow, the first instinct might be to optimise a loop or rewrite a function.&lt;/p&gt;

&lt;p&gt;Which isn't always the right approach. Before changing your code, you need to understand where the application spends its time. Profiling tools help you investigate that question.&lt;/p&gt;

&lt;p&gt;Python 3.15 introduces &lt;code&gt;profiling.tracing&lt;/code&gt; for deterministic function-call tracing and &lt;code&gt;profiling.sampling&lt;/code&gt; for statistical sampling. The existing &lt;code&gt;cProfile&lt;/code&gt; module remains available as an alias for backwards compatibility.&lt;/p&gt;

&lt;p&gt;The update gives developers additional ways to investigate application performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should You Upgrade to Python 3.15?
&lt;/h2&gt;

&lt;p&gt;New features are useful, but upgrading an existing application requires more than just reading the release notes.&lt;/p&gt;

&lt;p&gt;Before moving a project to Python 3.15, consider the following steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Check your dependencies.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Confirm that your frameworks, libraries, and native extensions support Python 3.15. Pay particular attention to packages that depend on compiled extensions or interpreter-specific behaviour.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Run your automated tests.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Test your application under the new interpreter before changing your production environment. Include integration tests for database access, file handling, and external services.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Review encoding assumptions.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If your application relies on platform-specific default encodings, check whether the UTF-8 default changes its behaviour and test against representative files, including any legacy data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Measure startup and runtime performance.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're interested in lazy imports, compare startup times before and after the change. If you're investigating a slow application, use profiling tools to establish a baseline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Check deployment compatibility.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Confirm that your hosting environment, container images, build tools, and deployment pipeline can support Python 3.15.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Introduce new syntax carefully.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Features such as unpacking in comprehensions can make code more concise, but new syntax may affect compatibility with older Python versions. Check the minimum interpreter version supported by your project.&lt;/p&gt;

&lt;p&gt;For new projects, Python 3.15 may be worth evaluating early. For established applications, a controlled migration with adequate testing is the safer approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Python 3.15 introduces changes that affect how developers write, debug, and maintain Python applications.&lt;/p&gt;

&lt;p&gt;Lazy imports provide another way to manage startup work. UTF-8 becomes the default encoding, and &lt;code&gt;frozendict&lt;/code&gt; adds a built-in immutable mapping type. Comprehensions gain unpacking support, error messages become more helpful, and the profiling toolkit expands.&lt;/p&gt;

&lt;p&gt;These features won't eliminate the need for good engineering practices. They give you additional options for solving familiar problems.&lt;/p&gt;

&lt;p&gt;The best way to approach a new Python release isn't to adopt every feature immediately but to try to understand what changed, identify the features relevant to your work, and test them in the context of your applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Further reading&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.python.org/3.15/whatsnew/3.15.html" rel="noopener noreferrer"&gt;What's New in Python 3.15&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://peps.python.org/pep-0810/" rel="noopener noreferrer"&gt;PEP 810 — Explicit Lazy Imports&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://peps.python.org/pep-0814/" rel="noopener noreferrer"&gt;PEP 814 — Add frozendict Built-in Type&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://peps.python.org/pep-0798/" rel="noopener noreferrer"&gt;PEP 798 — Unpacking in Comprehensions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://peps.python.org/pep-0799/" rel="noopener noreferrer"&gt;PEP 799 — A Dedicated Profiling Package&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;This article is part of the ZEEKWRITES Python series, exploring Python, APIs, AI-assisted development, and the engineering ideas behind modern software.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Designing REST API Requests and Responses That Scale Without Breaking Clients</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 20 Jan 2026 09:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/designing-rest-api-requests-and-responses-that-scale-without-breaking-clients-16df</link>
      <guid>https://dev.to/zeekwrites/designing-rest-api-requests-and-responses-that-scale-without-breaking-clients-16df</guid>
      <description>&lt;p&gt;It’s funny how most API problems show up in the space between requests and responses.&lt;/p&gt;

&lt;p&gt;Most endpoints look fine on paper, but as soon as payloads grow too large, responses become inconsistent, and clients start making extra calls just to get basic data. And that’s how performance slowly drops.&lt;/p&gt;

&lt;p&gt;How then do you design REST API requests and responses that stay fast, predictable, and easily evolve? &lt;/p&gt;

&lt;p&gt;In ths guide, I’ll walk you through how to structure request payloads, shape JSON responses, handle errors cleanly, and make version changes without you breaking consumers.&lt;/p&gt;

&lt;p&gt;By getting this layer right, your API becomes easier to use, easier to scale, and far less likely to cause surprises in production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This article is for you if you:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Design or maintain REST APIs&lt;/li&gt;
&lt;li&gt;Work on backend or platform teams&lt;/li&gt;
&lt;li&gt;Want APIs that scale without constant refactors&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Structuring REST API Requests for Performance and Clarity
&lt;/h3&gt;

&lt;p&gt;A well-structured REST API request does two things at once: it tells the server exactly what you want, and it does that with the least possible overhead. When a request is vague, bloated, or inconsistent, performance tends to suffer long before traffic becomes “large.”&lt;/p&gt;

&lt;p&gt;So to avoid that, start with clear, resource-focused URLs. Making sure each request links to a single resource or a well-defined collection. Avoid endpoints that try to do too much, such as &lt;code&gt;/getUserAndOrdersAndStats&lt;/code&gt;. If a client needs multiple resources, you’ll have to design separate endpoints or use query parameters to shape the response instead of overloading the request.&lt;/p&gt;

&lt;p&gt;Make use of HTTP methods intentionally. &lt;code&gt;GET&lt;/code&gt; Requests should never change state and should be safe to cache. &lt;code&gt;POST&lt;/code&gt; creates, &lt;code&gt;PUT&lt;/code&gt; replaces, &lt;code&gt;PATCH&lt;/code&gt; updates partially, and &lt;code&gt;DELETE&lt;/code&gt; removes. When your method usage is consistent, then servers can optimize behavior and clients can reason about performance more easily.&lt;/p&gt;

&lt;p&gt;Also, make sure to keep request payloads small and purposeful by only sending fields the server actually needs. Large JSON bodies increase parsing time and memory usage, most especially under high concurrency. If an operation only needs an ID and a status flag, don’t send the entire object.&lt;/p&gt;

&lt;p&gt;Query parameters are also your best tool for read-heavy endpoints. Use them for filtering, pagination, sorting, and field selection. For example, &lt;code&gt;?page=2&amp;amp;limit=20&amp;amp;status=active&lt;/code&gt; is easier to cache, debug, and optimize than embedding the same logic in a request body.&lt;/p&gt;

&lt;p&gt;Make sure you're explicit about data formats by always defining and documenting required and optional fields. Also, make use of consistent naming conventions across all your requests by sticking to one style, which is usually &lt;code&gt;snake_case&lt;/code&gt; or &lt;code&gt;camelCase&lt;/code&gt; and apply it everywhere. Making sure you’re mixing styles increases client complexity and leads to unnecessary transformation logic.&lt;/p&gt;

&lt;p&gt;Validate requests early and fail fast. Reject malformed or incomplete requests before they reach deeper layers of your system. This protects downstream services and keeps your API responsive under load.&lt;/p&gt;

&lt;p&gt;When designing, design requests with observability in mind by including request IDs or correlation headers so you can trace performance issues without inspecting payloads. A clear and well-structured requests make scaling your REST API significantly easier without changing your infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Standard REST API Response Formats (With Examples)
&lt;/h3&gt;

&lt;p&gt;A scalable REST API lives or dies by its response format, and if responses are inconsistent, clients get stressed, and performance tuning turns into guesswork. To avoid that, standardizing your response structure helps you to solve this early.&lt;/p&gt;

&lt;p&gt;Most production-ready REST APIs return a JSON object, not raw values or arrays, and this gives you room to evolve without breaking clients.&lt;/p&gt;

&lt;p&gt;A common and scalable pattern looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clients always know exactly where to look. Parsing becomes trivial and backward compatibility tend to improve.&lt;/p&gt;

&lt;p&gt;To get successful responses, place the actual resource inside &lt;code&gt;data&lt;/code&gt;. and avoid wrapping fields directly at the root level.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: fetching a user resource.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"u_123"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"user@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"active"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"created_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"2025-01-10T14:22:00Z"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"req_9f82a"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This format works because you can add metadata, pagination info, rate-limit data, or request tracing without touching the resource itself.&lt;/p&gt;

&lt;p&gt;For list endpoints, return arrays inside &lt;code&gt;data&lt;/code&gt;, not at the top level&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"u_123"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"user@example.com"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"u_124"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"admin@example.com"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"page"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;245&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pagination metadata is not optional at scale. Clients need it to avoid over-fetching and to build efficient UIs.&lt;/p&gt;

&lt;p&gt;Error responses should follow the same structure. Never return a completely different JSON shape just because something failed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: validation error.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"req_9f82a"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"INVALID_EMAIL"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Email address is not valid"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"details"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"field"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This approach keeps error handling consistent across clients, whether they’re web apps, mobile apps, or other services.&lt;/p&gt;

&lt;p&gt;Make sure you always pair response bodies with the correct HTTP status codes. &lt;code&gt;200&lt;/code&gt; for success, &lt;code&gt;201&lt;/code&gt; for creation, &lt;code&gt;400&lt;/code&gt; for client errors, &lt;code&gt;401&lt;/code&gt; or &lt;code&gt;403&lt;/code&gt; for auth issues, and &lt;code&gt;500&lt;/code&gt; for server failures. The status code tells the high-level story, and the response body provides detail.&lt;/p&gt;

&lt;p&gt;Keeping field names stable and renaming response fields is one of the fastest ways to break consumers. If a change is unavoidable, version the API or introduce new fields alongside the old ones.&lt;/p&gt;

&lt;p&gt;Keep your responses clean, intentional, and boring in the best way, as standard REST API response formats make your API easier to consume, easier to debug, and far more resilient as traffic and complexity grow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handling Errors Consistently Using HTTP Status Codes
&lt;/h3&gt;

&lt;p&gt;Error handling is where a lot of REST APIs quietly fall apart. Having inconsistent status codes forces clients to guess what went wrong, retry unnecessary things, or fail in unpredictable ways. At that point, guesswork becomes expensive.&lt;/p&gt;

&lt;p&gt;To avoid all that, start by treating HTTP status codes as the first layer of error communication. The status code answers the &lt;em&gt;what&lt;/em&gt;, while the response body explains the &lt;em&gt;why&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;400 Bad Request&lt;/code&gt; invalid input. This includes missing required fields, invalid data types, or failed validation rules. If the client can fix the request, &lt;code&gt;400&lt;/code&gt; is usually the right choice.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;401 Unauthorized&lt;/code&gt; When authentication is missing or invalid. This signals that credentials are required or incorrect, and do not use &lt;code&gt;401&lt;/code&gt; for permission issues after authentication.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;403 Forbidden&lt;/code&gt; When authentication succeeds but access is denied. The client is known, but the action is not allowed. Therefore mixing &lt;code&gt;401&lt;/code&gt; and &lt;code&gt;403&lt;/code&gt; often creates confusion and breaks authorization logic on the client side.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;404 Not Found&lt;/code&gt; when a requested resource does not exist. Avoid using &lt;code&gt;404&lt;/code&gt; for validation errors or authorization failures. Clients rely on &lt;code&gt;404&lt;/code&gt; to decide whether to retry, redirect, or stop.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;409 Conflict&lt;/code&gt; for state-related issues. This applies when a request is valid but cannot be completed due to a resource conflict, might be a duplicate records or version mismatches.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;422 Unprocessable Entity&lt;/code&gt; When the request is well-formed but incorrect. This is useful for complex validation errors where &lt;code&gt;400&lt;/code&gt; is too generic.&lt;/p&gt;

&lt;p&gt;Reserve &lt;code&gt;500 Internal Server Error&lt;/code&gt; for unexpected failures. If the server caused the problem and the client cannot fix it, this is the correct signal. Try to avoid leaking internal details in these responses and always return a response body that matches your standard error format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: validation error.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"meta"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"req_3a91c"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"VALIDATION_ERROR"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"One or more fields are invalid"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"details"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Email format is incorrect"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;


&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pairing this with a &lt;code&gt;400&lt;/code&gt; or &lt;code&gt;422&lt;/code&gt; status code allows clients to react correctly without inspecting the message text.&lt;/p&gt;

&lt;p&gt;Keep error codes stable and machine-readable. Human-readable messages can change, but error codes should not. This makes client-side handling reliable across versions.&lt;/p&gt;

&lt;p&gt;An API that rejects bad requests early using clear HTTP status codes protects downstream systems and stays predictable under load. That predictability is what keeps your API from breaking in production.&lt;/p&gt;

&lt;h3&gt;
  
  
  Versioning Your API Without Breaking Existing Clients
&lt;/h3&gt;

&lt;p&gt;Breaking changes is one of the fastest ways to lose trust in an API. Once clients depend on your endpoints, even slight change can cause production failures which is why versioning exists to give you room to evolve without forcing everyone to upgrade at once.&lt;/p&gt;

&lt;p&gt;One of the safest approach is &lt;strong&gt;explicit versioning,&lt;/strong&gt; as clients should always know which version they would be calling.&lt;/p&gt;

&lt;p&gt;The most common and practical method is &lt;strong&gt;URL-based versioning&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/api/v1/users
/api/v2/users


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is easy to understand, easy to route, and easy to remove. Caches, logs, and monitoring tools also work better when the version is visible in the path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Header-based versioning&lt;/strong&gt; is another option, usually via a custom header.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Accept: application/vnd.example.v1+json


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This keeps URLs clean but also increases client complexity and makes debugging harder. If your audience includes beginners or third-party consumers, URL versioning is usually the safer choice.&lt;/p&gt;

&lt;p&gt;Avoid versioning by query parameters. Patterns like &lt;code&gt;?version=1&lt;/code&gt; are easy to misuse and often get ignored by caches and proxies. Also not every changes requires a new version. Additive changes such as adding new optional fields to responses are usually safe, removing fields, renaming fields, or changing response formats are breaking changes and should trigger a new version.&lt;/p&gt;

&lt;p&gt;When introducing a new version, make sure to keep the old one running long enough for clients to migrate. And try as much as possible to communicate deprecations clearly through documentation, response headers, or both.&lt;/p&gt;

&lt;p&gt;A common pattern is to include a deprecation warning in responses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;Deprecation&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;Sunset&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2025-12-31&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This gives clients a timeline without forcing immediate action.&lt;/p&gt;

&lt;p&gt;Keep versions stable and boring, version numbers should reflect breaking changes not feature releases. And avoid jumping versions unnecessarily or maintaining too many versions at once.&lt;/p&gt;

&lt;p&gt;Lastly, make sure you test multiple versions in parallel. Your API infrastructure should allow v1 and v2 to coexist cleanly, with shared logic where possible. This helps to reduce operational risk and keeps evolution predictable.&lt;/p&gt;

&lt;p&gt;Versioning done right lets your REST API grow without breaking existing clients and without creating long-term maintenance pain.&lt;/p&gt;

&lt;p&gt;See you next time. Ciaaaaoooo&lt;/p&gt;

</description>
      <category>api</category>
      <category>backend</category>
      <category>webdev</category>
      <category>architecture</category>
    </item>
    <item>
      <title>AI Ops for Small Engineering Teams: A Simple Guide Without the Enterprise Jargon</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Wed, 10 Dec 2025 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/ai-ops-for-small-engineering-teams-a-simple-guide-without-the-enterprise-jargon-d2p</link>
      <guid>https://dev.to/zeekwrites/ai-ops-for-small-engineering-teams-a-simple-guide-without-the-enterprise-jargon-d2p</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Most machine learning models fail silently before anyone notices.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffr3kbcwrkb4wcax7h4p6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffr3kbcwrkb4wcax7h4p6.gif" alt="gif" width="480" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That quote came from an ML engineer at a startup, and it stuck with me. Not because it was shocking, but because I feel it’s actually true. And the fact that most people don’t realize that most ML failures aren’t really caused by bad models, but by everything around the model. Monitoring, drift. Versioning, deployment, all these small things are what spiral into big fires.&lt;/p&gt;

&lt;p&gt;Which is why I wrote this article about fixing that without enterprise jargon, without Fortune-500 budgets, and without a 10-person AI Ops team. Perhaps you’re a solo founder, indie developer, or part of a tiny engineering team; this is for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why ML Breaks in Production for Small Teams
&lt;/h3&gt;

&lt;p&gt;Imagine you’ve built a model that helps to predict customer churn. It’s clean, it’s fast, and it works beautifully on your laptop. But two weeks after you've deployed it, customers start complaining about the predictions looking “strange.” You then went to check the logs, and everything seems to be fine. No errors, no alerts, no warnings. All that's there are just wrong outputs.&lt;/p&gt;

&lt;p&gt;Congratulations, you’ve just successfully experienced the classic silent failure of ML, and small teams tend to struggle because of this; they struggle because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  They don’t have full-time ML Ops engineers&lt;/li&gt;
&lt;li&gt;  They can’t afford heavy infrastructure&lt;/li&gt;
&lt;li&gt;  They rely on quick patches instead of full systems&lt;/li&gt;
&lt;li&gt;  They monitor logs, but not model behavior&lt;/li&gt;
&lt;li&gt;  They assume a “working” model will keep working&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Which is where most failures begin, because maintenance is exactly what most small teams tend to skip; they don’t know what exactly to maintain.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are The Real Problems?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Monitoring&lt;/strong&gt;: A model output can drift far from reality while your infrastructure may look perfect. You monitor servers, you monitor endpoints. But do you monitor what the model predicts?&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Data Drift&lt;/strong&gt;: Your model might've been trained on yesterday’s world, but users change, markets change, and behavior changes. If at all, your input distribution shifts just a little bit, the performance drops silently.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Versioning&lt;/strong&gt;: If you can’t reproduce your experiments, you can’t fix failing ones because ML models aren’t code, they’re snapshots of data, experiments, and hyperparameters.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;According to research, at least these three issues cause 80% of production ML failures for small teams. But on the bright side, they’re all fixable without heavy systems like Kubernetes, Databricks, Airflow, or enterprise-grade ML.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lightweight Tools That Actually Work for Small Teams
&lt;/h3&gt;

&lt;p&gt;Here are some tools designed for startups and solo engineers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;BentoML&lt;/strong&gt;: For packaging &amp;amp; serving models, it's simple, clean, Docker-friendly, and lets you turn any model into a reliable API.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Phoenix (Arize)&lt;/strong&gt;: For monitoring and drift, it's perfect for anomaly detection, embeddings, drift tracking, and root-cause analysis.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Neptune&lt;/strong&gt;: For experiment tracking, keeping records of model versions, parameters, and results. No more “which notebook did I use?”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Weights &amp;amp; Biases&lt;/strong&gt;: For lifecycle tracking, it has powerful but simple dashboards, and it's great for runs, artifacts, and team visibility.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these tools requires heavy infrastructure or a large team. Most of them have free tiers, and all are friendly for small operations.&lt;/p&gt;

&lt;h3&gt;
  
  
  A Simple Pipeline Any Small Team Can Use
&lt;/h3&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%2Ftu9lgkihqsg2w7g1c7ed.png" 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%2Ftu9lgkihqsg2w7g1c7ed.png" alt="pipline image" width="799" height="175"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Train your model locally by tracking experiments with Neptune or W&amp;amp;B.&lt;/li&gt;
&lt;li&gt; Build a Docker image easily by packaging it with BentoML to create a model server with a single command.&lt;/li&gt;
&lt;li&gt; Deploy your cheapest option, it could be &lt;a href="http://fly.io/" rel="noopener noreferrer"&gt;Fly.io&lt;/a&gt;, Render, Railway, or a small VM&lt;/li&gt;
&lt;li&gt; Use Phoenix for monitoring by sending predictions and input data to Phoenix to automatically track drift and anomalies.&lt;/li&gt;
&lt;li&gt; Add auto-alerts just in case confidence drops or drift spikes, send yourself a Slack/email alert.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By doing all these, you'll get a clean, functional ML Ops setup. No Kubernetes cluster, no massive infrastructure.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Detect Failure Early (Without Fancy Tools)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04a245ya9ykq3a6g7j4q.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04a245ya9ykq3a6g7j4q.gif" alt="how to detect" width="500" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Detecting or catching failure doesn't come easy, but one of the FASTEST ways to catch ML failures early is to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Monitor confidence scores. If your model suddenly becomes “less sure,” then something is wrong.&lt;/li&gt;
&lt;li&gt; Compare recent predictions with historical ones. If the shape changes, that means you have a drift.&lt;/li&gt;
&lt;li&gt; Log inputs and outputs (even in CSV at first); it's impossible to fix what you don’t record.&lt;/li&gt;
&lt;li&gt; Add a “canary model”, try running a tiny baseline model in the background to compare predictions.&lt;/li&gt;
&lt;li&gt; Ask users. Small teams often forget the simplest monitoring tool, which is feedback. Even a one-line “Was this prediction helpful?” button can save you a lot of stress&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  How Small Teams Can Keep Their AI Systems Running Smoothly
&lt;/h3&gt;

&lt;p&gt;Before Deployment, make sure you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Track experiments&lt;/li&gt;
&lt;li&gt;  Save model versions&lt;/li&gt;
&lt;li&gt;  Package model cleanly&lt;/li&gt;
&lt;li&gt;  Add input validation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;During Deployment, make sure you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Log inputs and predictions&lt;/li&gt;
&lt;li&gt;  Store metadata (timestamps, versions)&lt;/li&gt;
&lt;li&gt;  Monitor performance metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After Deployment, make sure you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Track drift (data &amp;amp; concept)&lt;/li&gt;
&lt;li&gt;  Compare outputs to benchmarks&lt;/li&gt;
&lt;li&gt;  Add alerts&lt;/li&gt;
&lt;li&gt;  Re-train periodically&lt;/li&gt;
&lt;li&gt;  Test with a small batch before full release&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Following these steps helps you to handle ML Ops better than having 50-person teams.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;In essence, the main message of this article is quite simple: as a small team, you can run ML in production reliably with lightweight tools and simple habits. AI ops doesn't have to be scary, it doesn’t have to be expensive, and you definitely don’t need enterprise jargon to make your models behave.&lt;/p&gt;

&lt;p&gt;If you treat your model like a living system instead of a one-time project, it will surely reward you with stability, accuracy, and fewer late-night moments of wondering “why is it broken?”&lt;/p&gt;

&lt;p&gt;See you next time. Ciaaaaaoooooooo&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>devops</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>How Non-Developers Are Building Apps: Low-Code &amp; No-Code Platforms</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 18 Nov 2025 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/how-non-developers-are-building-apps-low-code-no-code-platforms-37pm</link>
      <guid>https://dev.to/zeekwrites/how-non-developers-are-building-apps-low-code-no-code-platforms-37pm</guid>
      <description>&lt;p&gt;A few years ago, building an app felt more like you were climbing a mountain because you needed to know how to code, understand databases, set up servers, and even wrestle with deployment tools.&lt;/p&gt;

&lt;p&gt;But things seem to have changed. Let's say you're a fashion store owner and you have an idea for an app that could let your customers browse outfits and place orders directly from their phones, and obviously, you don’t know how to code. In fact, you've never written a single line of JavaScript.&lt;/p&gt;

&lt;p&gt;But still, you opened a Glide, a no-code platform, connected your Google Sheet, and within hours, your app was live. No complex syntax. No developer needed. A few years ago, that would’ve sounded impossible. But today, it’s now a movement.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Are Low-Code and No-Code Platforms?
&lt;/h3&gt;

&lt;p&gt;No-code platforms are platforms that let you build apps without writing a single code. While Low-code platforms allow you to build most parts visually, you can also add small bits of code for flexibility. Think of it like you're building with LEGO blocks. Instead of handcrafting each piece, you pick what you need, snap it into place, and see your app come alive. Some typical examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  No-code: Glide, Bubble, Adalo, Softr&lt;/li&gt;
&lt;li&gt;  Low-code: OutSystems, Mendix, PowerApps, AppSheet&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Basically, they make use of drag-and-drop tools, templates, and logic builders so that people without technical backgrounds can create apps, websites, and workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Does This Shift Matter
&lt;/h3&gt;

&lt;p&gt;Here’s a surprising fact: according to Gartner, by 2026, 80% of software development will involve low-code or no-code tools.&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%2F8dk4bwo5a3e0r2wsu94b.png" 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%2F8dk4bwo5a3e0r2wsu94b.png" alt="Gartner" width="799" height="357"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which means the next big app idea might not come from a developer at all; it might come from a teacher, a small business owner, or probably a student with a laptop and a dream.&lt;/p&gt;

&lt;p&gt;Don't get me wrong, this isn’t about replacing developers. It’s about &lt;strong&gt;making the ability to build software and applications accessible to everyone, not just professional developers⁠&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For decades, software was gatekept by complexity, and now, people can turn ideas into real, working tools that are fast, cheap, and with minimal technical knowledge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why Non-Developers Are Embracing It
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Affordability&lt;/strong&gt;: Hiring a development team at times might be too expensive. Especially for small businesses, that’s often a deal-breaker for **them. So, No-code platforms lower that barrier for them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Speed&lt;/strong&gt;: You don’t have to wait months for a development cycle. You can simply go from idea to prototype in hours. Startups tend to validate their ideas faster, and entrepreneurs can launch their MVPs (minimum viable products) without big budgets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Empowerment&lt;/strong&gt;: For the first time, people who’ve never coded can bring their ideas to life. It’s not just about saving money alone; it’s about having control. No more waiting on developers, no more long communication loops. Just creativity in action.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  But Wait, Where Do Developers Fit In?
&lt;/h3&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%2Fimages.unsplash.com%2Fphoto-1629131973033-30f604f0434a%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" 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%2Fimages.unsplash.com%2Fphoto-1629131973033-30f604f0434a%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" alt="Shocked" width="600" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some developers worry that low-code and no-code tools will replace them. Relax, that’s a myth. The reality is that most of these tools handle the simple, repetitive stuff like the internal dashboards, forms, or small apps. But when it comes to scalable systems, complex integrations, or security-critical software, no one is touching a developer; developers are irreplaceable. In fact, a lot of companies now use hybrid approaches whereby:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Developers handle backend logic, databases, and integrations.&lt;/li&gt;
&lt;li&gt;  Non-developers handle the front-end or workflows using no-code tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s basically teamwork, not replacement.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Challenges of No-Code and Low-Code Platforms
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Limited Customization&lt;/strong&gt;: On the platform, you’re often limited to what you can do and what you're allowed to do. If you want something unique, like a custom algorithm or unusual UI, you won't be able to achieve that.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Vendor Lock-In&lt;/strong&gt;: Let’s say you build an app on a no-code platform, and you plan to move it elsewhere later; it will be hard because some platforms don’t let you export your full codebase.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Scalability and Security&lt;/strong&gt;: No-code apps work well for small use cases, but scaling them to enterprise levels can be a little bit tricky, as developers will often need to refactor or rebuild them later. But, for many small startups and creators, these downsides are worth the trade-off, especially in developing markets where resources are limited.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Developers Are Joining the Revolution
&lt;/h3&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%2Fimages.unsplash.com%2Fphoto-1624377632657-3902bfd35958%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" 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%2Fimages.unsplash.com%2Fphoto-1624377632657-3902bfd35958%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" alt="Developer" width="600" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Interestingly, more developers are also using low-code tools themselves. Why? Because they speed up work, instead of you building an internal tool from scratch, as a developer might choose to use Retool or Budibase to drag and drop components. It saves hours, even days of coding.&lt;/p&gt;

&lt;p&gt;Some call it &lt;strong&gt;“developer-assisted no-code,”&lt;/strong&gt; whereby developers use these tools just to focus more on logic and less on setup.&lt;/p&gt;

&lt;p&gt;As one developer once put it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No-code doesn’t replace us; it just helps us to remove the boring parts.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  The Future: Collaboration Between Coders and Creators
&lt;/h3&gt;

&lt;p&gt;Just imagine a future where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  A marketer builds the front-end of a campaign app in Bubble.&lt;/li&gt;
&lt;li&gt;  A developer hooks it to an API for live data.&lt;/li&gt;
&lt;li&gt;  A product manager tweaks workflows in Zapier or Airtable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Well, that's already happening. The line between &lt;strong&gt;technical&lt;/strong&gt; and &lt;strong&gt;non-technical&lt;/strong&gt; is blurring. The new world of app development isn’t just about code; it’s about creativity, logic, and collaboration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting Started With No-Code / Low-Code
&lt;/h3&gt;

&lt;p&gt;If you’re curious, here are a few tips on how to begin:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start small&lt;/strong&gt;. Build a personal project, maybe a to-do app or feedback form.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose a platform&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Want to build an app? Try Glide, Adalo, or Bubble.&lt;/li&gt;
&lt;li&gt;  Need automation? Try Zapier or n8n.&lt;/li&gt;
&lt;li&gt;  Want dashboards? Try Retool or Airtable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Watch tutorials&lt;/strong&gt;. Most of these platforms have communities full of free guides.&lt;br&gt;
&lt;strong&gt;Think like a developer&lt;/strong&gt;. Even if you’re not coding, understanding logic, data flow, and user experience still matters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;The low-code and no-code revolution is not about removing developers; it’s about bringing in more creators into the tech world.&lt;/p&gt;

&lt;p&gt;It’s about helping small businesses launch their own e-commerce app. It’s about everyone becoming a builder. So, whether you’re a seasoned developer or someone who’s never written a single line of code, the message is still the same: you can build something today.&lt;/p&gt;

&lt;p&gt;Because the future of software isn’t just about coding. It’s about creating&lt;/p&gt;

&lt;p&gt;&lt;em&gt;See you next time!!! Ciaooo&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>automation</category>
      <category>startup</category>
    </item>
    <item>
      <title>How Generative AI is Transforming Software Architecture in 2025</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 11 Nov 2025 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/how-generative-ai-is-transforming-software-architecture-in-2025-248o</link>
      <guid>https://dev.to/zeekwrites/how-generative-ai-is-transforming-software-architecture-in-2025-248o</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;AI won’t replace developers. But developers who use AI will replace those who don’t.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It’s a quiet Monday morning, and you are sipping your coffee, staring at your screen because you've been given a new task to design a scalable system for a startup that handles thousands of data requests per second.&lt;/p&gt;

&lt;p&gt;In the past, this would’ve meant weeks of you writing whiteboard diagrams, endless discussions, and getting architecture reviews. But this time around, instead of you doing all that, you open your AI assistant and type:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Design a microservices architecture for a high-traffic analytics platform.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Within seconds, the AI helps you generate a draft for an architecture diagram with services, database suggestions, caching layers, and communication protocols. You then tweak a few parts, add your company’s requirements, and deploy it for review.&lt;/p&gt;

&lt;p&gt;What normally takes weeks for you to do now gets completed in hours.&lt;/p&gt;

&lt;p&gt;Welcome to 2025, the year Generative AI isn’t only just writing code, but it’s reshaping how software itself is designed.&lt;/p&gt;

&lt;h3&gt;
  
  
  From Coding Partner to Architectural Collaborator
&lt;/h3&gt;

&lt;p&gt;At first, Generative AI kind of started as a handy assistant for developers, while tools like GitHub, Copilot, and ChatGPT help to complete code automatically, generate unit tests, and even write documentation. But in 2025, AI’s role has expanded a lot; it has gone beyond just helping, it’s now collaborating. AI models now understand context better than ever. They can go as far as analyzing an entire codebase, spotting bottlenecks, and even suggesting some architectural improvements.&lt;/p&gt;

&lt;p&gt;Imagine you ask your AI, “What’s the best way to migrate a monolith to microservices?” It won’t just reply you with an article; it will go as far as drawing out a migration roadmap, list possible risks, and even recommend some specific frameworks suited for your stack. It’s just like having a senior architect who has read every software design book that has ever been written, and it doesn’t get tired.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI-Powered System Design
&lt;/h3&gt;

&lt;p&gt;In 2025, I can say most developers no longer start architecture planning from scratch. They mostly begin with AI-generated blueprints.&lt;/p&gt;

&lt;p&gt;Let's say you’re trying to build a real-time chat app. You can simply ask your AI:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Generate a scalable event-driven architecture for a chat system with 1 million users.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The AI then responds with a layout using WebSocket servers, Kafka for message queues, Redis for caching, and PostgreSQL for persistence, all visualized and annotated.&lt;/p&gt;

&lt;p&gt;It’ll even go further to explain the reason why.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Kafka is chosen for its high-throughput event streaming capabilities.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This little combination of explanation and automation will make even a junior developer capable of understanding and building complex systems.&lt;/p&gt;

&lt;h3&gt;
  
  
  Smarter Decisions Through Simulation
&lt;/h3&gt;

&lt;p&gt;Software architecture is not just about the structure. It’s about decisions and trade-offs, and AI tools in 2025 can now simulate performance outcomes. Even before choosing a database or load balancer, AI can project how each option will behave under different traffic conditions.&lt;/p&gt;

&lt;p&gt;For instance, let's say you tell your AI to simulate how an AWS Lambda-based setup compares to a Kubernetes cluster under 1 million daily requests. It’ll go further by showing you costs, latency, and failure points before you even write a single line of code.&lt;/p&gt;

&lt;p&gt;That’s like running your system in the future and learning from it today.&lt;/p&gt;

&lt;h3&gt;
  
  
  Real-World Use Cases
&lt;/h3&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%2Fimages.unsplash.com%2Fphoto-1643208589889-0735ad7218f0%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" 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%2Fimages.unsplash.com%2Fphoto-1643208589889-0735ad7218f0%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" alt="Netflix " width="600" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Netflix: Netflix has been experimenting with AI models that even help predict scaling needs and suggest service decompositions. A lot of its internal architecture reviews are semi-automated with AI-driven recommendations, which saves time and reduces human error.&lt;/li&gt;
&lt;li&gt;  Amazon: Amazon engineers also use AI to analyze system metrics and propose architectural redesigns. These tools automatically recommend database sharding strategies or API restructuring based on performance data.&lt;/li&gt;
&lt;/ul&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%2Fimages.unsplash.com%2Fphoto-1523474253046-8cd2748b5fd2%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" 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%2Fimages.unsplash.com%2Fphoto-1523474253046-8cd2748b5fd2%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" alt="Amazon " width="720" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Startups: Most startups now build their entire MVP architectures in a day. With generative AI platforms like Cogram and &lt;a href="http://builder.ai/" rel="noopener noreferrer"&gt;Builder.ai&lt;/a&gt;, they automatically generate backend blueprints, CI/CD pipelines, and cloud deployment configs&lt;/li&gt;
&lt;/ul&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%2Fimages.unsplash.com%2Fphoto-1557804506-669a67965ba0%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" 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%2Fimages.unsplash.com%2Fphoto-1557804506-669a67965ba0%3Fixlib%3Drb-4.1.0%26q%3D85%26fm%3Djpg%26crop%3Dentropy%26cs%3Dsrgb" alt="startups " width="600" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenges and Cautions
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;AI gives you a head start. But you still make the final call.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;AI can help you suggest a good-looking design, but it doesn’t always understand the context. An AI might probably recommend a distributed system when a simple monolith would do. It might suggest scaling strategies that look great on paper but are overkill in practice. That’s why you as a developer, you are still in control. The best results happen when humans validate and refine AI’s suggestions.&lt;/p&gt;

&lt;p&gt;What then is the role of a developer, you’d ask?&lt;/p&gt;

&lt;p&gt;Well, as generative AI is shifting and changing what it means to be a developer. As a developer, you’re moving from writing every line of code to orchestrating how systems come together. As a developer, you now focus more on &lt;strong&gt;why&lt;/strong&gt; and less on &lt;strong&gt;how&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Why does this design pattern fit the business goal?&lt;/li&gt;
&lt;li&gt;  Why scalability matters at this stage.&lt;/li&gt;
&lt;li&gt;  Why cost efficiency should guide your cloud setup.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AI will be in charge of the &lt;strong&gt;how&lt;/strong&gt; of the blueprints, the code, the configs, while humans steer the &lt;strong&gt;why&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Generative AI isn’t here to take over software architecture. It’s just here to redefine how we think about building systems.&lt;/p&gt;

&lt;p&gt;Whereby the tedious parts of drawing diagrams, documenting APIs, and evaluating scaling strategies are now being automated. Which means as a developer, you can spend more time solving real problems and less time doing repetitive work.&lt;/p&gt;

&lt;p&gt;The future of software architecture is not just human or AI. It’s both working side by side.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>machinelearning</category>
      <category>discuss</category>
    </item>
    <item>
      <title>How To Build APIs That Scale Without Burning Out</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 04 Nov 2025 14:00:00 +0000</pubDate>
      <link>https://dev.to/zeekwrites/how-to-build-apis-that-scale-without-burning-out-2n2j</link>
      <guid>https://dev.to/zeekwrites/how-to-build-apis-that-scale-without-burning-out-2n2j</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;The best code is the one you can sleep peacefully knowing it works - Anonymous developer&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Imagine, as a backend engineer who’s working for a fast-growing startup company, you slept and woke up to a dreaded Slack notification. The company's API, the same one powering thousands of user requests per minute, has just crashed. Servers were timing out, users were complaining, and the frontend team was panicking. What is going on? You know you've written a good code, or so you thought, but good code isn't always scalable code. What seems to work for 100 users was now collapsing under 50,000, and you're probably frustrated and exhausted.&lt;/p&gt;

&lt;p&gt;This is the reality a lot of the developers out there face: you’re building APIs fast, trying to keep up with deadlines, but somewhere between your fixing bugs and pushing updates, you start to burn out. The truth is, scaling an API isn’t just about the performance; it's also about sustainability. You want systems that scale without your mental health taking a hit. Let's have a look at how to build an API that handles growth and how you can do that without losing sleep.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start Simple
&lt;/h3&gt;

&lt;p&gt;Scalable APIs don't start complex; they simply grow into complexity. A lot of developers try to over-engineer very early, adding load balancers, caching layers, and microservices before the product even has real traffic. The best approach is to start simple and design for change. Imagine building a small restaurant, you wouldn’t just start with ten ovens and twenty chefs, would you? You'd probably start with two or maybe four to test what customers like, then expand gradually. APIs are the same. You start with a single well-designed endpoint, make sure it’s stable, fast, and clear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from fastapi import FastAPI

app = FastAPI()

@app.get("/greet")
def greet_user(name: str = "Developer"):
    return {"message": f"Hello, {name}!"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Simple, predictable, and easy to extend. Later on, when traffic grows, you can split routes or move logic into separate modules.&lt;/p&gt;

&lt;h3&gt;
  
  
  Caching is Your Silent Superpower
&lt;/h3&gt;

&lt;p&gt;Caching saves lives a lot, and it also saves developers' sanity. Think of caching as your API's short-term memory. Instead of you fetching the same data repeatedly from your database, you keep copies ready to go. For example, if your API serves product details, and 80% of users keep asking for the same products, it really won't make sense to hit the database every time just to get them. The easiest way for you to do that is to just cache it, making use of tools like &lt;strong&gt;Redis&lt;/strong&gt; or &lt;strong&gt;Memcached&lt;/strong&gt; to store frequently accessed data helps you a lot, and a few seconds of cache can help cut server load drastically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import redis
from fastapi import FastAPI

app = FastAPI()
cache = redis.Redis(host='localhost', port=6379, db=0)

@app.get("/product/{id}")
def get_product(id: int):
    cached_product = cache.get(id)
    if cached_product:
        return {"source": "cache", "data": cached_product.decode("utf-8")}
    # simulate DB call
    product = f"Product {id} details"
    cache.setex(id, 60, product)  # cache for 60 seconds
    return {"source": "database", "data": product}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Caching doesn’t just make your API faster. It gives you breathing space when things get busy.&lt;/p&gt;

&lt;h3&gt;
  
  
  Use Rate Limiting
&lt;/h3&gt;

&lt;p&gt;Rate limiting helps to protect your system from overload. Imagine 20,000 users hitting your API at the same time. Without limits, just one rogue client could consume all your resources and bring everything down. What rate limiting simply does is give your API structure; it’s not just about restricting users, it’s about keeping the system alive and stable.&lt;/p&gt;

&lt;p&gt;You can think of it as saying ’’You can request 60 times per minute, but no more’’&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from fastapi import FastAPI
from slowapi import Limiter
from slowapi.util import get_remote_address

app = FastAPI()
limiter = Limiter(key_func=get_remote_address)

@app.get("/data")
@limiter.limit("5/minute")
def get_data():
    return {"message": "Here’s your data!"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
  
  
  Automate Testing and Monitoring
&lt;/h3&gt;

&lt;p&gt;There's no way for you to scale what you can’t see, but you can make things easier for yourself by using monitoring tools like Prometheus, Grafana, or Datadog, which can help you track latency, uptime, and performance in real time. With these tools, if a route slows down, you’ll know before users start tweeting about it.&lt;/p&gt;

&lt;p&gt;While for testing, you can use frameworks like pytest or locust, as they help you simulate real-world traffic&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from fastapi.testclient import TestClient
from main import app

client = TestClient(app)

def test_greet():
    response = client.get("/greet?name=Toluwanimi")
    assert response.status_code == 200
    assert "Toluwanimi" in response.json()["message"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This makes sure that every single update you push doesn’t break existing functionality&lt;/p&gt;

&lt;h3&gt;
  
  
  Design for Horizontal Scaling
&lt;/h3&gt;

&lt;p&gt;Horizontal scaling simply means adding more servers and spreading the load across them. More like hiring enough workers instead of giving one person all the jobs to do.&lt;/p&gt;

&lt;p&gt;Vertical scaling, on the other hand, means upgrading your existing server. Cloud providers like AWS, Google Cloud, or Azure make this very simple. You can use load balancers to distribute requests evenly. So when designing your API, make sure it can grow sideways and not just upward.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prioritize Developer Experience
&lt;/h3&gt;

&lt;p&gt;Just so you know, your API is only as good as how easy it is to use. Clear documentation, meaningful error messages, and consistent naming conventions save you from hundreds of support requests later on.&lt;/p&gt;

&lt;p&gt;Simple things that help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Clear, human documentation&lt;/li&gt;
&lt;li&gt;  Consistent naming (e.g &lt;code&gt;/users&lt;/code&gt; , &lt;code&gt;/users/{id}&lt;/code&gt; )&lt;/li&gt;
&lt;li&gt;  Helpful error messages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "error": {
    "message": "Invalid request. Missing 'user_id'.",
    "code": 400
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Good APIs are like good conversations; you don’t have to repeat yourself to be understood. If people understand your API easily, they’ll use it more.&lt;/p&gt;

&lt;h3&gt;
  
  
  Optimize Smartly, not Early
&lt;/h3&gt;

&lt;p&gt;Every developer must’ve heard this quote from &lt;strong&gt;Donald Knuth&lt;/strong&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.azquotes.com/quote/721036#:~:text=about%20small%20efficiencies" rel="noopener noreferrer"&gt;Premature optimization is the root of all evil.&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What does he mean by that? What he meant is simple: don’t waste your time fixing what isn’t broken.&lt;/p&gt;

&lt;p&gt;Instead of you spending days rewriting your API to handle 10 million users, focus on writing clean, maintainable code for the 10,000 you actually have. Profile first, then fix what matters. Tools like cProfile in Python help identify bottlenecks. Sometimes, a single database index can make a bigger difference than rewriting an entire endpoint.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import cProfile&lt;br&gt;
import re

&lt;p&gt;def test_function():&lt;br&gt;
    for i in range(10000):&lt;br&gt;
        re.match("a", "a"*i)&lt;/p&gt;

&lt;p&gt;cProfile.run('test_function()')&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Don’t Forget the Human Side&lt;br&gt;
&lt;/h3&gt;

&lt;p&gt;When you’re under pressure to keep systems online, it’s very easy to slip into endless late nights and weekend deployments. But getting burned out doesn’t just hurt you; it hurts your code too.&lt;/p&gt;

&lt;p&gt;Tired developers tend to make avoidable mistakes. A single missing comma or untested patch can take hours for you to fix. Which is why you should set healthy limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Automate deployments.&lt;/li&gt;
&lt;li&gt;  Rotate on-call schedules.&lt;/li&gt;
&lt;li&gt;  Take breaks between releases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your system should scale, but you shouldn’t collapse while it does.&lt;/p&gt;

&lt;h3&gt;
  
  
  Document Everything
&lt;/h3&gt;

&lt;p&gt;Every scalable API always has one thing in common, which is great documentation. Not just for external users, but for your own team precisely.&lt;/p&gt;

&lt;p&gt;To keep track of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Endpoints and response formats&lt;/li&gt;
&lt;li&gt;  Authentication flow&lt;/li&gt;
&lt;li&gt;  Error codes&lt;/li&gt;
&lt;li&gt;  Change logs&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prepare for Failure
&lt;/h3&gt;

&lt;p&gt;Just so you know, even the biggest APIs fail. But what matters the most is how you recover.&lt;/p&gt;

&lt;p&gt;Adding graceful fallbacks. In case one microservice fails, others can continue running. Make use of circuit breakers (like Hystrix) to prevent cascading failures.&lt;/p&gt;

&lt;p&gt;And in case things break down again, use the downtime to learn, not blame.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import requests&lt;br&gt;
from requests.exceptions import RequestException

&lt;p&gt;def fetch_data():&lt;br&gt;
    try:&lt;br&gt;
        response = requests.get("&lt;a href="https://api.example.com/data" rel="noopener noreferrer"&gt;https://api.example.com/data&lt;/a&gt;", timeout=3)&lt;br&gt;
        response.raise_for_status()&lt;br&gt;
        return response.json()&lt;br&gt;
    except RequestException:&lt;br&gt;
        return {"error": "Service temporarily unavailable"}&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Overview of how to go about building your API&lt;br&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Principle&lt;/th&gt;
&lt;th&gt;Why It Matters&lt;/th&gt;
&lt;th&gt;Quick Tips&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Start simple&lt;/td&gt;
&lt;td&gt;Prevent over-engineering&lt;/td&gt;
&lt;td&gt;Focus on core endpoints&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add caching&lt;/td&gt;
&lt;td&gt;Cuts down database load&lt;/td&gt;
&lt;td&gt;Use Redis or Memcached&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limit&lt;/td&gt;
&lt;td&gt;Protects from abuse&lt;/td&gt;
&lt;td&gt;Tools like &lt;code&gt;slowapi&lt;/code&gt;, kong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automate testing&lt;/td&gt;
&lt;td&gt;Prevents regression&lt;/td&gt;
&lt;td&gt;Run pytest before deployment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scale horizontally&lt;/td&gt;
&lt;td&gt;Detects the problem early&lt;/td&gt;
&lt;td&gt;Use Grafana, Datadog&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prioritize DX&lt;/td&gt;
&lt;td&gt;Enables growth&lt;/td&gt;
&lt;td&gt;Load balancers, kubernetes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Optimize smartly&lt;/td&gt;
&lt;td&gt;Encourages adoption&lt;/td&gt;
&lt;td&gt;Clear docs, good errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Protect teams&lt;/td&gt;
&lt;td&gt;Saves time&lt;/td&gt;
&lt;td&gt;Profile before optimizing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Building APIs that scale isn’t just about you coding or handling traffic. It’s about designing for growth, maintaining your simplicity, and making sure you protect your well-being as a developer. No matter the number of requests your server can handle, if you end up getting burned out, the system loses its most important resource, which is you, the human behind it.&lt;/p&gt;

&lt;p&gt;The goal isn’t just for you to build something that never crashes, but something that lets you thrive while it grows. Like my mentor once told me, scalable APIs are written by developers who have learned to balance precision with peace of mind. So when building your API, build it gently&lt;/p&gt;

&lt;p&gt;See you next time!! Ciaoooo.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>api</category>
      <category>backend</category>
      <category>microservices</category>
    </item>
    <item>
      <title>Must-Know Python Packages for Developers: Tools You Can't Miss</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Mon, 13 Oct 2025 14:22:08 +0000</pubDate>
      <link>https://dev.to/zeekwrites/must-know-python-packages-for-developers-tools-you-cant-miss-4133</link>
      <guid>https://dev.to/zeekwrites/must-know-python-packages-for-developers-tools-you-cant-miss-4133</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Any problem in computer science can be solved with another level of&lt;br&gt;
indirection. - David Wheeler&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Back in 2017, a developer, Kenneth Reitz, published a package called &lt;strong&gt;Requests&lt;/strong&gt; with the goal of making HTTP requests in Python very easy, and he was able to accomplish it. Today, Requests is being downloaded billions of times because it powers countless apps, APIs, and projects around the world. And if, as a developer, you’ve fetched data from the web using Python, there are chances that you've used it, because that's the magic of Python packages. They don't just save time, they shape the way you build software, whether you’re scraping data, training a machine model, or you’re building a web app. Python packages are the difference between you having a week of frustration and a single elegant line of code.&lt;/p&gt;

&lt;p&gt;But with the large number of packages we have on Python, you’re probably wondering which one you should focus on. Let's walk through the Python packages every developer must know, but first, why do these packages matter?&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why Packages Matter&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Just imagine you’re building a house, Python is more like the foundation and the tools you'll need for it. Packages, on the other hand, are like the ready-made furniture, the wiring, the plumbing of the house, and instead of you carving your chair from wood, you just place an order for one. For developers, this means&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Faster development&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Fewer bugs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Focus on solving problems&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With that being said, let's now walk through the must-know packages that you, as a beginner or expert, should keep in your toolkit.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Requests
&lt;/h2&gt;

&lt;p&gt;Take, for example, you’re building a weather app, instead of you writing 50 lines of socket code to connect to a weather API, you can do this.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import requests

response = requests.get("https://api.weatherapi.com/v1/current.json?key=API_KEY&amp;amp;q=London")
print(response.json())
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Just one line and you've got live weather data. Almost every app needs to talk to the web, and requests make it easy for companies like Spotify to use it, so developers can integrate the API quickly&lt;/p&gt;

&lt;h2&gt;
  
  
  2. NumPy
&lt;/h2&gt;

&lt;p&gt;If Python were a car, Numpy would be the engine powering its data capabilities because it allows you to work with large datasets and also perform complex maths quickly. For example, you’re analyzing a list of numbers to add; instead of you looping through the list to add them, with NumPy, you can add millions of numbers in milliseconds, and you can handle thousands of rows of data without slowing down.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Pandas
&lt;/h2&gt;

&lt;p&gt;Have you ever opened an Excel sheet with disorganized rows and columns? That's what real-world data looks like, and Panda helps to clean, organize, and analyze it.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd  

data = pd.read_csv("sales.csv")  
print(data.describe())  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Within seconds, you'll be able to understand your data. Financial analyst uses pandas to process stock market data, detect trends, and make predictions&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Flask &amp;amp; Django
&lt;/h2&gt;

&lt;p&gt;Let's say you're a junior developer at a startup and the team needs a quick prototype of a booking system. With Flask, you can just create a functional demonstration or idea within a short time frame. Web apps run our world, and Python has two powerful frameworks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Flask: great for small apps or APIs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Django: perfect for larger apps&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. TensorFlow &amp;amp; PyTorch
&lt;/h2&gt;

&lt;p&gt;If you are planning to explore AI, these two are your best friends. TensorFlow by Google and PyTorch by Meta are the engines behind image recognition, chatbots, and even self-driving cars. Tesla’s AI team uses a deep learning framework built on PyTorch to train its models for autonomous driving.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. SQLAlchemy
&lt;/h2&gt;

&lt;p&gt;Databases can be very tricky, but SQL Alchemy makes working with them feel natural, and instead of writing raw SQL, you can use Python code. For example, if you're trying to build an app with SQL Alchemy, you can manage all your tasks in a database without drowning in SQL syntax.&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from sqlalchemy import create_engine  

&lt;p&gt;engine = create_engine("sqlite:///users.db")&lt;br&gt;&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Note&lt;br&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Every developer hates bugs, but making sure you catch them early saves you pain later. Companies like Dropbox and Mozilla rely on Pytest to ensure their code works across millions of users. Because Pytest makes writing tests simple and clean.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Virtualenv &amp;amp; Pipenv
&lt;/h2&gt;

&lt;p&gt;Have you ever had a project you're working on break because another project needed a different library version? That's called &lt;strong&gt;dependency hell&lt;/strong&gt;. Let’s say you’re working on two projects, one needs Django 3.2, the other needs Django 4.0. Without a virtual environment, they will clash, and for you to avoid that, that's where virtualenv and pipenv come in. They help you keep your project isolated, so they don't step on each other's toes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparison Table
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Package/Framework&lt;/th&gt;
&lt;th&gt;Best For&lt;/th&gt;
&lt;th&gt;Why It Matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Request&lt;/td&gt;
&lt;td&gt;HTTP request&lt;/td&gt;
&lt;td&gt;Makes web APIs simple&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Numpy&lt;/td&gt;
&lt;td&gt;Maths &amp;amp; arrays&lt;/td&gt;
&lt;td&gt;Fast, efficient data handling&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pandas&lt;/td&gt;
&lt;td&gt;Data analysis&lt;/td&gt;
&lt;td&gt;Excel-like power in Python&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flask &amp;amp; Django&lt;/td&gt;
&lt;td&gt;Web apps&lt;/td&gt;
&lt;td&gt;From small APIs to big sites&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TensorFlow &amp;amp; PyTorch&lt;/td&gt;
&lt;td&gt;Machine learning&lt;/td&gt;
&lt;td&gt;AI, deep learning, ML&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQLAlchemy&lt;/td&gt;
&lt;td&gt;Databases&lt;/td&gt;
&lt;td&gt;Clean, pythonic database work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pytest&lt;/td&gt;
&lt;td&gt;Testing&lt;/td&gt;
&lt;td&gt;Write cleaner, simpler test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Virtualenv &amp;amp; Pipenv&lt;/td&gt;
&lt;td&gt;Dependencies&lt;/td&gt;
&lt;td&gt;Avoids dependency hell&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Quick Tips for Using Python Packages
&lt;/h2&gt;

&lt;p&gt;Python packages are more than just tools; they’re building blocks for ideas. They let you go from “I wish I could” to “I just did” faster than you can ever think.&lt;/p&gt;

&lt;p&gt;You don’t need to master them all at once; you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start small by picking one package that solves your current problem.&lt;/li&gt;
&lt;li&gt;Read their docs as they’re often full of examples.&lt;/li&gt;
&lt;li&gt;Try a lot of experiments, build side projects.&lt;/li&gt;
&lt;li&gt;Also, make sure you stay updated. Libraries evolve quickly; make sure you’re on stable versions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Every great developer's story is written one package at a time, and mind you, the next great Python package might not be on this list. It might actually be the one you create, so don’t just consume packages; make sure you use them, build with them, and when you’re ready, contribute back.&lt;/p&gt;

&lt;p&gt;See you next time.&lt;/p&gt;

</description>
      <category>python</category>
      <category>webdev</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What are some good websites on which programmers can write articles?</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Wed, 01 Oct 2025 14:14:23 +0000</pubDate>
      <link>https://dev.to/zeekwrites/what-are-some-good-websites-on-which-programmers-can-write-articles-gfm</link>
      <guid>https://dev.to/zeekwrites/what-are-some-good-websites-on-which-programmers-can-write-articles-gfm</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Writing is thinking. To write well is to think clearly. That’s why&lt;br&gt;
it’s so hard.– David McCullough.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Surprising, isn’t it? A lot of programmers assume, or rather, they think writing is only for journalists or bloggers. But the truth is, most respected developers built their reputation by sharing what they know in writing. Think of &lt;strong&gt;Dan Abramov&lt;/strong&gt;, co-author of Redux, who started his career by writing blog posts that later became a go-to resource for developers all around the world.&lt;/p&gt;

&lt;p&gt;Which reminds me of a friend of mine when he started learning how to code. He thought he needed to keep all his notes private; he didn’t want anyone to access them. All his notion page was packed with half-written tutorials and bugfixes. He told me about it, and I told him to try publishing some of the things he kept to himself. Fortunately, he was able to publish one short article about how he solved a database error, and something surprising happened.&lt;/p&gt;

&lt;p&gt;A junior backend developer from India left a comment saying ’’Thank you, I was stuck on this for four days’’&lt;/p&gt;

&lt;p&gt;That’s when he realized that programmers don’t just write code, they write for people, and sharing what you know can help someone on the other side of the world. Also, writing as a programmer is not just for helping others; it makes you more visible in the tech space.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The best way to learn is to teach – Frank Oppenheimer&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Which then begs the question. Where should you publish your work? We all know how crowded the internet is; most platforms give you good visibility by helping you put your work out there for people to see, while others feel like you’re just shouting into a void. But fear not, let’s go through some of the best platforms I feel you can and should be using to publish your work.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose a good platform
&lt;/h2&gt;

&lt;p&gt;Before walking you through the platforms you can be using to publish your work. How do you know the platform that works best for you? To pick a platform suitable and perfect for your work, you need to consider and think about what you want:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Do you want a large audience?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do you want to be able to connect with other developers?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do you want to have control over your work?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Do you want to earn money?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you’ve considered all this and you’ve made your decision, let’s then have a look at the best websites you can choose to work with.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. [Dev. to
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhi8ors4p4tgzo0ywewx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhi8ors4p4tgzo0ywewx.webp" alt="Dev to" width="250" height="250"&gt;&lt;/a&gt;&lt;br&gt;
Dev. to](&lt;a href="http://dev.to"&gt;http://dev.to&lt;/a&gt;) is more like a coffee shop for programmers. It’s a place where most developers love to hang out. A lot of developers post their tutorials, personal experience, and lessons on a project they’re working on or a failed project so others can see and learn from it. Take, for example, you posted a project on your latest debugging tricks, and within an hour, another developer saw your post and commented. ’’Hey, I came across this a week ago. Your solution worked. That’s the kind of vibe you’d get on &lt;a href="http://dev.to"&gt;De&lt;/a&gt;v.to. It’s developer-focused and also a friendly community for developers.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Medium
&lt;/h2&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%2F4qfht0y1rkfuago9tl9h.png" 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%2F4qfht0y1rkfuago9tl9h.png" alt="Medium" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Medium is more like a library for the internet because articles on Medium tend to reach a wider audience and not just programmers. You come across a lot of stories from developers, tech founders, and engineers sharing their knowledge. If you are leaning towards the part of wanting your work to reach a lot of people, Medium is the one for you, and on the other hand, you can also earn a little money through Medium's partner program. Imagine you wrote about a project, and some recruiters or start-up founders come across it; that’s a life-changing opportunity. Quincy Larson, the founder of freecodecamp, also started publishing his works on Medium, and it went viral. That exposure was what helped build one of the biggest coding communities today, so who says you can’t do that, also?&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Daily Dev
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9u72s86o71lknudwsid6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9u72s86o71lknudwsid6.webp" alt="Daily Dev" width="800" height="272"&gt;&lt;/a&gt;&lt;br&gt;
Daily Dev is more like a newsfeed for developers. It’s designed for developers who want quick or easy-to-understand tech content. You can write, publish your work, and your work gets noticed by other programmers scrolling through the feed. Daily dev is gaining more attention from programmers, even though it's less formal than Medium; it's one of the best platforms to use for quick exposure, if you want your work to reach developers who often check for updates daily.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Hashnode
&lt;/h2&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%2Fmpx6bf26rjeq2o7smmmh.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%2Fmpx6bf26rjeq2o7smmmh.jpg" alt="Hashnode" width="400" height="400"&gt;&lt;/a&gt;&lt;br&gt;
Hashnode is also one of the best platforms out there. It's just like you having your own personal blog; you can use your domain, and with that, it makes it look professional. Most programmers who want to grow their personal brand tend to use Hashnode because it gives them control and reach over their work at the same time. If, as a programmer, you are probably looking for a space to share your journey as a programmer, Hashnode is the one for you. Most people even land jobs as a result of them sharing their journey posts and projects because recruiters tend to see their consistent posts.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. GitHub pages/GitHub Gists
&lt;/h2&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%2Frwyche0aiao5vb4ism09.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%2Frwyche0aiao5vb4ism09.jpg" alt="GitHub" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You are probably wondering, what about GitHub? Well, GitHub is a place where code lives, and a lot of programmers use GitHub pages to publish from their repositories. Repositories are more like a storage location on GitHub, a place where code and other files for projects are stored, and developers often use them to publish their blogs or share code snippets.&lt;/p&gt;

&lt;p&gt;The same thing goes with Gists, which are perfect for small write-ups and explaining a function. If you are looking to document your code or tutorials, this works perfectly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips to Get Started
&lt;/h2&gt;

&lt;p&gt;You don't need to be an expert to start writing; you just need to share what you know because somewhere, a developer like you is probably searching Google at 2:00 a.m. for an error he/she is having, and your article might be what helps them move forward. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Write about what you’ve just learned&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Share mistakes that you've made&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Be consistent, even if it's one article a month&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;As a programmer, when you write, you don't just teach; you learn better. Explaining a work you did forces you to simplify it for others to understand, and the more you write, the more you build credibility and opportunities for yourself. Don't keep your knowledge locked in your head; rather, choose one of these platforms and write that article about the new framework you tested or the API you built using Rust. Someone somewhere is waiting to read it.&lt;/p&gt;

&lt;p&gt;See you next time.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>writing</category>
      <category>coding</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Django Tutorial:The Ultimate Guide (2023)</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Thu, 14 Aug 2025 11:00:30 +0000</pubDate>
      <link>https://dev.to/masteringbackend/django-tutorialthe-ultimate-guide-2023-2o53</link>
      <guid>https://dev.to/masteringbackend/django-tutorialthe-ultimate-guide-2023-2o53</guid>
      <description>&lt;p&gt;High scalability, versatility, security, rapid development, well-structured and detailed documentation are some features that make the Django framework one of the best and most consistent web frameworks in the industry.&lt;/p&gt;

&lt;p&gt;With Django, there is only one way to do things, “The Django Way”.&lt;/p&gt;

&lt;p&gt;Yes, Django is built to force you to follow industry-standard ways of developing web applications.&lt;/p&gt;

&lt;p&gt;The advantage this has is that working with Django will make you a better developer.&lt;/p&gt;

&lt;p&gt;The downside is that it doesn’t give room for some flexibility with the sister framework Flask.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To learn Django in detail, there is no better course to recommend personally than &lt;a href="https://masteringbackend.solomoneseme.com/djangowithAI" rel="noopener noreferrer"&gt;Full stack web development and AI with Python (Django)&lt;/a&gt;. Check it out now for a discount.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;Before continuing with this guide, you will need to understand  &lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/First_steps" rel="noopener noreferrer"&gt;server-side web programming, frameworks&lt;/a&gt;, general &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" rel="noopener noreferrer"&gt;Knowledge of Python&lt;/a&gt;, which will aid your understanding of the Django framework.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To learn Python and Django in detail, there is no better course to recommend personally than &lt;a href="https://masteringbackend.solomoneseme.com/pythondjango2021" rel="noopener noreferrer"&gt;Python Django 2021 – Complete Course&lt;/a&gt;. Check it out now for a discount.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What is Django&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Django is a high-level open-source Python MVT web framework that enables the rapid development of secure and maintainable web applications.&lt;/p&gt;

&lt;p&gt;Django follows the popular MVC (Model View Controller) architecture with a bit of variation. While MVC stands for Model View Controller, Django’s MVT stands for Model View Template.&lt;/p&gt;

&lt;p&gt;When it comes to using Django as a framework of choice, there is only one way to do things, “The Django Way.” It supports an industry standardized way of developing robust web applications.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Features of Django&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Before making any framework your choice for a project, you must have studied it and be satisfied with its features. Django is a framework with vibrant and attractive features. Let’s explore them.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Django’s excellent interactive documentation makes it easy and exciting for any new developer to pick a project and finish it in record time.&lt;/li&gt;
&lt;li&gt; Django is a framework built upon Python. Being about the most straightforward programming language with numerous packages and libraries, you can quickly build websites, web apps, data science, machine learning, and artificial intelligence projects using Django and other python packages.&lt;/li&gt;
&lt;li&gt; Django is, by default, Search Engine Optimized.&lt;/li&gt;
&lt;li&gt; It is Highly Scalable. The Instagram team that developed the popular Instagram using Django should quickly tell you what you can do with Django.&lt;/li&gt;
&lt;li&gt; Django is Versatile&lt;/li&gt;
&lt;li&gt; It is highly secured.&lt;/li&gt;
&lt;li&gt; With over a decade of solid performance and consistency, it is no joke that Django is thoroughly tested.&lt;/li&gt;
&lt;li&gt; Django provides rapid development.&lt;/li&gt;
&lt;li&gt; It comes with a prebuilt admin area. This feature means you don’t necessarily need to build a new admin area to manage your web application.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Why you should learn Django&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Django, as stated above, follows industry standard best practices for web application and software development. This standard forces you to write clean codes while you learn.&lt;/p&gt;

&lt;p&gt;Django works best and easily with SQL databases. With Django, you don’t need to know how to query SQL to create your applications.&lt;/p&gt;

&lt;p&gt;As stated earlier, Django is built on Python, which is the language of choice for any Data Science, Data Analytics, Artificial Intelligence, and Machine Learning project.&lt;/p&gt;

&lt;p&gt;So, if your application requires ML, AI, Analytics, or Data Science functionalities, you should go with Django.&lt;/p&gt;

&lt;p&gt;When learning any language, the importance of community cannot be overemphasized.&lt;/p&gt;

&lt;p&gt;Luckily, Django boasts an active community that will help hold you by the hands and make you a professional software developer.&lt;/p&gt;

&lt;p&gt;When you want to build complex web applications in less time with the industry’s best practices, Django is the Python framework of choice.&lt;/p&gt;

&lt;p&gt;From the somewhat difficult Django 1.0 to today’s simple and elegant looking Django 3.0+, we have seen consistent growth in developing and maintaining the Django framework.&lt;/p&gt;

&lt;p&gt;The key features and functionalities that make Django outstanding are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Open Source.&lt;/li&gt;
&lt;li&gt;  It supports the Full Stack Framework.&lt;/li&gt;
&lt;li&gt;  Authentication.&lt;/li&gt;
&lt;li&gt;  URL Routing.&lt;/li&gt;
&lt;li&gt;  Templating Engine.&lt;/li&gt;
&lt;li&gt;  DRY (Don’t Repeat Yourself).&lt;/li&gt;
&lt;li&gt;  ORM Mappers.&lt;/li&gt;
&lt;li&gt;  It provides Database schema migrations for common databases like PostgreSQL, MySQL, SQLite, Oracle under the third-party drivers.&lt;/li&gt;
&lt;li&gt;  A Variation of MVC Architecture called MVT&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Inbuilt Admin Panel&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Excellent and Fast debugger interface&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ASGI (Asynchronous Server Gateway Interface) and WSGI (Web Server Gateway Interface compliant in Django 3.0+&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wow! You now have a complete overview of what Django stands for and the things you can do with it.&lt;/p&gt;

&lt;p&gt;You can pause a little, take a sip of your coffee and follow us as we discuss the Django Framework in more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 2: The Django Framework
&lt;/h2&gt;

&lt;p&gt;In this chapter, we will deep-dive into the Django framework. We will explore "The Django way" and learn the architectural patterns that governs Django&lt;/p&gt;

&lt;p&gt;The chapter will set pace for the next chapter. Therefore, we recommend that you spend sometime understanding the patterns and philosophies of Django.&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%2Ftxghv5su2rdnjlka91ss.png" 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%2Ftxghv5su2rdnjlka91ss.png" alt="The Ultimate Guide"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So far, the buzzword here has been “Framework.” But what does framework mean? There is no doubt that we could be using the word without understanding its meaning and why we should use it.&lt;/p&gt;

&lt;p&gt;According to Isaac Newton, “If I have seen further, it is by standing on the shoulders of giants.”&lt;/p&gt;

&lt;p&gt;This quote by Isaac Newton gives light to how far and powerful frameworks can be. Why reinvent the wheel when you can ride on it and add more functionalities?&lt;/p&gt;

&lt;p&gt;Let us elucidate. You want to build a house and need all the necessary timber to start and finish it.&lt;/p&gt;

&lt;p&gt;You are faced with two options:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Building from scratch, where you will need to cut down some timbers and shape them to your desired shape and sizes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Building with already made frameworks of woods of different sizes and save yourself some precious time, energy, and sometimes money.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Django web framework was developed to force you to build industry-standard web applications by providing the framework of woods of different sizes to save you time, energy, and cost while developing your MVP.&lt;/p&gt;

&lt;p&gt;In this section, we will discuss the three main parts of the framework. This is called the MVT, which stands for Model View Template.&lt;/p&gt;

&lt;p&gt;Are you ready? Please fasten your seatbelt. We will be going for an exciting ride.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;What is MVT?&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;MVT stands for Model View Template. It is a software and design pattern variation of MVC (Model View Controller).&lt;/p&gt;

&lt;p&gt;MVC is a standard architectural pattern that many languages employ with slight variations such as  &lt;a href="https://masteringbackend.com/posts/laravel-framework-the-ultimate-guide" rel="noopener noreferrer"&gt;Laravel&lt;/a&gt;, Ruby on rails,  &lt;a href="https://masteringbackend.com/posts/adonisjs-tutorial-the-ultimate-guide" rel="noopener noreferrer"&gt;AdonisJS&lt;/a&gt;, etc.&lt;/p&gt;

&lt;p&gt;The Django framework handles all the controller parts of the MVC by itself. This means Django has done a lot of the heavy lifting for you and helps reduce the code you will need for a minimum viable product (MVP).&lt;/p&gt;

&lt;p&gt;This made Django introduce and implement templating as a pattern. Let us briefly discuss them separately.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Model&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Models in Django are the single definitive source of information about your data. Generally, each model maps to a single database table. It helps provide the interface for the data stored in the databases.&lt;/p&gt;

&lt;p&gt;For instance, assuming we have a Car class in our model, the class name will correspond to the table name in our database. This means we don’t have to create a table in our database manually, but we only run migrations to generate the tables.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;View&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;Definitions for Django views are somewhat not simple to understand.&lt;/p&gt;

&lt;p&gt;So we will try explaining it with what it does so that a non-technical person can easily understand it.&lt;/p&gt;

&lt;p&gt;Think of this as the file where you write the functions that retrieve data from the database and display it on your website’s templates.&lt;/p&gt;

&lt;p&gt;With this explanation of Django views, one can say that it supplies the dynamic content to HTML/CSS/Javascript files and its templating language.&lt;/p&gt;

&lt;p&gt;At the same time, the Django template fully represents the static part. Next, let’s discuss the last part of the Django MVT architecture.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Template&lt;/strong&gt;
&lt;/h4&gt;

&lt;p&gt;As we discussed briefly in view, the Django template represents the static part of your desired output.&lt;/p&gt;

&lt;p&gt;Again, to explain this for easy understanding, your template will contain the HTML, CSS, Javascript, and Django templating language.&lt;/p&gt;

&lt;p&gt;So while the HTML provides the static structure of your website, the templating language is used to dynamically display data on the HTML file from the view file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;URL Routing: Request and Response Analogy&lt;/strong&gt;&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%2F5o4mzrd7l3myu82yltby.png" 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%2F5o4mzrd7l3myu82yltby.png" alt="request response"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 3: Build a Todo Web App with Django
&lt;/h2&gt;

&lt;p&gt;In this chapter, we will build a simple Todo application by implementing the knowledge we have gathered from previous chapters.&lt;/p&gt;

&lt;p&gt;This is to help us get ready for real world project which might be a little bigger.&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%2F7t9n1as4wkt6kp460710.png" 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%2F7t9n1as4wkt6kp460710.png" alt="The Ultimate Guide"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To build a Django application for this Django tutorial, you need to have python installed on your computer. We assume you have it.&lt;/p&gt;

&lt;p&gt;It is good practice to develop your application in a virtual environment. We used Virtualenv. The code below will help you install it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cmake"&gt;&lt;code&gt;pip install virtualenv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next is to create a virtual environment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight awk"&gt;&lt;code&gt;&lt;span class="nx"&gt;virtualenv&lt;/span&gt; &lt;span class="nx"&gt;virt&lt;/span&gt;

&lt;span class="nx"&gt;source&lt;/span&gt; &lt;span class="nx"&gt;virt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;Scripts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nx"&gt;activate&lt;/span&gt;   &lt;span class="c1"&gt;# this will activate the virtual environment.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The other packages are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cmake"&gt;&lt;code&gt;pip install django
pip install mysqlclient
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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%2Fhansqbcuudbjajmaq2rr.jpeg" 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%2Fhansqbcuudbjajmaq2rr.jpeg" alt="unnamed.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Start a Django project using the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;django-admin startproject mytodo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Move into the created project with &lt;code&gt;cd  mytodo&lt;/code&gt;. This is the root directory of your application.&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%2Ffc9iif17ai5udqdsndwl.jpeg" 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%2Ffc9iif17ai5udqdsndwl.jpeg" alt="djangofolder.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Create Task App
&lt;/h3&gt;

&lt;p&gt;The above image is the structure of a Django project. Now let’s create an app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;python&lt;/span&gt; manage&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;py&lt;/span&gt; startapp task
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After starting a new app, the new project structure will look this:&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%2Fwx7qeg0h4x8q9kq48z80.jpeg" 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%2Fwx7qeg0h4x8q9kq48z80.jpeg" alt="djangowithapp.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add the app  &lt;code&gt;task&lt;/code&gt;  into your  &lt;code&gt;settings.py&lt;/code&gt;  file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sml"&gt;&lt;code&gt;&lt;span class="nl"&gt;# Application&lt;/span&gt; &lt;span class="n"&gt;definition&lt;/span&gt;

&lt;span class="n"&gt;INSTALLED_APPS&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;admin'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;auth'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;contenttypes'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sessions'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;messages'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'django&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nn"&gt;contrib&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;staticfiles'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nd"&gt;'task'&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Database set up
&lt;/h3&gt;

&lt;p&gt;Still on this file, recall we installed  &lt;code&gt;mysqlclient&lt;/code&gt;  earlier, we did because we will be using MySQL for our database.&lt;/p&gt;

&lt;p&gt;Now, go to your PHPMyAdmin or any  &lt;a href="https://masteringbackend.solomoneseme.com/posts/top-10-database-clients-for-developers/" rel="noopener noreferrer"&gt;database client&lt;/a&gt;  of your choice, create your database.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'todoapplication',
        'USER': 'root',
        'PASSWORD': 'password',
        'HOST': 'localhost',
        'PORT': '3306',
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is time to create our model. Let’s go to our task folder and open  &lt;code&gt;Models.py&lt;/code&gt;  and paste the code below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight haskell"&gt;&lt;code&gt;&lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="n"&gt;django&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;db&lt;/span&gt; &lt;span class="kr"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;models&lt;/span&gt;

&lt;span class="o"&gt;#&lt;/span&gt; &lt;span class="kt"&gt;Create&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt; &lt;span class="n"&gt;here&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;

&lt;span class="kr"&gt;class&lt;/span&gt; &lt;span class="kt"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;CharField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_length&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;completed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;BooleanField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kr"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;created&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;models&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;DateTimeField&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;auto_now_add&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kt"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;def&lt;/span&gt; &lt;span class="n"&gt;__str__&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;return&lt;/span&gt; &lt;span class="n"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a simple model with a class name “Task”. It has three attributes and a method.&lt;/p&gt;

&lt;p&gt;The title of the todo task, a boolean field “completed” and created time.&lt;/p&gt;

&lt;p&gt;The method is used to display the title in the admin panel of the app.&lt;/p&gt;

&lt;p&gt;Everything is looking good. Let’s make the migration. This will help make successful connections to the database and create tables with the prebuilt Django models and our model.&lt;/p&gt;

&lt;p&gt;Before we make the initial migration, it is important to see that the  &lt;code&gt;migration&lt;/code&gt;  folder and the  &lt;code&gt;__init__.py&lt;/code&gt;  is empty.&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%2Fv3hutkmbzpm7w21d91g9.jpeg" 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%2Fv3hutkmbzpm7w21d91g9.jpeg" alt="djanginit.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run this command to create migrations for your database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;python&lt;/span&gt; manage&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;py&lt;/span&gt; makemigration
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will display all the files available for migrations where there are no changes, it will indicate so.&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%2Fr8n1ewc3kleykiqzcszk.jpeg" 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%2Fr8n1ewc3kleykiqzcszk.jpeg" alt="migrationdjango.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you make migrations, Django prepares a migration file for you as above,&lt;/p&gt;

&lt;p&gt;Run this command to migrate your database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;python&lt;/span&gt; manage&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;py&lt;/span&gt; migrate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Create Task Files
&lt;/h3&gt;

&lt;p&gt;Go to the  &lt;code&gt;task&lt;/code&gt;  folder and create the following folders “templates”, inside the  &lt;code&gt;templates&lt;/code&gt;  folder create “task”. Then create the following HTML files.&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%2Fntuv5eqcq0x9tr9847be.jpeg" 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%2Fntuv5eqcq0x9tr9847be.jpeg" alt="djangofiles.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open the  &lt;code&gt;views.py&lt;/code&gt;  file in the  &lt;code&gt;task&lt;/code&gt;  folder and paste this code below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#views.py
&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;django.shortcuts&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;render&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;redirect&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;django.http&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;HttpResponse&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;.models&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;.forms&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;

&lt;span class="c1"&gt;# Create your views here.
&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;tasks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;objects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TaskForm&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;POST&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TaskForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;is_valid&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
            &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tasks&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;form&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;task/list.html&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;updatingTask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pk&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;task&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;objects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pk&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TaskForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;instance&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;POST&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TaskForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;POST&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;instance&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;task&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;is_valid&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
            &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;form&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;task/update.html&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;deleteTask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pk&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;objects&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;pk&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;method&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;POST&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;delete&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;/&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;item&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;task/delete.html&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next is the  &lt;code&gt;urls.py&lt;/code&gt;, but the app doesn’t come with a  &lt;code&gt;urls.py&lt;/code&gt;, this is because we can do all our routing in the project’s  &lt;code&gt;urls.py&lt;/code&gt;  or we can create a new one for the  &lt;code&gt;task&lt;/code&gt;  folder. Let’s create it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# task.urls.py

from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='list'),
    path('update/&amp;lt;str:pk&amp;gt;/', views.updatingTask, name='update'),
    path('delete/&amp;lt;str:pk&amp;gt;/', views.deleteTask, name='delete'),
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the Django project to see it, it will need to be routed to the project’s URLs. Let’s do that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# urls.py

from django.contrib import admin
from django.urls import path
from django.urls.conf import include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('task.urls'))
]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we just imported the module name  &lt;code&gt;include&lt;/code&gt;  to help us include the app URLs.&lt;/p&gt;

&lt;p&gt;Next, Let us create  &lt;code&gt;form.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight coffeescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;from&lt;/span&gt; &lt;span class="nx"&gt;django&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;forms&lt;/span&gt;
&lt;span class="nx"&gt;from&lt;/span&gt; &lt;span class="nx"&gt;django&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;forms&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;ModelForm&lt;/span&gt;

&lt;span class="nx"&gt;from&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;models&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;


&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nx"&gt;TaskForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;forms&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="na"&gt;ModelForm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;

    &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="na"&gt;Meta&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
        &lt;span class="nx"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;Task&lt;/span&gt;
        &lt;span class="nx"&gt;fields&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'__all__'&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Register the model to your  &lt;code&gt;admin.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.contrib import admin
from .models import Task

# Register your models here.


admin.site.register(Task)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The last path is our HTML files:&lt;/p&gt;

&lt;h3&gt;
  
  
  List.html
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jinja"&gt;&lt;code&gt;# list.html

&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fit-content&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Todos&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;"/"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui form"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui field action input"&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"width: 525px;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;csrf_token&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt; &lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt;form.title&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;form.title&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Create Task"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui primary button"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Update Task"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui primary basic button"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;form.complete&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;
            &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;


    &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;tasks&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui segment"&lt;/span&gt; &lt;span class="na"&gt;style=&lt;/span&gt;&lt;span class="s"&gt;"width: 600px;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;task.complete&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="kp"&gt;True&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;strike&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;task&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/strike&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt;task&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;endif&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"right-align"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="s1"&gt;'update'&lt;/span&gt; &lt;span class="nv"&gt;task.id&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui secondary basic button "&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Update&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
            &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="s1"&gt;'delete'&lt;/span&gt; &lt;span class="nv"&gt;task.id&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui negative basic button right hide-on-med-and-down"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Delete&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;endfor&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Update.html
&lt;/h3&gt;

&lt;p&gt;Next, let’s update the  &lt;code&gt;update.html&lt;/code&gt;  by pasting the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jinja"&gt;&lt;code&gt;# update.html

&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fit-content&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;20px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;form&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="m"&gt;5px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;h3&amp;gt;&lt;/span&gt;Update Task&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui form"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;" ui field action input"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;csrf_token&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

        &lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;form&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;

        &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Update Task"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui primary basic button"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Delete.html
&lt;/h3&gt;

&lt;p&gt;Lastly, let’s update the  &lt;code&gt;detele.html&lt;/code&gt;  by pasting the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight jinja"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;fit-content&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;50px&lt;/span&gt; &lt;span class="nb"&gt;auto&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nt"&gt;form&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;float&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;right&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;" container"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Are you sure you want to delete " &lt;span class="cp"&gt;{{&lt;/span&gt;&lt;span class="nv"&gt;item&lt;/span&gt;&lt;span class="cp"&gt;}}&lt;/span&gt;"?&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="s1"&gt;'list'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui secondary basic button"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Cancel&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;method=&lt;/span&gt;&lt;span class="s"&gt;"POST"&lt;/span&gt; &lt;span class="na"&gt;action=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="nv"&gt;csrf_token&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

        &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"submit"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"Confirm"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"ui negative basic button"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything is fine, let’s run our migration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;python&lt;/span&gt; manage&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;py&lt;/span&gt; migrate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Testing the app
&lt;/h3&gt;

&lt;p&gt;And also start the development server with this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight viml"&gt;&lt;code&gt;&lt;span class="k"&gt;python&lt;/span&gt; manage&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;py&lt;/span&gt; runserver
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your app should be running on  &lt;a href="http://127.0.0.1:8000/" rel="noopener noreferrer"&gt;http://127.0.0.1:8000/&lt;/a&gt;. If you visit the URL, you should be presented with the webpage below, if you set up everything correctly.&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%2Fhx4n6ed2q0ykqeha8jk3.jpeg" 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%2Fhx4n6ed2q0ykqeha8jk3.jpeg" alt="DjangoTodoApp.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion: Django
&lt;/h2&gt;

&lt;p&gt;This  Django tutorial explains the fundamentals of creating an application with Django using Django function-based views, MySQL database, and deployed to Heroku.&lt;/p&gt;

&lt;p&gt;This is just the basics of Django. There are so many, and no better place to go than Django’s official documentation.&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;To learn Django in detail, there is no better course to recommend personally than &lt;a href="https://masteringbackend.solomoneseme.com/djangowithAI" rel="noopener noreferrer"&gt;Full stack web development and AI with Python (Django)&lt;/a&gt;. Check it out now for a discount.&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;p&gt;Let us know in the comment if you have any challenges, and we will fix them together.&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Author: Solomon Eseme&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Thank you for being a part of the community
&lt;/h3&gt;

&lt;p&gt;Before you go:&lt;/p&gt;

&lt;h4&gt;
  
  
  Whenever you’re ready
&lt;/h4&gt;

&lt;p&gt;There are 4 ways we can help you become a great backend engineer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://masteringbackend.com/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;The MB Platform:&lt;/strong&gt;&lt;/a&gt; Join thousands of backend engineers learning backend engineering. Build real-world backend projects, learn from expert-vetted courses and roadmaps, track your learnings and set schedules, and solve backend engineering tasks, exercises, and challenges.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://masteringbackend.com/academy?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;The MB Academy:&lt;/strong&gt;&lt;/a&gt; The “MB Academy” is a 6-month intensive Advanced Backend Engineering BootCamp to produce great backend engineers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://backendweeky.dev/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;Join Backend Weekly:&lt;/strong&gt;&lt;/a&gt; If you like posts like this, you will absolutely enjoy our exclusive weekly newsletter, sharing exclusive backend engineering resources to help you become a great Backend Engineer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://getbackendjobs.com/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;Get Backend Jobs:&lt;/strong&gt;&lt;/a&gt; Find over 2,000+ Tailored International Remote Backend Jobs or Reach 50,000+ backend engineers on the #1 Backend Engineering Job Board.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tutorial</category>
      <category>beginners</category>
      <category>backend</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Top 5 backend frameworks</title>
      <dc:creator>Toluwanimi </dc:creator>
      <pubDate>Tue, 12 Aug 2025 11:00:30 +0000</pubDate>
      <link>https://dev.to/masteringbackend/top-5-backend-frameworks-1fj9</link>
      <guid>https://dev.to/masteringbackend/top-5-backend-frameworks-1fj9</guid>
      <description>&lt;p&gt;Hey guys, so am super excited today to share with you my top 5 “backend frameworks” as a  &lt;a href="https://masteringbackend.com/posts/getting-started-with-backend-development/" rel="noopener noreferrer"&gt;backend developer&lt;/a&gt;  you can start learning now or even in the future to come.&lt;/p&gt;

&lt;p&gt;As you also know, I discuss and write articles mainly about  &lt;a href="https://masteringbackend.com/" rel="noopener noreferrer"&gt;backend developments&lt;/a&gt;, so in this article am going to show my top 5 “backend frameworks” based on my personal research and experiences.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Laravel&lt;/li&gt;
&lt;li&gt; Express&lt;/li&gt;
&lt;li&gt; Spring&lt;/li&gt;
&lt;li&gt; Django&lt;/li&gt;
&lt;li&gt; ASP.net Core&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Am going to explain the “backend frameworks” from the bottom-top approach.&lt;/p&gt;

&lt;h4&gt;
  
  
  ASP .NET CORE:
&lt;/h4&gt;

&lt;p&gt;ASP .NET Core is a lean and composable framework for building web and cloud applications. ASP .NET Core is fully open-source and available on GitHub it includes the latest features and innovations in MVC.&lt;/p&gt;

&lt;p&gt;Its also a significant redesign of ASP .NET, This framework is very popular amount enterprises and companies who use the C# and windows products.&lt;/p&gt;

&lt;p&gt;So learning ASP .NET Core now is very relevant and definitely worth the time.&lt;/p&gt;

&lt;h4&gt;
  
  
  DJANGO:
&lt;/h4&gt;

&lt;p&gt;Django is a high — level python web framework that encourages rapid development and clean, pragmatic design, built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your application without needing to reinvent the wheel.&lt;/p&gt;

&lt;p&gt;Python which happens to be the easiest programming language to learn has been getting lots of traction, becoming the most popular and in-demand language after JavaScript in some cases recently, therefore, making Django a good sort after skills in the web industry.&lt;/p&gt;

&lt;h4&gt;
  
  
  SPRING FRAMEWORK:
&lt;/h4&gt;

&lt;p&gt;The spring framework is an application framework and inversion of control container for the java platform.&lt;/p&gt;

&lt;p&gt;The framework’s core features can be used by any java application. Although the framework does not impose any specific programming model, it has become popular in the Java community.&lt;/p&gt;

&lt;p&gt;Because of the popularity of Java as a programming language and the number of devices that run it, it makes Spring framework very popular among the Java Enterprises community.&lt;/p&gt;

&lt;p&gt;So if you are a Java developer learning the Spring framework is a plus to your career.&lt;/p&gt;

&lt;h4&gt;
  
  
  EXPRESS:
&lt;/h4&gt;

&lt;p&gt;Express is a web application framework for NodeJS. It is designed for building web applications and APIs.&lt;/p&gt;

&lt;p&gt;Because of the current rise of JavaScript and the trending nature of NodeJS (a JavaScript run-time environment).&lt;/p&gt;

&lt;p&gt;Express has become a very popular and high demand skill as a backend developer.&lt;/p&gt;

&lt;h4&gt;
  
  
  LARAVEL:
&lt;/h4&gt;

&lt;p&gt;Laravel is a PHP framework for web artisans. It’s a free, open-source PHP framework intended for the development of web applications following the MVC pattern and based on Symfony.&lt;/p&gt;

&lt;p&gt;We all know that PHP powers about 78.9% of all websites on the web, so the PHP programming language is vastly used for both enterprise and start-up web apps.&lt;/p&gt;

&lt;p&gt;By the way, if you’re just STARTING out with Laravel, I have created a  &lt;a href="https://masteringbackend.com/posts/laravel-framework-the-ultimate-guide/" rel="noopener noreferrer"&gt;Complete Laravel Guide&lt;/a&gt;  just for you.&lt;/p&gt;

&lt;p&gt;It’s also the most preferred language for startups, these statistics make Laravel even more popular and eventually the best backend framework to learn as a backend developer in my opinion.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;&lt;em&gt;WRAPPING UP&lt;/em&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Thanks for reading my top 5 backend frameworks that you can learn now or in the future.&lt;/p&gt;

&lt;p&gt;Everything I have listed above is from my personal experience.&lt;/p&gt;

&lt;p&gt;So those are my top 5 backend frameworks. This list is not complete until you add or remove from it. So let me hear your thought in the comment section below.&lt;/p&gt;

&lt;p&gt;If you enjoy this post make sure you share it with your friends.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you are interested in backend development (or you’re internet enthusiast) both (Mobile | Web | Desktop) subscribe to my&lt;/em&gt; &lt;a href="http://bit.ly/multimegaschool" rel="noopener noreferrer"&gt;&lt;em&gt;Youtube channel&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, we will be posting a collection of help full tutorials and guides like this one for artisans.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Author: Solomon Eseme&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Thank you for being a part of the community
&lt;/h3&gt;

&lt;p&gt;Before you go:&lt;/p&gt;

&lt;h4&gt;
  
  
  Whenever you’re ready
&lt;/h4&gt;

&lt;p&gt;There are 4 ways we can help you become a great backend engineer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://masteringbackend.com/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;The MB Platform:&lt;/strong&gt;&lt;/a&gt; Join thousands of backend engineers learning backend engineering. Build real-world backend projects, learn from expert-vetted courses and roadmaps, track your learnings and set schedules, and solve backend engineering tasks, exercises, and challenges.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://masteringbackend.com/academy?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;The MB Academy:&lt;/strong&gt;&lt;/a&gt; The “MB Academy” is a 6-month intensive Advanced Backend Engineering BootCamp to produce great backend engineers.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://backendweeky.dev/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;Join Backend Weekly:&lt;/strong&gt;&lt;/a&gt; If you like posts like this, you will absolutely enjoy our exclusive weekly newsletter, sharing exclusive backend engineering resources to help you become a great Backend Engineer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://getbackendjobs.com/?ref=medium" rel="noopener noreferrer"&gt;&lt;strong&gt;Get Backend Jobs:&lt;/strong&gt;&lt;/a&gt; Find over 2,000+ Tailored International Remote Backend Jobs or Reach 50,000+ backend engineers on the #1 Backend Engineering Job Board.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tutorial</category>
      <category>beginners</category>
      <category>backend</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
