<?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 Onur Cem Işık on Medium]]></title>
        <description><![CDATA[Stories by Onur Cem Işık on Medium]]></description>
        <link>https://medium.com/@onurcem.isik?source=rss-a9a74a659133------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FVggNi2XpGzE3lfFX5swdg.jpeg</url>
            <title>Stories by Onur Cem Işık on Medium</title>
            <link>https://medium.com/@onurcem.isik?source=rss-a9a74a659133------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:49:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@onurcem.isik/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[SQL Loops]]></title>
            <link>https://medium.com/@onurcem.isik/sql-loops-b52cb95df2d4?source=rss-a9a74a659133------2</link>
            <guid isPermaLink="false">https://medium.com/p/b52cb95df2d4</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[loop]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Onur Cem Işık]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 21:36:11 GMT</pubDate>
            <atom:updated>2023-09-11T21:36:11.559Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mastering SQL Loops: A Practical Guide with Examples</h3><p><strong>Introduction</strong></p><p>In the world of databases and structured query languages (SQL), there comes a time when you need to perform repetitive tasks or iterate over a set of records. This is where SQL loops come into play, allowing you to efficiently handle such scenarios. In this article, we’ll explore the use of FOR loops in SQL, accompanied by practical examples that demonstrate their power and versatility.</p><p><strong>Understanding SQL Loops</strong></p><p>SQL loops, specifically FOR loops, provide a means to execute a block of code repeatedly until a specified condition is met. These loops are commonly used in PL/SQL or other procedural languages within database systems. The primary advantage of SQL loops is their ability to automate tasks that involve iteration, making them essential tools for database developers and administrators.</p><p><strong>Simple FOR Loop Example (While)</strong></p><p>Let’s start with a straightforward example. Imagine you have an Employee table with employee data, including salaries. You want to increase each employee&#39;s salary by 10%. Here&#39;s how you can achieve this using a SQL FOR loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UISJkCIEVUDjV5DrlFIYgA.png" /></figure><p>In this example, we declare variables, initialize them, and use a WHILE loop to iterate through the employees. Inside the loop, we retrieve each employee’s salary, perform the required operation (increasing it by 10%), and update the table accordingly.</p><p><strong>FOR Loop with Cursors</strong></p><p>For more advanced iterations, you can combine FOR loops with cursors. Cursors are database objects that allow you to work with result sets one row at a time. Let’s revisit our previous example and use a cursor within a FOR loop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oy2xSogsAHX7gm1tjPo7_w.png" /></figure><p>In this example, we declare a cursor named EmployeeCursor to fetch rows from the Employee table. We then use a FOR loop to iterate through the cursor&#39;s result set, updating each employee&#39;s salary as before. This approach provides more control and flexibility when dealing with complex queries and result sets.</p><p><strong>FOR Loop Use Cases</strong></p><p>SQL FOR loops find application in various scenarios. They are particularly useful for tasks such as data validation, data transformation, and batch processing. Let’s explore some common use cases:</p><ol><li>Data Validation: Ensure data quality by iteratively checking and validating records.</li><li>Data Transformation: Modify data based on specific business rules or requirements.</li><li>Batch Processing: Execute tasks on a large number of records efficiently.</li></ol><p>Each of these use cases can benefit from the structured, repetitive nature of SQL loops.</p><p><strong>Best Practices and Tips</strong></p><p>While SQL loops are powerful tools, it’s essential to use them judiciously. Here are some best practices and tips:</p><ul><li>Optimization: Ensure your loop operations are as efficient as possible, especially when dealing with large datasets.</li><li>Error Handling: Implement robust error handling to gracefully handle unexpected situations.</li><li>Alternatives: Consider other SQL techniques like set-based operations when they are more suitable for your task.</li></ul><p><strong>Conclusion</strong></p><p>SQL loops, specifically FOR loops, are indispensable for automating repetitive tasks and iterating over records in a database. In this article, we explored their fundamentals and demonstrated their usage through practical examples. Whether you’re a database developer or administrator, mastering SQL loops can significantly enhance your ability to handle complex data manipulation tasks efficiently.</p><p>Now, armed with this knowledge, it’s time to experiment and incorporate SQL loops into your SQL toolkit. They are versatile tools that can make your database-related tasks more manageable and maintainable.</p><p><strong>References</strong></p><ul><li><a href="https://docs.microsoft.com/en-us/sql/">Microsoft SQL Server Documentation</a></li><li><a href="https://docs.oracle.com/en/database/">Oracle Database Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b52cb95df2d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to MVVM Architecture]]></title>
            <link>https://medium.com/@onurcem.isik/introduction-to-mvvm-architecture-5c5558c3679?source=rss-a9a74a659133------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c5558c3679</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mvvm-architecture]]></category>
            <dc:creator><![CDATA[Onur Cem Işık]]></dc:creator>
            <pubDate>Fri, 30 Jun 2023 10:53:44 GMT</pubDate>
            <atom:updated>2023-06-30T10:53:44.523Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong><br>In the world of software development, architectural patterns play a vital role in creating robust and maintainable applications. One such pattern that has gained significant popularity in recent years is MVVM, which stands for Model-View-ViewModel. MVVM provides a structured approach to separate concerns and enhance the overall development experience. In this article, we will delve into the core concepts of MVVM and explore how it revolutionizes modern application development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnbCftyb3hB6BiAEqpN7FA.png" /></figure><p><strong>1. Understanding the MVVM Architecture:</strong><br>The MVVM architecture divides an application into three distinct layers: the Model, the View, and the ViewModel. The Model represents the data and business logic, the View handles the visual presentation to the user, and the ViewModel acts as the intermediary between the Model and the View. This separation of concerns promotes code reusability, testability, and maintainability.</p><p><strong>2. The Model:</strong><br>The Model encapsulates the data and business logic of an application. It represents the underlying data sources, such as databases or web services, and performs operations such as data retrieval, manipulation, and validation. By keeping the Model separate, we ensure that our application’s data layer remains decoupled from the user interface, promoting flexibility and extensibility.</p><p><strong>3. The View:</strong><br>The View is responsible for displaying the user interface to the end user. It receives input from the user and presents the data provided by the ViewModel. In the context of MVVM, the View should be kept as lightweight as possible, with minimal logic. This approach allows for easier maintenance and enables designers and developers to work simultaneously on different aspects of the application.</p><p><strong>4. The ViewModel:</strong><br>The ViewModel acts as the bridge between the Model and the View. It provides data and behavior to the View, allowing it to bind directly to the ViewModel properties and commands. The ViewModel abstracts the complexities of the Model and exposes a simplified interface to the View. By leveraging data binding and commands, the ViewModel enables a reactive and event-driven development approach.</p><p><strong>5. Data Binding and Commands:</strong><br>One of the key strengths of MVVM lies in its robust data binding capabilities. Data binding establishes a connection between the ViewModel and the View, ensuring that changes in one are automatically reflected in the other. This eliminates the need for manual synchronization and simplifies the development process. Similarly, commands enable the ViewModel to expose actions that can be invoked directly from the View, promoting a seamless user experience.</p><p><strong>6. Benefits of MVVM:</strong><br>MVVM offers several benefits for modern application development. Firstly, it enhances code maintainability by enforcing a clear separation of concerns. Developers can focus on their specific areas without stepping on each other’s toes. Secondly, MVVM promotes code reusability, as the ViewModel can be easily shared across multiple views. Thirdly, MVVM facilitates automated testing, as the business logic resides in the ViewModel, which can be tested independently of the View.</p><p><strong>Conclusion:</strong><br>MVVM has emerged as a powerful architectural pattern for developing modern applications. By dividing an application into distinct layers and leveraging data binding and commands, MVVM promotes code maintainability, reusability, and testability. Embracing MVVM enables developers to create robust and user-friendly applications that can easily adapt to evolving requirements. So, whether you are starting a new project or refactoring an existing one, consider adopting MVVM and witness the transformative power it brings to your development workflow.</p><p>Remember, adopting MVVM requires a mindset shift and familiarity with the underlying concepts. As you dive deeper into MVVM, explore various frameworks and libraries available for your chosen programming language to leverage the full potential of this architecture. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c5558c3679" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>