<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Functions on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/functions/</link><description>Recent content in Functions on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/functions/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 2: Swift Language Essentials for iOS</title><link>https://ai-blog.noorshomelab.dev/ios-pro-dev-2026-guide/swift-language-essentials/</link><pubDate>Thu, 26 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ios-pro-dev-2026-guide/swift-language-essentials/</guid><description>&lt;h2 id="introduction-your-first-steps-with-swift"&gt;Introduction: Your First Steps with Swift!&lt;/h2&gt;
&lt;p&gt;Welcome back, future iOS developer! In Chapter 1, you got your development environment set up with Xcode, the powerful IDE (Integrated Development Environment) where all the magic happens. Now, it&amp;rsquo;s time to dive into the heart of iOS development: &lt;strong&gt;Swift&lt;/strong&gt;, Apple&amp;rsquo;s modern, powerful, and intuitive programming language.&lt;/p&gt;
&lt;p&gt;This chapter is your friendly guide to the absolute essentials of Swift. Think of it as learning the alphabet and basic grammar before you write your first novel. We&amp;rsquo;ll cover fundamental concepts that are the building blocks of every iOS app, from defining values to making your code smart enough to make decisions. By the end, you&amp;rsquo;ll not only understand &lt;em&gt;what&lt;/em&gt; these concepts are but also &lt;em&gt;why&lt;/em&gt; they&amp;rsquo;re crucial for building robust and reliable apps. Get ready to start coding and see your ideas come to life!&lt;/p&gt;</description></item><item><title>Chapter 3: Variables, Data Types, and Control Flow in Rust</title><link>https://ai-blog.noorshomelab.dev/rust-mastery-2026/variables-datatypes-control-flow/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-mastery-2026/variables-datatypes-control-flow/</guid><description>&lt;h2 id="introduction-the-building-blocks-of-any-program"&gt;Introduction: The Building Blocks of Any Program&lt;/h2&gt;
&lt;p&gt;Welcome back, fellow Rustaceans! In the previous chapters, we established our Rust development environment using &lt;code&gt;rustup&lt;/code&gt;, explored the &lt;code&gt;cargo&lt;/code&gt; build system, and crafted our inaugural &amp;ldquo;Hello, world!&amp;rdquo; program. Now, it&amp;rsquo;s time to delve deeper into the fundamental concepts that form the backbone of any software application: &lt;strong&gt;variables&lt;/strong&gt;, &lt;strong&gt;data types&lt;/strong&gt;, &lt;strong&gt;functions&lt;/strong&gt;, and &lt;strong&gt;control flow&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Think of variables as named containers that hold pieces of information, while data types define the specific kind of information those containers can store – be it whole numbers, text, or true/false values. Functions are reusable blocks of code that perform specific tasks, allowing you to organize your logic. Finally, control flow dictates the order in which your program executes different code segments, enabling it to make decisions and repeat actions. Mastering these concepts is paramount, as they are the foundational elements upon which all complex and robust applications are constructed.&lt;/p&gt;</description></item><item><title>Chapter 3: Foundations of Programming: Review and Refresh</title><link>https://ai-blog.noorshomelab.dev/dsa-typescript-mastery-2026/foundations-programming-review/</link><pubDate>Mon, 16 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/dsa-typescript-mastery-2026/foundations-programming-review/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome back, future DSA master! In our previous chapters, we successfully set up our development environment with Node.js and TypeScript, getting us ready to write some amazing code. Now, before we dive headfirst into the exciting world of Data Structures and Algorithms, it&amp;rsquo;s crucial to ensure our programming foundations are rock solid.&lt;/p&gt;
&lt;p&gt;This chapter is designed as a focused review and refresh of core programming concepts. Think of it as a quick warm-up for your coding muscles! We&amp;rsquo;ll cover fundamental ideas like variables, data types, operators, control flow, and functions, all through the lens of TypeScript. Even if you&amp;rsquo;re an experienced developer, a quick refresh can highlight nuances or best practices in TypeScript that you might have overlooked. For beginners, this will lay the essential groundwork for everything that follows.&lt;/p&gt;</description></item><item><title>Chapter 4: Functions - Building Reusable Code</title><link>https://ai-blog.noorshomelab.dev/mastering-swift-2026/04-functions-building-reusable-code/</link><pubDate>Thu, 26 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/mastering-swift-2026/04-functions-building-reusable-code/</guid><description>&lt;h2 id="introduction-your-codes-superpowers--functions"&gt;Introduction: Your Code&amp;rsquo;s Superpowers – Functions!&lt;/h2&gt;
&lt;p&gt;Welcome back, aspiring Swift developer! In our previous chapters, we learned about the fundamental building blocks of Swift: variables, constants, and basic data types. We also explored how to control the flow of our programs using conditionals and loops. You&amp;rsquo;ve already started writing code that makes decisions and repeats actions, which is fantastic!&lt;/p&gt;
&lt;p&gt;Now, get ready to unlock one of the most powerful tools in any programmer&amp;rsquo;s toolkit: &lt;strong&gt;functions&lt;/strong&gt;. Imagine you have a complex task you need to perform multiple times, perhaps calculating an average score or formatting a user&amp;rsquo;s name. Would you write the same lines of code over and over again? Absolutely not! That&amp;rsquo;s where functions come in.&lt;/p&gt;</description></item><item><title>Chapter 4: Functions and Classes: Typing Logic and OOP</title><link>https://ai-blog.noorshomelab.dev/ts-mastery-2025/functions-classes-typing-logic-oop/</link><pubDate>Fri, 05 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ts-mastery-2025/functions-classes-typing-logic-oop/</guid><description>&lt;h2 id="chapter-4-functions-and-classes-typing-logic-and-oop"&gt;Chapter 4: Functions and Classes: Typing Logic and OOP&lt;/h2&gt;
&lt;p&gt;Welcome back, future TypeScript master! In the previous chapters, we laid a solid foundation by understanding the core concepts of TypeScript, setting up our environment, and getting acquainted with basic types and variables. You&amp;rsquo;re already thinking in types, which is fantastic!&lt;/p&gt;
&lt;p&gt;Now, it&amp;rsquo;s time to elevate our game. This chapter will dive into two fundamental building blocks of almost any application: &lt;strong&gt;functions&lt;/strong&gt; and &lt;strong&gt;classes&lt;/strong&gt;. We&amp;rsquo;ll explore how TypeScript empowers us to write more robust, predictable, and maintainable logic by adding types to our functions and embracing Object-Oriented Programming (OOP) principles with strongly typed classes. Get ready to bring clarity and safety to your code&amp;rsquo;s actions and structures!&lt;/p&gt;</description></item><item><title>Chapter 4: Functions: Building Modular Code</title><link>https://ai-blog.noorshomelab.dev/c-programming-guide/functions-building-modular-code/</link><pubDate>Mon, 03 Nov 2025 01:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/c-programming-guide/functions-building-modular-code/</guid><description>&lt;h1 id="chapter-4-functions-building-modular-code"&gt;Chapter 4: Functions: Building Modular Code&lt;/h1&gt;
&lt;p&gt;As your programs grow larger and more complex, simply writing all your code sequentially in the &lt;code&gt;main&lt;/code&gt; function becomes unwieldy and hard to manage. This is where &lt;strong&gt;functions&lt;/strong&gt; come in. Functions are self-contained blocks of code that perform a specific task. They are the cornerstone of modular programming, allowing you to break down a large problem into smaller, more manageable sub-problems.&lt;/p&gt;
&lt;p&gt;In this chapter, you will learn:&lt;/p&gt;</description></item><item><title>Core Concepts: Control Flow and Functions</title><link>https://ai-blog.noorshomelab.dev/rust-guide/core-concepts-control-flow-functions/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-guide/core-concepts-control-flow-functions/</guid><description>&lt;h1 id="core-concepts-control-flow-and-functions"&gt;Core Concepts: Control Flow and Functions&lt;/h1&gt;
&lt;p&gt;Every useful program needs to be able to make decisions and repeat actions. This chapter introduces you to Rust&amp;rsquo;s control flow constructs (&lt;code&gt;if&lt;/code&gt; expressions, &lt;code&gt;loop&lt;/code&gt;, &lt;code&gt;while&lt;/code&gt;, &lt;code&gt;for&lt;/code&gt;) and how to write reusable blocks of code using functions.&lt;/p&gt;
&lt;h2 id="control-flow"&gt;Control Flow&lt;/h2&gt;
&lt;p&gt;Control flow determines the order in which statements are executed in a program.&lt;/p&gt;
&lt;h3 id="if-expressions"&gt;&lt;code&gt;if&lt;/code&gt; Expressions&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;if&lt;/code&gt; expression allows you to execute code conditionally. The condition must always be a &lt;code&gt;bool&lt;/code&gt; (boolean) type. Rust does not implicitly convert non-boolean types to booleans.&lt;/p&gt;</description></item><item><title>Chapter 12: Intermediate Topics: Advanced Pointers and Function Pointers</title><link>https://ai-blog.noorshomelab.dev/c-programming-guide/advanced-pointers-and-function-pointers/</link><pubDate>Mon, 03 Nov 2025 01:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/c-programming-guide/advanced-pointers-and-function-pointers/</guid><description>&lt;h1 id="chapter-12-intermediate-topics-advanced-pointers-and-function-pointers"&gt;Chapter 12: Intermediate Topics: Advanced Pointers and Function Pointers&lt;/h1&gt;
&lt;p&gt;In Chapter 5, we introduced the fundamental concepts of pointers. Now, we&amp;rsquo;ll delve into more advanced aspects of pointers that are essential for handling complex data structures, dynamic memory management, and flexible program design.&lt;/p&gt;
&lt;p&gt;This chapter will cover:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Pointers to Pointers:&lt;/strong&gt; When you need to modify a pointer itself from a function.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Arrays of Pointers:&lt;/strong&gt; Storing multiple pointers in an array.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pointers to Arrays:&lt;/strong&gt; A pointer that points to an entire array.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pointers to Structures:&lt;/strong&gt; Advanced usage with dynamically allocated structs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Function Pointers:&lt;/strong&gt; Pointers that point to functions, enabling callback mechanisms and dynamic function calls.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Command-Line Arguments:&lt;/strong&gt; Understanding &lt;code&gt;argc&lt;/code&gt; and &lt;code&gt;argv&lt;/code&gt; as an array of character pointers.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="121-pointers-to-pointers-double-pointers-revisited"&gt;12.1 Pointers to Pointers (Double Pointers) Revisited&lt;/h2&gt;
&lt;p&gt;We briefly touched upon this in Chapter 5. A pointer to a pointer stores the address of another pointer. This is particularly useful when a function needs to modify a pointer variable that was passed to it from the calling function.&lt;/p&gt;</description></item><item><title>Crafting Reusable Code with Functions</title><link>https://ai-blog.noorshomelab.dev/python-mastery-2025/chapter-6-crafting-reusable-code-functions/</link><pubDate>Wed, 03 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/python-mastery-2025/chapter-6-crafting-reusable-code-functions/</guid><description>&lt;h2 id="introduction-the-power-of-reusability"&gt;Introduction: The Power of Reusability&lt;/h2&gt;
&lt;p&gt;Welcome back, coding adventurer! So far, you&amp;rsquo;ve learned how to store information in variables, make decisions with &lt;code&gt;if&lt;/code&gt;/&lt;code&gt;else&lt;/code&gt; statements, and repeat actions with loops. You&amp;rsquo;re already building small, powerful programs! But what if you find yourself writing the same set of instructions over and over again? Or what if your program gets so long that it&amp;rsquo;s hard to follow? That&amp;rsquo;s where functions come to the rescue!&lt;/p&gt;</description></item></channel></rss>