<?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 Denzel Selokela on Medium]]></title>
        <description><![CDATA[Stories by Denzel Selokela on Medium]]></description>
        <link>https://medium.com/@denzelselokela?source=rss-40a9c9c67238------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_54WqGADTgfFvA0DNGvYDg.jpeg</url>
            <title>Stories by Denzel Selokela on Medium</title>
            <link>https://medium.com/@denzelselokela?source=rss-40a9c9c67238------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:11:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@denzelselokela/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[Brownfield Development: Robot Worlds Java Game Improvement]]></title>
            <link>https://medium.com/@denzelselokela/brownfield-development-robot-worlds-java-game-improvement-9530222814d1?source=rss-40a9c9c67238------2</link>
            <guid isPermaLink="false">https://medium.com/p/9530222814d1</guid>
            <dc:creator><![CDATA[Denzel Selokela]]></dc:creator>
            <pubDate>Sun, 25 Aug 2024 09:52:33 GMT</pubDate>
            <atom:updated>2024-08-25T09:52:33.637Z</atom:updated>
            <content:encoded><![CDATA[<h3>Brownfield Development: Robot Worlds Java Game Improvements.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*s6Dk5hrfaJiahmfpjjqCCg.jpeg" /></figure><h3>Abstract</h3><p><em>The Brownfield project is building on an existing project to improve its structure, performance, or appearance. Robots Worlds is a Java game that consists of a server and client side interacting together via a protocol. Tools that were used in this project include git (version control), gitlab, test-driven development (acceptance testing), CI/CD pipelines, database management systems (DBMS), Docker containers, and Javalin. A layered architectural approach was implemented to modify the project. Challenges such as debugging while refactoring were face and time management. It was beneficial to embark on this journey and with a team like mine</em>.</p><h3>Introduction</h3><p>The world of technology has two main categories of projects, namely greenfields and brownfields. Greenfields is defined as a project where you start from scratch. On the contrary, brownfields projects are where you work on an existing codebase by modifying the project to optimize it. Modifications include fixing bugs, refactoring, improving performance, adding new features, and many more.</p><p>Our Brownfield project was on robot worlds. Robot Worlds is a client-server application built using the Java programming language. It is a game that supports multiplayers to log into an online server world where they can battle using robots. Client side enables players to launch different types of robots in the world where they can shoot, move, look, detect obstacles, and perform more actions.</p><p>We were given a codebase of robot worlds to improve into a better version than the original codebase. My team and I had a thrilling experience as we followed the provided guidelines as we implemented modifications to the source codebase. We have learned a great deal from our journey filled with challenges, frustrations, sleepless nights, and victories.</p><p>We outlined our objective goals and planned to achieve them in a specified time period as we iterated through our codebase to refine it in small chunks of changes. We used GitLab version control to ensure our source code is managed properly throughout collaboration. We ensured we were all working on the same version of the source code by consistently updating our local and remote files.</p><h3>Project Overview</h3><p>Our robot worlds project consisted of a client side and server side, which are both standalones. The protocol used in the project was uniform to ensure that multiple players can interact with each other in the same network.</p><p>The server is served as a world where the robots from clients are hosted as they connect to the server. It received instructions from the clients to update and control the robots’ states in the world. The client side is responsible for taking instructions from the client on the user interface and sends them to the server. It then takes the responses from the server and relay them back to the client by displaying the results.</p><h3>Tools and Methodology</h3><p>Using our object-oriented programming skills, we had to improve the codebase we were assigned using tools such as git version control, gitlab, acceptance testing, pipelines, database management systems (DBMS), Docker, and WebAPI. We refactored the project by applying a layered architecture approach consisting of infrastructure, domain, and web API layers.</p><h4>Infrastructure Layer</h4><p>We implemented a database. We used SQLite because it is easy to use and it is widely used. To ensure persistence, Java database connectivity was used to connect our database to the project. This enabled us to be able to store the world’s data from the server and retrieve it from the database directly to the server. We implemented object serialization, which allowed complex structure data to be easily saved and restored.</p><h4>WebAPI layer</h4><p>We used Javalin framework to set up this layer into two classes. One class’s purpose was to run the server and define the HTTP interface. The other class was used to handle the requests and response messages that interacted with the domain layer.</p><h4>Domain layer</h4><p>This layer is the main core layer of the project, where the worlds and robots data is created and processed. This is where the configurations and specifications of the world and the robots are set, respectively. This layer defines what a robot object is a blueprint of the limitations and the rules of the game.</p><p>We further developed the project from its original state to its final version by implementing Test Driven Development (TDD) to ensure the functionalities are not changed completely. We used CI/CD pipelines to automate our building and testing processes. Docker used to containerize our project for packaging and deployment.</p><h3>Retrospective and Conclusion</h3><p>We face many challenges as a team. The first challenge was figuring out how to work most efficiently as a collective. We then face challenges with learning new concepts at a fast pace. Debugging was also our major challenge, as was time management. Refactoring the codebase took longer than expected as we needed to understand the whole project’s functionality. There were many unnecessary implementations, and some did not even work at all, such as the graphic user interface (GUI). We had to remove them from the project completely.</p><p>My team was a very good team that just needed a few changes to be the best team. We could have planned better our time management and hosted workshops to ensure we implement the best possible solutions.</p><p>Personally, I enjoyed the journey we embarked on, and I am very proud of every single one of my teammates. We learned so much and have grown our technical skills. I believe I am a better developer than I was when I met them at the beginning of the projects. I am grateful for this challenge and journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9530222814d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>