<?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 A. Didar Arslan on Medium]]></title>
        <description><![CDATA[Stories by A. Didar Arslan on Medium]]></description>
        <link>https://medium.com/@akiledidararslan?source=rss-f91214a4724b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PsLEa1lR1niTqe87Wqf1wQ.jpeg</url>
            <title>Stories by A. Didar Arslan on Medium</title>
            <link>https://medium.com/@akiledidararslan?source=rss-f91214a4724b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:45:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akiledidararslan/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[Understanding Spring IoC: Principles and Benefits]]></title>
            <link>https://medium.com/@akiledidararslan/understanding-spring-ioc-principles-and-benefits-86d23c2942c6?source=rss-f91214a4724b------2</link>
            <guid isPermaLink="false">https://medium.com/p/86d23c2942c6</guid>
            <dc:creator><![CDATA[A. Didar Arslan]]></dc:creator>
            <pubDate>Sat, 02 Mar 2024 20:41:15 GMT</pubDate>
            <atom:updated>2024-03-02T20:41:15.445Z</atom:updated>
            <content:encoded><![CDATA[<h3>Spring Framework is a widely used platform for developing Java-based applications. One of the key principles underlying the Spring framework is the Inversion of Control (IoC). This principle fundamentally changes the way objects are instantiated, configured, and managed within an application. In this article, we will explore the concept of Spring IoC, its core components, and the benefits it brings to application development.</h3><p>Understanding Inversion of Control (IoC):</p><p>In traditional programming approaches, the control flow of an application is determined by the application code itself. However, IoC flips this control flow by delegating the responsibility of object creation and management to an external entity, typically referred to as an IoC container. This separation of concerns leads to loosely coupled and highly maintainable code.</p><p>The Role of Spring Container:</p><p>At the heart of Spring IoC lies the Spring Container, which is responsible for managing application components, known as beans. The container creates, configures, and manages these beans based on the metadata provided. This metadata can be specified using XML configuration files, Java annotations, or Java-based configuration classes.</p><p>Dependency Injection (DI) Mechanism:</p><p>One of the most powerful features of Spring IoC is its support for Dependency Injection (DI). DI allows beans to receive their dependencies from an external source, rather than creating them internally. This decouples the components from their dependencies, making the application more flexible, modular, and easier to test.</p><p>Benefits of Spring IoC:</p><p>The use of Spring IoC brings several benefits to application development. Firstly, it promotes cleaner, more readable, and maintainable code by reducing tight coupling between components. Secondly, by delegating the management of beans to the Spring Container, developers can focus more on business logic rather than infrastructure concerns. Additionally, IoC containers handle tasks such as bean lifecycle management and configuration, leading to increased developer productivity and fewer errors.</p><p>In conclusion, Spring IoC is a fundamental concept in the Spring Framework that revolutionizes the way Java applications are developed. By embracing the principles of IoC, developers can build applications that are more modular, flexible, and easier to maintain. The use of Spring IoC, along with its Dependency Injection mechanism, streamlines development processes and contributes to the creation of robust and scalable software solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86d23c2942c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner’s Introduction to Java Value and Reference Types: Understanding the Basics]]></title>
            <link>https://medium.com/@akiledidararslan/beginners-introduction-to-java-value-and-reference-types-understanding-the-basics-adff32500d0e?source=rss-f91214a4724b------2</link>
            <guid isPermaLink="false">https://medium.com/p/adff32500d0e</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[A. Didar Arslan]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 10:22:04 GMT</pubDate>
            <atom:updated>2024-03-01T10:23:12.759Z</atom:updated>
            <content:encoded><![CDATA[<p>Java, being an object-oriented programming language, offers various data types for developers to work with. Among these, value types and reference types play a significant role in understanding how data is stored and manipulated in Java. In this beginner’s guide, we’ll explore the differences between these two types and how they affect Java programming.</p><h3>What are Value Types?</h3><p>Value types, also known as primitive types, represent single values in memory. They directly contain their data and are stored on the stack. In Java, the following are examples of value types:</p><ul><li>int: Represents integer values.</li><li>double: Represents floating-point numbers.</li><li>char: Represents single characters.</li><li>boolean: Represents true or false values.</li></ul><p>When you declare a variable of a value type and assign it a value, the variable holds that value directly. For example:</p><pre>int age = 25;<br>double price = 10.99;<br>char grade = &#39;A&#39;;<br>boolean isActive = true;</pre><p>In the above code, variables age, price, grade, and isActive directly contain their respective values.</p><h3>What are Reference Types?</h3><p>Reference types, unlike value types, do not store their data directly. Instead, they store references (memory addresses) to objects on the heap. In Java, classes, arrays, and interfaces are examples of reference types.</p><p>When you declare a variable of a reference type and instantiate an object using the new keyword, the variable holds a reference to the object’s memory location. For example:</p><pre>String name = new String(&quot;John&quot;);</pre><p>In this code, the variable name holds a reference to the memory location where the &quot;John&quot; string object is stored.</p><h3>Key Differences</h3><ol><li>Memory Allocation: Value types are stored directly on the stack, while reference types are stored on the heap, and variables hold references to their memory locations.</li></ol><p>2. Passing to Methods: When you pass a value type to a method, a copy of the value is passed. However, when you pass a reference type to a method, the reference (memory address) is passed, allowing the method to modify the object’s state.</p><p>3. Default Values: Value types have default values (e.g., 0 for int, null for reference types) if not explicitly initialized. Reference types default to null.</p><p>4. Equality Comparison: Value types are compared based on their actual values, while reference types are compared based on their memory addresses.</p><h3>When to Use Each Type?</h3><ul><li>Value Types: Use value types when working with simple, independent pieces of data like numbers or characters. They are more efficient in terms of memory usage and performance.</li><li>Reference Types: Use reference types when working with complex data structures like objects or arrays that require dynamic memory allocation. They provide flexibility in managing memory and working with shared data.</li></ul><p>Understanding the differences between value and reference types is crucial for effective Java programming. By choosing the appropriate type for your data, you can optimize memory usage and improve the performance of your applications.</p><p>In conclusion, value types store data directly on the stack, while reference types store references to objects on the heap. Each type has its advantages and use cases, and understanding when to use them is essential for writing efficient Java code.</p><p>In this article, I explained the differences between value types and reference types in Java, and how each should be used. Ihope this guide has been helpful for beginners in Java programming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adff32500d0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>