<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by AakashDixit on Medium]]></title>
        <description><![CDATA[Stories by AakashDixit on Medium]]></description>
        <link>https://medium.com/@aakash1862?source=rss-86d2ba79cb6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0Ikr-TwEaTZMSMiw</url>
            <title>Stories by AakashDixit on Medium</title>
            <link>https://medium.com/@aakash1862?source=rss-86d2ba79cb6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:52:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aakash1862/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Guide to take the first step towards the world of Containerization]]></title>
            <link>https://medium.com/@aakash1862/practical-guide-to-take-the-first-step-towards-the-world-of-containerization-24caf79e68d4?source=rss-86d2ba79cb6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/24caf79e68d4</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[AakashDixit]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 17:23:53 GMT</pubDate>
            <atom:updated>2026-01-28T14:20:37.852Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://dev.to/t/containers">#containers</a> <a href="https://dev.to/t/docker">#docker</a> <a href="https://dev.to/t/cloudcomputing">#cloudcomputing</a> <a href="https://dev.to/t/devops">#devops</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZJoTHcdnUJky1ydS" /></figure><h3>What is Docker, and why does anyone need it?</h3><p>Containerization has revolutionized software development and deployment. At its core, it’s a method to package applications and their dependencies into isolated, portable units called containers. Unlike traditional virtual machines (VMs), which emulate entire operating systems, containers share the host OS kernel, making them lightweight, fast, and efficient.</p><p><strong>Life before containerization</strong></p><p>Before the age of containerization, deploying and managing applications at scale was a cumbersome and expensive process. Developers often faced the “it works on my machine” syndrome. An app might run flawlessly on a local setup but fail in production due to differences in environments — like varying OS versions, library dependencies, or configurations. VMs solved some of this by virtualizing hardware, but they were resource-heavy, requiring significant overhead for each instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*zujUY8ZE7jF_C55c" /></figure><p><strong>Enter containers.</strong> A container is a lightweight, standalone, and executable package that houses both an application and its surrounding environment. It ensures that the application runs consistently across multiple environments. This encapsulation eliminates the common <em>“it works on my machine”</em> issue, as the container provides the same behavior regardless of where it’s deployed. With containers, developers can focus more on building features and less on setting up environments, making the software development process more efficient and streamlined. This “build once, run anywhere” philosophy accelerates CI/CD pipelines and scales applications effortlessly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/0*StFchqmA5fR_V4YS.jpg" /></figure><p><strong>Docker</strong>, launched in 2013 by Solomon Hykes, popularized containerization. It’s an open-source platform that automates the deployment of applications inside containers. Docker uses the OCI (Open Container Initiative) standards.</p><p>When an application is encapsulated in a Docker container, it becomes a “containerized app,” simplifying both development and deployment. Docker takes the complexities out of container management, offering a seamless way to package and distribute applications</p><p><strong>Key components of Docker include:</strong></p><ul><li>Docker Engine:<strong><br></strong>The heart of the Docker platform, responsible for building, running, and managing containers.</li><li>Docker CLI:<strong><br></strong>The Command-Line Interface (CLI) allows you to interact with Docker using commands like docker build, docker run, and so on.</li><li>Docker Daemon:<strong><br></strong>A background service running on your host machine is responsible for building, running, and distributing Docker containers.</li><li>Docker Image:<strong><br></strong>A template containing the application code, libraries, and dependencies required to run an application. You build your container based on an image.</li><li>Docker Container:<strong><br></strong>A runtime instance of a Docker image, encapsulating the application and its dependencies.</li><li>Docker Hub:<strong><br></strong>A cloud-based registry where you can push and pull Docker images. It’s the default registry used by Docker but you can use other third-party registries as well.</li><li>DockerFile:<strong><br></strong>A text file containing a set of instructions to build a Docker image.</li><li>Docker Compose:<strong><br></strong>A tool for defining and running multi-container Docker applications. It uses a docker-compose.yml file to configure the application&#39;s services.</li><li>Docker Network:<strong><br></strong>Facilitates communication between containers, as well as between containers and the host.</li><li>Docker Volume:<strong><br></strong>Provides persistent storage for use with containers, allowing you to persist data across container restarts.</li></ul><p><strong>Advantages of Docker:</strong></p><ul><li>Consistency &amp; Reproducibility:<br>Packaging your application and its dependencies into a container ensures that it behaves the same way regardless of where it’s deployed. This consistency makes it easier to develop, test, and deploy applications, reducing the chances of unexpected issues due to differences in the underlying infrastructure.</li><li>Efficient Resource Utilization:<br>Docker containers are lightweight and share the host machine’s operating system kernel. You can run multiple containers on the same machine without significant resource overhead.</li><li>Isolation &amp; Dependency Management:<br>Docker containers provide isolation, keeping your application and its dependencies separate from the host system and other containers. This isolation ensures that changes or issues in one container do not impact others.</li><li>Fast &amp; Easy Deployment:<br>Docker simplifies the deployment process by packaging the application and its dependencies into a single container. Once you have a Docker image, you can deploy it on any Docker-enabled machine with minimal effort. This portability and ease of deployment save time and reduce the chances of configuration errors or missing dependencies during the deployment process.</li><li>Scalability &amp; Load Balancing:<br>With tools like Docker Swarm or Kubernetes, you can create clusters of machines and distribute the containers across them. This allows your application to handle increased traffic and improves overall performance. Load balancing can be easily achieved by distributing incoming requests across multiple containers, ensuring efficient utilization of resources.</li><li>Version Control &amp; Collaboration:<br>Docker enables version control for your application and its dependencies through Docker images. You can track changes made to the Dockerfile, which describes the steps to build the image and the resulting image. This facilitates collaboration among team members and simplifies the sharing of consistent development environments.</li><li>Ecosystem &amp; Community Support:<br>Docker has a thriving ecosystem with a vast collection of pre-built images available on Docker Hub. These images cover a wide range of software and services, saving you time and effort in setting up your development environment. Additionally, Docker has a large and active community that provides support, resources, and continuous improvement to the platform.</li></ul><p><strong>Installing Docker</strong></p><p>Docker can be installed on Windows, MacOS, and Linux platforms.</p><ul><li>Installing on Windows:<strong><br></strong>Visit the Docker website and download the <a href="https://docs.docker.com/desktop/install/windows-install/">Docker Desktop installer for Windows</a>.</li><li>Installing on MacOS:<strong><br></strong>Go to the Docker website and download the <a href="https://docs.docker.com/desktop/install/mac-install/">Docker Desktop installer for macOS</a>.</li><li>Installing on Linux:<strong><br></strong>Installing <a href="https://docs.docker.com/desktop/install/linux-install/">Docker on Linux</a> varies depending on the specific distribution you’re using.</li></ul><p>Once docker installed, verify by running the command:</p><pre>docker version</pre><p><strong>Is Docker the only available solution in the market?</strong> The answer to this is that while Docker is one of the most popular and widely used containerization platforms, it is not the only containerization application available. Several other tools and technologies provide containerization capabilities, each with unique features and use cases.</p><p><strong>Alternatives to Docker</strong></p><ul><li>Podman:<br>It is a daemonless container engine that allows users to run, manage, and build containers. Unlike Docker, it does not require a background daemon, making it more secure and lightweight. Podman is compatible with Docker commands, making it easy for developers to switch.</li><li>Kubernetes: <br>Although primarily a container orchestration platform, Kubernetes supports containerization by managing and deploying containers across clusters. It works with various container runtimes, including Docker, CRI-O, and containerd.</li><li>CRI-O<strong>:<br></strong> CRI-O is an open-source container runtime specifically designed for Kubernetes. It provides a lightweight alternative to Docker by focusing solely on Kubernetes’ container runtime interface (CRI).</li><li>LXC (Linux Containers):<br>LXC is one of the earliest containerization technologies. It provides OS-level virtualisation and allows running multiple isolated Linux systems on a single host. Docker itself was initially built on LXC.</li><li>containerd: <br>containerd is a high-level container runtime that manages the lifecycle of containers. It is used as the core runtime for Docker but can also be used independently for container management.</li><li>Rkt (pronounced Rocket): <br>It is an another container runtime designed with security and composability in mind. It supports multiple container image formats and integrates well with Kubernetes.</li></ul><h3>Docker Images</h3><ul><li><strong>Docker images</strong> are known for their lightweight, portable, and self-contained nature. They are designed to be easy to carry and deploy across different environments. Docker images are constructed using a layered file system. Each layer represents a specific modification or addition to the image. These layers are like building blocks, where each layer builds upon the previous one, creating a final cohesive image.</li><li><strong>Image tags</strong> act as labels that distinguish specific versions or variants of an image. Tags are essential for version control and ensuring reproducibility when working with Docker images.</li><li><strong>Docker Hub</strong> is a cloud-based service provided by Docker that allows users to publish, share, and pull Docker images. It provides a user-friendly web interface where you can search for images, explore repositories, and manage your own images. Docker Hub offers both public and private repositories.</li></ul><p>For example, to pull the official Nginx image from Docker Hub, you can use:</p><pre>docker pull nginx</pre><p>While Docker provides a wide range of pre-built images on Docker Hub, building a custom Docker image starts with creating a file called a <em>DockerFile</em>. This file contains a set of instructions that Docker follows to build the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_Hw2AUUW0onPtvTi.jpg" /></figure><p>For example:</p><ul><li>A <strong>simple, complete, and runnable Dockerfile example</strong> for a basic Python Flask web application.</li></ul><pre># Use an official Python runtime as a base image<br>FROM python:3.11-slim<br><br># Set environment variables to prevent Python from writing .pyc files and enable unbuffered output<br>ENV PYTHONDONTWRITEBYTECODE=1<br>ENV PYTHONUNBUFFERED=1<br><br># Set the working directory inside the container<br>WORKDIR /app<br><br># Copy the requirements file first (for better caching)<br>COPY requirements.txt .<br><br># Install dependencies<br>RUN pip install --no-cache-dir -r requirements.txt<br><br># Copy the rest of the application code<br>COPY . .<br><br># Expose the port Flask will run on<br>EXPOSE 5000<br><br># Command to run the application<br>CMD [&quot;python&quot;, &quot;app.py&quot;]</pre><ul><li>requirements.txt</li></ul><pre>flask</pre><ul><li>app.py</li></ul><pre>from flask import Flask<br><br>app = Flask(__name__)<br><br>@app.route(&quot;/&quot;)<br>def home():<br>    return &quot;Hello from Docker!&quot;<br><br>if __name__ == &quot;__main__&quot;:<br>    app.run(host=&quot;0.0.0.0&quot;, port=5000)</pre><ul><li>How to Build and Run</li></ul><pre># Build the Docker image<br>docker build -t my-flask-app .<br><br># Run the container<br>docker run -d -p 5000:5000 my-flask-app</pre><ul><li>Now, open your browser and go to <a href="http://localhost:5000/"><strong>http://localhost:5000</strong></a> — you’ll see:</li></ul><pre>Hello from Docker!</pre><h3>Docker Volume</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*Q3qg77IdPLuAKeKX.png" /></figure><p>Volumes are a way to store and manage data that your containers need. Any changes made inside the container, like creating files or modifying data, typically exist only within that container and disappear when the container is stopped or deleted. Volumes provide a way to store and share data that remains even when containers are stopped or removed. Volumes can be used for various purposes, like storing databases, configuration files, or uploaded user content.</p><ul><li>You can create a Docker volume using the docker volume create command, specifying a name for the volume. For example: docker volume create volume-name</li><li>Once created, the volume can be used by containers across your Docker environment.</li><li>To use a Docker volume, you need to mount it to a specific path inside a container.</li><li>Mounting a volume allows the container to read from and write to the volume, preserving any changes made.</li><li>Use the -v or --volume option with the docker run command to mount a volume to a container. For example: docker run -v volume-name:/container-path image-name</li><li>Replace volume-name with the name of the volume you want to mount, and /container-path with the path inside the container where the volume should be accessible.</li></ul><h3><strong>Docker Networks</strong></h3><p>When we create and run a container, Docker by itself assigns an IP address to it, by default. Most of the time, it is required to create and deploy Docker networks as per our needs.</p><p>Docker networking let us design the network as per our requirements. With Docker networking, we can create bridges between containers, connect them to external networks, and even make them talk to each other using special names instead of complicated IP addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Jrdv00PRmtBQWjnG.png" /></figure><p>To get a list of all the default networks that Docker creates, we run the command shown below -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/0*flUDtc14sRKrnt-F.png" /></figure><p>There are FOUR types of networks in Docker -</p><ul><li><strong>Bridged network</strong>: When a new Docker container is created without the –network argument, Docker by default connects the container with the bridge network. In bridged networks, all the containers in a single host can connect through their IP addresses. A Bridge network is created when the span of Docker hosts is one i.e. when all containers run on a single host. We need an overlay network to create a network that has a span of more than one Docker host.</li><li><strong>Host network</strong>: When a new Docker container is created with the –network=host argument it pushes the container into the host network stack where the Docker daemon is running. All interfaces of the host are accessible from the container which is assigned to the host network. UseCase: High-performance networking.</li><li><strong>None network</strong>: When a new Docker container is created with the –network=none argument it puts the Docker container in its network stack. So, in this none network, no IP addresses are assigned to the container, because of which they cannot communicate with each other. UseCase: High-security, offline batch jobs.</li><li><strong>Overlay:</strong> Used for multi-host networking (Swarm/Kubernetes).</li></ul><p>We can assign any one of the networks to the Docker containers. The — network option of the ‘docker run’ command is used to assign a specific network to the container.</p><pre>docker run --network =&quot;network name&quot;</pre><p>To get detailed information about a particular network, we use the command-</p><pre>docker network inspect &quot;network name&quot;</pre><h3>Docker Security</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EqeOw05qtRulZeQr.png" /></figure><p>Container isolation and security are important aspects of Docker by creating a protective boundary around each container to prevent interference between containers and the host system.</p><p>To enhance security, Docker provides best practices for deploying containers by applying security patches, using trusted base images, limiting container privileges, and utilizing security tools to monitor containers. Here’s a detailed explanation of container isolation and security process:</p><p>1. Process Isolation:</p><ul><li>Containers provide process-level isolation, prevents processes in one container from accessing or interfering with processes in other containers, enhancing security and stability.</li></ul><p>2. Resource Isolation:</p><ul><li>Resource isolation ensures that containers have dedicated resources and prevents one container from consuming excessive resources and affecting the performance of others.</li></ul><p>3. Namespace and Control Groups:</p><ul><li>Namespaces create separate instances of various system resources, such as process IDs, network interfaces, and file systems, for each container.</li><li>Control groups control and limit the resource usage of containers, enabling fine-grained resource allocation and preventing resource abuse.</li></ul><p>4. Read-only File Systems:</p><ul><li>By default, Docker containers have a read-only file system, which means that the container’s file system is immutable and cannot be modified during runtime.</li><li>This read-only file system enhances security by preventing malicious code from altering critical files and configurations within the container.</li></ul><p>5. Image Vulnerability Scanning:</p><ul><li>Docker provides tools and integrations that allow you to scan Docker images for known vulnerabilities.</li><li>These tools analyze the contents of the image and compare them against known vulnerability databases, providing you with insights into potential security issues.</li></ul><p>6. Network Security:</p><ul><li>Docker allows you to define network policies and firewall rules to control the network traffic between containers and the external world.</li><li>You can isolate containers on different networks, configure network segmentation, and define access controls to limit network communication.</li></ul><p>7. User and Role-Based Access Control:</p><ul><li>Docker supports user and role-based access control (RBAC) mechanisms to manage access and permissions within the Docker environment.</li><li>RBAC allows you to assign specific roles to users and define their privileges, ensuring that only authorized individuals can perform sensitive operations.</li></ul><p>Understanding container isolation and security is crucial for maintaining a secure and reliable containerized environment.</p><h3>Docker Commands:</h3><p>Docker provides a variety of commands that allow you to manage containers, images, networks, and other aspects of your Docker environment. Here are some commonly used Docker commands along with their explanations:</p><ol><li><strong>docker run</strong> : This command creates and starts a new container based on a specified image. For example, docker run nginx would run a container using the Nginx image.</li><li><strong>docker ps</strong> : Use this command to list all running containers. It provides information such as the container ID, image used, status, and other details.</li><li><strong>docker images</strong> : This command lists all available Docker images on your system. It displays the image ID, repository, tag, and size.</li><li><strong>docker pull</strong> : Use this command to download a Docker image from a remote registry. For example, docker pull ubuntu would download the latest Ubuntu image.</li><li><strong>docker stop</strong> : This command stops a running container. You need to specify the container ID or name as an argument.</li><li><strong>docker start</strong> : Use this command to start a stopped container. Again, you need to provide the container ID or name.</li><li><strong>docker restart</strong> : This command restarts a running container. Similar to the docker stop and docker start commands, you need to specify the container ID or name.</li><li><strong>docker rm</strong> : Use this command to remove one or more containers. You can specify container IDs or names as arguments, and Docker will remove them.</li><li><strong>docker rmi</strong> : This command removes one or more Docker images. Similar to docker rm, you need to provide image IDs or names.</li><li><strong>docker exec</strong> : Use this command to run a command inside a running container. For example, docker exec -it container_name bash would open a shell inside the specified container.</li><li><strong>docker logs</strong> : This command displays the logs generated by a container. You can specify the container ID or name to view its logs.</li><li><strong>docker build</strong> : Use this command to build a Docker image based on a Dockerfile. It reads the instructions in the Dockerfile and creates an image.</li><li><strong>docker inspect</strong>: Use this command provides detailed information about a container, including its configuration, network settings, and mounted volumes. This can be useful for understanding the container’s setup and identifying any misconfigurations.</li></ol><p>These are just a few examples of useful Docker commands. Docker provides many more commands and options to manage containers, images, networks, volumes, and other resources.</p><p>Feel free to explore the <a href="https://docs.docker.com/">Docker documentation</a> for more details and to learn about additional commands.</p><h3>Further Learning Resources</h3><ol><li><a href="https://docs.docker.com/">The official Docker documentation</a></li><li><a href="https://aws.amazon.com/docker/">Docker on AWS</a></li><li><a href="https://www.ibm.com/topics/docker">IBM’s guide on Docker</a></li><li><a href="https://docker-curriculum.com/">A Docker Tutorial for Beginners</a></li><li><a href="https://youtu.be/fqMOX6JJhGo">Docker Tutorial for Beginners</a> — A Full DevOps Course on How to Run Applications in Containers by freeCodeCamp.org</li><li><a href="https://youtu.be/3c-iBn73dDE">Docker Tutorial for Beginners</a> by TechWorld with Nana</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24caf79e68d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Bubble — Myth, Hope and How to stay ahead?]]></title>
            <link>https://medium.com/@aakash1862/ai-bubble-myth-hope-and-how-to-stay-ahead-b0c8093264b0?source=rss-86d2ba79cb6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0c8093264b0</guid>
            <dc:creator><![CDATA[AakashDixit]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 18:23:37 GMT</pubDate>
            <atom:updated>2025-12-05T18:23:37.993Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI Bubble — Myth, Hope and How to stay ahead?</h3><blockquote>“Is AI the next big revolution — or the next big illusion? As billions pour into artificial intelligence, the question isn’t whether it will change the world, but whether the hype is outpacing reality.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wi0_ocyQZkphXbIzvRP34g.png" /></figure><p>When John McCarthy(father of AI) coined the term “Artificial intelligence” in 1956, he never thought that it turn out to be a field where investors will be giving away unlimited pile of money to any organization working towards AI development or AI usage in any form in their business model. However, big names from tech giants like Sundar Pichai, Sam Altman, Jeff Bazos, Pat Gelsinger and many more have agreed that the world has slid into the bubble which can be burst anytime as AI valuation is moving in a similar manner like dot.com bubble in late 1990s.</p><h3>Now the bigger question — What is AI Bubble?</h3><p>An &quot;AI bubble&quot; is a situation where the stock prices of artificial intelligence companies are rapidly increasing due to hype and speculation rather than actual profitability or solid evidence of future returns. Such investor’s enthusiasm outpaces a company’s fundamental value, leading to inflated stock valuations and concerns about a potential crash that could have significant financial consequences.</p><ul><li><strong>Speculative growth</strong>: It is characterized by a surge in investment driven by speculation and future potential, not current profits.</li><li><strong>Inflated expectations</strong>: There is a significant gap between the massive investments being made in AI and the practical, demonstrable results these investments are producing.</li><li><strong>Comparison to past bubbles</strong>: Many experts compare the current situation to the dot-com bubble of the late 1990s, where companies were vastly overvalued.</li></ul><p>Much like the dot-com era, the AI Bubble is driven by optimism, fear of missing out, and aggressive funding. Companies promise revolutionary capabilities, but many solutions are still experimental or lack clear ROI.</p><h4>If burst, how it will impact?</h4><p>If the AI bubble bursts when governments have limited room to shift investment internationally and the economy is propped up by increasingly fragile credit, the consequences could be serious. Bubbles are not accidents, but recurring mechanisms for absorbing surplus capital.</p><p>AI will survive, but the speculative bubble surrounding it is a sign of a deeper structural problem — the cost of which, when finally realized, will fall most heavily on the working class.</p><p>While early movers start-ups and tech giants may enjoy short-term gains, unsustainable business models and inflated valuations could lead to mass failures when the bubble bursts.</p><p>For consumers, the bubble means a flood of AI-powered apps and services. While some genuinely enhance productivity, others overpromise and underdeliver, creating confusion and distrust. Users must learn to separate practical tools from marketing hype.</p><p>The bubble is reshaping global markets, driving tech stock surges and venture capital frenzy. However, a correction could trigger layoffs, reduced innovation budgets, and cautious investor sentiment — similar to past tech downturns.</p><h4>Someone wants it to happen?</h4><p>Venture capitalists, major tech firms, and early adopters are strong supporters, betting on AI as the next industrial revolution whereas economists, ethical AI advocates, and pragmatic technologists warn against unchecked hype, urging responsible scaling and realistic expectations.</p><h4>How we should do?</h4><p>Don’t chase trends blindly. Focus on <strong>core skills</strong> like data literacy, critical thinking, and adaptability. Invest in learning that remains relevant beyond the bubble — because when the hype fades, fundamentals will matter most.</p><p>Do you think the AI Bubble will burst — or evolve into something bigger? Share your thoughts in the comments!</p><p>#ArtificialIntelligence #AI #Innovation #AIBubble #Trends</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c8093264b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[2D/3D] Game development using Amazon Q CLI #AmazonQCLI]]></title>
            <link>https://medium.com/@aakash1862/2d-3d-game-development-using-amazon-q-cli-amazonqcli-13fbffb31be5?source=rss-86d2ba79cb6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/13fbffb31be5</guid>
            <dc:creator><![CDATA[AakashDixit]]></dc:creator>
            <pubDate>Thu, 24 Jul 2025 08:47:30 GMT</pubDate>
            <atom:updated>2025-07-24T08:47:30.099Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Game Idea</h3><p>A single-player or multiplayer snake combat game, played by one or two players. After biting five pieces of food, the game’s background changes colour and the snake’s speed increases. It is a true copy of the game that I used to play in my childhood days, when I had a Nokia keypad phone in my hand.</p><h3>Setting up the Environment</h3><ul><li>Execute the below command to make sure that WSL is installed and enabled on the Windows Laptop.</li></ul><pre>1. wsl --install<br>2. wsl -d Ubuntu<br>3. cd<br>4. sudo apt install unzip</pre><ul><li>Install Amazon Q CLI on your laptop</li></ul><pre># From WSL command line, enter the command to download Amazon Q CLI package:</pre><pre>1. curl --proto &#39;=https&#39; --tlsv1.2 -sSf <a href="https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/q-x86_64-linux-musl.zip">https://desktop-release.codewhisperer.us-east-1.amazonaws.com/latest/q-x86_64-linux-musl.zip</a> -o q.zip<br>2. unzip q.zip<br>3. cd q<br>4. chmod +x install.sh<br>5. ./install.sh<br>6. bash<br>7. q login(Use option &quot;Use for free with Builder ID&quot;)<br>8. q chat (to verify if q has been enabled or not)</pre><ul><li>Install PyGame on your laptop.</li></ul><pre>python3 -m pip install -U pygame --user</pre><h3>First Prompt provided to q chat:</h3><blockquote><em>Create a classic Nokia snake game where after eating 5 food the background color changes and along with that snake color changes too. To make it more interesting, why dont you create this game for 2 players as a combat which players snake eats the other snake first. Whoever kills the other’s snake wins the game where the winner’s snake will turned out to be a Anaconda snake.</em></blockquote><p>After this prompt, q starts working and created a game board with HTML5 code with score display and control instructions for two players.</p><p>I am mesmerised by how q self-sufficiently thought that once any snake either struck a boundary wall or another snake, the game will be over and the snake with the highest food eaten will be the winner.</p><p>Majorly, two files are performing the game:</p><p>“snake_combat.html” for the game interface and styling.</p><p>“snake_combat.js” for the logic and controls.</p><p><strong><em>NOTE</em></strong><em>: I was so amazed that I forgot to take the screenshot of the game which was created, but below dotted representation below can tell the story:</em></p><pre>+------------------------------------------+<br>|              Snake Combat                |<br>+------------------------------------------+<br>| Player 1: 0                 Player 2: 0  |<br>+------------------------------------------+<br>|                                          |<br>|                                          |<br>|    ■■■&gt;                                  |<br>|                                          |<br>|                  •                       |<br>|                                          |<br>|                          &lt;■■■            |<br>|                                          |<br>|                                          |<br>+------------------------------------------+<br>|        [Start Game]    [Restart]         |<br>+------------------------------------------+<br>| Instructions:                            |<br>| Player 1: Use WASD keys to move          |<br>| Player 2: Use Arrow keys to move         |<br>| After eating 5 food items, the           |<br>| background and snake colors will change! |<br>| Win by making the other snake collide    |<br>| with yours!                              |<br>+------------------------------------------+</pre><p>The issue with this game version was that it is valid for only 2 players. What if a single player wants to play the game? Then I chatted with q with second prompt</p><h3>Second Iteration</h3><p>Here is the follow-up prompt, so that the game can also be played by a single player.</p><blockquote><em>Great, but it will be a full fledged game if we ask the user to play single player game or 2 player game rather than starting the game directly from 2 players.</em></blockquote><p>After the file modifications by q, new modifications added are:</p><ol><li>Mode selection feature available so that player can choose whether to play as a single player or 2 players.</li><li>Single player can play with AI opponent.</li><li>Back button to go back to mode selection.</li></ol><pre>+------------------------------------------+<br>|              Snake Combat                |<br>+------------------------------------------+<br>|           Select Game Mode               |<br>|                                          |<br>|     [Single Player]    [Two Players]     |<br>+------------------------------------------+</pre><pre>+------------------------------------------+<br>|              Snake Combat                |<br>+------------------------------------------+<br>| Player 1: 0                              |<br>+------------------------------------------+<br>|                                          |<br>|                                          |<br>|    ■■■&gt;                                  |<br>|                                          |<br>|                  •                       |<br>|                                          |<br>|                          &lt;■■■            |<br>|                                          |<br>|                                          |<br>+------------------------------------------+<br>|        [Start Game]    [Restart]         |<br>+------------------------------------------+<br>| Instructions:                            |<br>| Controls: Use WASD keys to move          |<br>| After eating 5 food items, the           |<br>| background and snake colors will change! |<br>| Try to get the highest score without     |<br>| hitting the walls or yourself!           |<br>+------------------------------------------+<br>|        [Back to Mode Selection]          |<br>+------------------------------------------+</pre><p>Even with better UI, advancements, something is missing, which is that a single player does not want to play with an opponent at all, not even an AI opponent.</p><p>Let’s provide another follow-up prompt and see what the new advancements will be?</p><h3>Third Iteration</h3><blockquote><em>If I select single player, snake should be only one, I can see two snakes on the screen. Also, if the game selection is single player, controls should be arrow keys and add space bar to restart the game in both mode of selection</em></blockquote><p>This time, below key features are added:</p><ul><li>Proper single-player experience with just one snake and no opponent.</li><li>Intuitive control schemes for each mode.</li><li>Spacebar shortcuts to restart the game for a better user experience.</li><li>Clearer instructions for both modes.</li></ul><pre>Single Player Mode:<br>+------------------------------------------+<br>|              Snake Combat                |<br>+------------------------------------------+<br>| Player 1: 0                              |<br>+------------------------------------------+<br>|                                          |<br>|                                          |<br>|    ■■■&gt;                                  |<br>|                                          |<br>|                  •                       |<br>|                                          |<br>|                                          |<br>|                                          |<br>|                                          |<br>+------------------------------------------+<br>|        [Start Game]    [Restart]         |<br>+------------------------------------------+<br>| Instructions:                            |<br>| Controls: Use Arrow keys to move         |<br>| After eating 5 food items, the           |<br>| background and snake colors will change! |<br>| Try to get the highest score without     |<br>| hitting the walls or yourself!           |<br>| Press Space to start/restart the game    |<br>+------------------------------------------+<br>|        [Back to Mode Selection]          |<br>+------------------------------------------+</pre><pre>Two Player Mode:<br>+------------------------------------------+<br>|              Snake Combat                |<br>+------------------------------------------+<br>| Player 1: 0                 Player 2: 0  |<br>+------------------------------------------+<br>|                                          |<br>|                                          |<br>|    ■■■&gt;                                  |<br>|                                          |<br>|                  •                       |<br>|                                          |<br>|                          &lt;■■■            |<br>|                                          |<br>|                                          |<br>+------------------------------------------+<br>|        [Start Game]    [Restart]         |<br>+------------------------------------------+<br>| Instructions:                            |<br>| Player 1: Use WASD keys to move          |<br>| Player 2: Use Arrow keys to move         |<br>| After eating 5 food items, the           |<br>| background and snake colors will change! |<br>| Win by making the other snake collide    |<br>| with yours!                              |<br>| Press Space to start/restart the game    |<br>+------------------------------------------+<br>|        [Back to Mode Selection]          |<br>+------------------------------------------+</pre><h3>Final Result</h3><p>After three prompts, I have a working game which got created in just 20 minutes at max and here is the final version of the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/0*cg3hbqZOolVVhK0I" /><figcaption>Mode Selection Screen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*hogAtRhuFnl20fcb" /><figcaption>Single Player Mode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/0*4QbfERuFMprr9YeL" /><figcaption>Two-Player Mode</figcaption></figure><p>Single Player Game Demo</p><h3>Future Enhancements</h3><p>Potential improvements for future versions:</p><ol><li>Difficulty Levels: Add easy, medium, and hard modes for single-player</li><li>Power-ups: Implement special food items with unique effects</li><li>Leader board: Save and display high scores</li><li>Responsive Design: Optimize for mobile devices with touch controls</li><li>Sound Effects: Add audio feedback for actions</li><li>Visual Effects: Add animations for snake movements and transformations</li></ol><h3>Conclusion</h3><p>Isn’t That Amazing how a game(even a 2D game) got created and working under 20 minutes using Amazon Q CLI.</p><p>I am very surprised by the way Amazon Q CLI works, just like a fellow developer whom we are explaining our requirement, and it is creating exactly that and sometimes even more than expected by suggesting changes, fixing errors, generating code, even breaking down code into best practice structure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13fbffb31be5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>