<?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 Dimterion on Medium]]></title>
        <description><![CDATA[Stories by Dimterion on Medium]]></description>
        <link>https://medium.com/@dimterion?source=rss-6eb8db86d8ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bF7bYGyUP9mzTFPmJoWRWQ.jpeg</url>
            <title>Stories by Dimterion on Medium</title>
            <link>https://medium.com/@dimterion?source=rss-6eb8db86d8ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:31:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dimterion/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[Python Functions and Return Values]]></title>
            <link>https://medium.com/@dimterion/python-functions-and-return-values-987931c0e711?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/987931c0e711</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 07:54:50 GMT</pubDate>
            <atom:updated>2026-11-27T07:54:50.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Python Functions and Return Values." src="https://cdn-images-1.medium.com/max/700/1*ic0p_C98LXmsTWDpHsqu3A.png" /></figure><p>Let’s take a closer look at functions in the Python programming language and also talk about their return values.</p><p>From a high level, a <strong>function</strong> can be viewed as a reusable block of code to perform specific actions or tasks.</p><p>There are various <strong>built-in Python functions</strong>.</p><pre># Print text to the console<br>print(&quot;Let&#39;s learn some Python!&quot;)<br># Output<br># Let&#39;s learn some Python!<br><br># Return an object&#39;s data type<br>number = 1<br>print(type(number))<br># Output<br># &lt;class &#39;int&#39;&gt;<br><br># Convert object to string<br>number = str(number)<br>print(type(number))<br># Output<br># &lt;class &#39;str&#39;&gt;</pre><blockquote><strong>Note:</strong> in older Python versions (before version 3), print built-in function didn’t use parentheses (and was written as a statement).</blockquote><h3>Defining Functions</h3><p>Apart from built-in functions, we can create our own functions. To define a function a <strong>def </strong>keyword is used at the start of the function block.</p><pre># Function definition<br>def how_to_succeed(tip_1, tip_2):<br>    # Function body<br>    print(&quot;Tip 1: &quot; + tip_1 + &quot;.&quot;)<br>    print(&quot;Tip 2: &quot; + tip_2 + &quot;.&quot;)<br><br># Calling the function<br>how_to_succeed(&quot;Work&quot;, &quot;Work harder&quot;)<br># Output<br># Tip 1: Work.<br># Tip 2: Work harder.</pre><p>Functions can use <strong>arguments </strong>(information you pass to it to modify in a certain way): in the example above <em>“Work”</em> and <em>“Work harder”</em> are arguments for the function <em>how_to_succeed</em> (when the function is defined, they are called its <strong>parameters</strong>: <em>tip_1</em>, <em>tip_2</em> in the example above; to simplify: parameters are a general name before using exact values, while arguments are related to specific values passed to a function).</p><p>To get values out of functions, return values can be used.</p><p><strong>Return </strong>is a reserved keyword that sends a result from a function so that it can be saved for later use. If a function doesn’t have a return statement, by default it returns <strong>None</strong>.</p><pre>def celsius_to_fahrenheit(celsius_temp):<br>    return (celsius_temp * 1.8) + 32<br>water_freeze_celsius = 0<br>water_freeze_fahrenheit = celsius_to_fahrenheit(water_freeze_celsius)<br><br># Convert float to string to combine it with the rest of the text.<br>print(&quot;Water freezes at &quot; + str(water_freeze_fahrenheit) + &quot; degrees Fahrenheit.&quot;)<br># Output<br># Water freezes at 32.0 degrees Fahrenheit.</pre><p>This also demonstrates the concept of <strong>reusability </strong>(defining code once and using it later without the need to write it again) and <strong>modularity </strong>(writing code in separate components that can work together and be reused for other programs). Both can be applied to programming in general and not only Python.</p><pre>water_boil_celsius = 100<br>water_boil_fahrenheit = celsius_to_fahrenheit(water_boil_celsius)<br><br>print(&quot;Water boils at &quot; + str(water_boil_fahrenheit) + &quot; degrees Fahrenheit.&quot;)<br># Output<br># Water boils at 212.0 degrees Fahrenheit.</pre><h3>Concepts and Terminology</h3><p>While talking about functions, it can be worth it to mention several concepts and terminology related to them.</p><p>The process of restructuring code while maintaining its original functionality is called <strong>refactoring</strong>. Here we can also mention <strong>self-documenting code</strong> which relates to the code that is written in a readable way that makes its purpose clear. An example of it can be selecting easy-to-understand variables names or using comments in the code with <em>“#”</em> sign (the line that starts with that character will be ignored when the code is running, hence it’s used for descriptions, clarifications, etc.). Following these principles reduces errors, speeds up the work process, and helps with collaboration when working in a team.</p><p>Working with functions also relates to <strong>algorithms </strong>— sets of instructions to solve a problem or accomplish a task. To make it easier to do, every function can be split into smaller parts that work together. Comments can be used to describe what each part does. You can also add the comments first, before writing any code, to demonstrate what your goal is in human-readable language. That is called writing <strong>pseudocode</strong>. Once you have written it, you can begin adding the actual code to perform each step.</p><pre># Pseudocode example<br>def fahrenheit_to_celsius(fahrenheit_temp):<br>    # Subtract 32 from fahrenheit temp<br>    <br>    # Multiply the result by 5<br>   <br>    # Divide the result by 9<br>   <br>    # Show the final result</pre><pre># Final code example<br>def fahrenheit_to_celsius(fahrenheit_temp):<br>    # Subtract 32 from fahrenheit temp<br>    first_action = fahrenheit_temp - 32<br>    # Multiply the result by 5<br>    second_action = first_action * 5<br>    # Divide the result by 9<br>    third_action = second_action / 9<br>    # Show the final result<br>    print(third_action)<br><br># Water freeze temp<br>fahrenheit_to_celsius(32)<br># Output<br># 0.0</pre><p>The above logic is split into several parts for demonstrative purposes. The final function can be simplified to just one line of code inside the function.</p><pre>def fahrenheit_to_celsius(fahrenheit_temp):<br>    print((fahrenheit_temp - 32) * 5 / 9)<br><br># Water boil temp<br>fahrenheit_to_celsius(212)<br># Output<br># 100.0</pre><p>A string at the beginning of a function’s body that summarizes its behavior and describes its arguments and return values is called a <strong>docstring</strong>. It starts and ends with three quotation marks (single or double quotes).</p><pre>def fahrenheit_to_celsius(fahrenheit_temp):<br>    &quot;&quot;&quot;<br>    Convert a Fahrenheit temperature to Celsius <br>    and return the result.<br>    <br>        Parameter:<br>            fahrenheit_temp (float): temperature in Fahrenheit<br><br>        Returns:<br>            celsius_temp (float): temperature in Celsius<br>    &quot;&quot;&quot;<br>    celsius_temp = ((fahrenheit_temp - 32) * 5 / 9)<br>    return celsius_temp<br><br>print(fahrenheit_to_celsius(212))<br># Output<br># 100.0</pre><h3>Functions and Methods</h3><p>It’s important to distinguish functions from methods.</p><p><strong>Methods </strong>are a specific type of functions. They are functions that belong to an object or class and can be used by calling them with a dot notation.</p><pre># Splitting a string into multiple strings with built-in split() method<br>to_do_things = &quot;read remember repeat&quot;<br>print(to_do_things.split())<br># Output<br># [&#39;read&#39;, &#39;remember&#39;, &#39;repeat&#39;]<br><br># Using the above method in a function<br>def tasks(to_dos):<br>    print(to_dos.split())<br><br>tasks(&quot;learn grow prosper&quot;)<br># Output<br># [&#39;learn&#39;, &#39;grow&#39;, &#39;prosper&#39;]</pre><p>Standalone functions don’t belong to any class and are often used with different types of objects.</p><pre>sum_numbers = sum([4, 5])<br>print(sum_numbers)<br># Output<br># 9</pre><p>Python’s built-in functions can be found in the appropriate <a href="https://docs.python.org/3/builtins/functions.html">docs section</a>.</p><h3>Final Notes</h3><p>To sum up, here are a few takeaways based on what we’ve discussed in this post:</p><ul><li>Python allows you to define and call functions.</li><li>Function’s main components are: definition statement, body, and optional <strong>return </strong>statement (<strong>print </strong>can be used to display a value).</li><li>Function header includes the <strong>def </strong>keyword, followed by the function’s name, parentheses, and a colon.</li><li>Function body includes a block of code with instructions on what to do when the function is called.</li><li>The return value is the result of function’s execution that it sends back when it’s called.</li><li>Functions allow you to reuse common code.</li><li>Functions can accept single or multiple parameters.</li><li>Python built-in functions, like <strong>round()</strong>, can be used to simplify the logic and make the results easier to read.</li><li>Comments explain how the code works and what the intended results are.</li></ul><p>These were some of the basics of Python’s functions, return values, and general concepts around them. Hopefully, this was helpful.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=987931c0e711" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Variables, Data Types, Operators, and Syntax]]></title>
            <link>https://medium.com/@dimterion/python-variables-data-types-operators-and-syntax-261293b289ab?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/261293b289ab</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 06:09:33 GMT</pubDate>
            <atom:updated>2026-11-20T06:09:33.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Python Variables, Data Types, Operators, and Syntax." src="https://cdn-images-1.medium.com/max/700/1*-2rzOEPBvJTqZCECda_H2w.png" /></figure><p>Let’s talk about variables, data types, operators and syntax in the Python programming language.</p><h3>General Terminology</h3><p>In general, <strong>variables </strong>are used to give meaning to code; they point to values (and are not values themselves). You can also think of them as containers with labels. They can store values of any data type and they have a name and a value; their type depends on the value they refer to.</p><p><strong>Data type</strong> is an attribute that describes a piece of data based on its values, programming language, or the operations it can perform (for Python it can include: strings, floats, integers, lists, dictionaries, etc.).</p><p>The process of storing a value in a variable is called <strong>assignment</strong>.</p><p>A combination of numbers, symbols, or other variables that produce a result when evaluated is an <strong>expression</strong>.</p><h3>Variables and Data Types Examples</h3><p>A few definitions for Python data types before providing examples:</p><ul><li><strong>String </strong>— a sequence of characters and punctuation that stores text information (wrapped with single or double quotes).</li><li><strong>Immutable </strong>data type means that its values can’t be changed (strings are immutable).</li><li><strong>Integer </strong>— represents whole numbers (without fractions).</li><li><strong>Float </strong>— represents numbers that have decimals.</li></ul><p>Generally, the same data types can be combined; combining different types will result in an error:</p><pre>print(2 + 5)<br># Output<br># 7<br><br>print(&quot;Hello &quot; + &quot;there!&quot;)<br># Output<br># Hello there!<br><br>print(&quot;1&quot; + 4)<br># Output<br># TypeError</pre><p>To check the data type, the <strong>type()</strong> function can be used:</p><pre>print(type(5))<br># Output<br># &lt;class &#39;int&#39;&gt;<br><br>print(type(&quot;5&quot;))<br># Output<br># &lt;class &#39;str&#39;&gt;<br><br>print(type(5.5))<br># Output<br># &lt;class &#39;float&#39;&gt;</pre><p>We’ve already mentioned lists among the data types, so here is an example:</p><pre># Assigning a list with ages<br>ages = [18, 21, 45, 54, 36]</pre><p>It is worth mentioning that variables can point to objects of any data type, which is called <strong>dynamic typing</strong>.</p><p>To go a step further, we can find the maximum value from our list and assign it to a new variable:</p><pre># Finding maximum value with Python&#39;s built-in max function<br>max_age = max(ages)<br>print(max_age)<br># Output<br># 54</pre><p>In this case the value data type is integer. We can convert it to a string:</p><pre># Converting value to a string<br>max_age = str(max_age)<br>print(max_age)<br># Output (looks the same, but its type is string now)<br># 54</pre><p>We can also convert floats to integers:</p><pre># Converting a floating-point number to an integer<br>floating_number = 45.7<br>converted_to_integer = int(floating_number)<br>print(converted_to_integer)<br># Output<br># 45</pre><p>We can also overwrite the previous value of our variable:</p><pre># Reassigning the value<br>max_age = &quot;fifty-four&quot;<br>print(max_age)<br># Output<br># fifty-four</pre><p>And we can use variables to perform calculations:</p><pre># Using variables for calculation<br>ages = [18, 21, 45, 54, 36]<br>max_age = max(ages)<br>min_age = min(ages)<br>age_difference = max_age - min_age<br>print(age_difference)<br># Output<br># 36</pre><p>In some numerical operations, Python converts one data type to another automatically, which is called <strong>implicit conversion</strong>.</p><pre># Implicit conversion of integers to floats<br>print(2 + 2.45)<br># Output<br># 4.45</pre><p>To convert numerical values to strings, <strong>explicit conversion</strong> must be used (the user converts the data type to the required one).</p><pre># Explicit conversion of numbers to strings with str() function<br>print(&quot;1 + 1 = &quot; + str(1 + 1))<br># Output<br># 1 + 1 = 2</pre><h3>Naming Conventions</h3><p>When talking about any programming language it is worth mentioning <strong>naming conventions</strong> (guidelines for choosing clear, consistent names for variables, functions, and other parts of code).</p><p>There are also <strong>naming restrictions</strong> (rules in the language syntax that must be followed) and <strong>keywords </strong>(words reserved for specific purpose that can only be used for it, like: “for”, “in”, “if”, “else”; they can’t be used for naming variables).</p><pre># Assigning a value to a reserved keyword<br>else = &quot;can&#39;t do this&quot;<br># Running the code will result in: SyntaxError: invalid syntax<br># Keyword will also be highlighted and written in a different color</pre><p>The same idea applies to built-in functions, like print, str, etc. Technically, their names can be reused, but it is not recommended (as it can make the original function unavailable).</p><p>In other words, reserved keywords and functions can’t be used to name something else.</p><p>Variables also have several <strong>naming restrictions</strong>:</p><ul><li>Can only include letters, numbers, and underscores.</li><li>Must start with a letter or underscore.</li><li>Python is a case-sensitive language.</li><li>Can’t include parentheses or spaces.</li></ul><pre># Can be used<br>a_variable<br>variable_1<br><br># Can&#39;t be used<br>1_variable<br>variable_#1<br></pre><p>Conventionally, snake case is used for variables names in Python:</p><pre>snake_case_variable = &quot;lowercase words separated by underscores&quot;</pre><h3>Order of Operations</h3><p>There is also such a thing as the order of operations, which is particularly important when performing calculations (they should follow mathematical order of operations).</p><pre>print(4 * (1 + 3))<br># Output<br># 16<br><br>print((2 * 5) + 5)<br># Output<br># 15<br><br>print(2 + 5 * 5)<br># Output<br># 27</pre><p>Symbols that perform operations are called <strong>operators</strong>. Apart from the typical ones like addition (+) and subtraction (-), multiplication (*), and division (/), there are several more specific ones like:</p><ul><li><strong>**</strong> for <strong>exponentiation</strong> (for example, 10 ** 2, which means ten to the power of two and equals 100).</li><li><strong>%</strong> for the <strong>modulo </strong>operation (which returns the remainder after division, like: 11 % 3 = 2; 12 % 3 = 0).</li><li><strong>//</strong> for <strong>floor division</strong> (which rounds the division result down to the nearest integer, like: 7 // 2 = 3).</li><li><strong>&gt;</strong> for returning a <strong>Boolean</strong> (<em>True </em>or <em>False</em>) if the left part is greater than the right one.</li><li><strong>&lt;</strong> for returning a <strong>Boolean </strong>if the left part is less than the right one.</li><li><strong>==</strong> for returning a Boolean if the left part is equal to the right one (single equality sign — <strong>“=”</strong> — is an <strong>assignment operator</strong> and it is used to assign or reassign values to variables).</li></ul><p>A combination of numbers, symbols, and variables form <strong>expressions</strong>:</p><pre>[1, 2, 3] + [4, 5, 6]<br># Printing the above to the console would show:<br># [1, 2, 3, 4, 5, 6]</pre><p>Groups of related statements to perform a task form <strong>functions </strong>(functions can optionally return a value):</p><pre>def hours_to_minutes(x):<br>    return x * 60<br>two_hours_in_minutes = hours_to_minutes(2)<br>print(two_hours_in_minutes)<br># Output<br># 120</pre><p>Code that performs certain actions based on specified conditions forms <strong>conditional statements</strong>:</p><pre>temperature = 25<br>if temperature &gt; 0:<br>    print(&quot;Above zero&quot;)<br>elif temperature == 0:<br>    print(&quot;Zero&quot;)<br>else:<br>    print(&quot;Below zero&quot;)<br># Output<br># Above zero</pre><p><strong>Syntax errors</strong> happen in case there are incorrectly used keywords and syntax:</p><pre>print(Quotation marks need to be added.)<br># Output<br># SyntaxError: invalid syntax.</pre><p>When learning a new language, it’s always a good idea to get familiar with its syntax (words and punctuation used to represent objects and commands like a structure with hierarchy and context) and semantics (the way words and punctuation communicate ideas and processes; in other words, it’s the meaning formed by the syntax), so hopefully these general Python concepts could be helpful (the <a href="https://docs.python.org/">Python documentation</a> can of course be a source of more detailed information).</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=261293b289ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Concepts, Methods, and Functions]]></title>
            <link>https://medium.com/@dimterion/python-concepts-methods-and-functions-36cb29379299?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/36cb29379299</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 05:57:37 GMT</pubDate>
            <atom:updated>2026-11-13T05:57:37.669Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Python Concepts, Methods, and Functions." src="https://cdn-images-1.medium.com/max/700/1*oTjCItWI77VrQHitmkJtaw.png" /></figure><p>Let’s talk about some main concepts, methods, and functions in the Python programming language.</p><p>Previously, I’ve talked about some of the <a href="https://medium.com/@dimterion/python-basics-bc627f39c5ca?sharedUserId=dimterion">Python basics</a>. Now we can dive a little bit deeper and explore a few additional details about the language.</p><h3>Python Concepts, Methods, and Functions Examples</h3><h4>Concepts</h4><p>Python is an <strong>object-oriented programming language</strong>, which means it is based around objects that can contain data and code that manipulates the data.</p><p><strong>Object</strong> is an instance of a class (a building block).</p><p><strong>Class </strong>bundles data and functionality together and defines a type of object. It can also have methods that can be used to perform various actions.</p><p><strong>Method</strong> is a function that belongs to a class and performs certain actions or operations.</p><p><strong>Dot notation</strong> is used to access the methods and attributes that belong to a class instance.</p><p>Some common <strong>built-in types in Python</strong> include integers, floats, strings, Booleans, lists, dictionaries, tuples, sets, frozensets, and ranges. There is also a special value <strong>None </strong>that shows the absence of a value (its type is NoneType).</p><p><strong>Attributes </strong>are values associated with an object or class. They are referenced by name using dot notation.</p><h4>Methods and Functions Examples</h4><pre># Checking a type of a string assigned to a variable <br># (using built-in type function)<br>a_string = &quot;This is a string.&quot;<br>print(type(a_string))<br># Output<br># &lt;class &#39;str&#39;&gt;</pre><pre># Switching the case with built-in swapcase() method<br>loud = &quot;LEARN PYTHON!&quot;<br>quiet = loud.swapcase()<br>print(quiet)<br># Output<br># learn python!<br><br># There are also separate lower() and upper() methods</pre><pre># Replacing letters with built-in replace() method<br>typos = &quot;len and en&quot;<br>fixed = typos.replace(&quot;en&quot;, &quot;earn&quot;)<br>print(fixed)<br># Output<br># learn and earn</pre><pre># Splitting a string into two strings with built-in split() method<br>to_do_things = &quot;read remember repeat&quot;<br>print(to_do_things.split())<br># Output<br># [&#39;read&#39;, &#39;remember&#39;, &#39;repeat&#39;]</pre><h4>Using Libraries</h4><p>You can also install various Python <strong>libraries </strong>to perform more complex tasks or add functionality to your project. We can take a look at <strong>pandas </strong>data analysis library for a quick example (this is a bit of an extra and not strictly necessary example for the current post, but let’s just give it a brief look).</p><blockquote><strong>Note:</strong> The following are the steps for VS Code on Windows. You can find more info in <a href="https://pandas.pydata.org/docs/">pandas library documentation</a>.</blockquote><p>These steps can be completed in VS Code’s terminal, from the project folder:</p><pre># Create a virtual environment in the folder containing your .py file<br>py -m venv .venv<br><br># Activate the virtual environment<br>.\.venv\Scripts\Activate<br># Or more explicit for PowerShell<br>.\.venv\Scripts\Activate.ps1<br><br># Install pandas locally<br>python -m pip install pandas</pre><p>We can then import the pandas library into our file and use it to create a DataFrame:</p><pre># Create the `weekdays` DataFrame<br>import pandas as pd<br>data = [<br>    [&quot;Monday&quot;, &quot;Start week&quot;, 1],<br>    [&quot;Tuesday&quot;, &quot;Project 1&quot;, 2],<br>    [&quot;Wednesday&quot;, &quot;Project 2&quot;, 3],<br>    [&quot;Thursday&quot;, &quot;Review&quot;, 4],<br>    [&quot;Friday&quot;, &quot;Final review&quot;, 5],<br>    [&quot;Saturday&quot;, &quot;Chores&quot;, 6],<br>    [&quot;Sunday&quot;, &quot;Rest&quot;, 7],<br>]<br>cols = [&quot;Day&quot;, &quot;Task&quot;, &quot;ID&quot;]<br>weekdays = pd.DataFrame(data, columns=cols)<br><br># Display the `weekdays` dataframe<br>print(weekdays)<br># Output<br># Day          Task  ID<br># 0     Monday    Start week   1<br># 1    Tuesday     Project 1   2<br># 2  Wednesday     Project 2   3<br># 3   Thursday        Review   4<br># 4     Friday  Final review   5<br># 5   Saturday        Chores   6<br># 6     Sunday          Rest   7<br><br># Use the shape dataframe attribute to check the number of rows and columns<br>print(weekdays.shape)<br># Output<br># (7, 3)<br><br># Use the DataFrame&#39;s columns attribute to check its column names<br>print(weekdays.columns)<br># Output<br># Index([&#39;Day&#39;, &#39;Task&#39;, &#39;ID&#39;], dtype=&#39;str&#39;)<br># Displayed dtype can vary based on pandas version</pre><p>These were some of the basic concepts of the Python programming language, a few examples of its functions and methods, and one possible way to use a third-party library. I intentionally kept the text rather short to demonstrate the main concepts. Hopefully, this was helpful.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36cb29379299" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Basics]]></title>
            <link>https://medium.com/@dimterion/python-basics-bc627f39c5ca?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc627f39c5ca</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 06 Nov 2026 06:21:40 GMT</pubDate>
            <atom:updated>2026-11-06T06:21:40.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Python Basics." src="https://cdn-images-1.medium.com/max/700/1*4mr7xx-bYjCHF8H85Bd9bw.png" /></figure><p>Let’s talk about the Python programming language, its initial setup, and basic commands and features.</p><blockquote><strong>Context:</strong> I was recently exploring some data analytics fundamentals through Google’s Data Analytics course and, when it reached the Python section, decided to write down some notes about it (as it’s my favorite way to learn). So, the answer to the obvious questions — like why bother learning something in the days of AI, or why write about something widely available everywhere — is simply that I like writing about the things I learn and how I approach them. And if you stumble upon this text and decide to read further, well, you may find something useful. Every little bit stacks, regardless of how you learned it. With disclaimers out of the way, let’s continue.</blockquote><h3>Setup</h3><p>First, let’s set everything up to run some basic things in Python. I’m using VS Code on Windows, so these are the initial steps for that particular case.</p><p>If you used the famous JavaScript/HTML/CSS trio before, you probably have Node.js and Bash installed, but for Python you’ll need a couple of other things.</p><p>You can try to first create a Python file (for example, <em>test.py</em>) and open it in VS Code right away. It will suggest installing the <strong>Python extension</strong>, which lets you manage Python environments and packages, activate Python in the terminal, and also handles linting, running, and debugging the code.</p><p>You also need to install Python (can be downloaded from <a href="https://www.python.org/">python.org</a>). Without it, you may see a message “Select Python Interpreter” at the bottom of your code editor.</p><p>Once that is done, you can try running your file with a simple line of code like:</p><pre>print(&quot;test&quot;)</pre><p>To run it you can use a play button in the top-right corner of the editor (another option is to right-click anywhere in the editor and select Run Python). The result should appear in the terminal. The following terminal command should also run your file:</p><pre>py test.py</pre><p>Let’s now explore some Python basics.</p><h3>Python Basics</h3><p>Here are some basic actions in Python:</p><blockquote><strong>Note:</strong> The “#” sign is used for comments.</blockquote><ul><li>Print to the console.</li></ul><pre># Print a string<br>print(&quot;Print this message to the console.&quot;)<br># Output<br># Print this message to the console.<br><br># Print a number<br>print(8)<br># Output<br># 8</pre><ul><li>Simple math.</li></ul><pre># Calculation<br>(5 + 10) / 3<br><br># To show result<br>print((5 + 10) / 3)<br># Output<br># 5.0</pre><ul><li>Assign variables.</li></ul><pre># Assign variables<br>title = &quot;Python basics&quot;<br>year = 2026<br><br># Print variables to the console<br>print(title)<br>print(year)<br># Output<br># Python basics<br># 2026</pre><ul><li>Evaluations (True or False).</li></ul><blockquote><strong>Note:</strong> The double equals sign is used to check equality; the single equals sign is reserved for assignment statements.</blockquote><pre># Evaluation<br># 10 to the power of 2 equals 100 =&gt; true<br>10 ** 2 == 100<br># 10 to the power of 3 equals 10000 =&gt; false<br>10 ** 3 == 10000<br><br># Print evaluation results to the console<br>print(10 ** 2 == 100)<br>print(10 ** 3 == 10000)<br># Output<br># True<br># False<br><br># Cannot use a single equals sign<br>10 * 2 = 20<br># Will result in a SyntaxError<br># Correct syntax<br># 10 multiplied by 2 equals 20 =&gt; true<br>10 * 2 == 20<br>print(10 * 2 == 20)<br># Output<br># True<br><br>year = 2026<br>next_year = year + 1<br>print(year == next_year)<br># Output<br># False</pre><ul><li>Conditional statements.</li></ul><pre># Assigning a variable<br>age = 18<br><br># Conditional statement<br># Age is greater than or equal to 18<br>if age &gt;= 18:<br>    print(&quot;Adult&quot;)<br>else:<br>    print(&quot;Minor&quot;)<br># Output<br># Adult</pre><ul><li>Loops.</li></ul><pre># Creating a loop to print each number from a list divided by 2<br>for number in [2, 4, 6]:<br>    print(number / 2)<br><br># Output<br># 1.0<br># 2.0<br># 3.0<br><br># Another loop example<br>to_do_list = [&quot;Exercise&quot;, &quot;Hydrate&quot;, &quot;Work&quot;]<br><br>for task in to_do_list:<br>    print(task)<br><br># Output<br># Exercise<br># Hydrate<br># Work<br></pre><ul><li>Functions (creating new ones from scratch and using built-in Python functions).</li></ul><pre># Creating a function<br>def is_adult(age):<br>    if age &gt;= 18:<br>        print(&quot;Adult&quot;)<br>    else:<br>        print(&quot;Minor&quot;)<br><br># Calling the function<br>is_adult(10)<br># Output<br># Minor<br>is_adult(19)<br># Output<br># Adult<br><br># Using Python&#39;s built-in function sorted()<br>unsorted_list = [2, 4, 3, 5, 1]<br>sorted_list = sorted(unsorted_list)<br><br>print(sorted_list)<br># Output<br># [1, 2, 3, 4, 5]</pre><p>These were some of the basic operations in Python, including the initial setup, printing values to the console, defining variables, doing simple math, evaluations, and writing conditional statements, loops, and functions.</p><p>This was more of a comparison for those who already have some experience with other programming languages (like JavaScript), but hopefully it also explains some of the basic syntax and actions.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc627f39c5ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spooky Dev Life]]></title>
            <link>https://medium.com/@dimterion/spooky-dev-life-33d9e4440d64?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/33d9e4440d64</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 06:42:06 GMT</pubDate>
            <atom:updated>2026-10-30T06:42:06.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Spooky Dev Life." src="https://cdn-images-1.medium.com/max/700/1*ym5xi_dBMtX2T1GiZpaZ1A.png" /></figure><p>A small interactive poem about dev life.</p><p>With pumpkin season knocking on the door, let’s write a little text just for fun and then put it into an interactive slider on CodePen (code and link are shown at the end).</p><h3>A Copy of the World</h3><h4>[an imaginary friend suggested title; the rest is personal “creation”]</h4><blockquote>One day you wake up and find yourself in a world that is a copy of yours.</blockquote><blockquote>It feels okay at first, but then you start to notice some oddities.</blockquote><blockquote>Some discrepancies that stand out.</blockquote><blockquote>Maybe you’re just imagining things, and everything is fine.</blockquote><blockquote>Or not.</blockquote><blockquote>Yesterday, you were a happy little soul, discovering the wonders of developing.</blockquote><blockquote>You were making things, programming, solving problems.</blockquote><blockquote>Today, you are a tired old being, prompting your way through hallucinations and code creep.</blockquote><blockquote>You are telling your artificial assistant what to do.</blockquote><blockquote>Yesterday, you had all your repos updated, looking shiny and modern.</blockquote><blockquote>Today, you get a hundred warnings of security breaches and all sorts of leaks.</blockquote><blockquote>Yesterday, you bought RAM for less than a dinner at a good restaurant.</blockquote><blockquote>Today, RAM costs as much as a Michelin-starred establishment.</blockquote><blockquote>Life moves on, and you keep on going.</blockquote><blockquote>Some things change; others remain the same.</blockquote><blockquote>Some say it’s the best thing that could have happened; others preach that it’s our final doom.</blockquote><blockquote>And some stay in the middle, watching the debate carry on.</blockquote><blockquote>The world keeps spinning, faster with every day.</blockquote><blockquote>Yesterday’s hard work is today’s routine and tomorrow’s history.</blockquote><blockquote>Whatever and however you do it isn’t fast enough.</blockquote><blockquote>Should you complain?</blockquote><blockquote>You can.</blockquote><blockquote>Should you keep going?</blockquote><blockquote>You can as well.</blockquote><blockquote>Should you adapt, do both, or stay and watch the world go by?</blockquote><blockquote>All of those are valid options too.</blockquote><blockquote>There is no right or wrong response to this.</blockquote><blockquote>Good thing that’s just a copy of the world we live in.</blockquote><blockquote>It’s just a side-effect dream of social distancing and spending too much time at home.</blockquote><blockquote>We can just go outside and touch some grass.</blockquote><blockquote>And everything will roll back to its former state.</blockquote><blockquote>The way things always do when you’re dreaming.</blockquote><blockquote>Because the whole of life is just another dream. Right?</blockquote><blockquote>Oh, wait…</blockquote><h3>Code</h3><h4>HTML</h4><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;./style.css&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;Spooky Dev Life&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>&lt;main class=&quot;stage&quot;&gt;<br>      &lt;div class=&quot;progress&quot; id=&quot;progress&quot;&gt;&lt;/div&gt;<br><br>      &lt;div class=&quot;slide-wrap&quot;&gt;<br>        &lt;div class=&quot;skull&quot; id=&quot;skull&quot; aria-hidden=&quot;true&quot; hidden&gt;💀&lt;/div&gt;<br>        &lt;p class=&quot;slide&quot; id=&quot;slide&quot; aria-live=&quot;polite&quot; aria-atomic=&quot;true&quot;&gt;&lt;/p&gt;<br>      &lt;/div&gt;<br><br>      &lt;div class=&quot;controls&quot;&gt;<br>        &lt;button id=&quot;next&quot;&gt;Next 🎃&lt;/button&gt;<br>        &lt;button id=&quot;restart&quot; hidden&gt;Restart 🕯️&lt;/button&gt;<br>      &lt;/div&gt;<br>    &lt;/main&gt;<br>    &lt;script src=&quot;./script.js&quot;&gt;&lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><h4>CSS</h4><pre>@import url(https://medium.com/&quot;https://fonts.googleapis.com/css2?family=Henny+Penny&amp;display=swap&quot;);<br><br>:root {<br>  --bg: #0b0710;<br>  --pumpkin: #ff7a18;<br>  --ghost: #e9e3d8;<br>  --purple: #7b2cbf;<br>  --shadow: rgba(255, 122, 24, 0.25);<br>}<br><br>* {<br>  box-sizing: border-box;<br>}<br><br>body {<br>  margin: 0;<br>  min-height: 100vh;<br>  display: grid;<br>  place-items: center;<br>  background:<br>    radial-gradient(<br>      circle at 20% 15%,<br>      rgba(123, 44, 191, 0.25),<br>      transparent 40%<br>    ),<br>    radial-gradient(<br>      circle at 80% 80%,<br>      rgba(255, 122, 24, 0.18),<br>      transparent 45%<br>    ),<br>    var(--bg);<br>  color: var(--ghost);<br>  font-family: &quot;Henny Penny&quot;, system-ui;<br>  overflow: hidden;<br>}<br><br>.stage {<br>  position: relative;<br>  width: min(92vw, 720px);<br>  min-height: 56vh;<br>  padding: 3rem 2.5rem 6rem;<br>  border: 1px solid rgba(233, 227, 216, 0.16);<br>  border-radius: 18px;<br>  background: rgba(10, 6, 14, 0.72);<br>  box-shadow:<br>    0 0 45px var(--shadow),<br>    inset 0 0 35px rgba(0, 0, 0, 0.6);<br>  display: grid;<br>  place-items: center;<br>  text-align: center;<br>}<br><br>.stage::before,<br>.stage::after {<br>  content: &quot;🦇&quot;;<br>  position: absolute;<br>  font-size: 1.4rem;<br>  opacity: 0.55;<br>  animation: flutter 7s ease-in-out infinite alternate;<br>}<br><br>.stage::before {<br>  top: 1rem;<br>  left: 1.2rem;<br>}<br><br>.stage::after {<br>  bottom: 1rem;<br>  right: 1.2rem;<br>  animation-delay: -3s;<br>}<br><br>@keyframes flutter {<br>  from {<br>    transform: translateY(0) rotate(-8deg);<br>  }<br><br>  to {<br>    transform: translateY(-12px) rotate(8deg);<br>  }<br>}<br><br>.slide-wrap {<br>  display: grid;<br>  justify-items: center;<br>  gap: 0.8rem;<br>}<br><br>.skull {<br>  font-size: clamp(2.4rem, 6vw, 3.6rem);<br>  opacity: 0;<br>  transform: scale(0.6) translateY(-10px);<br>  transition:<br>    opacity 0.6s ease,<br>    transform 0.6s ease;<br>  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));<br>}<br><br>.skull.visible {<br>  opacity: 1;<br>  transform: scale(1) translateY(0);<br>}<br><br>.slide {<br>  margin: 0;<br>  max-width: 56ch;<br>  font-size: clamp(1.5rem, 3.5vw, 2.5rem);<br>  line-height: 1.35;<br>  margin-bottom: 1.5rem;<br>  opacity: 0;<br>  transform: translateY(14px);<br>  transition:<br>    opacity 0.55s ease,<br>    transform 0.55s ease;<br>  text-shadow: 0 0 18px rgba(255, 122, 24, 0.35);<br>}<br><br>.slide.visible {<br>  opacity: 1;<br>  transform: translateY(0);<br>}<br><br>.controls {<br>  position: absolute;<br>  bottom: 1.5rem;<br>  left: 50%;<br>  transform: translateX(-50%);<br>  display: flex;<br>  gap: 0.8rem;<br>}<br><br>button {<br>  font: inherit;<br>  font-size: 1.25rem;<br>  font-family: &quot;Henny Penny&quot;, system-ui;<br>  text-transform: uppercase;<br>  padding: 1rem 1.25rem 0.75rem;<br>  border: 1px solid var(--pumpkin);<br>  border-radius: 999px;<br>  background: transparent;<br>  color: var(--pumpkin);<br>  cursor: pointer;<br>  transition:<br>    background 0.2s ease,<br>    color 0.2s ease,<br>    transform 0.2s ease;<br>}<br><br>button:active {<br>  scale: 0.95;<br>}<br><br>button:hover:not(:disabled) {<br>  background: var(--pumpkin);<br>  color: #170a00;<br>  transform: translateY(-2px);<br>}<br><br>button:disabled {<br>  opacity: 0.35;<br>  cursor: not-allowed;<br>}<br><br>.progress {<br>  position: absolute;<br>  top: 1rem;<br>  right: 1.4rem;<br>  font-size: 0.8rem;<br>  letter-spacing: 0.12em;<br>  opacity: 0.55;<br>}</pre><h4>JavaScript</h4><pre>document.addEventListener(&quot;DOMContentLoaded&quot;, () =&gt; {<br>  const lines = [<br>    &quot;One day you wake up and find yourself in a world that is a copy of yours.&quot;,<br>    &quot;It feels okay at first, but then you start to notice some oddities.&quot;,<br>    &quot;Some discrepancies that stand out.&quot;,<br>    &quot;Maybe you&#39;re just imagining things, and everything is fine.&quot;,<br>    &quot;Or not.&quot;,<br>    &quot;Yesterday, you were a happy little soul, discovering the wonders of developing.&quot;,<br>    &quot;You were making things, programming, solving problems.&quot;,<br>    &quot;Today, you are a tired old being, prompting your way through hallucinations and code creep.&quot;,<br>    &quot;You are telling your artificial assistant what to do.&quot;,<br>    &quot;Yesterday, you had all your repos updated, looking shiny and modern.&quot;,<br>    &quot;Today, you get a hundred warnings of security breaches and all sorts of leaks.&quot;,<br>    &quot;Yesterday, you bought RAM for less than a dinner at a good restaurant.&quot;,<br>    &quot;Today, RAM costs as much as a Michelin-starred establishment.&quot;,<br>    &quot;Life moves on, and you keep on going.&quot;,<br>    &quot;Some things change; others remain the same.&quot;,<br>    &quot;Some say it&#39;s the best thing that could have happened; others preach that it&#39;s our final doom.&quot;,<br>    &quot;And some stay in the middle, watching the debate carry on.&quot;,<br>    &quot;The world keeps spinning, faster with every day.&quot;,<br>    &quot;Yesterday&#39;s hard work is today&#39;s routine and tomorrow&#39;s history.&quot;,<br>    &quot;Whatever and however you do it isn&#39;t fast enough.&quot;,<br>    &quot;Should you complain?&quot;,<br>    &quot;You can.&quot;,<br>    &quot;Should you keep going?&quot;,<br>    &quot;You can as well.&quot;,<br>    &quot;Should you adapt, do both, or stay and watch the world go by?&quot;,<br>    &quot;All of those are valid options too.&quot;,<br>    &quot;There is no right or wrong response to this.&quot;,<br>    &quot;Good thing that&#39;s just a copy of the world we live in.&quot;,<br>    &quot;It&#39;s just a side-effect dream of social distancing and spending too much time at home.&quot;,<br>    &quot;We can just go outside and touch some grass.&quot;,<br>    &quot;And everything will roll back to its former state.&quot;,<br>    &quot;The way things always do when you&#39;re dreaming.&quot;,<br>    &quot;Because the whole of life is just another dream. Right?&quot;,<br>    &quot;Oh, wait...&quot;,<br>  ];<br><br>  const slide = document.getElementById(&quot;slide&quot;);<br>  const skull = document.getElementById(&quot;skull&quot;);<br>  const nextButton = document.getElementById(&quot;next&quot;);<br>  const restartButton = document.getElementById(&quot;restart&quot;);<br>  const progress = document.getElementById(&quot;progress&quot;);<br><br>  let index = 0;<br><br>  function showSlide() {<br>    slide.classList.remove(&quot;visible&quot;);<br>    skull.classList.remove(&quot;visible&quot;);<br>    skull.hidden = true;<br><br>    setTimeout(() =&gt; {<br>      slide.textContent = lines[index];<br>      slide.classList.add(&quot;visible&quot;);<br><br>      progress.textContent = `${index + 1} / ${lines.length}`;<br><br>      const isLastSlide = index === lines.length - 1;<br><br>      nextButton.hidden = isLastSlide;<br>      restartButton.hidden = !isLastSlide;<br><br>      if (isLastSlide) {<br>        skull.hidden = false;<br><br>        requestAnimationFrame(() =&gt; {<br>          skull.classList.add(&quot;visible&quot;);<br>        });<br>      }<br>    }, 180);<br>  }<br><br>  nextButton.addEventListener(&quot;click&quot;, () =&gt; {<br>    if (index &lt; lines.length - 1) {<br>      index++;<br>      showSlide();<br>    }<br>  });<br><br>  restartButton.addEventListener(&quot;click&quot;, () =&gt; {<br>    index = 0;<br>    showSlide();<br>  });<br><br>  showSlide();<br>});</pre><h3>CodePen</h3><p><a href="https://codepen.io/editor/Dimterion/pen/01a18745-a244-7ad8-a003-3f536837000b">Spooky Dev Life</a></p><p>Happy spooky season and bon courage to everyone, especially those who are on their coding adventures.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33d9e4440d64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Editing Software and Game Development Documentation: Turning a Concept into an Initial Realistic…]]></title>
            <link>https://medium.com/@dimterion/editing-software-and-game-development-documentation-turning-a-concept-into-an-initial-realistic-9eddf24044ce?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eddf24044ce</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 05:21:15 GMT</pubDate>
            <atom:updated>2026-10-23T05:21:15.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>Editing Software and Game Development Documentation: Turning a Concept into an Initial Realistic Set</h3><figure><img alt="Title: Editing Software and Game Development Documentation: Turning a Concept into an Initial Realistic Set." src="https://cdn-images-1.medium.com/max/700/1*ytELbhaVZ-5NoVG6avlc6g.png" /></figure><p>After writing about <a href="https://medium.com/@dimterion/comparing-and-combining-software-and-game-development-documentation-011a50553523?sharedUserId=dimterion">software and game development documentation</a> I’ve decided to try turning the initial version into a slightly more realistic one.</p><p>My previous example consisted of the following:</p><ul><li>Game Design Document</li><li>Product Requirements Document</li><li>Software Requirements Specification</li><li>Technical Design Document</li><li>UX/UI Specification</li><li>Architecture Decision Record</li><li>Concept</li><li>Basic project structure</li></ul><p>We can consider it a concept or a basis to start from and then try to convert it into a more realistic set of documents for the initial phase of the project.</p><blockquote><strong>Disclaimer:</strong> I’m still playing around with a hypothetical example, which I don’t believe is possible to implement in the current game development world, but I was just interested in making a revised version of it. I ran the previous docs through AI and asked it to act as a professional reviewing the current structure as someone from the game/software development industry and then provide feedback on how to make it closer to reality. So, while I use AI, I’m not interested in simply copy-pasting the text, I mostly needed it for a revised version of the initial documents which I then rewrote and adjusted for the current text the way I see fit. In other words, this is my understanding of the main concepts, but now edited in an attempt to make it slightly more realistic.</blockquote><p>I won’t go into all the details of the project example here (they can be viewed in the previous post), but to provide a general idea: it’s an imaginary concept of a clientless game that is streamed in a browser and has absolutely no description, advertising, or explanation of what the game is and how it is supposed to be played.</p><p>Let’s now try to create a more down-to-earth version of the concept.</p><p>One of the goals for editing the docs is to narrow everything down. The initial version treats everything (game + cloud streaming service) like it’s being made at once. In reality, it is better to validate the riskiest assumption first: can a small playable prototype provide the intended experience while being streamed in a browser?</p><h3>Main Improvement Areas</h3><p>Among the main issues related to the previous documentation were:</p><ul><li>Some ideas were too vague to use for development.</li><li>Some ideas described a final product instead of focusing on its initial version.</li><li>Some requirements were unrealistic, too broad, and contradict each other.</li><li>There was no proper mention of what needs to be validated first.</li></ul><p>So, we can say that the previous post represented the initial idea and now we can try to focus more on its real application, scope, dependencies, and validation. The concept is still hypothetical, I’m not trying to play an expert role, instead I simply want to demonstrate how the documentation might change and move closer to reality.</p><p>One of the most important issues to address is defining the first phase instead of focusing on a complete product. That should help answer the following questions:</p><ul><li>What to build first?</li><li>What should be considered as “working”?</li><li>Which feature is the riskiest technically?</li><li>What can be tested by a small team?</li><li>How to handle project success?</li><li>Which parts are essential and which are optional?</li></ul><p>We can say that at this stage we are trying to approach the phase of creating a vertical slice for the project: a prototype to validate a small but meaningful part of the game (such asone player, limited environment, basic movement and mechanics, streaming session, saving, connection monitoring).</p><p>This should help us answer the following questions:</p><ul><li>Does the core idea work when players are given almost no information?</li><li>Can the technical system support an acceptable level of experience?</li></ul><p>In other words, instead of describing the overall project, we are defining a manageable first experiment.</p><h3>Updated Concept</h3><p>Let’s now try to create an updated version of the concept for our hypothetical project.</p><p>Below is the new documentation structure made as if it was a real project.</p><h4>Title</h4><p><strong>NoNameGame</strong></p><p><strong>Note:</strong> The title might be temporary and should not be treated as a final public name.</p><h4>One-Sentence Concept</h4><p>A browser-streamed exploration and survival prototype where players travel through a small unknown environment and learn more about it through observation, experimentation, and making limited decisions without traditional tutorials or hints.</p><h4>Product Boundary</h4><p>The project includes two connected parts:</p><ul><li>The game prototype (responsible for player experience).</li><li>The session platform (starts, streams, monitors, saves the game session).</li></ul><p>The current stage does not include:</p><ul><li>A large open world.</li><li>Full support for various devices.</li><li>A public launch.</li><li>A defined strategy to eliminate (or at least significantly reduce) datamining.</li><li>A complete social system.</li><li>A final business model.</li><li>A promise of indefinite support.</li></ul><h4>Game Design Document</h4><p><strong>Game Vision</strong></p><p>The game explores the feeling of arriving into an unknown world without any conventional explanation.</p><p>Players should experience:</p><ul><li>The feeling of uncertainty of what is possible.</li><li>Curiosity about the environment.</li><li>The feeling of insignificance compared with the world around.</li><li>Motivation to experiment instead of following instructions.</li></ul><p>Complete player confusion should be avoided. Enough feedback is needed to help figuring out the world. The intention is not to present the rules as a traditional tutorial or objectives.</p><p><strong>Design Pillars</strong></p><p>1.Discovery happens through interaction</p><p>Players learn by examining the environment and trying different actions.</p><p>The game communicates through:</p><ul><li>Visual changes.</li><li>Sounds.</li><li>Animations.</li><li>Environmental changes.</li><li>Available resources.</li><li>Consequences of players’ actions.</li></ul><p>Text explanation should be avoided.</p><p>Intentional limitations for the prototype:</p><ul><li>Moving through the environment.</li><li>Collecting some resources.</li><li>Using resources.</li><li>Interacting with objects.</li><li>Understanding the risk and making a choice to take it.</li><li>Exploring previously discovered locations again.</li></ul><p>2.The world is bigger than the player.</p><p>Clear implication of activities beyond players’ immediate surroundings.</p><p>For the prototype it can be represented through:</p><ul><li>Distant sounds and lights.</li><li>Weather and/or environmental changes.</li><li>Unreachable zones.</li><li>Signs of activity outside of the playable area.</li><li>Events that happen without players’ control.</li></ul><p>3.Minimal initial setting</p><p>No intro cinematics, lore explanations, or tutorials.</p><p>Some minimal orientation or guidelines might be necessary (so that the game won’t become inaccessible). Usability issues might need to be addressed if they arise.</p><p><strong>Prototype Scope</strong></p><p>The first playable version includes:</p><ul><li>One small environment.</li><li>A playable character.</li><li>Basic movement and camera control.</li><li>A limited inventory.</li><li>A few initial resources and a combination of them (2–3).</li><li>A few environmental obstacles (1–2).</li><li>One risk/enemy/threat.</li><li>A persistent save point.</li><li>Browser-based streaming system.</li><li>Basic support for controls (keyboard/mouse, controller).</li></ul><p>The first playable version does not include:</p><ul><li>Multiplayer.</li><li>Procedural generation.</li><li>A large open world.</li><li>Character customization.</li><li>Advanced combat.</li><li>Multiple platforms support.</li></ul><p><strong>Core Gameplay Loop</strong></p><p>Observe =&gt; Form a hypothesis =&gt; Interact =&gt; Get feedback =&gt; Adapt =&gt; Explore further.</p><p>For example:</p><ol><li>The player sees a certain object.</li><li>The player notices that it reacts to a certain action.</li><li>The player experiments with that action.</li><li>The object changes something or is changed itself.</li><li>The player investigates the changes.</li></ol><p>Intentionally small loop to validate whether discovery can drive motivation without any explicit objectives or markers.</p><p><strong>Player Guidance</strong></p><p>Minimal support might be needed if players cannot understand the basic interaction model.</p><p>It may include:</p><ul><li>A brief control overlay on first connection.</li><li>Visual helpers.</li><li>Context-related interactions.</li><li>Accessibility settings.</li><li>A system to start over if the player gets stuck.</li></ul><p><strong>Note:</strong> This should still be kept to an absolute minimum and avoided as much as possible to not contradict the main principle of the game.</p><p><strong>Prototype Success Criteria</strong></p><p>The prototype is considered successful if testers can:</p><ul><li>Understand basic movement without assistance.</li><li>Discover at least one possible interaction.</li><li>Explain what they think they should do next.</li><li>Understand that their actions caused a response from the environment.</li><li>Complete the prototype scenario without direct guidance.</li><li>Show curiosity and not (only) frustration.</li><li>Continue experimenting after discovering the initial mechanics.</li></ul><p>Now we have more concrete parts of our game design document, and can move on to other documents for the project.</p><h4>Product Requirements Document</h4><p><strong>Product Name</strong></p><p>NoName Cloud</p><p><strong>Product Purpose</strong></p><p>Allow to start a remote session from a browser, interact with the game, and save progress when the session ends.</p><p>The product is not initially aimed at supporting every device, network connection, or external users.</p><p><strong>Primary Users</strong></p><ul><li>Developers.</li><li>Designers.</li><li>Testers (technical + small invited group).</li></ul><p>The above groups should not be considered as the target audience (that is a separate question for later).</p><p><strong>Main User Journey</strong></p><ol><li>The tester opens the prototype website.</li><li>The tester logs in.</li><li>The platform checks if a game session is available.</li><li>A remote game instance is provided.</li><li>The browser creates a connection.</li><li>The tester gets audio and video.</li><li>The browser sends input to the remote session.</li><li>The platform records in-game events and technical data.</li><li>The tester exits the game or connection is interrupted.</li><li>The game state is saved when possible.</li><li>The remote instance is closed.</li></ol><p><strong>In-Scope Features</strong></p><ul><li>Session management (session and game instance creation, preventing unauthorized access, cancel idle or abandoned sessions, free up resources when a session ends).</li><li>Browser client (display the game, capture user input, show connection status, allow to leave the game, show errors when something doesn’t work).</li><li>Saving (save progress at checkpoints or when the player leaves, recover from an interrupted session).</li></ul><p><strong>Monitoring</strong></p><ul><li>Session start and end time.</li><li>Connection status.</li><li>Latency.</li><li>Disconnects.</li><li>Reconnection attempts.</li><li>Errors.</li><li>Save status.</li><li>Browser and device type.</li></ul><p>Additional goal is to collect as little personal information as possible.</p><p><strong>Out-Of-Scope Features</strong></p><ul><li>Public registration.</li><li>Availability on every device.</li><li>Multiplayer.</li><li>Global deployment.</li><li>Scaling for a large number of players.</li><li>Social features.</li><li>Marketing.</li><li>Advanced anti-cheat solutions.</li><li>Advanced account options.</li></ul><p><strong>Initial Success Metrics</strong></p><ul><li>Percentage of successful attempts to start the game.</li><li>Time from login to playable session.</li><li>Percentage of playable sessions for the intended test duration.</li><li>Latency numbers.</li><li>Number of stream interruptions.</li><li>Save success rate.</li><li>Number of interrupted sessions.</li><li>Playtest completion rate.</li><li>Number of testers that managed to discover the prototype interaction without instructions.</li></ul><p>The exact numbers should be chosen after creating a baseline (to measure real results and not to set unrealistic expectations).</p><h4>Software Requirements Specification</h4><p><strong>Requirements and Acceptance Conditions</strong></p><ul><li>SRS-001. The system allows users to authenticate through the prototype website. =&gt; An authorized user can log in; an unauthorized user cannot start a session.</li><li>SRS-002. The system creates one active session per user. =&gt; A second session request is rejected or closes the previous session.</li><li>SRS-003. The system provides a game instance after authentication. =&gt; A session receives an instance or shows an error message.</li><li>SRS-004. The system establishes a connection on supported browsers. =&gt; A browser receives the game stream and sends input.</li><li>SRS-005. The system shows connection state. =&gt; The interface distinguishes connecting, connected, degraded, disconnected, failed states.</li><li>SRS-006. The system sends keyboard and mouse (or controller) input to the game instance. =&gt; Inputs produce expected in-game actions.</li><li>SRS-007. The system saves progress at defined checkpoints. =&gt; A new session restores the most recent checkpoint.</li><li>SRS-008. The system records session and errors. =&gt; A session shows logs (excluding unnecessary sensitive information).</li><li>SRS-009. The system closes an abandoned session after a defined timeout. =&gt; An inactive session is closed to free up resources.</li><li>SRS-010. The system shows error when no instance is available. =&gt; The user receives a clear message.</li><li>SRS-011. The system protects session from unauthorized access. =&gt; A user cannot access a session by changing an identifier.</li><li>SRS-012. The system records the saving status. =&gt; A clear save session status is shown.</li></ul><p><strong>Device Support</strong></p><p>The prototype supports a defined set of recent desktop browsers on a limited range of operating systems. Additional browsers and mobile devices can be added after the initial session flow is stable.</p><p>Compatibility matrix: one current Chromium-based browser, one current Mozilla browser; keyboard, mouse, and controller input; a small number of desktop operating systems.</p><p><strong>Network Requirements (Test Conditions)</strong></p><ul><li>Stable broadband connection.</li><li>Wi-Fi connection.</li><li>Increased latency.</li><li>Reduced bandwidth.</li><li>Packet loss.</li><li>Disconnection and reconnection.</li></ul><p><strong>Goal:</strong> Observe the system behavior and identify the minimum acceptable conditions.</p><h4>Technical Design Document</h4><p><strong>Technical Objective</strong></p><p>Demonstrate a complete session from browser launch to saved game state.</p><p>Small session to handle manually if needed. Automation and optimization are not among the initial requirements.</p><p><strong>Proposed Architecture</strong></p><ul><li>A web application for authentication and session launch.</li><li>A session coordinator.</li><li>A pool of remote game workers.</li><li>A real-time streaming and input channel.</li><li>A save service or database.</li><li>A monitoring and logging service.</li><li>An operator dashboard.</li></ul><p><strong>Flow:</strong> Browser (authentication) =&gt; Web application (providing instance) =&gt; Session coordinator (assigning worker) =&gt; Game worker (video, audio, and input) =&gt; Browser.</p><p><strong>Streaming Approach</strong></p><p>The prototype needs to test:</p><ul><li>Connection time.</li><li>Input delay.</li><li>Video quality.</li><li>Audio synchronization.</li><li>Behavior during packet loss.</li><li>Browser compatibility.</li><li>Server-side encoding.</li><li>Operational complexity.</li></ul><p><strong>Session Lifecycle</strong></p><ol><li>Authenticate the user.</li><li>Request a session.</li><li>Check capacity.</li><li>Allocate a worker.</li><li>Start or restore the game instance.</li><li>Establish connection.</li><li>Send input, receive output.</li><li>Record metrics and checkpoints.</li><li>Save progress.</li><li>Stop the game instance.</li><li>Free up resources.</li></ol><p>Each step should also have a defined fail state.</p><p><strong>Saving Approach</strong></p><ul><li>Save after a meaningful interaction.</li><li>Save before session termination.</li><li>Save at periodic intervals.</li><li>Save status: pending, failed, successful.</li><li>Restore the latest save.</li></ul><p><strong>Security and Privacy</strong></p><ul><li>Authentication is handled by the platform.</li><li>Logs avoid unnecessary personal data.</li><li>Separate administrative access.</li><li>Saved data is associated with an internal identifier.</li><li>Secrets are not stored in the browser.</li><li>Session cleanup after termination.</li></ul><p><strong>Deployment Strategy</strong></p><ul><li>One controlled region.</li><li>One environment for development.</li><li>One environment for testing.</li><li>A small number of manually managed game workers.</li><li>Basic monitoring.</li><li>Manual recovery process.</li></ul><p><strong>Goal:</strong> Verify that the complete system works.</p><h4>UX/UI Specification</h4><p><strong>Player Interface</strong></p><ul><li>Authentication screen.</li><li>Start-session action.</li><li>Connection status.</li><li>Stream display.</li><li>Exit-session action.</li><li>Error messages.</li></ul><p>No traditional HUD (head-up display), but the platform still needs to communicate technical statuses:</p><ul><li>The session is connecting.</li><li>The stream is degraded.</li><li>Input is not being received.</li><li>The session has ended.</li><li>Progress was saved.</li></ul><p><strong>Operator Interface</strong></p><ul><li>Active sessions.</li><li>Worker availability.</li><li>Session state.</li><li>Connection metrics.</li><li>Errors.</li><li>Save status.</li><li>Resource usage.</li><li>Ability to cancel a failed session.</li><li>Ability to restart a worker.</li></ul><p><strong>Initial UX Acceptance Criteria</strong></p><ul><li>A tester can start a session without assistance.</li><li>A tester understands when the session is ready.</li><li>A tester can exit the session.</li><li>A tester receives feedback when the session is not available.</li><li>A tester knows if progress is saved.</li><li>An operator can identify the cause of a failed session using the dashboard and logs.</li></ul><h4>Architecture Decision Records</h4><p><strong>ADR-001: Validate the session flow before building the full platform</strong></p><p><strong>Status:</strong> Accepted</p><p><strong>Date:</strong> YYYY-MM-DD</p><p><strong>Context</strong></p><p>The project is based on a remote game session running in the browser, but it is unknown yet if the intended game experience and technical model is viable. Building a complete platform before validating this assumption could create cost and technical risk.</p><p><strong>Decision</strong></p><p>Create a limited internal prototype and use existing infrastructure where possible.</p><p>The prototype must demonstrate:</p><ul><li>Authentication.</li><li>Creation of one remote game session.</li><li>Browser-based audio and video delivery.</li><li>Input transfer.</li><li>Basic saving.</li><li>Monitoring and error reporting.</li></ul><p>Support of a limited number of testers, browsers, and networks.</p><p><strong>Alternatives Considered</strong></p><ul><li>Creating a complete custom cloud platform immediately.</li><li>Using existing cloud gaming services.</li><li>Building the game locally first before switching to browser streaming.</li></ul><p><strong>Positive Consequences</strong></p><ul><li>Lower cost.</li><li>Faster feedback.</li><li>Easier to handle technical issues.</li><li>The most important assumptions can be validated earlier.</li></ul><p><strong>Negative Consequences</strong></p><ul><li>The prototype may not scale.</li><li>Many components may need to be replaced later.</li><li>The initial version may not represent the final cost.</li><li>Limited range of supported devices.</li></ul><p><strong>ADR-002: Use a small vertical slice as the first milestone</strong></p><p><strong>Status:</strong> Accepted</p><p><strong>Date:</strong> YYYY-MM-DD</p><p><strong>Context</strong></p><p>The original concept included a large world, multiple systems, and an unusual information model, which makes it difficult to validate simultaneously.</p><p><strong>Decision</strong></p><p>Create one small environment with one complete loop.</p><p>The vertical slice must include:</p><ul><li>Exploration.</li><li>Observation.</li><li>One interaction.</li><li>One consequence.</li><li>One reason to continue the exploration.</li><li>A recoverable save state.</li></ul><p><strong>Consequences</strong></p><p>The core experience can be evaluated without building the entire project, but it will not prove that a large persistent world, multiplayer system, or progression model will work.</p><p><strong>ADR-003: Treat secrecy as a design constraint, not a security guarantee</strong></p><p><strong>Status:</strong> Accepted</p><p><strong>Date:</strong> YYYY-MM-DD</p><p><strong>Context</strong></p><p>The project concept relies on limited external information and assumes that cloud streaming could reduce access to game assets (two separate concerns).</p><p><strong>Decision</strong></p><p>The project can restrict public information and avoid a conventional promotional approach, but it will not promise complete secrecy.</p><p>Security work will focus on:</p><ul><li>Account protection.</li><li>Session authorization.</li><li>Personal data protection.</li><li>Secure administration.</li><li>Reduction of assets exposure.</li></ul><p><strong>Consequences</strong></p><p>The project can keep its non-standard presentation without making technically impossible decisions.</p><h4>Project Structure</h4><pre>nonamegame-project/<br>├── 00-project/<br>│   ├── concept.md<br>│   ├── glossary.md<br>│   └── assumptions-and-risks.md<br>├── 01-game/<br>│   ├── gdd.md<br>│   ├── prototype-scope.md<br>│   └── playtest-plan.md<br>├── 02-product/<br>│   ├── prd.md<br>│   ├── user-flows.md<br>│   └── success-metrics.md<br>├── 03-technical/<br>│   ├── srs.md<br>│   ├── tdd.md<br>│   ├── compatibility-matrix.md<br>│   ├── observability.md<br>│   └── adrs/<br>│       ├── adr-001-prototype-session-flow.md<br>│       ├── adr-002-vertical-slice.md<br>│       └── adr-003-secrecy-as-constraint.md<br>├── 04-operations/<br>│   ├── deployment.md<br>│   ├── incident-response.md<br>│   └── session-support.md<br>└── 05-validation/<br>    ├── technical-test-results.md<br>    ├── playtest-results.md<br>    └── decision-log.md</pre><p><strong>Notes</strong></p><ul><li>Not all of the mentioned documents are present at the initial state.</li><li>Validation part plays an important role in defining the project.</li><li>The goal is not only describe what is intended to be built, but to also demonstrate what was tested, what happened during the tests, and which decisions changed as a result.</li><li>The minimum first phase set of documents can include: concept, compact GDD, prototype scope, PRD for the session platform, small SRS table, technical overview, 1–3 ADRs, test plan (playtest and technical test), assumptions and risks list.</li></ul><h4>Initial Milestone</h4><p>Demonstrate one gameplay loop inside a small streamed environment and gather enough technical and player feedback to decide if the project can move on to a second prototype phase.</p><p>The milestone is complete when:</p><ul><li>A user can authenticate.</li><li>A remote session starts.</li><li>The browser receives the stream.</li><li>Input reaches the game.</li><li>The user discovers the intended interaction.</li><li>The game provides clear feedback.</li><li>Progress can be saved and restored.</li><li>Session issues can be inspected.</li><li>The test shows evidence of curiosity, confusion, frustration.</li></ul><p>The milestone is not complete if:</p><ul><li>The streaming delay prevents interaction.</li><li>Users cannot understand possible actions.</li><li>The discovery loop does not drive motivation.</li><li>Session issues cannot be inspected.</li><li>The operating cost is incompatible with the project.</li><li>The prototype requires a complete platform before the tests.</li></ul><h3>Final Thoughts</h3><p>Now we have an updated version of our initial documentation for a project. This review phase was aimed at preserving the core identity, but also making it closer to reality and actual development conditions. In a way, we can say that the major ideas remain, but are now changed in how they are expressed.</p><p>Here are some examples, comparing initial and revised ideas:</p><ul><li>Play on any device. =&gt; Support a defined browser and device range.</li><li>No tutorial or hints. =&gt; Minimize instructions and validate if environmental feedback is sufficient.</li><li>Complete cloud streaming service. =&gt; Limited session platform with a controlled prototype.</li><li>No access to game files. =&gt; Reduce direct exposure, without complete secrecy.</li><li>Large open world. =&gt; One small environment to test the initial loop.</li><li>No public information. =&gt; Limited public information.</li><li>No beginning or ending. =&gt; Long-term vision is still open to the idea, but there is a clear prototype scenario.</li></ul><p>This demonstrates the difference between the vision and development requirements and constraints (vision is broad and unclear, while requirements must show what to build and how to check if it works).</p><p>The initial version is still useful, as it makes the idea visible, but it contained too many assumptions presented as made decisions. The updated version is less ambitious as a plan, but more useful as development documentation and it creates a realistic first milestone.</p><p>Now we have a separation between:</p><ul><li>Vision and implementation.</li><li>Goals and hypotheses.</li><li>Current scope and future ideas.</li><li>Technical constraints and design principles.</li><li>Security improvements and unrealistic guarantees.</li><li>Desired outcomes and measurable acceptance criteria.</li></ul><p>This revised version allows to create a small prototype and document what needs to be learned first.</p><p>It is also important to mention that everything during this process is supposed to evolve and change during each stage of the development. As with the original documents, this version is also supposed to be adjusted based on the future state of the project.</p><p>This concludes my little experiment with creating a concept for a game and software development documentation and providing an imaginary example to play with. I hope this was useful.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eddf24044ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SVG Icons for a React Project]]></title>
            <link>https://medium.com/@dimterion/svg-icons-for-a-react-project-bb47fdc35d01?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb47fdc35d01</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 06:48:39 GMT</pubDate>
            <atom:updated>2026-10-16T06:48:39.853Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: SVG Icons for a React Project." src="https://cdn-images-1.medium.com/max/700/1*TUTsEmZwlnXuYQrvG18Meg.png" /></figure><p>When it comes to icons for a React site or app, you can use a library, hardcode them directly, or use SVG code (in theory, you could also use regular images, but that feels a bit clunky for icons). Let’s review the SVG approach with some examples.</p><blockquote><strong>Sidenote:</strong> A similar approach can be applied to plain JavaScript or TypeScript, but I’ll focus on React here.</blockquote><p>The main reason to use SVG code instead of a library is that it gives you a bit more control over your icons and you don’t need to rely on any third-party solutions. You can simply create your own icons and adjust them how you want. The tradeoff, of course, is that you have to spend extra time working on these icons and making sure they are consistent and look the way you want, so they match the style of the rest of your site or app.</p><h3>File Structure</h3><p>One possible approach to using your own SVG icons is to create a dedicated file in your project where you can store your icon components that you will export and then import in other components. You can also add a second helper file that exports everything from the main icons file to simplify the imports. Below is an example of this structure.</p><p>Your file structure may look like the following:</p><pre>components<br>  icons<br>    icons.tsx<br>    index.tsx</pre><p>The <strong>index.tsx</strong> file is used only for exports:</p><pre>export * from &quot;./icons&quot;;</pre><p>This creates a single import path, so you don’t need to import each icon separately and can do the following instead:</p><pre>import { IconName } from &quot;./icons&quot;;</pre><h3>Icons Examples</h3><p>You can now create the icons you need in the <strong>icons.tsx</strong> file. For a small project, one file may be enough, but if the project grows, you may decide to split icons into several different files (for example, by function, page, or component that uses them, and so on). In the latter case, you’ll need to update the <strong>index.tsx</strong> file to something like the following:</p><pre>export * from &quot;./ui-icons&quot;;<br>export * from &quot;./social-icons&quot;;</pre><p>Let’s now create a few examples of icons that can be used with this structure (we’ll assume that one file for icons is enough for this case).</p><blockquote><strong>Note:</strong> This will be a TypeScript version, but the only addition is a <strong>className type</strong>, which can be removed if needed (in particular, the part after props: <strong>: { className?: string; }</strong>).</blockquote><p>You can also move your types to a separate types file:</p><pre>export type IconProps = {<br>  className?: string;<br>};</pre><p>And import it into your icons file:</p><pre>import type { IconProps } from &quot;~/types&quot;;</pre><blockquote><strong>Note:</strong> Again, if TypeScript isn’t needed, you can remove the part after props in the examples below: <strong>: IconProps</strong>. Also, the examples use a “~” alias for the project root (which is configured in build setup like Vite, Next.js, etc.). Adjust it to match your personal setup (for example, “../types” or “@/types”).</blockquote><p>The following examples will use Tailwind CSS. If you want regular CSS, you can simply replace the Tailwind classes in <strong>className</strong> with normal CSS class names and then style them however you want in your CSS file.</p><h4>House Icon</h4><pre>export function HouseIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: {<br>  className?: string;<br>}) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M3 10.5 12 3l9 7.5&quot; /&gt;<br>      &lt;path d=&quot;M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><p>This gives us a simple house icon, which can be used for a home page button, for example (the type is added directly here).</p><p>You can then use it in other components like this (styling isn’t important; I’m just showing it as an example):</p><pre>&lt;HouseIcon className=&quot;mb-0.5 h-2 w-2 md:mb-0 md:h-6 md:w-6&quot; /&gt;</pre><p>You can adjust the style of your icon by adding either Tailwind classes or CSS class names as props; just keep in mind that if you do that, the default styling will be overwritten, so you have to add them again (in the current example, the default height and width won’t be applied unless you add them again through props).</p><p>One additional thing to mention is the usage of <strong>aria-hidden=“true”</strong>. In the current case icons are decorative elements, hence we add this attribute. We assume that surrounding text or label already shows the purpose of the elements where icons are used (for example, a button with accessible text and icon). If an icon has a meaning on its own (no visible text), it should have an accessible name added with <strong>aria-label</strong>, <strong>aria-labelledby</strong>, or <strong>&lt;title&gt;</strong> element (without using <strong>aria-hidden</strong> attribute).</p><h4>Portrait Icon</h4><pre>import type { IconProps } from &quot;~/types&quot;;<br><br>export function PortraitIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;rect x=&quot;4&quot; y=&quot;2&quot; width=&quot;16&quot; height=&quot;20&quot; rx=&quot;1&quot; /&gt;<br>      &lt;circle cx=&quot;12&quot; cy=&quot;10&quot; r=&quot;3&quot; /&gt;<br>      &lt;path d=&quot;M7 18c.8-2.5 2.7-4 5-4s4.2 1.5 5 4&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><p>This is a small portrait icon (for example, to use as a link to the About page of your site). The types are imported from the types file here.</p><p>The icon is created in a similar way to the house icon above.</p><p>Following this approach, you can continue making icons for your site or app. Of course, any AI tool can generate all possible variants and tweak anything you want. Here, I mostly want to talk about the general approach and structure for this type of icons, so it can be applied to any project.</p><p>Just to give some additional examples, below are a few more icon variants.</p><h4>Menu Icon</h4><pre>export function MenuIcon({ className = &quot;h-4 w-4 md:h-5 md:w-5&quot; }: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M4 7h16&quot; /&gt;<br>      &lt;path d=&quot;M4 12h16&quot; /&gt;<br>      &lt;path d=&quot;M4 17h16&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><p>Hamburger menu icon (for mobile navigation, etc.).</p><h4>Close Icon</h4><pre>export function CloseIcon({ className = &quot;h-4 w-4 md:h-5 md:w-5&quot; }: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M18 6 6 18&quot; /&gt;<br>      &lt;path d=&quot;M6 6l12 12&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><p>A simple cross icon (for close buttons, etc.).</p><h4>Arrow Icons (up, down, right, left)</h4><pre>export function ArrowUpIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M12 19V5&quot; /&gt;<br>      &lt;path d=&quot;m5 12 7-7 7 7&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function ArrowDownIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M12 5v14&quot; /&gt;<br>      &lt;path d=&quot;m5 12 7 7 7-7&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function ArrowRightIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M5 12h14&quot; /&gt;<br>      &lt;path d=&quot;m12 5 7 7-7 7&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function ArrowLeftIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M19 12H5&quot; /&gt;<br>      &lt;path d=&quot;m12 19-7-7 7-7&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><p>In theory, you could use just one arrow icon and rotate it, but it might be better to create a separate component for each direction to avoid extra styling and naming confusion.</p><h4>Social Media Icons (GitHub, LinkedIn, Instagram, Email)</h4><pre>export function GithubIcon({ className = &quot;h-4 w-4 md:h-5 md:w-5&quot; }: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3 0 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.4 4 5 5 0 0 0 19.3.5S17.7 0 15 1.8a13.4 13.4 0 0 0-6 0C6.3 0 4.7.5 4.7.5A5 5 0 0 0 4.6 4a5.4 5.4 0 0 0-1.4 3.5c0 5.4 3.5 7 6.8 7a4.8 4.8 0 0 0-1 3.5v4&quot; /&gt;<br>      &lt;path d=&quot;M9 18c-4.5 2-5-2-7-2&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function LinkedinIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;path d=&quot;M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6Z&quot; /&gt;<br>      &lt;rect x=&quot;2&quot; y=&quot;9&quot; width=&quot;4&quot; height=&quot;12&quot; /&gt;<br>      &lt;circle cx=&quot;4&quot; cy=&quot;4&quot; r=&quot;2&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function InstagramIcon({<br>  className = &quot;h-4 w-4 md:h-5 md:w-5&quot;,<br>}: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;rect x=&quot;3&quot; y=&quot;3&quot; width=&quot;18&quot; height=&quot;18&quot; rx=&quot;5&quot; /&gt;<br>      &lt;circle cx=&quot;12&quot; cy=&quot;12&quot; r=&quot;4&quot; /&gt;<br>      &lt;circle cx=&quot;17.5&quot; cy=&quot;6.5&quot; r=&quot;0.75&quot; fill=&quot;currentColor&quot; stroke=&quot;none&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}<br><br>export function MailIcon({ className = &quot;h-4 w-4 md:h-5 md:w-5&quot; }: IconProps) {<br>  return (<br>    &lt;svg<br>      xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>      viewBox=&quot;0 0 24 24&quot;<br>      fill=&quot;none&quot;<br>      stroke=&quot;currentColor&quot;<br>      strokeWidth=&quot;2&quot;<br>      strokeLinecap=&quot;round&quot;<br>      strokeLinejoin=&quot;round&quot;<br>      className={className}<br>      aria-hidden=&quot;true&quot;<br>    &gt;<br>      &lt;rect x=&quot;3&quot; y=&quot;5&quot; width=&quot;18&quot; height=&quot;14&quot; rx=&quot;2&quot; /&gt;<br>      &lt;path d=&quot;m3 7 9 6 9-6&quot; /&gt;<br>    &lt;/svg&gt;<br>  );<br>}</pre><blockquote>I guess email is not exactly social media, but quite often it’s placed right next to these types of links, so let’s just leave it in this group.</blockquote><p>This provides a basic structure for creating and using your own SVG icons in a React project. You can keep adding new icons as you need them and import them as reusable components throughout your site or app.</p><p>It adds some additional work, but it also allows more customization and keeps your icons directly in your project without relying on third-party libraries.</p><p>I hope this was useful.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb47fdc35d01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing and Combining Software and Game Development Documentation]]></title>
            <link>https://medium.com/@dimterion/comparing-and-combining-software-and-game-development-documentation-011a50553523?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/011a50553523</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 05:11:56 GMT</pubDate>
            <atom:updated>2026-10-09T05:11:56.049Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Comparing and Combining Software and Game Development Documentation." src="https://cdn-images-1.medium.com/max/700/1*Lhpskp3M5z7CvK0Y-U81aA.png" /></figure><p>When starting any project, it’s a good idea to document the process, so you can always have a reference to what you are making. Let’s talk, compare, and try to make a few examples of software and game development documents.</p><h3>Main Types of Documents</h3><p>First, we can take a look at the main documents used in software and game development.</p><p>Different teams may use different names and combine or omit documents based on the project’s needs. While there is no single universal set of documents, let’s try to come up with a short list of the most common software development document types:</p><ul><li><strong>Product requirements document (PRD)</strong>: describes the problem our product is aimed to solve, target users, goals, scope, main features, and success criteria.</li><li><strong>Software requirements specification (SRS)</strong>: defines what the software should do and what are the main requirements for it to function.</li><li><strong>Technical design document (TDD)</strong>: how to implement the system (structure, data, technologies to use).</li></ul><blockquote><strong>Note:</strong> I’m using TDD abbreviation in this post for simplicity, but keep in mind that in software development TDD can also mean Test-Driven Development.</blockquote><ul><li><strong>UX/UI specification</strong>: how users interact with the product, how its interface looks and functions.</li><li><strong>Architecture decision record (ADR)</strong>: a short record of technical decisions while making the product (one ADR = one decision + its context, alternatives, current status).</li></ul><p>If we talk about game development in particular, we can mention one main starting document: <strong>game design document (GDD)</strong>. This is basically an explanation of what the game is, how it plays, and what is intended to be the final version. It can include: main concept, target audience, core gameplay, story, visual look, platforms, and the overall definition of the criteria for considering the game complete.</p><p>A GDD overlaps with PRD and may include some information about UI/UX (its primary focus is to show the intended player experience, mechanics, content, and scope). Plus, if talking about game development in particular, a project can also have a separate technical design document (to explain how the game and its supporting system will be implemented). For example, the GDD describes the player experience, and the TDD explains how the game works under the hood (game engine, networking, services, and other technical choices).</p><p>This is a free interpretation of course, but, to start, there is no need for a complex system (besides, documentation may vary from project to project and has to be adjusted as it grows and becomes more complex).</p><p>The initial game design document can include just a few pages to cover the main points. The key is that it will change in the future and have to be regularly updated. And the same can be said about software development in general. Any project evolves as long as we keep working on it, so documenting the process and adapting to the changes is always worth the effort.</p><h3>A Combined Example of the Game and Software Development Documents</h3><p>Now, let’s try to create a brief version of the mentioned documents and combine them into one project. We can imagine that we have an idea for a game that would require the creation of a certain technical system to make it function the way we want. Because of that, we have a basis for a game design document and some technical documents alongside it.</p><p>Each one should be considered a “living” document: it should be kept short and updated during the development process.</p><blockquote><strong>Note:</strong> below is an example of a concept for a game that’s been sitting in my mind for some time. It is something that, in my opinion, has zero chance of becoming a real thing. It’s not a “dream” game, more like something I would like to see just for a change. But it’s also something that is intentionally unrealistic in the current game development process (hence some of the points below may look rather vague). I’m adding it here as a hypothetical example to talk about game and software development documents and the process of making and combining them.</blockquote><h4>Game Design Document</h4><p>A GDD focuses on the game’s vision, gameplay, rules, content, and scope.</p><p><strong>Main question:</strong> What game experience is being created, and what is needed to make it work?</p><pre># Title: NoNameGame<br><br>## Genre: third-person / survival / open-world<br><br>## Platform: any device with a stable internet connection<br><br>## Target audience:<br>- Likes exploration.<br>- Wants to dive into unknown worlds.<br>- Doesn&#39;t want to be guided through every step.<br><br>## High concept<br>- Players are thrown into an unknown world without any tutorials or hints.<br>- Something is constantly happening, but players are <br>on the peripheral side all the time.<br>- Every system and mechanic should only be learned through discovery.<br>- Dark sci-fi with elements of fantasy and distant connection <br>to the real world.<br><br>## Core player fantasy<br>- A constant feeling of being a tiny part, barely having <br>an impact on anything.<br>- Uncertainty about what will happen next and how the game will progress.<br>- No beginning or ending: the player decides what to do or not to do.<br><br>## Design pillars<br>- The game doesn&#39;t have a client/files and doesn&#39;t need any installation.<br>- Streaming/cloud service.<br>- The idea is to reduce the chances for datamining and direct access to <br>game assets/files (as much as possible).<br>- No description, no patch notes, no announcements (game just appears <br>&quot;out of nowhere&quot; and no one is supposed to know when and how it changes).<br><br>## Out of scope features<br>- Lore explanation outside of the game.<br>- Videos/guides/promotional materials.<br>- Any dedicated site, stores listings, or announcements.<br><br>## Core gameplay loop<br>- Explore -&gt; experiment and observe -&gt; discover opportunities -&gt; <br>explore more.<br>- Motivation: figure out how much you can do and if you can <br>affect anything in the world.<br><br>## Core mechanics<br>- Core gameplay concept: everything is learned through trial and error.<br>- Possible actions: gathering, crafting, building, upgrading.<br><br>## Progression and content<br>- No progression definition; players decide for themselves what to do.<br>- Challenges are unknown and discovered through experimentation.<br><br>## UI, art, audio direction<br>- No traditional UI at all, but players can figure out if they can <br>create it themselves (literally creating personal UIs).<br>- Dark tones, gritty sci-fi style, no music, deep, low-frequency <br>ambient sounds.<br><br>## Scope and milestones<br>- Must-have: crafting, large world exploration, obstacles to overcome <br>(environment/enemies).<br>- Should-have: possibility to customize your character during the game, <br>once it&#39;s figured out.<br>- Excluded: cinematics, lore explanation, quest system.<br>- Milestones:<br>  - Initial &quot;thrown into the unknown&quot; experience.<br>  - Figuring out your own path.<br>  - Progressing further into world exploration.<br><br>## Open questions and next tasks<br>- How complex the visuals should be?<br>- What are the ways for players to interact with each other?<br>- Figuring out cloud/streaming system implementation.<br>- Figuring out if there should be an early version of the game with <br>limited features.</pre><p>Overall, for a small early-stage project, a game design document can take between one and three pages. Sometimes it can be accompanied by a level design document or a technical design document if it becomes too detailed and complex.</p><p>For our example, the above should be enough, because now we want to move on to software development documents in the provided context.</p><h4>Product Requirements Document</h4><p>This document describes the purpose of the product (plus its goals, scope, and major features), and it is usually user-focused. We’ve just described the game we want to make and can see that there is a particular system mentioned: cloud-streaming system and clientless game. So, we need this system to be made.</p><p><strong>Main question:</strong> Why is the system being built?</p><pre># Product name: NoNameCloud<br><br>## Product description<br>- A cloud service tailored specifically to one game.<br>- It should allow to play the game on any device with a screen and <br>internet connection.<br>- No other application, fully focused on one game.<br>- It shouldn&#39;t provide any possibility to install anything locally.<br><br>## Problem<br>- Players shouldn&#39;t be able to see/tweak game files.<br>- Main hurdle: making the game run smoothly (heavily depends on <br>internet connection).<br>- Without the system the main game concept won&#39;t work (exploring <br>the complete unknown).<br><br>## Goals and non-goals<br>- Desired outcome: streaming the game with minimal delay on any device.<br>- Exclusions: tailoring the system to other games/services.<br><br>## Users and use cases<br>- Target users: players with any type of device that has <br>internet connection.<br>- Main user journey:<br>  - Opens the main web site with a button to start the game.<br>  - Logs into the game (same credentials as on the main site).<br>  - Game is streamed from the cloud service in full-screen mode.<br>  - Once the game is closed, the current session ends, progress is saved.<br><br>## Requirements<br>- Functional reuirements:<br>  The product must allow players to seamlessly stream the game and <br>  to play it on any device that has a browser.<br>- Non-functional requirements:<br>    - Support of slow networks.<br>    - Account security.<br>    - Accessibility to all users with a browser.<br><br>## Constraints and dependencies<br>The main issues are the budget which can grow rapidly and the fact<br>that the game isn&#39;t supposed to have any public appearance, marketing,<br>social media presence, description, or anything that would provide any<br>information of what it really is. The system is developed exclusively for<br>the game.<br><br>## Success criteria (initial)<br>The game is playable on the main types of devices (latest phones, PCs, <br>handheld devices) on stable and fast connection and on the latest <br>modern browser versions.<br><br>## Release scope<br>- Milestones: a prototype with basic functionality -&gt; gradual growth <br>to support the full game streaming -&gt; improving the overall experience <br>(connection, stability, latency) -&gt; adding more features when needed <br>-&gt; full launch -&gt; post-launch support and improvement.<br>- Risks: connection stability, slow networks support, backup system.<br>- Assumptions: most likely the best experience can only be achieved on <br>the fastest connection and latest browser versions.<br>- Launch criteria: the system allows to play through the main game content.</pre><h4>Software Requirements Specification</h4><p>This document is supposed to translate the product idea into precise and testable system requirements (a more detailed version of a PRD). For our example, we’ve already mentioned the main points in PRD, so, as we are mostly focusing on comparison and combining various documents for our specific case, we will only briefly mention the general information to see the document structure from a high level.</p><p><strong>Main question:</strong> What must the system do?</p><pre>## Purpose and scope<br>- Purpose: play the game anywhere, as long as you have a screen, controls, <br>and connection.<br>- Included/excluded functionality: summarized in the PRD;<br>detailed requirements are listed below.<br><br>## Definitions and references<br>Cloud service, streaming service, video game, GDD, PRD, SRS, TDD, UX/UI, <br>ADR.<br><br>## Actors and system context<br>Players, PCs, handheld devices, phones, mobile network, cloud service and <br>game connection and interaction.<br><br>## Functional requirements<br>- Authentication<br>- Saving system<br>- Device compatibility<br>- Handling network issues<br><br>## Interfaces<br>Internal use only, no external reveal to the end users. The system should <br>function &quot;under the hood&quot; with no hints at how it works. Internally it <br>should allow performance monitoring, adjust connection route, graphics, and<br>every game aspect related to streaming.<br><br>## Data requirements<br>Minimum required data from the users to set up and maintain connection and <br>stable service.<br><br>## Non-functional requirements<br>Summarized previously and linked to the PRD’s success criteria.<br><br>## Acceptance and traceability<br>See previous documents (constraints, success criteria, milestones, etc.).</pre><p>We are talking about the very early stages of development, hence our SRS is supposed to be concise (ideally, it should be turned into a table with requirements).</p><h4>Technical Design Document</h4><p>TDD should explain how the system will be built. As we are focusing on the main structure, I will refer to the previous examples for some of the document’s points.</p><p><strong>Main question:</strong> How will the system be implemented?</p><pre>## Context and goals<br>- Problem to solve: eliminate the need for and access to the game client; <br>allow to play from multiple devices.<br>- Relevant requirements: see previous documents.<br><br>## Proposed architecture<br>A cloud streaming system integrated into the game.<br>Streaming and game are closely connected and should be developed <br>simultaneously.<br><br>## Data flow<br>The game runs on a server - it is being streamed to end users - users<br>connect through browser seamlessly.<br><br>## Design<br>Main components: session server, streaming layer, browser interface,<br>authentication service, save system, monitoring tools.<br>Detailed information is open to discussion at this stage.<br><br>## Technology choices<br>[To be discussed]<br><br>## Error handling and edge cases<br>Lag, connection issues, connection stability, slow connections support.<br><br>## Security and privacy<br>Authentication and authorization happen through the account on the main <br>site which may not be directly related to the game. Due to that, the user&#39;s<br>data and accounts are managed separately, by a different service. The <br>game is a part of a different platform, so it does not provide direct <br>access to the account (the account belongs to the main site/system).<br><br>## Testing and deployment<br>- Initial internal testing that expands further.<br>- The game launches in a testing phase (since there is no advertising).<br>- Initial development happens during that &quot;hidden&quot; launch, regardless of <br>how many users there are.<br><br>## Alternatives and risks<br>- Options considered: a more open system with more revealed information<br>(not a priority; considered only as the last option).<br>- Risks: low engagement, not enough testers, practically unlimited number <br>of devices and connection types to support.</pre><h4>UX/UI Specification</h4><p>This document describes how users interact with the product, how it should behave and look.</p><p><strong>Main question:</strong> How users will experience the system?</p><pre>## User goals<br>- Internal users only.<br>- Primary tasks are supporting the game through any device that can be <br>connected to the internet.<br><br>## User flows<br>Connect to the system - Monitor connection and performance - Track issues <br>- Adjust connection settings - Add new features<br><br>## Information architecture<br>[To be discussed]<br><br>## Specifications<br>[To be discussed]<br><br>## Interaction rules<br>[To be discussed]<br><br>## Visual system<br>Main dashboard to monitor the main parameters. Individual screens for <br>more details and system management.<br><br>## Accessibility and responsiveness<br>Minimal options and basic design at first with further improvement.<br><br>## Acceptance criteria<br>The system is connected to the game - the game can run on fast connection <br>in modern browsers.</pre><h4>Architecture Decision Record</h4><p>Each ADR records one significant technical decision and its reasoning. It’s supposed to be rather short.</p><p><strong>Main question:</strong> Why a particular technical approach was chosen?</p><pre># ADR-001: Build-from-scratch cloud-streaming service tailored to one game.<br><br>Status: Proposed<br>Date: YYYY-MM-DD<br><br>## Context<br>The game needs a streaming service to run through browser.<br><br>## Decision<br>Create a tailored unique streaming system with one goal only.<br><br>## Alternatives considered<br>Use existing cloud services (NVIDIA GeForce NOW, Amazon Luna, <br>Xbox Cloud Gaming, etc.).<br><br>## Consequences<br>- Higher development costs.<br>- Compatibility and security concerns.<br>- Strong dependence between the game and the streaming service.<br>- Risk of latency and operating cost.</pre><h3>Creating a Structure</h3><p>Now we have our main documents, so we can organize them and have the initial documentation structure. There is no need to go into more details at the initial phase. The goal is to have the basis to start. These documents are supposed to change and progress further throughout the development process.</p><p>The idea is to keep game concept and player experience separate from technical documentation and connect them through references (in our case, we have our main game and streaming service that are tightly connected to each other).</p><p>Here is one possible version for the initial document hierarchy:</p><pre>NoNameGame project<br>├── 01-game-design/<br>│   └── gdd.md<br>├── 02-product/<br>│   ├── prd.md<br>│   └── ux-ui.md<br>└── 03-technical/<br>    ├── srs.md<br>    ├── tdd.md<br>    └── adrs/</pre><p>This structure is supposed to grow and include other documents further on (for example, systems, release plan, roadmap, testing plan, monitoring, etc.). One thing that can be added right away is a <strong>concept document</strong> which is the shortest version of the main ideas for the project (like a brief pitch).</p><pre># Concept<br>A clientless crafting/survival game set in an unknown world.<br>No publicity, no promotion, no external information to the public.<br>Game launches through another platform (for example, <br>any existing game service).<br>No standard launcher, no description, no title, just a start button.<br>Only the minimum required information is available.<br>Open-world where the player has no idea of what is happening.<br>Actions are meaningful to the player, but have no/minimal <br>effect on the world.<br>Learning through doing. Game systems are discovered through practice.<br>No patch notes, no information about updates, no official guides.<br>The only way to progress is to explore and figure things out on your own.</pre><p>Some of the documents mentioned above might not be required right from the start. In our example, we can have a concept, a compact version of GDD, product requirements document for the cloud streaming service, technical overview, ADR (a folder with short records for the most important technical decisions). We can additionally add a roadmap and scope documents once we are ready to define the exact steps for the development (not providing examples here, as in our case this is more of an initial concept, to serve as a basis for the later documents).</p><p>With that we have our main GDD document that defines the main experience and the software documents that define the supporting product and implementation.</p><h3>Conclusion</h3><p>I wrote this post as a little experiment, mostly to jot down a few concepts that were circling in my mind for a while and to also explore the documentation process for creating a particular project as an example. I’m almost certain a game like this could never appear (hence I’m just throwing it out to the world), but I think it would be interesting to see at least something close to it one day. I wouldn’t treat it as a passion or dream project, more like something less typical to the current games and services.</p><p>After all, ideas aren’t expensive to produce and they can always be tweaked and changed into something else, which is probably their main goal and purpose. But, if by some chance someone reads this and manages to implement such a thing, well, you know where to find me (I always have more ideas to share and work on).</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=011a50553523" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forced Limitations in Programming as a Way to Focus]]></title>
            <link>https://medium.com/@dimterion/forced-limitations-in-programming-as-a-way-to-focus-57a2cbbffb94?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/57a2cbbffb94</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 05:29:54 GMT</pubDate>
            <atom:updated>2026-10-02T05:29:54.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Forced Limitations in Programming as a Way to Focus." src="https://cdn-images-1.medium.com/max/700/1*qv05iAUj6FrVzdBFlmqQVA.png" /></figure><p>Let’s talk about adding constraints to the way we code and how this can help us concentrate and stay focused on certain tasks.</p><h3>The Issue in a Nutshell</h3><p>When working on anything coding-related, we sooner or later face a typical problem: it gets too complex, and adding new features becomes a real hurdle. The longer you keep working on it, the messier it gets; one thing piles on top of the other, and at some point you also start considering changing your current stack, adding new libraries, and eventually remaking everything from scratch.</p><p>On top of that, there are constant updates to everything you use, forcing you to either keep up with the changes or worry about obsolete versions that are no longer supported and may cause performance or security issues.</p><p>All of this is well known, and there are various ways to tackle it. One of the most effective apporaches seems to be to simply push through. You don’t really think about the difficulties and the overall messiness of the code; you just keep working on it. And the actual fact of doing the work pushes you further, even if your work is far from perfect.</p><p>However, the reason for writing this is a bit different. Here, I wanted to talk about one other potential way of staying focused: imposing some limitations on your work and sticking with them.</p><h3>Brief Context</h3><p>I’ve recently noticed one thing while making another attempt at organizing various personal files: in the past, it always seemed like a tedious task that you sooner or later have to face, but the moment I began doing it on the phone in small chunks every day, it actually became something enjoyable.</p><p>It seems much easier to use a PC with a bigger screen (or even two or more screens) to work with files, but it also gives you too many options. You see all the files scattered across various folders without proper names and structure and you don’t know where to start, how many files are duplicates, and how to properly organize them.</p><p>At the same time, when you’re limited to just one small screen on your phone, you don’t really have a lot of options. You can just review your files one by one, folder by folder. And we tend to carry our phones pretty much everywhere these days, so you can also find small chunks of time during the day to spend a few minutes browsing your files (whether it’s any of your cloud storage services, photos gallery, internal phone storage, or anything else file-related).</p><p>This may take time, but if you are consistent, you will eventually reach a point where you at least get rid of some old stuff you no longer need (and, at best, you may even finally have your files properly organized).</p><p>So, while doing this little file organization, I thought about similar principles in other activities, coding in particular.</p><h3>Adding Constraints to Your Development Environment</h3><p>Setting up your IDE often feels like modding a video game: once you start adding new things, it can be rather hard to stop. We may start with something simple, like an online interface on any coding platform, then we install a tool like VS Code, then add some extensions, then a few more, then an AI assistant (or multiple ones), and so on. In the end, we may not even use all of it, but for some reason we keep thinking that we still need all of that.</p><p>And, just as with the previously mentioned file-organization issue, we may come to a point where we ask ourselves: maybe we can get rid of it all and try something simpler?</p><p>Of course, it may be rather hard to simplify things when you’re working at a company, as part of a team, and dealing with clients and complex projects. So, we can start by applying this to something smaller, like personal projects or just things we do for fun.</p><h3>Mobile coding</h3><p>As I’ve already mentioned using a phone for file organization, the obvious question comes to mind: can we also try using it for coding?</p><p>The short answer is yes. There have already been multiple attempts, and you can find plenty of examples of people using their phones to code. It comes with various tradeoffs, but that’s also the point of this post: adding constraints and limiting yourself on purpose.</p><p>Let’s look at a few possible examples of using a mobile device for programming.</p><h4>Learning platforms</h4><p>The first option that may come to mind is various code learning platforms. On the one hand, you may not necessarily need to learn something in particular, but they may offer a ready-to-use interface for coding, where you can do more or less whatever you want, not necessarily only the learning part.</p><p>I’ve personally checked a few such platforms: freeCodeCamp, Codecademy, Scrimba. If we look at the coding options for these three, freeCodeCamp has a mobile app with a coding interface, which is usually focused on completing a certain challenge; Codecademy also has an app, but it’s mostly about reading and doing short quizzes; Scrimba doesn’t have an app, but its interface is the easiest of these three to use on a mobile device (obviously, when I say “easiest” I mean in comparison to the other platforms’ web versions, not that it’s the easiest option overall).</p><p>So, when it comes to learning platforms, you can try checking whether Scrimba’s web version or freeCodeCamp app may fit you needs when you are using a mobile device.</p><p>There are other options for learning on a mobile device, of course; I’m just mentioning a few I’ve personally checked so far.</p><h4>CodePen</h4><p>Another option that comes to mind is the CodePen platform. As far as I know, they don’t have a dedicated app, so I’ve checked their web version on a mobile device.</p><p>As with anything that requires dealing with multiple files, the smaller your screen gets, the harder it is to manage. And of course, CodePen is focused on HTML, CSS, and JavaScript panels, plus a live preview of what you are making, which gives us four distinct areas. Managing it all on a small screen is quite a task.</p><p>But, as the goal is to spend just a few minutes making something simple that you can always come back to and polish or adjust later, this may be an option to try from time to time.</p><h4>VS Code</h4><p>Just as with CodePen, as far as I know, there is no official VS Code mobile app, but there is a web version that runs in the browser. There are limitations, of course (for example, no built-in terminal), but you can use it for various small tasks in pretty much the same way as the main app (including logging in with your account).</p><p>There are also multiple third-party apps, but for this post I mostly focus on the main sources for coding.</p><h4>GitHub</h4><p>In theory, you can also do some work directly on GitHub (or in its mobile app). It may not be as comfortable as using a dedicated code editor, but for various minor tweaks and simple things, it can be an option as well. Although it kind of resembles editing your code on their website (regardless of which device you use), so maybe it’s better to choose a code editor.</p><p>However, there is an option to combine a couple of the previously mentioned variants. For example, if you like CodePen’s or any of the learning platforms’ interfaces on mobile and have made something there (and don’t want to use VS Code), in theory you can copy your code directly to GitHub, so perhaps this is also a possible option for mobile coding.</p><h4>AI coding</h4><p>Obviously, there is now one more option to use on a mobile device: working with any AI you like to code. You can ask it to provide any code you want and suggest how best to manage it, whether you’re on desktop or phone. There are a lot of choices here, so I don’t want to dive into what to pick in particular. For now, this seems to be a a matter of preference, so you just have to decide what you like more.</p><h3>Forced Limitations</h3><p>The reason I wrote that previous part about mobile coding options is that it directly relates to the main topic: adding limitations to your options while coding. A mobile device forces you to use one small screen, without many options to install numerous extensions, use a terminal, and so on. And when an option isn’t available, you don’t need to bother deciding whether you want it or not.</p><p>You work with what you have and adjust to your current limitations. And instead of figuring out what to use, what to update, and how many extra things you need to take care of, you simply work with the tools at hand.</p><p>Perhaps you can do the same, regardless of your device, at least from time to time, just for a change: for example, focusing on CodePen or doing some quick edits directly on GitHub.</p><p>It’s often said that the main goal is the final result, not so much what exactly you used to achieve it. So, you can always start small and keep dedicating a bit of time to it. And as long as you stick to it, you’ll eventually manage to create something bigger (and there is always time to make it more complex and turn it into a larger project).</p><p>There were some thoughts on adding constraints to your development environment, with a few options to consider (if you decide to try them). This won’t change the main way you work, but sometimes a couple of small, consistent steps toward something may result in starting a new thing, or at least give you a bit of healthy distraction, so you can get back to the main task with a fresh perspective.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57a2cbbffb94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making GTA 6 Interface with HTML and CSS]]></title>
            <link>https://medium.com/@dimterion/making-gta-6-interface-with-html-and-css-5ea36d805323?source=rss-6eb8db86d8ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ea36d805323</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Dimterion]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 05:20:22 GMT</pubDate>
            <atom:updated>2026-09-25T05:20:22.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Title: Making GTA 6 Interface with HTML and CSS." src="https://cdn-images-1.medium.com/max/700/1*M8DpPQnJrzJqALlOtbpdTw.png" /></figure><p>Let’s try making a UI with HTML and CSS that resembles the one from the GTA 6 game.</p><p>The interface in the game is rather straightforward (which is most likely the main goal for it). We can take a look at several elements one by one (these are parts of the screenshots from the game trailer).</p><blockquote><strong>Note:</strong> The screenshots are intentionally partial and not high resolution. At the time of writing, they are based on the latest game presentation video, and looks like the UI may change in the game based on the situation.</blockquote><figure><img alt="Top-left corner UI." src="https://cdn-images-1.medium.com/max/167/1*V4xZx0OwDGEJbC6XkubTNA.png" /><figcaption>Top-left corner UI</figcaption></figure><figure><img alt="Top-right corner UI." src="https://cdn-images-1.medium.com/max/150/1*9BexDnRxfgV0bD-fQvOZvg.png" /><figcaption>Top-right corner UI</figcaption></figure><figure><img alt="Top-right corner UI." src="https://cdn-images-1.medium.com/max/167/1*uMmZOQqv3TwTJ2IgDvW4Bw.png" /><figcaption>Top-right corner UI</figcaption></figure><figure><img alt="Top-right corner UI." src="https://cdn-images-1.medium.com/max/76/1*XP4PqZpxucpCsu3EG7bXTg.png" /><figcaption>Top-right corner UI</figcaption></figure><figure><img alt="Buttons hint." src="https://cdn-images-1.medium.com/max/342/1*po-T6I7FAChwJ3jwf-azNw.png" /><figcaption>Buttons hint</figcaption></figure><figure><img alt="Bottom-left corner UI." src="https://cdn-images-1.medium.com/max/207/1*znLXZ4B3A36yigmwKi3WGA.png" /><figcaption>Bottom-left corner UI</figcaption></figure><figure><img alt="Bottom-right corner UI." src="https://cdn-images-1.medium.com/max/122/1*WM3IUwwOw6kFVcp0hKmn2g.png" /><figcaption>Bottom-right corner UI</figcaption></figure><p>Of course, there are more elements, and they also depend on particular events in the game. Here, I’ve just taken a few common UI elements to work with. We have a health bar (and another bar) element in the top-left corner, the typical GTA star-rating and ammo count in the top-right corner, an example of buttons-to-press hint (in the middle of the screen), a map in the bottom-left corner, and racing information in the bottom-right corner.</p><p>With that, we have our elements for the four corners of the screen plus something to put in the middle. Maybe we’ll add something else later, but for now let’s just focus on these parts.</p><p>We can stick to the same order and build each screen section elements one by one, so we can have a separate section of the post for each part.</p><h3>HTML layout</h3><p>Let’s create the initial HTML layout first to see what elements we have and how we can organize and place them.</p><blockquote><strong>Note:</strong> I’m writing this while making the interface, so there is a chance that some parts may require adjustments later (in that case, I will try to mention it).</blockquote><pre>&lt;body&gt;<br>  &lt;header&gt;<br>    &lt;div class=&quot;bars&quot;&gt;<br>      &lt;div class=&quot;heart_bar&quot;&gt;&lt;/div&gt;<br>      &lt;div class=&quot;eye_bar&quot;&gt;&lt;/div&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;status&quot;&gt;<br>      &lt;div class=&quot;stars&quot;&gt;&lt;/div&gt;<br>      &lt;div class=&quot;icons&quot;&gt;&lt;/div&gt;<br>      &lt;div class=&quot;ammo&quot;&gt;&lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/header&gt;<br>  &lt;main&gt;<br>    &lt;div class=&quot;buttons&quot;&gt;<br>      &lt;div class=&quot;button&quot;&gt;&lt;/div&gt;<br>      &lt;div class=&quot;button&quot;&gt;&lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/main&gt;<br>  &lt;footer&gt;<br>    &lt;div class=&quot;map&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;stats&quot;&gt;&lt;/div&gt;<br>  &lt;/footer&gt;<br>&lt;/body&gt;</pre><p>We have three main groups made with semantic tags: header, main, footer. This way, we can have three main areas: top, middle, and bottom.</p><p>Then we have two groups at the top (in the header): left and right side elements (bars on the left and stars/icons/ammo on the right).</p><p>We only have one group in the main element (buttons). I might add something later, but in general this is just to have some content in the middle of the screen (since we’re mostly focusing on UI elements).</p><p>And our footer has two groups: map and stats (or rather, racing info in our case). Their elements are on the left and right sides, respectively.</p><p>Let’s add some basic CSS rules, so we can take a look at the initial layout.</p><h3>CSS layout</h3><pre>* {<br>  box-sizing: border-box;<br>  margin: 0;<br>}<br><br>body {<br>  background-color: gray;<br>  display: flex;<br>  flex-flow: column nowrap;<br>  justify-content: space-between;<br>  min-height: 100vh;<br>  padding: 0.1rem;<br>}<br><br>header {<br>  display: flex;<br>  flex-flow: row nowrap;<br>  justify-content: space-between;<br>}<br><br>.bars {<br>  display: flex;<br>  flex-flow: column nowrap;<br>  gap: 1rem;<br>}<br><br>.heart_bar {<br>  background-color: pink;<br>  height: 1rem;<br>  width: 5rem;<br>}<br><br>.eye_bar {<br>  background-color: blue;<br>  height: 1rem;<br>  width: 5rem;<br>}<br><br>.status {<br>  display: flex;<br>  flex-flow: column nowrap;<br>  gap: 1rem;<br>}<br><br>.stars,<br>.icons,<br>.ammo {<br>  background-color: white;<br>  height: 1rem;<br>  width: 1rem;<br>}<br><br>.buttons {<br>  display: flex;<br>  flex-flow: row nowrap;<br>  gap: 1rem;<br>  justify-content: center;<br>}<br><br>.button {<br>  background-color: white;<br>  height: 1rem;<br>  width: 1rem;<br>}<br><br>footer {<br>  display: flex;<br>  flex-flow: row nowrap;<br>  gap: 1rem;<br>  justify-content: space-between;<br>}<br><br>.map {<br>  background-color: white;<br>  height: 5rem;<br>  width: 5rem;<br>}<br><br>.stats {<br>  background-color: white;<br>  height: 5rem;<br>  width: 5rem;<br>}</pre><p>I’m trying not to group identical properties for elements so the structure is clearer. Besides, it’s just for a visual representation of the elements (since we will change them further).</p><p>There is nothing too special about this CSS, we mainly use the <strong>flex </strong>property to position all the parts appropriately (plus there are basic CSS resets and colors to show the elements). Now we can see where each part/element should go before we style them further.</p><figure><img alt="Basic HTML/CSS layout for the page." src="https://cdn-images-1.medium.com/max/992/1*1HdV2CGLjv7WXWJAqTfdrw.png" /><figcaption>Basic layout for the page.</figcaption></figure><p>We can now work on each element individually.</p><h3>Top-left corner UI elements</h3><p>There are four elements in the top-left corner: heart icon, pink bar, eye icon, purple bar (we can adjust colors later; for now, I’m just using more or less distinctive ones to place everything, which is why the second bar is blue in our current version). There is also a small vertical white line in the middle of the pink bar (let’s call it divider).</p><p>We could add more HTML elements, of course, but for this section let’s try to avoid that. We will use <strong>::before</strong> and <strong>::after</strong> pseudo-elements. This way, we only need to work with CSS. Here are the additions to the code above:</p><pre>.bars {<br>  display: flex;<br>  flex-flow: column nowrap;<br>  gap: 1rem;<br>  /* Adding some space around our bars */<br>  margin: 1rem 2rem;<br>}<br><br>.heart_bar {<br>  background-color: pink;<br>  height: 1rem;<br>  /* Adjusting width and adding relative position */<br>  position: relative;<br>  width: 10rem;<br>}<br><br>.eye_bar {<br>  background-color: blue;<br>  height: 1rem;<br>  /* Adjusting width and adding relative position */<br>  position: relative;<br>  width: 8rem;<br>}</pre><p>And here are our pseudo-elements to create a heart icon, an eye icon, and a divider line for the pink bar:</p><pre>/* Heart icon */<br>.heart_bar::before {<br>  align-items: center;<br>  background-color: rgba(0, 0, 0, 0.4);<br>  border-radius: 50%;<br>  color: pink;<br>  content: &quot;❤&quot;;<br>  display: flex;<br>  height: 1.5rem;<br>  justify-content: center;<br>  left: -1.75rem;<br>  position: absolute;<br>  top: 50%;<br>  transform: translateY(-50%);<br>  width: 1.5rem;<br>}<br><br>/* Divider */<br>.heart_bar::after {<br>  background-color: white;<br>  border: 0.15rem solid gray;<br>  border-bottom: none;<br>  border-top: none;<br>  content: &quot;&quot;;<br>  height: 1rem;<br>  left: 50%;<br>  position: absolute;<br>  transform: translateX(-50%);<br>  width: 0.15rem;<br>}<br><br>/* Eye icon */<br>.eye_bar::before {<br>  background-color: rgba(0, 0, 0, 0.4);<br>  border-radius: 50%;<br>  color: blue;<br>  content: &quot;👁&quot;;<br>  display: flex;<br>  height: 1.5rem;<br>  justify-content: center;<br>  left: -1.75rem;<br>  position: absolute;<br>  top: 50%;<br>  transform: translateY(-50%);<br>  width: 1.5rem;<br>}</pre><p>Heart and eye icons are almost identical, except for the alignment (no need to align the eye icon in our case), color, and the icon itself. We’re using hardcoded HTML icons for our example as content for the pseudo-elements. We could create an SVG, but for now let’s just take the ready-to-use variants. The icons are placed absolutely before the bars. We use flex to center the icons and add a rounded background to them (to match the screenshot). As for the divider line, we need to place it in the middle of the pink bar, hence its absolute position (+ 50% <strong>left </strong>and -50% <strong>translateX </strong>properties). There is also a bit of transparent space around the divider (see the screenshot above), so we add borders to left and right sides that should match our main background (for now, we are using gray for it). The rest of the CSS is relatively straightforward.</p><p>Now we have these elements:</p><figure><img alt="Top-left UI elements." src="https://cdn-images-1.medium.com/max/572/1*MW1xNf_rt_Dy8sKNjbS93A.png" /><figcaption>Top-left UI elements.</figcaption></figure><p>We can get back to the miscellaneous details later (like adjusting colors, dimensions, icons, and so on). For now, we can move on to the next part of the UI.</p><h3>Top-right corner UI elements</h3><p>In the top-right corner we have six star elements, then several icons (3–5 based on the current screenshots), and ammo count at last.</p><p>Let’s deal with the stars first.</p><p>Stars can be made either fully with CSS, or as SVG icons, or, as we did before, as hardcoded HTML icons. Since we already started with HTML icons, we can continue doing the same for the rest of the icons. However, there are some issues to address when making the stars this way for our UI.</p><p>We can try the most straightforward approach first and then tweak it slightly. For that, we need to add more elements to our stars container:</p><pre> &lt;div class=&quot;stars&quot;&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star&quot;&gt;☆&lt;/div&gt;<br>  &lt;div class=&quot;star&quot;&gt;☆&lt;/div&gt;<br>&lt;/div&gt;</pre><p>We could use two separate icons for our stars (active and inactive, as in the screenshots), but that will cause an issue: the active stars will have the color of the background beneath them, but in the screenshots they are either gray or red. If we were dealing with an SVG or CSS-made star icon, that wouldn’t be an issue (we could simply set the color we need), but our icons are hardcoded. One possible way to address this is to use a second icon on top of the first one and make it slightly smaller. This way, the icon beneath will serve as the border, and the one on top as the background. Of course, this is not ideal, as the main issue will be scaling: the moment the screen size starts changing, the icon will look slightly off, and it will be quite hard to align the two stars perfectly. But, since we’ve already started using HTML icons and are exploring all the possible ways to style them, let’s try this approach.</p><p>Here is our modified HTML:</p><pre>&lt;div class=&quot;stars&quot;&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-inactive&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-active&quot;&gt;★&lt;/div&gt;<br>  &lt;div class=&quot;star star-active&quot;&gt;★&lt;/div&gt;<br>&lt;/div&gt;</pre><p>And here is our CSS for the stars (I left the icons and ammo class styling at the end to show that we no longer style stars in the same way):</p><pre>.stars {<br>  display: flex;<br>}<br><br>.star {<br>  font-size: 2rem;<br>  line-height: 1;<br>  position: relative;<br>}<br><br>.star-inactive {<br>  color: dimgray;<br>}<br><br>/* Star border */<br>.star-active {<br>  color: black;<br>}<br><br>/* Star color */<br>.star-active::before {<br>  color: darkgray;<br>  content: &quot;★&quot;;<br>  font-size: 0.7em;<br>  left: 50%;<br>  position: absolute;<br>  top: 50%;<br>  transform: translate(-50%, -50%);<br>}<br><br>/* No need to style the stars container like this anymore */<br>.icons,<br>.ammo {<br>  background-color: white;<br>  height: 1rem;<br>  width: 1rem;<br>}</pre><p>We don’t need anything special for the inactive star, just the color. For the active star, we also set the color and then create a pseudo-element <strong>::before</strong>. The trick here is to use absolute positioning and then set the top, left, and transform properties appropriately. Now our main star element becomes the border, and its pseudo-element becomes the main color of the star.</p><p>Again, this might require tweaking (for font size and position in particular) to align the stars properly, and even with that it may look a little off on various screens. For the current example, we can leave it like this and keep in mind that we can always use SVGs or CSS-made stars to have more control.</p><figure><img alt="Star elements." src="https://cdn-images-1.medium.com/max/300/1*Rjxc3rR564J0Do23U6rQsw.png" /><figcaption>Star elements.</figcaption></figure><blockquote>There is also a screenshot of red stars above; to make them, all we have to do is change the color of the active star and its <strong>::before</strong> pseudo-element to red.</blockquote><p>Next, let’s make icons below the stars.</p><p>Our icon elements are red circles with white icons inside them. So, we can simply create five &lt;div&gt; elements and place icons inside them. There is nothing particularly tricky about these elements except finding the right icons. Again, we can try to find hardcoded HTML icons, use an icon library, or SVGs. For the current example, let’s just find the closest matches in the Font Awesome library (we could spend more time figuring out exact SVGs, but I’m trying to keep it simple for the basic version).</p><p>Our HTML code additions:</p><pre>&lt;div class=&quot;icons&quot;&gt;<br>  &lt;div class=&quot;icon&quot;&gt;&lt;i class=&quot;fa-solid fa-video&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>  &lt;div class=&quot;icon&quot;&gt;&lt;i class=&quot;fa-solid fa-user-group&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>  &lt;div class=&quot;icon&quot;&gt;&lt;i class=&quot;fa-solid fa-shirt&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>  &lt;div class=&quot;icon&quot;&gt;&lt;i class=&quot;fa-solid fa-user&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>  &lt;div class=&quot;icon&quot;&gt;&lt;i class=&quot;fa-solid fa-gun&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>&lt;/div&gt;</pre><p>You also need to add the link to the stylesheet for the icons. For a basic example, it can be a free CDN link in the head of your HTML:</p><pre>&lt;link<br>  rel=&quot;stylesheet&quot;<br>  href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css&quot;<br>/&gt;</pre><p>And here is our CSS for the icons:</p><pre>/* Also adjusting the display to place top-right elements at the end */<br>.stars,<br>.icons {<br>  display: flex;<br>  justify-content: end;<br>}<br><br>.icon {<br>  align-items: center;<br>  background-color: darkred;<br>  border-radius: 50%;<br>  color: white;<br>  display: flex;<br>  font-size: 0.5rem;<br>  height: 1.25rem;<br>  justify-content: center;<br>  margin: 0 0.2rem;<br>  width: 1.25rem;<br>}</pre><figure><img alt="Icon elements." src="https://cdn-images-1.medium.com/max/405/1*cUvqpYttw0l3p484yWJv_g.png" /><figcaption>Icon elements.</figcaption></figure><p>They are not exactly like the icons in the screenshot, but to match them better we would need to either find another icon library or figure out proper SVG images (but we’re keeping it simple here).</p><p>We have one remaining top-right corner element: the ammo count and pistol image.</p><p>Here’s the HTML part:</p><pre>&lt;div class=&quot;ammo&quot;&gt;<br>  &lt;p class=&quot;ammo-count&quot;&gt;17 83&lt;/p&gt;<br>  &lt;svg<br>    height=&quot;65px&quot;<br>    width=&quot;65px&quot;<br>    version=&quot;1.1&quot;<br>    id=&quot;Capa_1&quot;<br>    xmlns=&quot;http://www.w3.org/2000/svg&quot;<br>    xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;<br>    viewBox=&quot;0 0 15.847 15.847&quot;<br>    xml:space=&quot;preserve&quot;<br>    fill=&quot;#333333&quot;<br>    style=&quot;transform: scaleX(-1)&quot;<br>  &gt;<br>    &lt;g id=&quot;SVGRepo_bgCarrier&quot; stroke-width=&quot;0&quot;&gt;&lt;/g&gt;<br>    &lt;g<br>      id=&quot;SVGRepo_tracerCarrier&quot;<br>      stroke-linecap=&quot;round&quot;<br>      stroke-linejoin=&quot;round&quot;<br>    &gt;&lt;/g&gt;<br>    &lt;g id=&quot;SVGRepo_iconCarrier&quot;&gt;<br>      &lt;g&gt;<br>        &lt;path<br>          style=&quot;fill: inherit&quot;<br>          d=&quot;M15.847,5.228V4.052h-0.065V2.931h-0.064V2.534H15.26V2.93c0,0-11.083,0.078-13.018,0 c-0.296,0-1.986,0.167-0.291,2.773c0,0,0.77,1.168-0.285,2.471c-1.041,1.284-1.51,3.885-1.632,4.671H0v0.468h4.803v-0.468v-0.43 c-2.075,0.382,1.434-4.447,1.278-3.634c0.113,0.029,0.23,0.047,0.352,0.047h1.25c0.772,0,1.797-0.826,1.797-1.599 c0-0.335-0.118-0.642-0.314-0.883h6.185l0.2-0.736h0.262V5.254H15.77l0.011-0.026H15.847z M7.685,8.144h-1.25 c-0.092,0-0.181-0.015-0.265-0.04c0.073-0.429,0.129-0.813,0.169-1.112c0.105,0.347,0.31,0.71,0.713,0.867 C7.08,7.87,7.109,7.875,7.138,7.875c0.094,0,0.184-0.058,0.221-0.15c0.047-0.123-0.014-0.26-0.136-0.308 c-0.417-0.162-0.5-0.792-0.516-1.068h1.205c0.393,0.102,0.686,0.459,0.686,0.883C8.598,7.734,8.188,8.144,7.685,8.144z M14.098,5.612H7.924l1.072-0.357h5.102C14.098,5.255,14.098,5.612,14.098,5.612z&quot;<br>        &gt;&lt;/path&gt;<br>      &lt;/g&gt;<br>    &lt;/g&gt;<br>  &lt;/svg&gt;<br>&lt;/div&gt;</pre><p>For a change, I decided to use an SVG this time. I just found something close enough on the <a href="https://www.svgrepo.com/">SVG Repo site</a> and then tweaked it a bit (flipped the image and changed the color). In theory, we could also use a simple image, but let’s stick to our previous approach so we can now have three different methods: hardcoded HTML icons, icons from a library, and an SVG icon.</p><p>And here’s our CSS:</p><pre>@import url(https://medium.com/&quot;https://fonts.googleapis.com/css2?family=Squada+One&amp;display=swap&quot;);<br><br>.ammo {<br>  align-items: end;<br>  display: flex;<br>  flex-flow: column nowrap;<br>  margin-top: 0.5rem;<br>}<br><br>.ammo-count {<br>  color: white;<br>  font-family: &quot;Squada One&quot;, sans-serif;<br>  font-size: 2rem;<br>  font-weight: bold;<br>  margin-right: 0.5rem;<br>  paint-order: stroke fill;<br>  -webkit-text-stroke: 2px black;<br>  -webkit-text-stroke-width: 2px;<br>  -webkit-text-stroke-color: black;<br>}</pre><p>As you can see, I’ve also added the Squada One font. I just tried to find something close enough to the GTA font and this Google font seemed more or less fitting.</p><p>There’s nothing special about the ammo class. It’s just a wrapper to place the elements with some spacing.</p><p>As for the ammo count element, the most interesting part here is the font: we’re using the <strong>paint-order</strong> property and <strong>text-stroke</strong> to add a black border around the text so it looks closer to the screenshot.</p><p>This is what this part looks like:</p><figure><img alt="Ammo count element." src="https://cdn-images-1.medium.com/max/137/1*Wf0cMoqvlJcT18TOTYccpg.png" /><figcaption>Ammo count element.</figcaption></figure><figure><img alt="All top-right corner elements combined." src="https://cdn-images-1.medium.com/max/400/1*hXDi9RdEW1t90p_fLhOjQQ.png" /><figcaption>All top-right corner elements combined.</figcaption></figure><p>We can now move on to the bottom-left corner elements.</p><h3>Bottom-left corner UI elements</h3><p>In the bottom-left corner we have the map. This one is going to have quite a few elements and will require a lot of tweaking of their positioning.</p><p>To add everything the map includes, we need to change our HTML for this section to the following:</p><pre>&lt;div class=&quot;map&quot;&gt;<br>  &lt;p class=&quot;distance&quot;&gt;0.33 mi&lt;/p&gt;<br>  &lt;div class=&quot;road&quot;&gt;<br>    &lt;div class=&quot;route&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;location&quot;&gt;&lt;i class=&quot;fa-solid fa-location-arrow&quot;&gt;&lt;/i&gt;&lt;/div&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;building-left&quot;&gt;&lt;/div&gt;<br>  &lt;div class=&quot;building-right&quot;&gt;&lt;/div&gt;<br>&lt;/div&gt;</pre><p>Let’s start with a simplified version and see if we want to change it later. We’ll have a straight road and route (gray and pink lines), plus a couple of gray buildings around them (gray rectangles). These are the main differences from the screenshot. We’ll try to make the rest of the elements closer to the original, but not the road, route, or buildings. The class names above should be self-explanatory.</p><p>One more thing to mention is the addition of another Font Awesome icon. This is a triangle that indicates the current position on the map. As before, we could use an SVG or make it with pure CSS, but we’ll just take a simple icon from the library.</p><p>Here is our CSS for this part:</p><pre>footer {<br>  align-items: center;<br>  display: flex;<br>  flex-flow: row nowrap;<br>  gap: 1rem;<br>  justify-content: space-between;<br>  margin: 1rem;<br>}<br><br>.map {<br>  background-color: cadetblue;<br>  border: 0.1rem solid white;<br>  border-radius: 1.5rem;<br>  height: 12rem;<br>  position: relative;<br>  width: 20rem;<br>}<br><br>.map::before {<br>  align-items: center;<br>  background-color: black;<br>  border-radius: 50%;<br>  color: white;<br>  content: &quot;N&quot;;<br>  display: flex;<br>  font-family: Arial, sans-serif;<br>  font-size: 0.75rem;<br>  height: 1.25rem;<br>  justify-content: center;<br>  left: 0;<br>  position: absolute;<br>  top: 50%;<br>  transform: translate(-50%, -50%);<br>  width: 1.25rem;<br>}<br><br>.map::after {<br>  background-color: pink;<br>  border: 0.1rem solid black;<br>  border-radius: 50%;<br>  content: &quot;&quot;;<br>  height: 1rem;<br>  left: 75%;<br>  position: absolute;<br>  top: 0;<br>  transform: translate(-50%, -50%);<br>  width: 1rem;<br>}<br><br>.distance {<br>  color: white;<br>  font-family: Arial, sans-serif;<br>  paint-order: stroke fill;<br>  padding: 1rem;<br>  position: absolute;<br>  -webkit-text-stroke: 1.5px black;<br>  -webkit-text-stroke-width: 1.5px;<br>  -webkit-text-stroke-color: black;<br>}<br><br>.road {<br>  background-color: darkgray;<br>  height: 11.8rem;<br>  margin: auto;<br>  width: 2.5rem;<br>}<br><br>.route {<br>  background-color: pink;<br>  border-left: 1px solid white;<br>  border-right: 1px solid white;<br>  bottom: -1rem;<br>  height: 8.56rem;<br>  left: 50%;<br>  position: absolute;<br>  transform: translate(-50%, -50%);<br>  width: 1rem;<br>}<br><br>.location {<br>  align-items: center;<br>  background-color: black;<br>  border-radius: 50%;<br>  display: flex;<br>  height: 1.25rem;<br>  justify-content: center;<br>  left: 50%;<br>  position: absolute;<br>  top: 75%;<br>  transform: translate(-50%, -50%);<br>  width: 1.25rem;<br>}<br><br>.location i {<br>  color: white;<br>  font-size: 0.75rem;<br>  padding-right: 1px;<br>  padding-top: 1px;<br>  transform: rotate(-45deg);<br>}<br><br>.building-left,<br>.building-right {<br>  background-color: darkgray;<br>  position: absolute;<br>}<br><br>.building-left {<br>  height: 3rem;<br>  left: 10%;<br>  top: 60%;<br>  width: 2rem;<br>}<br><br>.building-right {<br>  height: 4rem;<br>  left: 80%;<br>  top: 40%;<br>  width: 1rem;<br>}</pre><p>Here is a list of the main changes and additions:</p><ul><li>We’ve aligned the footer items at the center and added a bit of margin to them.</li><li>The map is the main container. The important thing is to position it relatively, because we’re positioning several elements inside it absolutely.</li><li>We use pseudo-elements (<strong>::before</strong> and <strong>::after</strong>) on the map to add two dots at the sides (north direction and current objective direction: black and pink dots). They are absolutely positioned, and we also add the <strong>transform: translate(-50%, -50%)</strong> property to place them right at the border of the map. The rest of the properties for these elements should be easy to understand, the main idea is to adjust them as you like it (so that they resemble the original).</li><li>The distance is just a paragraph of text. The trick is to also position it absolutely so it doesn’t overlap with other elements (in our case, it’s the road element, which should touch the upper border of the map; without the paragraph’s absolute positioning, the road would go lower). We also use the same <strong>paint-order</strong> and <strong>text-stroke</strong> properties as before to add a border to our text (the miles in the upper-left corner).</li><li>The road element is a wrapper for the route (pink line) and location (arrow icon). The reason for this is to place it underneath the route and location and simply add a gray background instead of adjusting its position, overflow, and z-index. <strong>Margin </strong>is set to <strong>auto </strong>to center it, and width and height have to be adjusted based on the dimensions of the other elements.</li><li>The route is our pink line. It has a white border on the left and right sides and is positioned using the <strong>translate </strong>property (to place it in the middle). Width and height will depend on the other elements’ dimensions.</li><li>The location (arrow icon) consists of the wrapper and <strong>fa-icon</strong> element. We’re using <strong>position: absolute</strong> and the <strong>translate </strong>properties once again. The reason for rotating the icon is that our Font Awesome icon is originally shown at an angle, so we need to make it pointing up: <strong>rotate(-45deg)</strong>.</li><li>At the end, we add two gray rectangles (<strong>building-left</strong>, <strong>building-right</strong>). There is nothing unusual about these two. We just place them at the sides of our road to represent other map objects.</li></ul><p>Here is how it looks so far (obviously, far from the original, but we need the basic element for the structure):</p><figure><img alt="Map element." src="https://cdn-images-1.medium.com/max/345/1*RmlV3vsUdBs_sc9GB2RvIg.png" /><figcaption>Map element.</figcaption></figure><p>The important thing to mention about the map is that it requires a lot of positioning adjustments. This may result in slight differences depending on the screen size (especially when you zoom in or out in your browser). But for now we’re keeping it simple to have our basic version. However, if you need to make something smaller or bigger, keep in mind that you might need to adjust other elements as well (since most of them rely on other’s positions).</p><p>Let’s move on to the bottom-right corner elements.</p><h3>Bottom-right corner UI elements</h3><p>In the bottom-right corner we have text information about lap, place, and time. It’s rather simple to add, and the only tricky part is the checkerboard background for the placement element.</p><p>Here is the HTML part:</p><pre>&lt;div class=&quot;stats&quot;&gt;<br>  &lt;div class=&quot;lap&quot;&gt;<br>    &lt;span&gt;LAP&lt;/span&gt;<br>    &lt;span&gt;1 / 2&lt;/span&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;place&quot;&gt;8 / 16&lt;/div&gt;<br>  &lt;div class=&quot;time&quot;&gt;00:21.32&lt;/div&gt;<br>&lt;/div&gt;</pre><p>We’ve just added three &lt;div&gt; elements for the text. The reason there are two &lt;span&gt; elements inside the first &lt;div&gt; is that there is a gap between the word “LAP” and the number, so it’s easier to separate them.</p><p>Here is the CSS for this part:</p><pre>footer {<br>  /* Aligned map &amp; race info items at the end now */<br>  align-items: end;<br>  display: flex;<br>  flex-flow: row nowrap;<br>  gap: 1rem;<br>  justify-content: space-between;<br>  margin: 1rem;<br>}<br><br>.stats {<br>  align-items: end;<br>  color: white;<br>  display: flex;<br>  flex-flow: column nowrap;<br>  font-family: Arial, sans-serif;<br>  font-weight: bold;<br>  gap: 1rem;<br>}<br><br>.lap {<br>  display: flex;<br>  justify-content: space-between;<br>  font-size: 1.5rem;<br>  gap: 2rem;<br>}<br><br>.place {<br>  background-color: #333;<br>  background-image:<br>    linear-gradient(<br>      45deg,<br>      #555 25%,<br>      transparent 25%,<br>      transparent 75%,<br>      #555 75%,<br>      #555<br>    ),<br>    linear-gradient(<br>      45deg,<br>      #555 25%,<br>      transparent 25%,<br>      transparent 75%,<br>      #555 75%,<br>      #555<br>    );<br>  background-size: 2rem 2rem;<br>  background-position:<br>    0 0,<br>    1rem 1rem;<br>  border-right: 0.25rem solid pink;<br>  font-size: 2.1rem;<br>  padding: 0.25rem;<br>}<br><br>.time {<br>  font-size: 2.25rem;<br>}</pre><p>There is nothing too complex in general. It is mostly about positioning each part of the element appropriately and adjusting the font. Everything is rather straightforward, so I will only add a few comments about the place part in the middle:</p><ul><li>It has a pink bar on the right side, which is a simple border-right property.</li><li>We make the main background color of slightly darker gray color to make our white text more visible.</li><li>We use the <strong>background-image</strong> property in combination with a <strong>linear-gradient</strong> pattern to create squares for our checkerboard background.</li><li>This creates horizontal and vertical stripes that intersect and form squares (we also change the color for alternate squares).</li><li>Background size takes care of the size of each square (can be adjusted if needed).</li><li>Background position takes care of the checker pattern (can be adjusted if needed).</li></ul><p>Here is our full element:</p><figure><img alt="Racing info element." src="https://cdn-images-1.medium.com/max/172/1*_vec-4EMEthQW-P2gQ-buQ.png" /><figcaption>Racing info element.</figcaption></figure><p>There is one more element to add: button hints in the middle of the screen.</p><h3>Buttons hint element</h3><p>I’m mostly adding this part to show something in the middle, so I won’t go into too much detail about this one. It can be anything else apart from buttons.</p><p>Here is the HTML part:</p><pre>&lt;div class=&quot;buttons&quot;&gt;<br>  &lt;div class=&quot;button-border&quot;&gt;<br>    &lt;div class=&quot;button-fill&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;button-inner-border&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;button&quot;&gt;L 2&lt;/div&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;button-border&quot;&gt;<br>    &lt;div class=&quot;button-fill&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;button-inner-border&quot;&gt;&lt;/div&gt;<br>    &lt;div class=&quot;button&quot;&gt;R 2&lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><p>The reason for using several &lt;div&gt; elements is that the buttons have a border around them that shows progress, so we basically need to create an inner and outer border and fill it partially.</p><p>Here is the CSS part:</p><pre>.buttons {<br>  display: flex;<br>  flex-flow: row nowrap;<br>  /* Increased the gap between the buttons */<br>  gap: 10rem;<br>  justify-content: center;<br>}<br><br>/* Outer ring + progress */<br>.button-border {<br>  background: conic-gradient(white 0deg 70deg, gray 70deg 360deg);<br>  /* Outer border */<br>  border: 0.1rem solid black;<br>  border-radius: 50%;<br>  display: grid;<br>  height: 4rem;<br>  place-items: center;<br>  position: relative;<br>  width: 4rem;<br>}<br><br>/* Background behind the button */<br>.button-fill {<br>  background: gray;<br>  border-radius: 50%;<br>  inset: 0.5rem;<br>  position: absolute;<br>  z-index: 0;<br>}<br><br>/* Inner ring */<br>.button-inner-border {<br>  border: 0.1rem solid black;<br>  border-radius: 50%;<br>  /* Width of the ring */<br>  inset: 0.5rem;<br>  position: absolute;<br>}<br><br>/* Button is centered and brought to the top */<br>.button {<br>  align-items: center;<br>  background-color: white;<br>  border-radius: 40% 40% 0 0;<br>  display: flex;<br>  font-family: Arial, sans-serif;<br>  font-size: 0.75rem;<br>  height: 1.5rem;<br>  justify-content: center;<br>  position: relative;<br>  width: 1.5rem;<br>  z-index: 1;<br>}</pre><p>In our example this is mostly a decorative element (if we want some interactivity or functionality for the button, this has to be tweaked or even fully remade).</p><ul><li>We use a <strong>conic-gradient</strong> to create a partially filled ring around the button.</li><li>There are two nested borders: inner and outer (adjust their colors based on your needs).</li><li>The button itself is placed on top by adjusting the <strong>z-index</strong> property.</li><li>See the additional comments in the CSS code.</li></ul><figure><img alt="Buttons hint element" src="https://cdn-images-1.medium.com/max/302/1*bNGSq6sHRraOIVGVps3UPQ.png" /><figcaption>Buttons hint element</figcaption></figure><p>Everything combined so far:</p><figure><img alt="All UI elements." src="https://cdn-images-1.medium.com/max/1024/1*Hokm6I2qjxhoalJe1jgy1w.png" /><figcaption>All UI elements.</figcaption></figure><h3>Final touches</h3><p>Having our main elements placed and initially styled, we can add some tweaks to everything to make it look more presentable. This part could potentially take forever, so I won’t go into all the details and will just highlight the main points.</p><p>Here is a CodePen where all of the final code can be seen:</p><p><a href="https://codepen.io/Dimterion/pen/01a0849e-de15-72c9-b047-8e461326e4c6">GTA VI UI</a></p><p>Here is the final look:</p><figure><img alt="All UI elements after tweaks." src="https://cdn-images-1.medium.com/max/1024/1*HLEoB8S2M9XWHs0EbSJhPg.png" /><figcaption>All UI elements after tweaks (consider opening it in a new tab to view the image in full size).</figcaption></figure><ul><li>Added a &lt;span&gt; inside the ammo count element to highlight total ammo vs currently loaded.</li><li>Added the text around the buttons in the middle of the screen to make it somewhat like a start menu (or a pause menu maybe).</li><li>Added a gradient background:</li></ul><pre>background-image: linear-gradient(to top, #7028e4 0%, #e5b2ca 100%);</pre><ul><li>Adjusted colors and element borders to get closer to the game screenshots.</li><li>Added slight shades to the map elements to make them stand out.</li><li>Added a blur effect to the start of the pink route line on the map (to get closer to the screenshot):</li></ul><pre>mask-image: linear-gradient(<br>  to bottom,<br>  black 0%,<br>  black calc(100% - 2.5rem),<br>  transparent 100%<br>);</pre><ul><li>Minor spacing, borders, and position tweaks (see the CodePen code for the full version).</li></ul><p>Obviously, this is not a one-to-one replica, but I think we can consider it a basic version that can be tweaked and polished further (at some point I had to stop and move on to something else).</p><p>While making this, we’ve played around with quite a few CSS properties and element positions, checked various options for adding icons and images to the code, and used screenshots as reference for our actual code.</p><p>All of this combined feels like a nice exercise to do from time to time to practice how much HTML and CSS you can use to create a group of elements and arrange them into a single web page.</p><p>Hopefully, this may come in handy.</p><p>Thank you for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ea36d805323" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>