<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Computer Programming Archives - Daptl</title>
	<atom:link href="https://daptl.com/category/computer-programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://daptl.com/category/computer-programming/</link>
	<description>Your success, our code.</description>
	<lastBuildDate>Mon, 02 Oct 2023 14:00:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://i0.wp.com/daptl.com/wp-content/uploads/2023/08/cropped-apple-touch-icon.png?fit=32%2C32&#038;ssl=1</url>
	<title>Computer Programming Archives - Daptl</title>
	<link>https://daptl.com/category/computer-programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">222743655</site>	<item>
		<title>Introducing Python Modules: Organize, Reuse, and Simplify Your Code</title>
		<link>https://daptl.com/technology/ntroducing-python-modules-organize-reuse-and-simplify-your-code/</link>
		
		<dc:creator><![CDATA[Peter Smith]]></dc:creator>
		<pubDate>Mon, 02 Oct 2023 11:19:00 +0000</pubDate>
				<category><![CDATA[Computer Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Modules]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://daptl.com/?p=10596</guid>

					<description><![CDATA[<img width="1024" height="410" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?fit=1024%2C410&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" fetchpriority="high" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=300%2C120&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=1024%2C410&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=768%2C307&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=1536%2C614&amp;ssl=1 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /><p>In our previous discussion, we delved into the fundamental aspects of programming, introducing the core concepts of sequence, selection, and repetition. In the earlier evolution of programming, the coding landscape allowed us to place all our code within a single file, which would execute from top to bottom. This traditional coding paradigm, while functional, can [&#8230;]</p>
<p>The post <a href="https://daptl.com/technology/ntroducing-python-modules-organize-reuse-and-simplify-your-code/">Introducing Python Modules: Organize, Reuse, and Simplify Your Code</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1024" height="410" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?fit=1024%2C410&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=300%2C120&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=1024%2C410&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=768%2C307&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/10/integration-3534210_1920.jpg?resize=1536%2C614&amp;ssl=1 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /><p>In our previous discussion, we delved into the fundamental aspects of programming, introducing the core concepts of sequence, selection, and repetition. In the earlier evolution of programming, the coding landscape allowed us to place all our code within a single file, which would execute from top to bottom. This traditional coding paradigm, while functional, can become unwieldy as projects grow in complexity.</p>
<p>Previously, we mentioned our intention to delve into object-oriented programming (OOP). However, before we embark on that journey, it&#8217;s crucial to delve deeper into some fundamental concepts. These fundamentals will not only provide a solid foundation for our understanding of OOP but will also resurface as key principles in the realm of object-oriented programming.</p>
<p>In today&#8217;s exploration, we will further broaden our horizons. To begin, we&#8217;ll introduce the concept of functions and then venture into the basics of python modules. To facilitate this learning journey, let&#8217;s start by creating a new folder named &#8220;lesson2&#8221; and copying the Dockerfile and docker-compose.yaml file from our previous lesson into it.</p>
<p>Now, let&#8217;s consider an example:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python"># Defining two functions. Any function called by another must be defined before the calling function, hence the order here.
def my_other_function(value):
    print(f"My other function prints the passed value of: {value}")

def my_function():
    print("This function will call my other function")
    my_other_function(7)
</pre>
<p>Save this code in a file named &#8220;functions.py&#8221; and execute it using the command: <code class="EnlighterJSRAW" data-enlighter-language="python">docker-compose run my-environment python functions.py</code>.</p>
<p>Surprisingly, nothing seems to happen! That&#8217;s because our &#8220;functions.py&#8221; file contains functions but lacks a call to &#8220;my_function&#8221; to trigger &#8220;my_other_function.&#8221;</p>
<p>Different programming languages handle the execution of such code in various ways. In Python, specifically for standalone scripts like this, we rely on a somewhat magical attribute called &#8220;name.&#8221; When we run a file directly, &#8220;name&#8221; is set to &#8220;main,&#8221; and we can determine if the file has been executed by comparing these two values.</p>
<p>To resolve this, let&#8217;s edit our file and add the following code at the bottom:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python">if __name__ == "__main__":
    my_function()</pre>
<p>Now, execute this file again using the command: <code class="EnlighterJSRAW" data-enlighter-language="python">docker-compose run my-environment python functions.py</code></p>
<p>You&#8217;ll notice that it successfully runs the &#8220;my_function&#8221; function, effectively calling &#8220;my_other_function&#8221; as well.</p>
<p>Now lets try something a little different.  Create a new file called consumer.py and to it add:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="python"># This line allows us to access the "my_function" method, which we created in the "functions" module.
from functions import my_function

if __name__ == "__main__":
    my_function()</pre>
<p>Then run it with <code class="EnlighterJSRAW" data-enlighter-language="python">docker-compose run my-environment python consumer.py</code><br />
You&#8217;ll notice that it successfully runs the &#8220;my_function&#8221; function from our other file. What we&#8217;ve accomplished here is the use of a module!</p>
<p>In Python, a module is essentially a file that contains Python definitions, statements, functions, classes (we&#8217;ll discuss these later), and variables. Modules can also include executable code. By grouping related code into a module, we make our code more understandable, maintainable, and reusable. This organizational approach also brings a logical structure to our codebase.</p>
<p>As we progress in our programming journey, we&#8217;ll explore modules further and learn how to harness their power for more complex projects. Stay tuned for more insights into code modularity and the world of Python programming!</p></div>
<div>Next time out, Objects. I promise!</p>
<p>The post <a href="https://daptl.com/technology/ntroducing-python-modules-organize-reuse-and-simplify-your-code/">Introducing Python Modules: Organize, Reuse, and Simplify Your Code</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10596</post-id>	</item>
		<item>
		<title>Embarking on Your Programming Journey</title>
		<link>https://daptl.com/technology/embarking-on-your-programming-journey/</link>
		
		<dc:creator><![CDATA[Peter Smith]]></dc:creator>
		<pubDate>Thu, 28 Sep 2023 18:15:00 +0000</pubDate>
				<category><![CDATA[Computer Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Development]]></category>
		<guid isPermaLink="false">https://daptl.com/?p=10579</guid>

					<description><![CDATA[<img width="1024" height="579" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?fit=1024%2C579&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=300%2C170&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=1024%2C579&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=768%2C434&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=1536%2C869&amp;ssl=1 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /><p>Now that you&#8217;ve successfully set up your Python environment using Docker, it&#8217;s time to delve into the fascinating world of computer programming. In this section, we&#8217;ll explore the foundational concepts that form the backbone of programming knowledge. Evolution of Programming Languages The journey of computer programming has been marked by remarkable evolution over the years. [&#8230;]</p>
<p>The post <a href="https://daptl.com/technology/embarking-on-your-programming-journey/">Embarking on Your Programming Journey</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1024" height="579" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?fit=1024%2C579&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=300%2C170&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=1024%2C579&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=768%2C434&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/structured-programming.jpeg?resize=1536%2C869&amp;ssl=1 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><div>
<div>Now that you&#8217;ve successfully set up your Python environment using Docker, it&#8217;s time to delve into the fascinating world of computer programming. In this section, we&#8217;ll explore the foundational concepts that form the backbone of programming knowledge.</div>
<h3>Evolution of Programming Languages</h3>
<div>The journey of computer programming has been marked by remarkable evolution over the years. It all began with machine language, a cryptic world of binary code consisting of 0s and 1s. As the years passed, programming languages evolved, and one significant milestone was Assembler. This lower-level language relied on symbols and concise commands, simplifying low-level computer operations.</div>
<div>Today, we work with modern, human-readable programming languages that have made the process of coding more accessible and efficient.</div>
<h3>Programming Paradigms</h3>
<div>With the emergence of these modern languages came different programming paradigms, each with its unique approach. Two of the most prominent paradigms are Structured Programming and Object-Oriented Programming (OOP). Let&#8217;s take a brief look at each of them:</div>
<h4>Structured Programming:</h4>
<ul>
<li>Structured programming is all about breaking down a program into smaller, manageable functions or procedures.</li>
<li>It follows a linear or top-down approach, ensuring a clear sequence of execution.</li>
<li>This paradigm is renowned for its simplicity and is well-suited for smaller, less complex applications.</li>
</ul>
<h4>Object-Oriented Programming (OOP):</h4>
<ul>
<li>OOP is centered on the concept of &#8220;objects,&#8221; which represent instances of classes or templates encapsulating data and behavior.</li>
<li>It encourages organizing code around objects and their interactions, simplifying the modeling of real-world entities.</li>
<li>OOP languages like Java, C++, and Python facilitate the creation of reusable and modular code through classes and objects.</li>
<li>It excels in handling complex applications, allowing the modeling of real-world entities and their relationships effectively.</li>
</ul>
<h3>Common Programming Constructs</h3>
<div>Both structured programming and OOP share fundamental programming constructs that are essential to your programming journey. These include:</div>
<div></div>
<div><strong>Sequence</strong>: The concept of sequence is straightforward – each line of code follows the next, executing in a predictable order. In your &#8220;lesson1&#8221; folder, create a &#8220;sequence.py&#8221; file to explore this concept further, running it with the command <code class="EnlighterJSRAW" data-enlighter-language="bash">docker-compose run my-environment python sequence.py</code> either from the command line, or your VS Code terminal.</div>
</div>
<div>
<pre class="EnlighterJSRAW" data-enlighter-language="python"># In Python, text preceded by a # becomes a comment. Comments are used for documentation and are ignored during code execution.
a = 1  # Comments can also appear after a line of code. Here, "a" is a variable with a value of 1.
b = 2
print("a = " + str(a))  # Text can be built up in Python using the + symbol; this is known as concatenation.
print("b = " + str(b))
c = a + b
print("a + b = " + str(c))
# It's important to note that text is considered a string, while numbers are of various types (e.g., integers).
# Mixing data types can yield unexpected results. For instance, 1 + 2 = 3, but "1" + "2" = "12."
# To concatenate different data types using the + sign in Python, we typically use the str() function to convert integers to strings</pre>
</div>
<div></div>
<div><strong>Repetition</strong>: Repetition, often referred to as looping, is a fundamental concept that enables the execution of a specific block of code multiple times. In this section, we&#8217;ll focus on the &#8220;While&#8221; Loop, but rest assured, we&#8217;ll delve into other looping constructs in subsequent lessons. Create a &#8220;repetition.py&#8221; file to experiment with this concept, running it with the command <code class="EnlighterJSRAW" data-enlighter-language="bash">docker-compose run my-environment python repetition.py</code> either from the command line, or your VS Code terminal.</div>
<pre class="EnlighterJSRAW" data-enlighter-language="python"># Demonstrating the application of a while loop to count from 0 to 19
# It is important to emphasize that in programming languages, delineating the boundaries of code blocks is imperative.
# In Python, we signify the commencement of a block by concluding the preceding line with a colon (:) and then aligning all the code within the block with a four-space indentation.
count = 0
while count &lt; 20:
    print(count)
    count += 1  # Incrementing the count by 1 during each iteration. This is equivalent to count = count + 1.</pre>
<div></div>
<div><strong>Selection</strong>: Selection involves decision-making and executing specific code blocks based on particular conditions. It adds flexibility and responsiveness to your code&#8217;s behavior. Create a &#8220;selection.py&#8221; file to practice this concept, running it with the command <code class="EnlighterJSRAW" data-enlighter-language="bash">docker-compose run my-environment python selection.py</code> either from the command line, or your VS Code terminal.</div>
<div>
<pre class="EnlighterJSRAW" data-enlighter-language="python"># Demonstrating the application of an "if" statement to determine if a number is even or odd
# In programming, "if" statements are employed to evaluate conditions and execute specific code blocks based on the outcome.
# In most languages, the % operator, known as modulus, returns the remainder of a division operation.

number = 7  # You can modify this number to observe different results
if number % 2 == 0:  # Note the use of ==; it's used for value comparison, while a single = is for assignment.
    print(f"{number} is even.")  # In Python, f-strings provide an elegant way for string concatenation and handle datatype conversion automatically when possible.
else:
    print(f"{number} is odd.")</pre>
</div>
<div>
<h3>Congratulations</h3>
<div>Congratulations on embarking on this programming journey! You&#8217;ve already explored foundational concepts like sequence, selection, and repetition, and gained valuable insights into topics such as variables, data types, code blocks, and concatenation.</div>
<div>Now, it&#8217;s time for a well-deserved break to recharge. When you&#8217;re ready, join us again as we delve into the intriguing world of objects in programming. Remember, you can work through these steps at your own pace, and if you have any questions or encounter challenges, we&#8217;re here to help.</div>
</div>
<p>The post <a href="https://daptl.com/technology/embarking-on-your-programming-journey/">Embarking on Your Programming Journey</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10579</post-id>	</item>
		<item>
		<title>Preparing Your Development Environment: A Step-by-Step Guide</title>
		<link>https://daptl.com/technology/preparing-your-development-environment-a-step-by-step-guide/</link>
		
		<dc:creator><![CDATA[Peter Smith]]></dc:creator>
		<pubDate>Mon, 25 Sep 2023 17:13:48 +0000</pubDate>
				<category><![CDATA[Computer Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Development]]></category>
		<guid isPermaLink="false">https://daptl.com/?p=10551</guid>

					<description><![CDATA[<img width="1024" height="563" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?fit=1024%2C563&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=300%2C165&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=1024%2C563&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=768%2C422&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=1536%2C844&amp;ssl=1 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>Before you dive into the world of programming, it&#8217;s essential to set up a development environment that allows you to write and run your code effectively. In this section, we&#8217;ll guide you through the initial steps, starting with the crucial task of building a Docker container. Don&#8217;t worry; it&#8217;s a significant step that will pave [&#8230;]</p>
<p>The post <a href="https://daptl.com/technology/preparing-your-development-environment-a-step-by-step-guide/">Preparing Your Development Environment: A Step-by-Step Guide</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1024" height="563" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?fit=1024%2C563&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=300%2C165&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=1024%2C563&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=768%2C422&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/programming-1873854_1920.png?resize=1536%2C844&amp;ssl=1 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>Before you dive into the world of programming, it&#8217;s essential to set up a development environment that allows you to write and run your code effectively. In this section, we&#8217;ll guide you through the initial steps, starting with the crucial task of building a Docker container. Don&#8217;t worry; it&#8217;s a significant step that will pave the way for your programming journey. Plus, remember that assistance is just a message away if you encounter any challenges.<br />
&nbsp;</p>
<h3>Creating a Dedicated Workspace</h3>
<div>To make your programming experience smoother, consider creating a dedicated workspace on your computer. Within this workspace, set up a new directory specifically for our programming lessons. Inside this directory, create a sub-folder and name it &#8220;lesson1.&#8221; This organized structure will help keep your work neat and tidy as you progress through the lessons.</div>
<p>&nbsp;</p>
<h3>Setting Up the Docker Environment</h3>
<div>
<p>We&#8217;ll be using Docker to run our code files, and to make this process more user-friendly, we&#8217;ll employ Docker Compose. Before we jump into the technical details, let&#8217;s outline the necessary steps.</p>
</div>
<div>
<p><strong>1. Dockerfile</strong>: Start by creating a file called &#8220;Dockerfile&#8221; (note the capital &#8220;D&#8221; and no file extension). Add the following content to this file:</p>
</div>
<pre class="EnlighterJSRAW" data-enlighter-language="bash">FROM python:3.11
WORKDIR /app</pre>
<div>
<p>This simple Dockerfile specifies that we want to use Python version 3.11 and sets our working directory to &#8220;/app.&#8221;</p>
</div>
<div><strong>2. docker-compose.yaml</strong>: Next, create another file named &#8220;docker-compose.yaml&#8221; and paste in the following content:</div>
<pre class="EnlighterJSRAW" data-enlighter-language="yaml">version: "3"
services:
  my-environment:
    build: .
    volumes:
      - .:/app
</pre>
<div>This configuration file defines our Docker services, including how our Python environment should be built and how our code should be mapped into the container.</div>
<div></div>
<div>As we progress, we&#8217;ll dive deeper into the structure and significance of Dockerfile and docker-compose files, gradually enhancing your understanding of their functionality and purpose.</div>
<p>&nbsp;</p>
<h3>Building Your Python Container</h3>
<div>Now that you have your Docker environment set up, it&#8217;s time to build your Python container. You can do this in a couple of ways:</div>
<ul>
<li>If you&#8217;re comfortable with the command line, navigate to your &#8220;lesson1&#8221; folder and run the following command: <code class="EnlighterJSRAW" data-enlighter-language="bash">docker-compose build</code>. Ensure that Docker is up and running on your computer.</li>
<li><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-medium wp-image-10555 alignleft" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1-1.png?resize=300%2C93&#038;ssl=1" alt="" width="300" height="93" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1-1.png?resize=300%2C93&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1-1.png?resize=1024%2C318&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1-1.png?resize=768%2C238&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1-1.png?w=1264&amp;ssl=1 1264w" sizes="auto, (max-width: 300px) 100vw, 300px" />Alternatively, if you&#8217;re using Visual Studio Code (VS Code), press Ctrl + ~ to open the integrated terminal, then select the &#8220;terminal&#8221; tab at the bottom of your screen. From there, run the <code class="EnlighterJSRAW" data-enlighter-language="bash">docker-compose build</code> command. This approach may be more convenient for many users.</li>
</ul>
<div>Once the build process is complete, your Python environment will be ready for action. You&#8217;ve just taken a significant step towards becoming a proficient programmer. Now, let&#8217;s move on to the exciting world of programming concepts and code examples in our next article.</div>
<p>The post <a href="https://daptl.com/technology/preparing-your-development-environment-a-step-by-step-guide/">Preparing Your Development Environment: A Step-by-Step Guide</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10551</post-id>	</item>
		<item>
		<title>Preparing for Programming: A Common Platform Approach</title>
		<link>https://daptl.com/technology/preparing-for-programming-a-common-platform-approach/</link>
		
		<dc:creator><![CDATA[Peter Smith]]></dc:creator>
		<pubDate>Thu, 21 Sep 2023 17:47:00 +0000</pubDate>
				<category><![CDATA[Computer Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Development]]></category>
		<guid isPermaLink="false">https://daptl.com/?p=10528</guid>

					<description><![CDATA[<img width="1024" height="768" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?fit=1024%2C768&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?w=2560&amp;ssl=1 2560w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=1024%2C768&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=768%2C576&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=1536%2C1152&amp;ssl=1 1536w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=2048%2C1536&amp;ssl=1 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>Introduction: In the second instalment of our programming series, we delve into the essential steps required before diving into the world of coding. Introducing programming to a diverse audience can be challenging, primarily due to the varying operating systems and versions individuals use. To ensure a consistent starting point for all our readers, we will [&#8230;]</p>
<p>The post <a href="https://daptl.com/technology/preparing-for-programming-a-common-platform-approach/">Preparing for Programming: A Common Platform Approach</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1024" height="768" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?fit=1024%2C768&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?w=2560&amp;ssl=1 2560w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=1024%2C768&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=768%2C576&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=1536%2C1152&amp;ssl=1 1536w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/gabriel-heinzer-EUzk9BIEq6M-unsplash-scaled.jpeg?resize=2048%2C1536&amp;ssl=1 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" />
<h3 class="wp-block-heading">Introduction:</h3>



<div>In the second instalment of our programming series, we delve into the essential steps required before diving into the world of coding. Introducing programming to a diverse audience can be challenging, primarily due to the varying operating systems and versions individuals use. To ensure a consistent starting point for all our readers, we will recommend tools and methods that are widely accessible across different operating systems and versions, thus creating a common platform. In this article, we will focus on setting up the necessary tools and environment, including the popular programming language Python, a code editor, and Docker for containerization.</div>



<h3 class="wp-block-heading"><br>Choosing the Right Programming Language:</h3>



<div>Python stands out as one of the most popular programming languages today, making it an excellent choice for beginners. However, it&#8217;s crucial to recognize that there are multiple releases of Python, each with its own features and compatibility requirements. Furthermore, the installation process and usage of Python can differ significantly between various operating systems. We&#8217;ll address these intricacies shortly.</div>



<h3 class="wp-block-heading"><br>Selecting a Code Editor:</h3>



<div>While you can write code using any text editor, ensuring that readers see the same code as presented in our articles and images is essential for consistency. To achieve this, we recommend using Visual Studio Code (VS Code), a versatile and widely-used code editor. To make it even easier for our readers to replicate our setup, we&#8217;ll provide instructions on configuring VS Code to mirror our settings.</div>
<h4><br />Setting Up Visual Studio Code:</h4>





<ol class="wp-block-list">
<li>Download and install VS Code for your operating system from <a href="https://code.visualstudio.com/download">https://code.visualstudio.com/download</a>.</li>



<li>Launch VS Code.</li>



<li><img data-recalc-dims="1" loading="lazy" decoding="async" class="size-medium wp-image-10531 alignright" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image.png?resize=300%2C56&#038;ssl=1" alt="" width="300" height="56" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image.png?resize=300%2C56&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image.png?resize=768%2C143&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image.png?w=828&amp;ssl=1 828w" sizes="auto, (max-width: 300px) 100vw, 300px" />Use the shortcut Command-Shift-P (on Mac) or Ctrl-Shift-P (Windows or Linux) to open the command palette.</li>



<li>In the search bar, start typing &#8220;Shell&#8221; until you see the command &#8220;Install Code Command in Path.&#8221; This command allows you to launch VS Code by typing &#8216;code&#8217; in your command line or shell.</li>
</ol>



<h4 class="wp-block-heading">Configuring VS Code for Consistency:<a href="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?ssl=1"><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignleft wp-image-10533" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?resize=250%2C255&#038;ssl=1" alt="" width="250" height="255" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?resize=294%2C300&amp;ssl=1 294w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?resize=768%2C785&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?resize=70%2C70&amp;ssl=1 70w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-1.png?w=1002&amp;ssl=1 1002w" sizes="auto, (max-width: 250px) 100vw, 250px" /></a></h4>



<ol class="wp-block-list">
<li>Download the provided file (see below) and remember its location.</li>



<li>In VS Code, go to the File menu and select Share &gt; Import Profile.</li>



<li>Choose the downloaded file. This action will set up your VS Code with the same settings and extensions as our setup (once the extensions are fully installed).</li>
</ol>



<h3 class="wp-block-heading">&nbsp;</h3>



<div class="wp-block-file"><a id="wp-block-file--media-8de3e12a-e09e-42b4-b7f0-709f49c52b40" href="https://daptl.com/wp-content/uploads/2023/09/vscode-python-profile.code-profile"><mark style="background-color: rgba(0, 0, 0, 0);" class="has-inline-color has-primary-color"><strong><em>vscode-python-profile</em></strong></mark></a><a href="https://daptl.com/wp-content/uploads/2023/09/vscode-python-profile.code-profile" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-8de3e12a-e09e-42b4-b7f0-709f49c52b40">Download</a></div>







<h3 class="wp-block-heading"><br>Embracing Docker for Python:</h3>



<div>In our pursuit of creating a common platform for all readers, we introduce Docker, a powerful tool for managing containers. Containers are lightweight, standalone environments that contain all the necessary tools and files to run specific applications. In our case, we&#8217;ll use Docker to facilitate Python development, ensuring compatibility across various operating systems.</div>



<h3 class="wp-block-heading"><br>Understanding Docker:</h3>



<div>Docker is a container management tool that simplifies the process of creating, deploying, and running containers. Containers, in essence, are streamlined versions of Linux operating systems, containing only the essential components required to run an application, such as Python.</div>



<h3 class="wp-block-heading"><br>Setting Up Docker:</h3>



<ol class="wp-block-list">
<li>Visit <a href="https://docs.docker.com/get-docker/">https://docs.docker.com/get-docker/</a> and download Docker Desktop for your operating system.</li>



<li>Install Docker Desktop.</li>



<li>Start Docker Desktop (this may take a moment).</li>



<li>Test your Docker installation by running the command <code class="EnlighterJSRAW" data-enlighter-language="bash">docker run hello-world</code> in your command line or shell. You&#8217;ll see progress indicators as the &#8220;image&#8221; is downloaded. If successful, you&#8217;ll receive a confirmation message.</li>
</ol>


<div class="wp-block-image">
<figure class="aligncenter"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="387" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-2.png?resize=1024%2C387&#038;ssl=1" alt="" class="wp-image-10536" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-2.png?resize=1024%2C387&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-2.png?resize=300%2C113&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-2.png?resize=768%2C290&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/image-2.png?w=1224&amp;ssl=1 1224w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></figure>
</div>


<h3 class="wp-block-heading"><br>Conclusion:</h3>



<div>Congratulations! With Visual Studio Code configured and Docker set up, we are now prepared to embark on our programming journey. In the next installment, we will dive into writing code and explore the fundamentals of programming, including sequence, selection, and repetition. Stay tuned for an exciting and educational coding adventure!</div>



<div> </div>



<div>Please feel free to reach out to me on twitter if you need assistance with anything in this article!</div>
<p>The post <a href="https://daptl.com/technology/preparing-for-programming-a-common-platform-approach/">Preparing for Programming: A Common Platform Approach</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10528</post-id>	</item>
		<item>
		<title>Demystifying Computer Programming: An Introduction for Beginners</title>
		<link>https://daptl.com/technology/demystifying-computer-programming-an-introduction-for-beginners/</link>
		
		<dc:creator><![CDATA[Peter Smith]]></dc:creator>
		<pubDate>Mon, 18 Sep 2023 17:05:00 +0000</pubDate>
				<category><![CDATA[Computer Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software Development]]></category>
		<guid isPermaLink="false">https://daptl.com/?p=10517</guid>

					<description><![CDATA[<img width="1024" height="683" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?fit=1024%2C683&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=300%2C200&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=1024%2C683&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=768%2C512&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=1536%2C1024&amp;ssl=1 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>Welcome to the inaugural edition of our series dedicated to the fascinating world of computer programming. In this journey, we&#8217;ll take a friendly and accessible approach to unravel the secrets of coding, algorithms, and software development. Today, let&#8217;s kick things off by tackling a fundamental question: What is computer programming, really? If we consult the [&#8230;]</p>
<p>The post <a href="https://daptl.com/technology/demystifying-computer-programming-an-introduction-for-beginners/">Demystifying Computer Programming: An Introduction for Beginners</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1024" height="683" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?fit=1024%2C683&amp;ssl=1" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin-bottom: 10px; clear: both; max-width: 100%;" decoding="async" loading="lazy" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?w=1920&amp;ssl=1 1920w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=300%2C200&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=1024%2C683&amp;ssl=1 1024w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=768%2C512&amp;ssl=1 768w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/source-4280758_1920.jpeg?resize=1536%2C1024&amp;ssl=1 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><p>Welcome to the inaugural edition of our series dedicated to the fascinating world of computer programming. In this journey, we&#8217;ll take a friendly and accessible approach to unravel the secrets of coding, algorithms, and software development. Today, let&#8217;s kick things off by tackling a fundamental question: What is computer programming, really?</p>
<p>If we consult the ever-reliable <a href="https://en.wikipedia.org/wiki/Computer_programming">Wikipedia</a>, it defines computer programming as &#8220;the process of performing specific computations (or, in simpler terms, achieving certain computing goals) by crafting and constructing functional computer programs. This process encompasses various tasks such as problem analysis, algorithm creation, assessing the precision and resource utilization of these algorithms, and finally, putting them into action (commonly known as coding) within a specific programming language.&#8221; Now, that may seem intimidating, even for seasoned software developers like myself.</p>
<p><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignleft wp-image-10520 size-medium" src="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/problem-4129493_640.jpeg?resize=300%2C225&#038;ssl=1" alt="" width="300" height="225" srcset="https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/problem-4129493_640.jpeg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/daptl.com/wp-content/uploads/2023/09/problem-4129493_640.jpeg?w=640&amp;ssl=1 640w" sizes="auto, (max-width: 300px) 100vw, 300px" />However, I&#8217;d like to share a different viewpoint, one that I hold close as a programmer. At its core, programming is all about solving problems. These problems can be vast and intricate or relatively modest in scope, but they all have one thing in common – they&#8217;re waiting for a solution. Just like any other type of problem-solving, the initial step often involves understanding the problem itself. This may necessitate breaking it down into more manageable components, each with its unique set of challenges.</p>
<p>A common misconception is that programming is all about math and logic. While there&#8217;s some truth to this idea, it&#8217;s not always the central focus, especially if your programming tasks don&#8217;t involve complex mathematical or scientific calculations. In reality, everyday programming often revolves around the concept of transformation.</p>
<p>Consider this: We take data from different sources and reshape it to meet our specific needs. We gather user input to create something as straightforward as a movie ticket. We convert calendar events into smartphone notifications. All of these tasks involve transformation and are at the core of what programmers do.</p>
<p>One of the myths that discourage people from exploring programming as a career is the belief that it demands advanced mathematical skills. However, from my experience, this notion doesn&#8217;t hold true for everyone. In a previous role, I worked at an institution focused on cultivating IT professionals. While I don&#8217;t have concrete statistics from that period, I distinctly remember an intriguing trend: Individuals with a strong musical background often excelled in programming.</p>
<p>Music, when you break it down, indeed has mathematical foundations. But we don&#8217;t typically perceive it that way, nor do we approach it purely as a mathematical endeavor. Not everyone who&#8217;s adept at mathematics is inherently musical, and vice versa. Personally, I have a decent grasp of math, but my musical talents are quite limited.</p>
<p>It&#8217;s crucial to recognize that a career in programming, like any other profession, isn&#8217;t for everyone. Each field has its unique demands and challenges. Nevertheless, programming is more accessible than you might think, and it&#8217;s open to a broader audience, including you.</p>
<p>In this series, our goal is to collaboratively create a small application that serves as a practical tool for understanding various programming concepts. Together, we&#8217;ll venture into this captivating realm, and I hope you&#8217;ll discover enjoyment in the process.</p>
<p>The post <a href="https://daptl.com/technology/demystifying-computer-programming-an-introduction-for-beginners/">Demystifying Computer Programming: An Introduction for Beginners</a> appeared first on <a href="https://daptl.com">Daptl</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">10517</post-id>	</item>
	</channel>
</rss>
