<?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 Ömer Abay on Medium]]></title>
        <description><![CDATA[Stories by Ömer Abay on Medium]]></description>
        <link>https://medium.com/@omerabay1?source=rss-c4786676d9ff------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VyQ4_WDc9XHRMqcyMVae6g.jpeg</url>
            <title>Stories by Ömer Abay on Medium</title>
            <link>https://medium.com/@omerabay1?source=rss-c4786676d9ff------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:06:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@omerabay1/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[HOW TO DECIDE THE ARCHITECTURE OF SOFTWARE]]></title>
            <link>https://omerabay1.medium.com/how-to-decide-the-architecture-of-software-b531efa6a980?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/b531efa6a980</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 13:14:16 GMT</pubDate>
            <atom:updated>2024-10-11T13:14:16.825Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You guys welcome to our new article. Today’s subject is software architectures. Most common mistakes of the software development is using the most popular architecture in our software even if it’s not suitable for our software. If you get a cup of tea and left a clap for this article, let me explain how to decide best architecture of the software you developed. Here we go.</blockquote><p>The most difficult part of software development is deciding on the requirements before development. These requirements can be software architecture, technologies to be used, customer needs or financial costs. In today’s article, we will look for the answer to the question of what the software architecture should be, which I think is the most difficult part, and we will examine which problems some architectures solve. First of all, let’s examine which conditions we should consider when determining the software architecture.</p><p><strong>1 — Project Complexity :</strong> The most important point to be decided as a developer and analysis team before starting the project is the complexity of the project. According to this decision, monolithic approaches may be sufficient for small-scale projects, while SOA (Service Oriented Architecture) or Microservice may be preferred for large-scale projects.</p><p><strong>2 —</strong> <strong>Team structure and size :</strong> Team structure and size are of great importance in software development stages. When making architectural decisions, it is necessary to evaluate whether the team will be able to meet the workload of the architecture to be developed. Because in some architectures, the insufficient number of the developer team may cause us to have difficulties in managing the complexity offered by that architecture, for example, managing an architecture in microservice structure is more complex and difficult than managing a monolithic application.</p><p><strong>3 — Scalability Requirements:</strong> The point we want to explain in this title is, what is the transaction expectation of our application? It is important to discuss and determine this. Because if the transaction expectation of our application is high, it is important that the application can be scaled more easily horizontally or vertically in the future. Otherwise, if the necessary scaling cannot be done under intense transaction, the application may lose its function.</p><p><strong>4 — Technology Diversity :</strong> If the technologies we will use in our application are predetermined and many technologies will be used, for example, if the application needs to be developed using more than one programming language (Java, C#, Go, Python etc.), it may be necessary to prefer microservices. Otherwise, monolithic architectures may be preferred.</p><p><strong>5 — Operational Complexity:</strong> If your team is not at a level to respond to operational complexity, it may be right to choose a more manageable architecture. What is operational complexity? To explain with examples, deployment, monitoring, logging, debugging, scalability, version management, data consistency, backing, devops processes. If you don’t have a skilled team for operational processes such as these, you may prefer monolithic architectures.</p><p><strong>6 — Business Domain Separation :</strong> If your business domains are clearly separated from each other in the application you are developing, you can choose microservice, but if they work very tightly with each other, you can choose monolithic architectures.</p><p><strong>7 — Performance Requirements :</strong> If low latency is very important in our application, monolithic applications may be preferred, while if high efficiency is important, event-driven architechture may be preferred.</p><p><strong>8 — Data Management :</strong> If data consistency is important in our application, monolithic applications may be preferred, while microservice or multi-tenant architectures may be preferred if data isolation is important.</p><p><strong>9 — Budget and Resources:</strong> In fact, this is the most critical point because when we decide on the architecture we want to implement when we consider the first 8 items, if we do not have enough budget and resources, implementing that architecture can create worse results than we expect.</p><p><strong>10 — Growth and Change Expectations :</strong> If we expect rapid growth and changes in our application in the short term, we can choose a microservice or modular monolithic architecture, while if we expect a more stable and predictable growth, we can choose monolithic architectures.</p><p><strong>11 — Experience and Knowledge :</strong> The experience and knowledge capacity of the team in the architecture we want to implement is important. The learning curve and cost should be considered.</p><blockquote>In 11 articles, I tried to explain how we can decide on an architecture, what we should consider as much as I can. Now I would like to explain a few architectures that we often hear in the industry and explain which needs they meet. We can evaluate the 11 items above and decide on one of the architectures we will explain in a moment.</blockquote><p><strong>1 — MICROSERVICES ARCHITECTURE</strong></p><p>Microservice architecture has emerged to overcome some of the limitations and problems of traditional monolithic architectures. The reasons for the emergence of this architecture and the problems it solves can be explained as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*HSAFrullvePn9dhjiRzKUw.png" /><figcaption>Example of arch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*cK6lq0QCPeZbFOv4bkklyQ.png" /><figcaption>Comparison of arch</figcaption></figure><p>Despite these advantages, microservice architecture brings its own challenges and complexities. For example, issues such as inter-service communication, distributed system management and data consistency require special attention. Therefore, the decision to migrate to a microservices architecture should be based on the specific needs of the project, the maturity of the organization and the resources available.</p><p><strong>2 — MONOLITHIC ARCHITECTURE</strong></p><p>Monolithic architecture emerged early in software development and has been the standard approach for many years. The reasons for the emergence of this architecture and the problems it solves can be explained as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7t75_U6WP3hyoF8ZubNIVA.png" /><figcaption>This photo was taken from <a href="https://tech.tamara.co/?source=post_page-----5f00270f384e--------------------------------">Chien’s tech blogs</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*Adr6nIVU7yeRwDggK5NCDg.png" /></figure><p>Monolithic architecture can still be a valid and effective solution, especially for small and medium-sized projects. However, as applications grow larger and more complex, some limitations of this architecture emerge. At this point, more modular and scalable architectures such as microservices may be preferable.<br>However, it is important to remember that each project has its own unique requirements and the choice of architecture should be based on these requirements, the available resources and the maturity of the organization.</p><p><strong>3 — VERTICAL SLICE ARCHITECTURE</strong></p><p>Vertical Slice Architecture is a software architecture approach that has gained popularity in recent years. This architecture organizes the application in vertical slices instead of horizontal layers. Here are the reasons for the emergence of Vertical Slice Architecture and the problems it solves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XoW0im0n1WnztcwRjzA9hw.jpeg" /><figcaption>Example of arch</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*LPsnDXL0-_7dOBC0PMRPgQ.png" /></figure><p>Vertical Slice Architecture offers an approach that meets modern software development needs. This architecture is particularly suitable for projects that adopt agile methodologies with rapidly changing business requirements. However, as with any architectural approach, Vertical Slice Architecture has its challenges. For example, the risk of code duplication and the challenge of maintaining consistency across slices.<br>When choosing the architecture, factors such as the specific needs of the project, the team structure, the complexity of the business domain and the technological maturity of the organization should be considered.</p><p><strong>4 — CLEAN ARCHITECTURE</strong></p><p>Clean Architecture is an architectural approach to the design of software systems proposed by Robert C. Martin (Uncle Bob). It focuses on isolating the inside of the application from the outside world and managing dependencies. Here are the reasons for the emergence of Clean Architecture and the problems it solves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*66isW6uUtN_dd6Y6pqKUHA.png" /><figcaption>This photo was taken from <a href="https://medium.com/swlh?source=post_page-----be3eac94c5d1--------------------------------">The Startup</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*8D7UjlUJFZtZKM4HUgvgRg.png" /></figure><p>Clean Architecture offers an effective approach to achieve the important goals of maintainability, testability and adaptability to change in the design of software systems. This architecture is particularly suitable for projects with complex business logic, long lifecycles and open to change.<br>However, Clean Architecture also has its challenges. For example, it may require more initial planning and code writing, and in some cases can lead to over-engineering. Also, such a layered structure may be unnecessary for small and simple projects.<br>When choosing the architecture, factors such as the complexity of the project, its scale, expected lifespan, team experience and the technological maturity of the organization should be considered. When implemented correctly, Clean Architecture can provide a strong foundation for long-term project success.</p><blockquote>It’s end of the text. I tried to explain “how to decide the architecture of software?” as much as I can. Please let me know if you find any mistake in my article. Thanks for reading until end,</blockquote><blockquote>Have a good day.</blockquote><p><strong>CONTACT</strong></p><p>GitHub : <a href="https://github.com/omer1abay">https://github.com/omer1abay</a><br>Instagram : <a href="https://www.instagram.com/omeerabay/">https://www.instagram.com/omeerabay/</a><br>Linkedin : <a href="https://www.linkedin.com/in/omeerabay/">https://www.linkedin.com/in/omeerabay/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b531efa6a980" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[STEP BY STEP .NET 9]]></title>
            <link>https://omerabay1.medium.com/step-by-step-net-9-a80fbce72260?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80fbce72260</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Sat, 11 May 2024 22:58:01 GMT</pubDate>
            <atom:updated>2024-05-11T22:58:01.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>STEP BY STEP .NET 9</h3><p>Microsoft, which released .Net 8 in November last year, continues its development without a break. Considering that the support of both .Net 6 and .Net 7 will end this year, the release of .Net 9 is not unreasonable at all. Let’s examine the most effective features of .Net 9, of which 2 preview versions have been released so far. But first, it is useful to understand Microsoft’s vision for .Net 9 in order to better understand the improvements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOlFP1A72frkQCMA2an1lQ.png" /><figcaption>The table has taken from microsoft offical webpage</figcaption></figure><h4>VISION OF .NET 9</h4><p>Microsoft advises developers to move to .Net 8.</p><blockquote>Welcome to .NET 9! We’re at the beginning of another annual release cycle, following the successful launch of .NET 8 a few months back. We recommend that developers transition their apps to <a href="https://devblogs.microsoft.com/dotnet/announcing-dotnet-8/">.NET 8</a>. In this post, we’ll share our initial vision for .NET 9, set to be released at .NET Conf 2024 at the end of the year. (This text has taken from microsoft official page ‘<a href="https://devblogs.microsoft.com/dotnet/our-vision-for-dotnet-9/">https://devblogs.microsoft.com/dotnet/our-vision-for-dotnet-9/</a>’)</blockquote><p>The overall goal with .Net 9 is to facilitate cloud deployments using Azure services. In its releases over the last few years, .Net has built strong cloud-native foundations such as runtime performance and application monitoring. It also offers paths to popular production infrastructure and services, such as running on Kubernetes and using managed database and caching services like Redis. All of these capabilities will come together with .NET Aspire, dramatically reducing the cost and complexity of building cloud applications and the distance between development and production. Azure Container Apps will enable .NET 9 applications to easily scale to multiple instances in Kubernetes-based environments. Plans improvements for Visual Studio that support and augment cloud platforms, Native AOT, .NET Aspire and Azure deployment. Visual Studio and Visual Studio Code will include new development and deployment experiences for .NET Aspire. This will include configuring components, debugging AppHost and downstream processes (including hot reload), and full integration with the developer dashboard. Developers will be able to deploy their projects to Azure Container Apps with Visual Studio, Visual Studio Code and Azure Developer CLI (azd). OpenAI has created excitement among developers by offering them the opportunity to transform their applications with AI. Over the past year, Azure Open AI and .NET have been used to build AI solutions, with Microsoft Copilot being the most popular. Microsoft will continue to work for those looking for ways to use their C# skills to build this new class of applications and invest rapidly in our AI platform.</p><h3>WHAT’S NEW IN .NET 9 (BREAKING CHANGES)</h3><blockquote>Let’s take a look at what’s new with .Net 9. Let’s get started. In this section, there will be changes that I think are important.</blockquote><h4>.NET LIBRARIES</h4><p>In this section we will examine the changes in the .Net libraries.</p><p><strong>SERIALIZATION</strong></p><p><strong>Indentation Options</strong> : <a href="https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializeroptions">JsonSerializerOptions</a> includes new properties that let you customize the indentation character and indentation size of written JSON.</p><pre>var options = new JsonSerializerOptions<br>{<br>    WriteIndented = true,<br>    IndentCharacter = &#39;\t&#39;,<br>    IndentSize = 2,<br>};<br><br>string json = JsonSerializer.Serialize(<br>    new { Value = 1 },<br>    options<br>    );<br>Console.WriteLine(json);<br>//{<br>//                &quot;Value&quot;: 1<br>//}</pre><p><strong>Default Web Options</strong> : If you want to serialize with the <a href="https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/configure-options#web-defaults-for-jsonserializeroptions">default options that ASP.NET Core uses</a> for web apps, use the new <a href="https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializeroptions.web#system-text-json-jsonserializeroptions-web">JsonSerializerOptions.Web</a> singleton.</p><pre>string webJson = JsonSerializer.Serialize(<br>    new { SomeValue = 42 },<br>    JsonSerializerOptions.Web // Defaults to camelCase naming policy.<br>    );<br>Console.WriteLine(webJson);<br>// {&quot;someValue&quot;:42}</pre><p><strong>LINQ</strong></p><p>New methods <a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.countby">CountBy</a> and <a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.aggregateby">AggregateBy</a> have been introduced. These methods make it possible to aggregate state by key without needing to allocate intermediate groupings via <a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.groupby">GroupBy</a>.</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.countby">CountBy</a> lets you quickly calculate the frequency of each key. The following example finds the word that occurs most frequently in a text string.</p><pre>string sourceText = &quot;&quot;&quot;<br>    Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>    Sed non risus. Suspendisse lectus tortor, dignissim sit amet, <br>    adipiscing nec, ultricies sed, dolor. Cras elementum ultrices amet diam.<br>&quot;&quot;&quot;;<br><br>// Find the most frequent word in the text.<br>KeyValuePair&lt;string, int&gt; mostFrequentWord = sourceText<br>    .Split(new char[] { &#39; &#39;, &#39;.&#39;, &#39;,&#39; }, StringSplitOptions.RemoveEmptyEntries)<br>    .Select(word =&gt; word.ToLowerInvariant())<br>    .CountBy(word =&gt; word)<br>    .MaxBy(pair =&gt; pair.Value);<br><br>Console.WriteLine(mostFrequentWord.Key); // amet</pre><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.aggregateby">AggregateBy</a> lets you implement more general-purpose workflows. The following example shows how you can calculate scores that are associated with a given key.</p><pre>(string id, int score)[] data =<br>    [<br>        (&quot;0&quot;, 42),<br>        (&quot;1&quot;, 5),<br>        (&quot;2&quot;, 4),<br>        (&quot;1&quot;, 10),<br>        (&quot;0&quot;, 25),<br>    ];<br><br>var aggregatedData =<br>    data.AggregateBy(<br>        keySelector: entry =&gt; entry.id,<br>        seed: 0,<br>        (totalScore, curr) =&gt; totalScore + curr.score<br>        );<br><br>foreach (var item in aggregatedData)<br>{<br>    Console.WriteLine(item);<br>}<br>//(0, 67)<br>//(1, 15)<br>//(2, 4)</pre><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.index#system-linq-enumerable-index-1(system-collections-generic-ienumerable((-0)))">Index&lt;TSource&gt;(IEnumerable&lt;TSource&gt;)</a> makes it possible to quickly extract the implicit index of an enumerable. You can now write code such as the following snippet to automatically index items in a collection.</p><pre>IEnumerable&lt;string&gt; lines2 = File.ReadAllLines(&quot;output.txt&quot;);<br>foreach ((int index, string line) in lines2.Index())<br>{<br>    Console.WriteLine($&quot;Line number: {index + 1}, Line: {line}&quot;);<br>}</pre><p><strong>COLLECTIONS</strong></p><p>The <a href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2">PriorityQueue&lt;TElement,TPriority&gt;</a> collection type in the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic">System.Collections.Generic</a> namespace includes a new <a href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2.remove#system-collections-generic-priorityqueue-2-remove(-0-0@-1@-system-collections-generic-iequalitycomparer((-0)))">Remove(TElement, TElement, TPriority, IEqualityComparer&lt;TElement&gt;)</a> method that you can use to update the priority of an item in the queue.</p><p><strong>PriorityQueue.Remove() method</strong> : .NET 6 introduced the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2">PriorityQueue&lt;TElement,TPriority&gt;</a> collection, which provides a simple and fast array-heap implementation. One issue with array heaps in general is that they <a href="https://github.com/dotnet/runtime/issues/44871">don’t support priority updates</a>, which makes them prohibitive for use in algorithms such as variations of <a href="https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm#Using_a_priority_queue">Dijkstra’s algorithm</a>.</p><p>While it’s not possible to implement efficient 𝑂(log⁡𝑛) priority updates in the existing collection, the new <a href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.priorityqueue-2.remove#system-collections-generic-priorityqueue-2-remove(-0-0@-1@-system-collections-generic-iequalitycomparer((-0)))">PriorityQueue&lt;TElement,TPriority&gt;.Remove(TElement, TElement, TPriority, IEqualityComparer&lt;TElement&gt;)</a> method makes it possible to emulate priority updates (albeit at 𝑂(𝑛) time):</p><pre>public static void UpdatePriority&lt;TElement, TPriority&gt;(<br>    this PriorityQueue&lt;TElement, TPriority&gt; queue,<br>    TElement element,<br>    TPriority priority<br>    )<br>{<br>    // Scan the heap for entries matching the current element.<br>    queue.Remove(element, out _, out _);<br>    // Re-insert the entry with the new priority.<br>    queue.Enqueue(element, priority);<br>}</pre><p>This method unblocks users who want to implement graph algorithms in contexts where asymptotic performance isn’t a blocker. (Such contexts include education and prototyping.) For example, here’s a <a href="https://github.com/dotnet/runtime/blob/16cb41496d595e2568574cfe11c763d5e05136c9/src/libraries/System.Collections/tests/Generic/PriorityQueue/PriorityQueue.Tests.Dijkstra.cs#L46-L76">toy implementation of Dijkstra’s algorithm</a> that uses the new API.</p><p><strong>New TimeSpan.From overloads</strong></p><p>The <a href="https://learn.microsoft.com/en-us/dotnet/api/system.timespan">TimeSpan</a> class offers several From* methods that let you create a TimeSpan object using a double. However, since double is a binary-based floating-point format, <a href="https://github.com/dotnet/runtime/issues/93890">inherent imprecision can lead to errors</a>. For instance, TimeSpan.FromSeconds(101.832) might not precisely represent 101 seconds, 832 milliseconds, but rather approximately 101 seconds, 831.9999999999936335370875895023345947265625 milliseconds. This discrepancy has caused frequent confusion, and it&#39;s also not the most efficient way to represent such data. To address this, .NET 9 adds new overloads that let you create TimeSpan objects from integers. There are new overloads from FromDays, FromHours, FromMinutes, FromSeconds, FromMilliseconds, and FromMicroseconds.</p><p>The following code shows an example of calling the double and one of the new integer overloads.</p><pre>TimeSpan timeSpan1 = TimeSpan.FromSeconds(value: 101.832);<br>Console.WriteLine($&quot;timeSpan1 = {timeSpan1}&quot;);<br>// timeSpan1 = 00:01:41.8319999<br><br>TimeSpan timeSpan2 = TimeSpan.FromSeconds(seconds: 101, milliseconds: 832);<br>Console.WriteLine($&quot;timeSpan2 = {timeSpan2}&quot;);<br>// timeSpan2 = 00:01:41.8320000</pre><h3>SDK</h3><h4>UNIT TESTING</h4><p>This section describes the updates to unit testing in .NET 9: running tests in parallel, and terminal logger test output.</p><p><strong>Run tests in parallel</strong> : In .NET 9, dotnet test is more fully integrated with MSBuild. Because MSBuild supports <a href="https://learn.microsoft.com/en-us/visualstudio/msbuild/building-multiple-projects-in-parallel-with-msbuild">building in parallel</a>, you can run tests for the same project across different target frameworks in parallel. By default, MSBuild limits the number of parallel processes to the number of processors on the computer. You can also set your own limit using the <a href="https://learn.microsoft.com/en-us/visualstudio/msbuild/building-multiple-projects-in-parallel-with-msbuild#-maxcpucount-switch">-maxcpucount</a> switch. If you want to opt out of the parallelism, set the TestTfmsInParallel MSBuild property to false.</p><p><strong>Terminal Logger test display</strong> : Test result reporting for <a href="https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-test">dotnet test</a> is now supported directly in the MSBuild terminal logger. You get more fully featured test reporting both <em>while</em> tests are running (displays the running test name) and <em>after</em> tests are completed (any test errors are rendered in a better way).</p><h4>TERMINAL LOGGER</h4><p>The terminal logger is now <a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/sdk#enabled-by-default">enabled by default</a> and also has <a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/sdk#usability">improved usability</a>.</p><h4>Enabled By Default</h4><p>Starting in .NET 9, the default experience for all .NET CLI commands that use MSBuild is terminal logger, the enhanced logging experience that was released in .NET 8. This new output uses the capabilities of modern terminals to provide functionality like:</p><ul><li>Clickable links</li><li>Duration timers for MSBuild tasks</li><li>Color coding of warning and error messages</li></ul><p>The output is more condensed and usable than the existing MSBuild console logger.</p><p>The new logger attempts to auto-detect if it can be used, but you can also manually control whether terminal logger is used. Specify the --tl:off command-line option to disable terminal logger for a specific command. Or, to disable terminal logger more broadly, set the MSBUILDTERMINALLOGGER environment variable to off.</p><p>The set of commands that uses terminal logger by default is:</p><ul><li>build</li><li>clean</li><li>msbuild</li><li>pack</li><li>publish</li><li>restore</li><li>test</li></ul><h4>Usability</h4><p>The terminal logger now summarizes the total count of failures and warnings at the end of a build. It also shows errors that contain newlines. (For more information about the terminal logger, see <a href="https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-build#options">‘dotnet build’ options</a>, specifically the --tl option.)</p><p>Consider the following project file that emits a warning when the project is built:</p><pre>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;<br><br>  &lt;PropertyGroup&gt;<br>    &lt;TargetFramework&gt;net8.0&lt;/TargetFramework&gt;<br>  &lt;/PropertyGroup&gt;<br><br>  &lt;Target Name=&quot;Error&quot; BeforeTargets=&quot;Build&quot;&gt;<br>    &lt;Warning Code=&quot;ECLIPSE001&quot; Text=&quot;Black Hole Sun, won&#39;t you come<br>  And wash away the rain<br>    Black Hole Sun, won&#39;t you come<br>      won&#39;t you come&quot; /&gt;<br>  &lt;/Target&gt;<br>&lt;/Project&gt;</pre><p>When you run dotnet build -tl on the .NET 8 SDK, the output is as shown following this paragraph. Each line of the multi-line warning is a separate line with a full error message prefix in the output, which is hard to read. Also, the final build summary says that there <em>were</em> warnings, but not <em>how many</em> there were. The missing information can make it hard to determine if a particular build is better or worse than previous builds.</p><pre>$ dotnet build -tl<br>MSBuild version 17.8.5+b5265ef37 for .NET<br>Restore complete (0.5s)<br>  multiline-error-example succeeded with warnings (0.2s) → bin\Debug\net8.0\multiline-error-example.dll<br>    E:\Code\multiline-error-example.csproj(11,5): warning ECLIPSE001: Black Hole Sun, won&#39;t you come<br>E:\Code\multiline-error-example.csproj(11,5): warning ECLIPSE001:   And wash away the rain<br>E:\Code\multiline-error-example.csproj(11,5): warning ECLIPSE001:     Black Hole Sun, won&#39;t you come<br>E:\Code\multiline-error-example.csproj(11,5): warning ECLIPSE001:       won&#39;t you come<br>Build succeeded with warnings in 0.9s</pre><p>When you build the same project using the .NET 9 SDK, the output is as follows:</p><pre>&gt; dotnet build -tl<br>Restore complete (0.4s)<br>You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy<br>  multiline-error-example succeeded with 3 warning(s) (0.2s) → bin\Debug\net8.0\multiline-error-example.dll<br>    E:\Code\multiline-error-example.csproj(11,5): warning ECLIPSE001:<br>      Black Hole Sun, won&#39;t you come<br>        And wash away the rain<br>          Black Hole Sun, won&#39;t you come<br>            won&#39;t you come<br>Build succeeded with 3 warning(s) in 0.8s</pre><p>The message lines of the warning no longer have the repeated project and location information that clutter the display. In addition, the build summary shows how many warnings (and errors, if there are any) were generated during the build.</p><blockquote>There are many nice changes on the .Net 9 side, in this article we have examined the important changes on the .Net Libraries and .Net SDK side. Please specify if you want more.</blockquote><p><strong>CONTACT</strong></p><p>GitHub : <a href="https://github.com/omer1abay">https://github.com/omer1abay</a><br>Instagram : <a href="https://www.instagram.com/omeerabay/">https://www.instagram.com/omeerabay/</a><br>Linkedin : <a href="https://www.linkedin.com/in/omeerabay/">https://www.linkedin.com/in/omeerabay/</a></p><p><strong>Bibliography</strong></p><ul><li><a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview">What&#39;s new in .NET 9</a></li><li><a href="https://devblogs.microsoft.com/dotnet/our-vision-for-dotnet-9/">Our Vision for .NET 9 - .NET Blog</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80fbce72260" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MediatR]]></title>
            <link>https://omerabay1.medium.com/mediatr-795155841b27?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/795155841b27</guid>
            <category><![CDATA[mediatr]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[mediator]]></category>
            <category><![CDATA[cqrs]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Mon, 13 Nov 2023 15:06:55 GMT</pubDate>
            <atom:updated>2023-11-13T15:06:55.159Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Let’s explore the MediatR library with you. What is MediatR? What is Mediator design pattern? What is CQRS? We will examine topics such as.</blockquote><h4>MEDIATOR PATTERN</h4><p>The Mediator design pattern is a behavioral design pattern. The Mediator design pattern is used in situations where there is a lot of communication and dependency between classes to reduce these dependencies. In this design pattern, communication takes place through a single channel and classes know what to communicate for, not how to communicate. This pattern reduces the interdependency of objects and makes the system more organized. The basic idea is that objects use a middleware to communicate with each other. This middleware manages the functions that objects need to do together. Thus, objects work without direct reference to each other.</p><p><strong>EXAMPLE 1 :</strong> It is usually explained through the example of an airplane. Airplanes have to know the current status of other airplanes during takeoff and landing. Communicating directly with other pilots to learn these states would not be a problem if the number of airplanes were 2–3, but it would be difficult if there were too many. Therefore, pilots contact the tower and get approval to know the status of other aircraft. In this example, the tower is our Mediator class and the airplanes are our Colleague class.</p><p><strong>EXAMPLE 2 :</strong> Apart from the well-known airplane example, a good example I saw while doing my research is the Motherboard example. Computer hardware works interdependently with each other, for example, if a CD is inserted into the computer, in order to run the audio or video file on the CD, the hardware needed for sound and the video card are needed. The DVD driver does not communicate directly with the video card or speakers. These processes take place with the motherboard. Motherboard is our Mediator class and Hardware is our Colleague class.</p><h4>CQRS (Command Query Responsibility Segregation)</h4><p>CQRS is a design pattern where applications manage writing and reading through different objects. It is based on the principle of separation of Command and Query responsibilities.</p><p><strong>Command :</strong> It is responsible for writing operations to the database, such as updating and deleting existing data or inserting new data. INSERT, DELETE, UPDATE</p><p><strong>Query : </strong>Used to list and read existing data. It is responsible for reading from the database. SELECT</p><p>CQRS basically provides separation of read and write operations and improves performance. Managing read and write operations through different objects makes the project more modular and allows these operations to remain independent. As the project grows, you can control read and write operations on different databases and in case of a database crash, these two operations are not affected by each other. The user can continue reading data even if an error occurs in the write operation, and vice versa. In addition, complex domain logic can be generated separately for these two operations. It also simplifies the complex object mapping, so that for each operation we can easily present the user with only the information he needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*-6Fn4EB_5V7GnKJsZsn1CQ.png" /><figcaption><a href="http://www.gencayyildiz.com/">www.gencayyildiz.com</a></figcaption></figure><p>In the CQRS design pattern, Queries return a data, Command objects return NoContent, only the Status Code of the operation can be retrieved if needed. Below is a sample CQRS pattern folder structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*FXm644xvY12p_YRSuWjxMw.png" /><figcaption><a href="https://github.com/omer1abay">https://github.com/omer1abay</a></figcaption></figure><p>We know Command and Query objects. Handler contains the classes that will process all Command or Query requests to be made in the application and return results. I will give the details of the examples when I explain the MediatR topic.</p><h4>MediatR</h4><p>MediatR is a library used when developing on the .NET platform. This library is built on the Mediator design pattern and is used for managing and processing messages in software applications.</p><p>MediatR helps to write more maintainable and editable code by making the layers and components of applications independent of each other. MediatR is especially powerful and useful when used with the CQRS (Command Query Responsibility Segregation) pattern. In this way, the separate handling of commands and queries within the application makes the application more scalable and better manageable.</p><p>Let’s make an example of CQRS with MediatR:</p><p>There are two MediatR interfaces we need to know in this section. IRequest and IRequestHandler. IRequest is an interface that will be implemented by the classes that will handle command or query requests. Generically, it asks us to declare which object will be returned in response to this request. IRequestHandler is the interface of the Handler classes that will handle command or query requests. Generically, it requests the request and response classes to be declared and implements the function named ‘Handle’ in the related class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*VJvT0_jlEp57WrEWPbh8dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*kbnuGfmkALrcyJem6HW8sQ.png" /></figure><p>Now let’s create our Command and Queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*2dxMXlJZ0nYhlTY-DgepHg.png" /></figure><p>In this command example, the command related to the creation of a course in a Udemy-like course application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*JTmQsulOKsyyk_fzTbQnFA.png" /></figure><p>In this Query example, the Query that will bring us course orders by user name.</p><p>Let’s define handler:</p><p>Handler class we created for our Create Order Command object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ohSwt9Lrkr6Dv1kT4w7X2Q.png" /></figure><p>The Handler object we created for the Get Order By User Id Query object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0UhAkp83zWfb68TOmX4F6g.png" /></figure><p>We have defined our CQRS objects until this stage. Let’s show how we access them through the Controller with a code example. First, we give our MediatR object to DI Container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*nXcpiGDhkbl_pG8JEA5RhA.png" /></figure><p>In this section:</p><pre>typeof(Microservice.Services.Order.Application.Handlers.CreateOrderCommandHandler).Assembly</pre><p>The above command finds the Assembly object belonging to the namespace we give in the command and allows us to access all IRequest and IRequestHandler objects belonging to that object.</p><p>Now we can use our MediatR object in the Controller:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k5FIVrmBrDEZnFdOENk61Q.png" /></figure><blockquote>Until this part, we have seen the Mediator Design Pattern, CQRS and MediatR library with examples. I had a lot of fun while I was researching. I hope you will enjoy reading it too.</blockquote><p><strong>CONTACT ME</strong></p><p>GitHub : <a href="https://github.com/omer1abay">https://github.com/omer1abay</a><br>Instagram : <a href="https://www.instagram.com/omeerabay/">https://www.instagram.com/omeerabay/</a><br>Linkedin : <a href="https://www.linkedin.com/in/omeerabay/">https://www.linkedin.com/in/omeerabay/</a></p><p><strong>Bibliography</strong></p><p><a href="https://www.gencayyildiz.com/blog/cqrs-pattern-nedir-mediatr-kutuphanesi-ile-nasil-uygulanir/">CQRS Pattern Nedir? MediatR Kütüphanesi İle Nasıl Uygulanır? — Yazılım Mimarileri ve Tasarım Desenleri Üzerine (gencayyildiz.com)</a></p><ul><li><a href="https://github.com/jbogard/MediatR">GitHub - jbogard/MediatR: Simple, unambitious mediator implementation in .NET</a></li><li><a href="https://github.com/omer1abay/Microservice">GitHub - omer1abay/Microservice</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=795155841b27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET 8]]></title>
            <link>https://omerabay1.medium.com/net-8-46e436853dfc?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/46e436853dfc</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Fri, 26 May 2023 20:08:58 GMT</pubDate>
            <atom:updated>2023-05-26T20:08:58.692Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Bildiğimiz üzere .Net yeni sürümü olan .Net 8&#39;in 4 önizlemesini kullanıcılara sundu. Bu yazımızda, Kasım ayında tam olarak piyasaya sürülecek olan .NET 8&#39;in önizleme sürümlerindeki önemli değişiklikleri ve iyileştirmeleri açıklamaya çalışacağız. Bu geliştirmeler : native AOT compilation, container images, core libraries, System.Text.Json, Methods for working with randomness (Rastgele çalışma ile ilgili bazı metotlar), Performance-focused types (Performans odaklı tipler), System.Numerics ve System.Runtime.Intrinsics namespace’lerindeki gelişmeler, Data Validation (Veri Doğrulama öznitelikleri) vb. Birçok yeni özelliği bu yazımızda incelemeye çalışacağız. Tek yazıda anlatmak istesem de bu içeriği iki yazıya bölüp de yenilikleri anlatabilirim çünkü .Net 8 henüz tam haliyle yayınlanmadı yeni gelebilecek özellikleri de göz önünde bulundurarak güzel bir içerik oluşturmaya gayret edeceğim. Keyifli okumalar.</blockquote><p>.NET LIFECYCLE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oL7lR9aK6hve_0jtYDP4ZQ.png" /><figcaption>Lifecycle</figcaption></figure><p>.Net son iki yılda .Net 6 ve .Net 7 sürümlerini tam olarak yayına aldı. Bugün yazımızda da bahsedeceğimiz üzere .Net 8 versiyonu için 3 tane önizleme yayınladı ve Kasım ayında tam anlamıyla yayınlanması bekleniyor. Planlanan yayınlanma tarihlerine göre önümüzdeki sene bugünlerde .Net 9&#39;un önizlemelerini görebiliriz. .Net 9&#39;un planlanan tam yayınlanma tarihinde ise .Net 6 ve .Net 7 artık desteklenmeyecek duruma düşecek. Bu da yeni teknolojilere ayak uydurabilmek için .Net 8&#39;e geçişlerin biraz daha hızlanması gerektiğini gösteren bir haritadır.</p><h3>.NET 8 YENİLİKLER</h3><p>Gelelim bugünün konusu olan .Net 8&#39;in ilk 4 önizlemesindeki yeniliklere. Bu yazıda tüm değişikliklere yer vermeyi düşünmüyorum. Çünkü büyük küçük çok fazla değişiklik mevcut o yüzden sadece bana önemli gelen değişiklikleri ele almayı planlıyorum. Yine de yazımızın sonundaki kaynakça kısmında tüm değişikliklerin olduğu linke ulaşabilirsiniz.</p><h4>Template Engine</h4><p>.Net 8 ile template engine tarafında güvenlikle alakalı bazı düzenlemeler getirildi. Nedir Bunlar?</p><p>1-Varsayılan olarak https içermeyen yani ssl sertifikası içermeyen linkler üzerinden yapılan indirmeler artık engellenecek. Bu sertifikayı içermeyen sitelerden paket indirme yapabilmek için <strong><em>force</em></strong> ifadesi kullanarak gerçekleştirebiliriz.</p><pre>dotnet new install console --add-source &quot;http://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json&quot; --force</pre><p>2-Template Engine üzerinden kurulan paketlerin güvenlik açıkları kontrol edilecek ve güvenlik açığı tespit edilen paketler engellenecektir. Bu paketleri indirebilmek için de yine <em>force</em> ifadesini kullanabiliriz.</p><p>3-Paket sahiplerinin profilleri onaylanacak ve bu sahipler tarafından yayınlanan paketler güvenilir olarak işaretlenecektir.</p><h4>Performance-focused Types</h4><p>.Net 8 ile gelen performans odaklı tiplere göz atalım şimdi.</p><p>1-Sabit koleksiyonlar tanımlamamıza yarayan FrozenDictionary&lt;TKey,TValue&gt; veri tipi, initialize edildiğinde veri ataması yapılan key ve value değerleri daha sonradan yalnızca readonly olan bir veri tipidir. Değerleri sonradan değişmeyecek verilerimiz için performans olarak daha hızlı okuma sağlayacağı için kullanışlı olabilir.</p><p>2-System.Buffers.IndexOfAnyValues&lt;T&gt;, bir koleksiyondaki belirlediğimiz bir değerin geçtiği ilk yeri bulur. Daha önceden bildiğimiz String.IndexOfAny(char[]) metoduna benzemektedir. Bu tipten bir nesne oluşturduğunuzda sonraki aramaları optimize etmek için gerekli tüm veriler o anda oluşur, yani iş önceden yapılır.</p><p>3-System.Text.CompositeFormat türü, derleme zamanında bilinmeyen string ifadelerini optimize etmek için kullanılır(örneğin bir kaynak dosyasından string bir ifade okursak). String ifadeyi parse etmek için ilk kullanımda biraz zaman harcasa da sürekli yapmaktan kurtarır.</p><pre>private static readonly CompositeFormat s_rangeMessage =<br>    CompositeFormat.Parse(LoadRangeMessageResource());<br><br>// ...<br>static string GetMessage(int min, int max) =&gt;<br>    string.Format(CultureInfo.InvariantCulture, s_rangeMessage, min, max);</pre><p>4-<a href="https://learn.microsoft.com/en-us/dotnet/api/system.io.hashing.xxhash3">System.IO.Hashing.XxHash3</a> ve <a href="https://learn.microsoft.com/en-us/dotnet/api/system.io.hashing.xxhash128">System.IO.Hashing.XxHash128</a> tipleri hızlı olan XXH3 ve XXH128 hash algoritmalarını içerir.</p><h4>SERIALIZATION</h4><p>.Net objelerini JSON verilere dönüştürme ve tam tersi işlemler için de önemli geliştirmeler geldi. Bilindiği gibi API kullanımlarının sıklaşması ile JSON veri tipi son dönemlerde XML yapısına göre popülerliğini gittikçe arttırdı. .Net 8 ise csharp objeleri ve JSON nesneler arasındaki dönüşümleri kolaylaştıracak geliştirmeleri ve iyileştirmeleri duyurdu. Mesela JsonNamePolicy -&gt; snake_case ve kebab-case isimlendirme kurallarını içerecek şekilde güncellendi.</p><pre>var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower };<br>JsonSerializer.Serialize(new { PropertyName = &quot;value&quot; }, options); // { &quot;property_name&quot; : &quot;value&quot; }</pre><p>Bu başlık altında belirtebileceğimiz başka bir özellik ise AOT derlemeleri ile ilgili ASP.Net Core ile oluşturulan native uygulamalarda source generator üzerinde performans ve güvenlik geliştirmeleri yapıldı.</p><h4>DATA VALIDATION ATTRIBUTES</h4><p>.Net 8 ile beraber yeni gelen data validation attribute’ları birçok konuda validation için kullandığımız kütüphaneleri geride bırakabilir gibi.</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.requiredattribute.disallowalldefaultvalues#system-componentmodel-dataannotations-requiredattribute-disallowalldefaultvalues">RequiredAttribute.DisallowAllDefaultValues</a> -&gt; Verilerin default değerlerine eşit olup olmadığını kontrol eder ve default değerlerine eşit olmaması için zorlar.</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.rangeattribute.minimumisexclusive#system-componentmodel-dataannotations-rangeattribute-minimumisexclusive">RangeAttribute.MinimumIsExclusive</a> &amp; <a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.rangeattribute.maximumisexclusive#system-componentmodel-dataannotations-rangeattribute-maximumisexclusive">RangeAttribute.MaximumIsExclusive</a> -&gt; girilen değerin belirtilen sınırlar içerisinde olup olmadığını kontrol eder.</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.lengthattribute">System.ComponentModel.DataAnnotations.LengthAttribute</a> -&gt; string ifadeler ve koleksiyonlar için alt sınır ve üst sınır belirler. Bu belirtilen değerler string ifadeler için karakter sayısını, koleksiyonlar için eleman sayısını gösterir. [Length(10, 20)]</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.base64stringattribute">System.ComponentModel.DataAnnotations.Base64StringAttribute</a> -&gt; string ifadenin Base64 olup olmadığını doğrular.</p><p><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.allowedvaluesattribute">System.ComponentModel.DataAnnotations.AllowedValuesAttribute</a><br><a href="https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.deniedvaluesattribute">System.ComponentModel.DataAnnotations.DeniedValuesAttribute</a> -&gt; koleksiyonlar için eklenebilecek ve eklenemeyecek elemanları belirtir. Kısacası whitelist ve blacklist oluşturmamızı sağlar.</p><h4>NATIVE AOT(Ahead Of Time)</h4><p>Native AOT ilk olarak .Net 7&#39;de yayınlandı. Native AOT uygulamanın ayrı bir çalışma zamanına ihtiyacı olmadan ve her şeyi tek bir dosyada toplayan bağımsız bir sürümünü oluşturmamızı sağlar.</p><p>.Net 8 ile birlikte macOS’ta x64 ve arm64 mimarilerine de bu destek geldi. Ayrıca, Linux’taki native aot derleme paketlerinin boyutlarını %50 oranında azaldı. Dosya boyutları için örnekler.</p><p><strong>Linux x64 (with </strong><strong>-p:StripSymbols=true)</strong></p><ul><li>.NET 7 ➡ 3.76MB</li><li>.NET 8 ➡ 1.84 MB</li></ul><p><strong>Windows x64</strong></p><ul><li>.NET 7 ➡ 2.85 MB</li><li>.NET 8 ➡ 1.77 MB</li></ul><h4>Code Generation Improvements</h4><p>.Net 8 code generation ve just in time (JIT) derlemeleri için de geliştirmeleri içeriyor.</p><ul><li>JIT verimliliğini arttırmak için performans geliştirmeleri yapılmıştır.</li><li>Arm64 için performans geliştirmeleri içerir</li><li>Profile-guided optimization (PGO) geliştirmeler</li><li>AVX-512 ISA uzantıları için destek gelmiştir</li><li>Cloud-native geliştirmeleri</li></ul><h4>.NET 8 DevOps Improvements</h4><p><strong>NET Container Image Changes</strong></p><p>Container image’larında değişiklikler gelmiştir. İlk olarak Debian12 Linux için varsayılan container image’ı olmuştur.</p><p>İkinci olarak image’ları non-root hale getirebilmek için dosyalara non-root user eklenmiştir. non-root olarak çalıştırabilmek için docker dosyamızın sonuna USER app satırını eklememiz gerekir.</p><p>Ayrıca, varsayılan bağlantı noktası da 80&#39;den 8080&#39;e değişti ve bağlantı noktalarını kolayca değiştirmek için yeni bir ortam değişkeni ASPNETCORE_HTTP_PORTS eklendi.</p><p>Ayrıca, ASPNETCORE_HTTP_PORTS değişkeninin biçimi, ASPNETCORE_URLS’nin gerektirdiği biçime göre daha kolaydır ve bir bağlantı noktası listesini kabul eder.</p><p>Son olarak, .NET 8 artık [Ubuntu/DotNet-deps Docker Hub](Ubuntu/DotNet-deps Docker Hub) adresinde bulunan Chiseled Ubuntu image’larını da desteklemektedir.</p><blockquote>Burada yazımızın sonuna gelmek istiyorum. Biraz uzun bir yazı oldu ama ben yazarken çok eğlendim. Buraya ekleyemediğim daha bir sürü özellik vardı. Bu yazıyı bir seri haline getirebilirsem kalan özellikleri .Net 8&#39;in tam yayınlanma tarihine kadar eklemek istiyorum. Yazı içerisinde yeni gelen bazı özellikleri açıklarken yetersiz kalmış veya yanlış çeviri yapmışsam affola. Gözünüze çarpan yanlışları hem kendimi hem de yazıyı düzeltmem için benimle paylaşırsanız memnun olurum. Keyifli okumalar..</blockquote><p><strong>SOSYAL MEDYA ADRESLERİM</strong></p><p>Github : <a href="https://github.com/omer1abay">https://github.com/omer1abay</a></p><p>Linkedin : <a href="https://www.linkedin.com/in/%C3%B6mer-abay/">https://www.linkedin.com/in/%C3%B6mer-abay/</a></p><p>Instagram : <a href="https://www.instagram.com/omeerabay/">https://www.instagram.com/omeerabay/</a></p><p><strong>KAYNAKÇA</strong></p><ul><li><a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8">What&#39;s new in .NET 8</a></li><li><a href="https://community.abp.io/posts/whats-new-in-.net-8-discover-all-.net-8-features-llcmrdre">What&#39;s New in .NET 8 🧐 ? Discover ALL .NET 8 Features⚡🚀</a></li><li><a href="https://www.bytehide.com/blog/dotnet-8-preview-1">Discover the New Features of .NET 8: What You Need to Know</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46e436853dfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# İLE API YAZMA]]></title>
            <link>https://omerabay1.medium.com/c-i%CC%87le-api-yazma-f1590b9ec735?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1590b9ec735</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[solid]]></category>
            <category><![CDATA[webapi]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 18:04:18 GMT</pubDate>
            <atom:updated>2023-01-17T18:04:18.833Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Bir varmış bir yokmuş, aylar haftalar önce bu sitede bir yazı yayınlanmış. Şimdi o yazının devamını yazıyoruz :) Masalsı bir giriş yaptıktan sonra içeriğe geçebiliriz. Daha önce <strong>API Nedir?</strong> yazısını yazmıştım. O yazı da daha çok teorik bilgilerimi sizlere sunmuştum ve orada API’leri bir Avengers karakteri olan Red Skull’a benzetmiştim. Şimdi ise teorik olan içeriğimizi biraz pratiğe dökelim istedim. Hadi C# ile bir Red Skull kodlayalım.</blockquote><h4>API YAZARKEN KULLANDIĞIM TEKNOLOJİLER</h4><p>API yazmadan önce yazdığım API daha profesyonel görünmesi için kendime bir altyapı oluşturdum. Bu kısımda altyapımda ne gibi teknolojiler ve mimariler kullandım onlardan bahsedip biraz da açıklamaya çalışacağım. Kısaca kullandığım teknolojiler ve mimariler :</p><ul><li>Öncelikle yazdığım altyapıyı SOLID prensiplerine uygun bir şekilde hazırlamaya çalıştım. Nedir SOLID?</li><li><strong>SOLID</strong> : SOLID yazılım geliştirmenin temel prensibi olarak kabul edilir. Yazılımın esnek, yeniden kullanılabilir, sürdürülebilir ve anlaşılır olmasını sağlar, kod tekrarını önleyen bu prensip her yazılımcının hakim olması gerektiği yazılım prensiplerinin başında gelir.</li><li>Altyapımda AOP (Aspect Oriented Programming) yaklaşımını da kullandım. AOP kısaca, yazılımın karmaşıklığını azaltmaya, modülariteyi artırmaya yarayan bir yaklaşım biçimidir. Buradaki modülariteden kasıt uygulama süresince sistemin birçok bölümünde kullanılan, fonksiyonel olmayan kodun yani kesişen ilgilerin ufak ufak parçalara ayrılmasıdır (<strong>Seperation of Cross Cutting Concerns</strong>)<strong>. </strong>Örnek vermek gerekirse Validation işlemlerini AOP yaklaşımına uygun bir şekilde ayarlayıp, birçok yerde Validation yapabileceğimiz gibi, birçok yerde kodları tekrarlamak yerine kod tekrarının önüne geçtik. Cross Cutting Concern’e birçok örnekte verebiliriz ve bu örnekleri AOP yaklaşımına göre geliştirebiliriz; Örneğin, Logging, Validation, Caching, Security gibi konuları bu yaklaşımla ele alabiliriz. Biz örneklemek amacıyla Validation işlemini ekledik.</li><li>Validation işleminde FluentValidation eklentisinden faydalandık.</li><li>API geliştirirken herbir request’te ihtiyacımız olan singleton(tekil) nesne için IoC container’a ihtiyacımız vardı IoC Container olarak Autofac kullandık. Autofac kullanmamızın sebebi ise AOP desteği vermesi ve ücretsiz olması.</li><li>Altyapıyı yazarken ise olabildiğince Mikroservis mimarisine uygun hareket etmeye çalıştım.</li></ul><p>Altyapımızdaki teknolojiler bunlardı, bahsetmemin sebebi yazacağımız API’nin backend’ini daha iyi kavrayabilmekti.</p><h4>API CONTROLLER OLUŞTURMA</h4><p>Gelelim eğlenceli kısmımıza, hangi metotta yazdığımız fark etmeksizin ilk olarak projemize WebAPI projesini dahil etmemiz gerekiyor. Bunun için Visual Studio’da Solution üzerine sağ tıklayarak Add -&gt; New Project dedikten sonra aşağıda resimdeki projeyi seçmemiz gerekiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBEuIhkK4Cijd2VzhxN8Pw.png" /><figcaption>İlk sıradaki projeyi seçiyoruz</figcaption></figure><p>Bu projeyi ekledikten sonra, içerisinde bize halihazırda bir API ile geliyor örnek olması amacıyla</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*23FqobeFIMP3seS2QBdclw.png" /></figure><p>WeatherForecast API’si ile bize bir örnek API sunuyor C#. Bu proje içindeki dosyaları inceleyecek olursak.</p><ul><li><strong>Program.cs :</strong> API ayağa kalktığında ilk çalışan dosyadır.</li><li><strong>Startup.cs :</strong> Program.cs dosyası, ayağa kalktığında bu dosyayı çağırır. Bu kısımda API’mizin konfigürasyon ayarları mevcuttur. Temel 2 metot içerir. ConfigureServices ve Configure metotları. <strong>ConfigureServices</strong> metodu : içerisine uygulamanın kullanacağı servisler eklenir ve konfigüre edilir. Bizim API request’lerinde ihtiyacımız olan IoC containerları dilersek buraya ekleyebiliriz. .Net’e gömülü IoC Container’ları kullanabileceğimiz gibi, Autofac gibi eklenti halinde de kullanabiliriz. <strong>Configure</strong> metodu : Bu metot uygulamamıza gelen HTTP isteklerini hangi aşamalardan geçirerek bir HTTP cevabı oluşturacağımızı belirttiğimiz metottur. Startup içerisinde bu metodun doldurulması ve doğru ayarlarlanması gereklidir. Middleware’ler kullanılarak uygulama içerisinde bir pipeline oluşturulur. İşte bu pipeline configure() dosyası içerisinde belirlenir.</li><li><strong>Controller : </strong>Bu klasör içerisinde Controller dediğimiz sınıfları barındırır. Bu sınıflar bizim API’mizin bulunduğu sınıflardır. İsimlendirme olarak genellikle C#’ın bize sunduğu örnekteki gibi API’sini yazacağımız EntityAdı + Controller olacak şekilde isimlendirilir.</li></ul><p>Genel olarak sıklıkla kullanacağımız dosyalar bu şekildeydi. Şimdi ise bir Controller oluşturu kodlamaya geçelim. Controller oluşturmak için klasöre sağ tıklayıp bir Class ekliyoruz ve isimlendirmesini yukarıda belirttiğimiz gibi yapıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*mKkWZPunzJ_NioNTOrtVxw.png" /><figcaption>CarImageController dosyasını kullanacağız</figcaption></figure><p>Oluşturduğumuz bu Controller sınıfı ise ControllerBase sınıfından inherit edilmeli.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*b98JcvQ1yy6pA8YYlMkhxQ.png" /></figure><p>[ApiController] attribute’u ile bu sınıfın bir API Controller olduğunu belirtiyoruz. [Route(“api/[controller]”)] attribute’u ile de API çağrımı yaparken hangi url ile çağrım yapacağını belirtiyoruz. [controller] ifadesi CarImagesController class ismindeki CarImages kısmını yani Controller dışında kalan kısmı alıp api/carimages şeklinde api çağrımı yapmamızı sağlar.</p><p>Bu kısıma kadar API yazacağımız sınıfın nasıl oluşturulduğunu gördük. Şimdi ise bir Get bir de Post API’si yazalım.</p><p><strong>GET API</strong></p><p>Get API yazabilmek için metodumuzun [HttpGet] attribute’unu alması gerekir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*y6ruWXCiRxwUMmS4-x340g.png" /></figure><p>dilersek [HttpGet(“get”)] şeklinde metodumuzu isimlendirebiliriz. Bu isimlendirme URL’e şu şekilde yansır. api/[controller]/get şeklinde api’mizi çağırabiliriz. IActionResult dönmemizin sebebi ise Http kodlarını kontrol edebilmemizi sağlama imkanı veriyor. Bu kodlara nesnemizi vererekte ekrana hatalarımızı daha rahat bastırabiliriz. IActionResult ise aldığı nesnenin içeriğine göre bir sonuç döner. Gördüğünüz gibi Get API’si yazmak bu kadardan ibaret, ilgili servisimizden veri çekme metodunu çağırarak Get API’sini çağırabiliriz. Şimdi postman üzerinde test edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5E6n1KAlVwpfWRi1K32QQw.png" /></figure><p>Aynı zamanda metodumuzun aldığı parametrede bizim queryString ifade de parametre olarak gönderebileceğimiz bir değişkeni ifade ediyor.</p><p><strong>POST API</strong></p><p>Yukarıda bir Get API nasıl yazılır kısmını inceledik. Post API kısmı da farksız o yüzden çokta uzatmadan kod üzerinden göstereceğim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*fYM5f8IT7lD0fKDeCySjtg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mtycmq_yAu1kkLMW4MtB7Q.png" /></figure><p>Yukarıdaki gibi kodlarımızı oluşturup, postman üzerinden testini yapabiliriz.</p><blockquote>Biraz acemice de olsa elimden geldiği kadar, dilim döndüğü kadar sizlere bir api oluştururken ne gibi aşamalardan geçtiğimizi göstermeye çalıştım. Umarım faydalı olmuştur..</blockquote><p>Kullandığım altyapının kodlarını Github’ta paylaştım : <a href="https://github.com/omer1abay/RecapProject">https://github.com/omer1abay/RecapProject</a></p><p>KAYNAKLAR</p><ul><li><a href="https://devnot.com/2020/aspect-oriented-programming/">Aspect Oriented Programming</a></li><li><a href="https://www.borakasmer.com/autofac-ile-asp-net-mvcde-dependency-injection/">Autofac ile ASP .NET MVC&#39;de Dependency Injection</a></li><li><a href="https://app.patika.dev/courses/net-core/1-startup">Patika - Teknoloji Kariyerine En Etkili Yol</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1590b9ec735" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KUANTUM MANTIK KAPILARI]]></title>
            <link>https://omerabay1.medium.com/kuantum-mantik-kapilari-edfdb5283f88?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/edfdb5283f88</guid>
            <category><![CDATA[logical]]></category>
            <category><![CDATA[logical-gate]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Thu, 05 Jan 2023 21:08:33 GMT</pubDate>
            <atom:updated>2023-01-05T21:08:33.535Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Klasik bilgisayar olarak adlandırdığımız günümüz bilgisayarlarında olduğu gibi kuantum bilgisayar teknolojilerinde de benzer mantık kapıları kullanılmaktadır. Günümüz bilgisayarlarından bildiğimiz temel mantık kapıları; AND, OR, NOT, BUFFER, XOR, NAND, NOR, XNOR gibi kapılara benzer mantıkta çalışan kuantum mantık kapılarına ek olarak kuantum bilgisayarların ihtiyaçlarını karşılayacak; Süperpozisyon, Dolanıklılık vb. işlemleri yapabilmesi için de mantık kapıları bulunmaktadır. Bugünkü yazımızda da bu kapılara ufaktan bir bakış sağlayıp, IBM’in açık kaynak olarak bize sunduğu Quantum Composer üzerinden de gerçek bir kuantum bilgisayara bağlanıp devrelerin çıktılarını inceleyeceğiz.</blockquote><h4>KLASİK MANTIK KAPILARI</h4><blockquote>Kuantum mantık kapılarına geçmeden önce aynı mantıkta çalışan klasik mantık kapılarına değinmekte fayda olduğunu düşünüyorum.</blockquote><p><strong>AND : </strong>And ‘Ve’ kapısı klasik bilgisayarlarda kullanılan en temel kapılardandır. Bilişim teknolojileri alanında eğitimler alıyorsanız ve ya aldıysanız bu kapıyı duymamış olma ihtimaliniz muhtemelen yoktur. Kısaca ne işe yaradığından bahsedecek olursak. And kapısı en az iki girişli olup girişine gelen bilgilere çarpma işlemi benzeri bir işlem uygulamaktadır, yani girişlerden en az birisi 0 olursa çıkışta 0 olacaktır. Her iki girişte 1 olduğu takdirde çıkış 1 olacaktır. Aşağıda And kapısının gösterimi ve doğruluk tablosunu görebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*lHtCl7RIuAQFaZSIIXXTgQ.png" /><figcaption>And Kapısı Gösterimi</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*Own5QdRV-A8UI0ro89sEqQ.jpeg" /><figcaption>And Kapısı Doğruluk Tablosu</figcaption></figure><p><strong>OR :</strong> Or kapısı And kapısının tam tersi olacak şekilde mantıksal toplama işlemine yarar. Or kapısı en az iki girişli olup, girilen değerlerden en az bir tanesi 1 ise çıktı olarak 1 değerini verecektir. Her iki değer 0 olduğu taktirde çıktı 0 olacaktır. Aşağıdaki resimlerden Or kapısının gösterimine ve doğruluk tablosuna ulaşabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*fNW2hEUBDEdbT3hKKd-2jA.png" /><figcaption>Or kapısı gösterimi ve doğruluk tablosu</figcaption></figure><p><strong>NOT : </strong>Not kapısı bildiğimiz adıyla ‘Değil’ kapısı tek girişli olup girişe gelen değerin tersini çıkış olarak vermektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*jwj4c3vsLeOdZZ598AqqEg.png" /><figcaption>NOT kapısı gösterimi ve doğruluk tablosu</figcaption></figure><p><strong>XOR : </strong>XOR<strong> </strong>kapısı Özel VEYA kapısı olarakta bilinir. Kısaca yaptığı işlem ise girişlerine gelen değerler aynı ise 0, farklı ise 1 değeri çıkış olarak vermektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JlmRqZucTia_qMAnwQ0MjA.png" /><figcaption>XOR kapısı gösterimi ve doğruluk tablosu</figcaption></figure><blockquote>Bu kısma kadar temel klasik mantık kapılarının üzerinden geçtik, şimdi ise asıl konumuz olan kuantum mantık kapılarına değinmeye çalışacağız. Klasik bilgisayarlar kullanılan mantık kapılarına benzer mantık kapıları olsa da, tamamen kuantum bilgisayarların içeriğine hizmet eden mantık kapıları da bulunmaktadır. Hadi başlayalım..</blockquote><h4>KUANTUM MANTIK KAPILARI</h4><p><strong>X Gate :</strong> X kapısı temelde NOT kapısı gibi çalışmaktadır. Kendisi ile işleme giren qubit’in tersini almaktadır. ÖRN : X |0&gt; işlemini ele alalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*cRjsWX6w45OFo5Gtgdn3jg.png" /><figcaption>X |0&gt; işlemi sonucu</figcaption></figure><p>Bu işlemi bir de Qiskit üzerinde görelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9BgDC7rjRD8sLlzWb0y6w.png" /><figcaption>Qiskit üzerinde X kapısı işlemi</figcaption></figure><p>Gördüğünüz üzere, q[0] olarak verdiğimiz birinci qubit’imize sürükle bırak ile bir X kapısı ekledik. Qiskit bize bu işlemlerin kodlarını da otomatik olarak oluşturmaktadır. Peki bu sonucun çıktısının grafikleri nasıl olacak onları da inceleyecek olursak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wi6W1jvEAOJBzTrrJ4FpEw.png" /></figure><p>yaptığımız işlemin sonucu %100 olarak |1&gt; sonucunu bize verdi. Bu da bizlere X kapısının işlevi hakkında bilgi vermektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/176/1*3MUtN9N3d-79CXIt0VLpbw.png" /><figcaption>X kapısı matrisi</figcaption></figure><p><strong>HADAMARD : </strong>Hadamard kuantum bilgisayarlarda kullanılan önemli kapılardan birisidir. Süperpozisyon kapısı olarak da bilinir. Matrisi aşağıdaki şekilde gösterilmiştir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*v3miqoSErn9iFEuJOj5Iiw.png" /><figcaption>H kapısı matrisi</figcaption></figure><p>Hadamard matrisleri, not kapısının karekökü olarak da bilinir ve aşağıdaki dönüşümleri yapar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*Z1hR6E-8CkoU2isbKAHoJQ.png" /></figure><p>Yukarıdaki işlemleri gerçekleştirdikten sonra da H matrisini bize verdiğini görebiliriz. Şimdi ise H kapısını Qiskit üzerinde görelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GlCeA0icGHdWnwqT7TyokQ.png" /></figure><p>Örneğimiz pekişmesi adına bu sefer 2 qubit üzerinde hadamarda kapısını deniyoruz. Hadamard kapısı süperpozisyon için kullanıldığından dolayı bu işlem sonucunda oluşacak grafiklerde oluşabilecek tüm olasılıkların eşit olması beklenir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUiyTfIfxbVa3NcL8Op_Fg.png" /></figure><p>yani işlem sonucumuz grafikte gösterilen değerlerinin herhangi birinde olabilir.</p><p><strong>CNOT : </strong>Bu kapı kontrollü not kapısı olarak da bilinir. 2 qubit ile çalışır. <strong>q1 XOR q2</strong> şeklinde işlem yapmaktadır. Hadamard ile birlikte kullanıldığında bize entanglement’ı( dolanıklık) verir. Eğer kontrol kubitimiz |0⟩ ise hedef kubit değişmiyor. Eğer <strong>kontrol kubiti |1⟩ ise kontrol kubitine Pauli-X kapısı uyguluyoruz </strong>yani |0⟩’ı |1⟩’e, |1⟩’i |0⟩’a çeviriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/183/1*9v0sbsIyjNet9jAoa7_sGw.png" /><figcaption>CNOT Matrisi</figcaption></figure><p>CNOT kapısı matrisi farklı kaynaklarda farklı şekilde bulunabilir. Biz bu matrisi referans alacağız, Qiskit’te bu matrisi kullanmaktadır. Şimdi ise Qiskit’te görelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKGJbuFd3PQiYLHS1Cnuhg.png" /></figure><p>CNOT |11&gt; işlemine tabi tuttuğumuzda sonucun |01&gt; çıkmasını bekleriz, grafikler üzerinden işlem doğru mu diye kontrol edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7ogPAvIZnTORPW_-cdWEtQ.png" /></figure><p>Grafiklerde de işlem sonucunun %100 oranda |01&gt; çıktığını gördük. Bir hadamard kapısı ile CNOT kapısını deneyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlDa0oIbP5rj8eDfbsYxHQ.png" /></figure><p>Hadamard kapısı ile cnot kapısını qubit’lerimizde işleme soktuk bu işlem sonucunda dolanılıklığı bize verecektir, yani |00⟩ olan başlangıç durumu ilk kubite uygulanan H kapısı ile |00⟩ + |10⟩haline geliyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*CIXvLv4JE__HQzOzRhDE-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U68UWVwpxRKQ9e-OM2wD9A.png" /></figure><blockquote>Bu yazıda kuantum bilgisayarlarda kullanılan, temel kapılardan bahsettim. Bu kapılar dışında daha bahsedebileceğimiz birçok kapı bulunmakta onları da başka bir yazımızın konusu edelim :) Umarım yazımızın içeriğini beğenmişsinizdir. Yazı içerisinde yazım veya telaffuz hatalarım olmuşsa affola. Sağlıcakla Kalın…</blockquote><h4>KAYNAKLAR</h4><p><strong>1-)</strong> <a href="https://www.udemy.com/course/quantum-bilgisayar/">https://www.udemy.com/course/quantum-bilgisayar/</a></p><p><strong>2-) </strong><a href="https://onurgule.com.tr/genel/kuantum-hesaplama-kuantum-kapilari/">https://onurgule.com.tr/genel/kuantum-hesaplama-kuantum-kapilari/</a></p><p><strong>3-)</strong> <a href="https://bilgisayarkavramlari.com/2010/10/14/kuantum-kapilari-quantum-gates/">https://bilgisayarkavramlari.com/2010/10/14/kuantum-kapilari-quantum-gates/</a></p><p><strong>4-)</strong> <a href="https://duzensiz.org/kuantum-bilgisayar-nedir-8746955bd5e">https://duzensiz.org/kuantum-bilgisayar-nedir-8746955bd5e</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edfdb5283f88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API NEDİR, NEDEN KULLANILIR, NASIL KULLANILIR?]]></title>
            <link>https://omerabay1.medium.com/api-nedi%CC%87r-neden-kullanilir-nasil-kullanilir-bec559725bf8?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/bec559725bf8</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[api-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 19:48:31 GMT</pubDate>
            <atom:updated>2022-07-22T19:48:31.658Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>İnternette çeşitli blog yazıları okurken uzun zamandır bir yazı yazmadığım aklıma geldi ve aklıma gelir gelmez de bir yazı yazmaya karar verdim. Hali hazırda stajımı yaptığım şirkette de üzerinde çalıştığım ve eğitimler aldığım API’ler hakkında bugün sizlere yol gösterici bir yazı yazmak istiyorum. Yazı sonuna doğru bir yazılım dili üzerinden bir api çağırımı nasıl yapılır onunla ilgili bir kod yazmaya çalışacağım umarım faydalı olur.. Keyifli Okumalar…</em></blockquote><h4>API NEDİR?</h4><p>Eğer yazılımcıysanız gerek okul döneminde gerekse iş hayatında çokça duyduğunuz bir tabir olan API neden sürekli karşımıza çıkıyor, neden bu kadar önemli onları konuşmak istiyorum. Eğer ki yazılımcı değilseniz kullandığınız uygulamalar üzerinde farklı şirketlerden verilerin geldiğini muhakkak görmüşsünüzdür çok sık verilen ve anlaşılır olması nedeniyle Döviz Kuru verileri üzerinden bir örnek vereceğim. Bu örneği de bir hikaye ile pekiştirmek isterim.</p><blockquote><em>Yazılıma başlamadan önce uygulamaları kullanırken anlık olarak değişen verileri gördüğümde sürekli birinin kod tarafında veriler değiştiğinde verileri elle giriyor sanıyordum ben şahsen tabi o zaman da çocuktuk :) ama yaşım ilerledikçe yazılıma merak saldıkça bu işleyişin bir yazılımcı gözünden kod standartlarına pek uygun olmadığını ve sürekli kod kısmında bir değişiklik yapmamanın sürekli kullanıcıya güncelleme göndereceğini ve uygulamanın boyutunun büyüyeceğini düşünüp acaba bu nasıl olur diye araştırmaya başladığımda karşıma ilk olarak API çıktı, yani kısacası Döviz Kuru gibi sürekli karşımıza çıkan ve her yerde aynı olması gereken veriler API’ler üzerinden çekilir. Bu hikaye ile aklınızda bir şeyler canlandığını düşünüyorum şimdi ise biraz daha teknik bir tanım yapmaya çalışacağım.</em></blockquote><p>API (Application Programming Interface) yani Uygulama Programlama Arayüzü, iki yazılım ve bir sunucu arasındaki bağlantıyı sağlayan bir protokoldür. İki uygulamanın birbiriyle iletişime geçmesini sağlayan bir yazılım aracı olduğunu da söyleyebiliriz. İlk tanımda neden sunucuyu da belirttim, yazılımcı arkadaşlar iyi bilecektir ki yazılım şirketleri verilerini sunucular üzerinde tutarlar, aslında farklı yazılım şirketleri ve ya biz kullanıcılar uygulamayı kullandığımızda ve ya yazılım şirketinin verilerine belirli protokoller kapsamında erişmek istediğimizde API’leri kullanırız. API’ler bizlere sunucu üzerindeki verileri görebilmemizi sağlayan bir köprü görevi üstlenir.</p><blockquote>Umarım buraya kadar sıkılmamışsınızdır. Burada bir filmden örnek vermek istiyorum, API’leri sürekli olarak benzettiğim bir film karakteri var. Avengers Endgame ve Infinity War filmlerini izleyen arkadaşlar bilecektir. VORMIR adlı gezegende ruh taşını(soul stone) arayan insanlara yol gösteren Red Skull adlı bir karakter mevcuttu, bu karakterin laneti her şeyi bilmek ve ruh taşını arayanlara yol göstermekti. API’lerde aynı şekilde işler kendisine gelen isteği inceleyip nerede olduğunu bulup bizlere verileri çekip gösterir :)) Umarım açıklayıcı bir örnek olmuştur…</blockquote><p><strong><em>Aslında bu kısımda API’lerin neden kullanıldığına dair bilgiler verecektim ancak API Nedir? başlığı altında fazlasıyla örneklerle anlattığımı düşünüyorum o yüzden tekrar bir başlık açmak istemedim :)</em></strong></p><h4>API NASIL KULLANILIR?</h4><blockquote>Bu başlık altında birkaç örnekle API’lerin nasıl kullanıldığını, bildiğim kadarıyla mimarisini, birkaç tane API sitesini ve bir API’den veri çekme kod örneğini anlatacağım.</blockquote><p>Öncelikle API’ler nasıl kullanılır onun üzerinde biraz duralım, API’ler arkaplanda çeşitli token ve imzalar (signature) ile kullanılır bizler bunları sadece API isteği atarken kullanırız geri kalan her şey API arkasında olan sistem tarafından otomatik olarak yapılır.</p><p>Nasıl kullanılır kısmında örnek bir site üzerinden gitmek istiyorum. Üniversite final projemde kullandığım API üzerinden anlatacağım bir hava durumu API’si.</p><ul><li>İlk olarak API’sini kullanmak istediğimiz şirketin ve ya yazılımın varsa API Market’i yoksa kendilerinin belirttiği sistem üzerinden kayıt olmamız gerekir.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGI00gIWYIPh3Ire-RTO7Q.png" /><figcaption>Şekil 1</figcaption></figure><ul><li>Kayıt olduktan sonra giriş yapıyoruz</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rz_WrNwHGG2U2BkHBBQP3A.png" /><figcaption>Şekil 2</figcaption></figure><ul><li>Giriş yaptıktan sonra karşımıza şöyle çeşitli API’lerin bulunduğu bir ekran çıkıyor buradan istediğimiz API’yi seçebilir ve erişim için gerekli bilgileri öğrenebiliriz biz hava durumu API’sini kullanacağız onu inceleyelim :)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qs9hdOYSh5wmgiWDMdBecQ.png" /><figcaption>Şekil 3 : Bu kısımda API kullanımının ücretlendirme politikası ve kullanım dokümanı verilmiştir</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCVoWYZbpYIwFv0rCQHN8A.png" /><figcaption>Şekil 4 : Bu kısımda API isteği için zorunlu parametreler ve çeşitli dillerde nasıl istek atılacağı gösterilmiştir</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWjAI99ZBlMUF5pWhg-TvQ.png" /><figcaption>Şekil 5 : Bu kısımda örnek bir API cevabı JSON formatında verilmiştir</figcaption></figure><p>Şimdi bizim için önemli olan kısma gelelim istek atacağımız API’yi incelemeye çalıştık, peki kod örneklerinde yazan apikey dediğimiz şifreli yapıya nereden ulaşacağız onun için oluşturduğumuz kullanıcı profiline girelim. Profilimize girdikten sonra karşımıza direkt bu ekran çıkacaktır. Bu ekran API Token kısmına girdiğimizde oradan token bilgimize erişebiliriz ve API isteğini bu token bilgisini kullanarak atabiliriz.</p><blockquote>Buraya ufak bir not düşmek istiyorum ücretsiz API’lerde genellikle aylık istek sınırı olmaktadır ve bu sınır aşıldıktan sonra ücretlendirme yapılmaktadır o yüzden API Token bilginizi paylaşmamanızı öneririm çünkü başkası sizin adınıza bir çok istek yollayabilir ve ücret ödemek durumunda kalabilirsiniz :)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ot78-X7KM0SpGfG3MBBjPw.png" /><figcaption>Şekil 6 : API Token bilgisi</figcaption></figure><p>Şimdiye kadar site üzerinden yaptığımız adımları size anlattım şimdi de bir API isteği nasıl atılır kod karşılığını sizinle paylaşmak isterim. Kodu daha önceden projemde yazmıştım, projede kullandığım dil Flutter/Dart hem sizinle paylaştığım Şekil 4&#39;te Flutter/Dart dilinde nasıl istek oluşturalacağı gösterilmediği için bu dil üzerinden gitmeye karar verdim :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zcO_ZE8hmBGWgZerVrNXbg.png" /><figcaption>Örnek API isteği</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*cwVjnK59aGrv6h0Qek01Ww.png" /><figcaption>Gelen Veriyi Çözme</figcaption></figure><p>JSON formatında gelen veriyi ikinci resimdeki gibi çözerek bir liste haline getiriyoruz daha sonra liste halindeki bu veriyi ekranlarımızda ihtiyaçlarımıza göre kullanabiliriz. İkinci resimdeki metotta bir şehir parametresi istemiş onunla kafanız karışmasın, uygulamayı yaparken kullanıcı lokasyonu erişimi hakkında bilgi sahibi olmadığım için veriyi manuel girdim yani girdiğim şehir bilgisine göre API’ye şehir parametresini verip o şehrin hava durumunu çekmek gibi ilkel ve dinamik olmayan bir yöntem yaptım. Siz öyle yapmayın :)</p><blockquote>Yazının sonuna geldik ben yazarken çok keyif aldım umarım sizlerde okurken keyif alır ve bilgilenirsiniz, yazımda çeşitli bilgi hataları ve ya yazım hataları varsa affola sektörde yeni olduğum için bilgim kısıtlı o bilgiye göre bir şeyler yazmaya çalıştım okuyan herkese teşekkür ederim. İyi Günler, Sağlıklı Günler :)</blockquote><h4>KAYNAKÇA</h4><ul><li>API : <a href="https://collectapi.com/tr/">https://collectapi.com/tr/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bec559725bf8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KUANTUM PROGRAMLAMA DİLLERİ]]></title>
            <link>https://omerabay1.medium.com/kuantum-programlama-di%CC%87lleri%CC%87-526214012916?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/526214012916</guid>
            <category><![CDATA[qua]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[kuantum-bilişim]]></category>
            <category><![CDATA[kuantum-bilgisayar]]></category>
            <category><![CDATA[q-sharp]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 09:40:48 GMT</pubDate>
            <atom:updated>2022-03-10T09:40:48.952Z</atom:updated>
            <content:encoded><![CDATA[<p>Bugünkü yazımda sizlere kuantum programlama için hazırlanmış olan programlama dillerinden bahsetmek istiyorum. Bilgim ve araştırmalarım dahilinde kısa da olsa bir yazı yazmak istedim umarım herkese faydalı olur. Keyifli okumalar…</p><h3>1-Q#</h3><h4>Q Programlama Dili ve Quantum Development Kit (QDK) Nedir?</h4><p>Q#, kuantum algoritmaları geliştirmek ve çalıştırmak için Microsoft’un açık kaynaklı programlama dilidir. Kuantum yazılım aşamasında bizlere yardımcı araçlar sunan QDK (Quantum Development Kit) ise bir parçasıdır. QDK, karmaşık kuantum işlemleri oluşturmamıza olanak tanıyan kuantum kitaplıkları ve programlarımızı doğru bir şekilde çalıştırıp test etmemiz için kuantum simülatörleri içerir. Q# standalone uygulamalar olarak çalışabilir veya diğer programlama ortamlarından çağırılabilir ve yerel bilgisayarlarımızdan yazılabilir, çalıştırılabilir ve test edilebilir. Q#; Python, C# ve F#’tan da tanıdığımız öğeleri barındırır, if/then ifadeleri ve ortak veri türleri yazmak için temel modelleri destekler. Ayrıca kuantuma özgü yeni veri yapılarını ve işlemlerini sunar.</p><h4>Quantum Development Kit Akış Diyagramı</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*_rH7aWSvdaB7M40MDXZ08Q.png" /><figcaption>qdkflowdiagram</figcaption></figure><h3>2-QUA</h3><p>Qua ; Bir kuantum bilgisayar startup’ı olan Quantum Machines tarafından ilk evrensel kuantum programlama dili olarak yayınlandı. Kuantum Bilgisayarlar çok yeni bir donanım teknolojisi olduğundan yeni bir yazılım dili gerekiyordu Qua ise ilk çıkan yazılım dilidir. Qua soyutlama açısından biraz zayıf bir dildir donanıma daha yakın çalışır Makine Dili gibi düşünebiliriz. Quantum Machines’in mevcut Quantum Orchestration Platformunun bir parçası olarak kullanılan QUA, evrensel bir dildir. QUA’nın yeteneklerinin gerçek bir temel işlemci olan QM’nin Pulse Processor ile birleşimidir ve QUA’nın gelişmekte olan kuantum endüstrisinde hızlı bir şekilde benimsenmesini sağlar.</p><blockquote>Bugünkü yazımda sizlere basitçe kuantum programlama dillerinden bahsettim. Şimdi ise başlıksal olarak diğer dillerden de bahsetmek istiyorum keyifli okumalar..</blockquote><h3>IMPERATIVE LANGUAGES (ZORUNLU DİLLER)</h3><p>1-<strong>QCL </strong>: Kuantum Hesaplama Dili (QCL), ilk uygulanan kuantum programlama dillerinden biridir. Sözdizimi, C programlama dilinin sözdizimine benzer ve klasik veri türleri, C’deki primitive veri türlerine benzer.</p><p>2-<strong>Quantum pseudocode : </strong>E. Knill tarafından önerilen kuantum sözde kodu, kuantum algoritmalarının tanımı için ilk resmileştirilmiş dildir.</p><p>3-<strong>Q|SI&gt; : </strong>Q|SI&gt;, kuantum programlamayı destekleyen .Net diline gömülü bir platformdur.</p><p>4-<strong>Q language : </strong>Q Dili, uygulanan ikinci zorunlu kuantum programlama dilidir. Q Language, C++ programlama dilinin bir uzantısı olarak uygulandı.</p><p>5-<strong>qGCL</strong></p><p>6-<strong>QMASM</strong> : Düşük seviyeli bir dildir.</p><p>7-<strong>Scaffold : </strong>Scaffold, QASM ve OpenQASM için derlenen C benzeri bir dildir. Belirli bir komut seti oluşturmadan önce Scaffold kodunda optimizasyonlar gerçekleştirmek için LLVM Derleyici Altyapısının üzerine inşa edilmiştir.</p><p>8-<strong>Silq : </strong>Silq, ETH Zürih’te geliştirilmiş, güçlü bir statik tip sistemli kuantum hesaplama için üst düzey bir programlama dilidir.</p><h3>FUNCTIONAL LANGUAGES (FONKSİYONEL DİLLER)</h3><p>1-<strong>QFC ve QPL</strong> : QFC ve QPL, Peter Selinger tarafından tanımlanan, birbiriyle yakından ilişkili iki kuantum programlama dilidir. Yalnızca sözdizimlerinde farklılık gösterirler: QFC bir akış şeması sözdizimi kullanırken QPL metinsel bir sözdizimi kullanır.</p><p>2-<strong>QML : </strong>QML, Altenkirch ve Grattage tarafından geliştirilen Haskell benzeri bir kuantum programlama dilidir.</p><p>3-<strong>LIQUi|&gt;</strong> : (telaffuzu liquid) F# programlama dilinde bir kuantum simülasyon uzantısıdır. Optimizasyon ve zamanlama algoritmaları ve kuantum simülatörleri içerir.</p><p>4-<strong>Quantum lambda calculi : </strong><br>Kuantum lambda hesabı, 1930&#39;larda Alonzo Church ve Stephen Cole Kleene tarafından tanıtılan klasik lambda hesabının uzantılarıdır.</p><p>5-<strong>Quipper : </strong>Quipper 2013&#39;te yayınlandı. Ana bilgisayar dili olarak Haskell kullanılarak gömülü bir dil olarak uygulanır. Bu nedenle Quipper’da yazılan kuantum programları, sağlanan kütüphaneler kullanılarak Haskell’de yazılır. Örneğin, aşağıdaki kod bir süperpozisyonun hazırlanmasını uygular.</p><pre><strong>import</strong> <strong>Quipper</strong><br><br>spos <strong>::</strong> Bool <strong>-&gt;</strong> Circ Qubit<br>spos b <strong>=</strong> <strong>do</strong> q <strong>&lt;-</strong> qinit b<br>            r <strong>&lt;-</strong> hadamard q<br>            return r</pre><p>6-<strong>funQ </strong>: Chalmers Teknoloji Üniversitesi’ndeki bir grup lisans öğrencisi, 2021&#39;de işlevsel bir kuantum programlama dili geliştirdi. Bu dil, Selinger ve Valiron’un kuantum tipi lambda hesabından esinlenmiştir. Temeldeki kuantum simülatörü, aynı adı taşıyan Haskell kütüphanesinin bir parçasıdır. Aşağıdaki kod, funQ’da süperpozisyon uygular.</p><pre>spos : !(Bit -o QBit)<br>spos b <strong>=</strong> H (new b)</pre><p>Haskell kütüphanesindeki aynı örnek :</p><pre><strong>import</strong> <strong>FunQ</strong><br><br>spos <strong>::</strong> Bit <strong>-&gt;</strong> QM QBit<br>spos b <strong>=</strong> hadamard =&lt;&lt; new b</pre><blockquote>Bu yazımda sizlere çeşitli kuantum programlama dilleri hakkında bilgiler vermek istedim. Yazı içeriğinde çeşitli kaynaklardan araştırmalarımı kullanarak olabildiğince Türkçeye çevirmeye çalıştım. Yazımda çeşitli yerlerde yazım hataları ve ya çeviri hataları var ise affola. Umarım içeriği beğenirsiniz..</blockquote><h4>KAYNAKLAR</h4><p>1- Wikipedia : <a href="https://en.wikipedia.org/wiki/Quantum_programming#Q_language">https://en.wikipedia.org/wiki/Quantum_programming#Q_language</a></p><p>2- Quantum Machines : <a href="https://www.quantum-machines.co/blog/quantum-machines-announces-qua-as-first-standard-universal-language-for-quantum-computers/">https://www.quantum-machines.co/blog/quantum-machines-announces-qua-as-first-standard-universal-language-for-quantum-computers/</a></p><p>3- Microsoft : <a href="https://docs.microsoft.com/en-us/azure/quantum/overview-what-is-qsharp-and-qdk">https://docs.microsoft.com/en-us/azure/quantum/overview-what-is-qsharp-and-qdk</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=526214012916" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KUANTUM BİLGİSAYARLAR]]></title>
            <link>https://omerabay1.medium.com/kuantum-bi%CC%87lgi%CC%87sayarlar-7673410d9e43?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/7673410d9e43</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[quantum-physics]]></category>
            <category><![CDATA[technology-news]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Tue, 15 Jun 2021 12:07:49 GMT</pubDate>
            <atom:updated>2021-06-15T12:07:49.704Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Bilgisayar tarihinin en önemli teknolojilerinden olan kuantum bilgisayarlar hakkında bilinmesi gereken, tarihçesi, temel bilgileri ve çalışma prensibi gibi konuları ele almaya çalışacağız. Umarım faydalı bir içerik olur.</blockquote><h3>ÇAĞIN TEKNOLOJİSİ KUANTUM BİLGİSAYARLARIN TARİHÇESİ</h3><p>Kuantum bilgisayarların oluşum aşamasını öğrenmeden önce kuantum fiziğinin tarihçesini araştırmak gerekir :</p><h4>1927-HEİSENBERG BELİRSİZLİK İLKESİ</h4><blockquote>Alman fizikçi, Werner Heisenberg bir kuantum parçacığı hakkında her şeyi aynı bilemeyeceğimizi iddia eden belirsizlik ilkesini öne sürdü. Parçacığın konumu hakkında ne kadar çok şey bilirseniz momentumu hakkında o kadar az şey bilirsiniz ya da tam tersi</blockquote><h4>1970-KUANTUM BİLGİ TEORİSİ</h4><blockquote>Kuantum kuramı 1900&#39;lü yıllarda Alman Fizikçi ile Ludwig Planck tarafından dünyaya sunulmuş olsa da biz biraz daha yakın tarihlerde olan gelişmeyi inceleyeceğiz. Stephen Wiesner ve Charlie Bennett (o zamanlar Harvard’da hala yüksek lisans öğrencisiydi) arasındaki tartışmalardan alınan notlar, “<strong>kuantum bilgi teorisi</strong>” ifadesinin ilk kullanımı ve dolanıklıklığı bir iletişim kaynağı olarak kullanmak için de ilk öneri olabilir. Notlar ayrıca, Wiesner ve Bennett tarafından 1992 yılında yayınlanmış olan <strong>süper yoğun kodlama</strong> ilkesini de tanımlıyordu.</blockquote><p><strong>Kuantum fiziği tarihi hakkında biraz da olsa bilgi aldığımıza göre şimdi kuantum bilgisayarların tarihi hakkında devam edebiliriz :</strong></p><p>Kuantum bilgisayarlarının tarihi ilk olarak <strong>Richard Feynman’ın </strong><em>“Kuantum etkilerini” </em>daha iyi bilgisayarlar yapmak için kullanılması fikrini ortaya atması ile süreç başladı. 1985&#39;te Oxford Üniversitesinden <strong>David Deutch </strong>tarafından kuantum mantık kapıları fikri ileri sürülerek kuantum fiziği bilgisayarlara dahil edilmeye başlandı. 1994 Matematik mühendisi olan <strong>Peter Shor </strong>çarpanlarına ayırma yapan 6 kubitlik bir algoritma tasarladı. 1998&#39;de 2 kubitlik bir bilgisayar daha tasarlandı. 2000&#39;de 4 ve 7 kubitlik kuantum bilgisayarların yapımı başarılı olarak gerçekleştirildi. Günümüzde ise IBM, Google, D-Wave Company, Oxford University, Machigan University, Rice University, Nasa, University of Waterloo çalışmaları devam ettirmektedir.</p><h3>KUANTUM BİLGİSAYARLAR NEDİR?</h3><p>Veri üzerinde işlem yapmak için bindirme ve dolaşma gibi kuantum-mekanik fenomeninin doğrudan kullanımını sağlayan teorik hesaplama sistemlerini kullanan bilgisayarlardır.</p><h3>KUANTUM BİLGİSAYARLAR NASIL ÇALIŞIR?</h3><p>Normal Bilgisayarlar bilgi saklama ve işleme işlevi olan bitlerden oluşmuşlardır. Bu bitler 1 veya 0 hallerinden birini alabilirler. Kuantum bilgisayarlar ise Qubit’lerden oluşmuşlardır. Qubit’ler 1 ve 0 hallerini alabildikleri gibi 0 ve 1 arasında sonsuz halde değer alabilirler. Bu hallere çakışma (superposition) denir. Superposition halleri daha fazla bilgiyi aynı büyüklükteki fiziksel alana sığdırmamıza yarar. Bir qubit çifti 4 (2 üssü qubit sayısı) kuantum çakışması durumunun herhangi birinde. 3 qubit ise 8 kuantum çakışması durumunun herhangi birinde olabilir. Genel olarak qubit sahibi bir kuantum bilgisayar aynı anda olan çakışma durumunun herhangi birinde olabilir(Normal bilgisayarlar yalnızca bir durumda olabilirken “0 veya 1” kuantum bilgisayarlar aynı anda tamamında ve ya bir kısmında olabilir.).</p><h3>GÜNÜMÜZ BİLGİSAYARLARINDAN FARKI</h3><p>Farkları daha kolay anlayabilmek için şema halinde paylaşacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*Pktr0F-WGGnkrD_aSKqEfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*ZGJCfPE5PN65mRNLfexuiA.png" /></figure><p>İçeriğimin şimdilik sonuna geldik umarım faydalı bir içerik olmuştur olabildiğince özet halinde, yazmaya yeri geldiğinde aklımda kalan bilgileri, yeri geldiğinde ise yanlış bilgi vermemek adına direk okuduğum kaynaktan aldığım bilgileri ekledim. Detaylı bilgilere erişmek isterseniz içerikteki bilgileri yazmak için faydalandığım kaynakları aşağıda belirteceğim. İyi Çalışmalar dilerim.</p><h4>KAYNAKÇA :</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2F8zZ0oYCBpQ3Nyk&amp;display_name=SlideShare&amp;url=https%3A%2F%2Fwww.slideshare.net%2Ferdemgencoglu%2Fquantum-computers-41286718&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fquantumcomputers-141108024904-conversion-gate02-thumbnail-4.jpg%3Fcb%3D1415414969&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee3c0c2966ef7d7345147554747138d9/href">https://medium.com/media/ee3c0c2966ef7d7345147554747138d9/href</a></iframe><ul><li><a href="https://tr.wikipedia.org/wiki/Kuantum_bilgisayar%C4%B1">Kuantum bilgisayarı - Vikipedi</a></li><li><a href="https://samxcompany.com/kuantum-bilgisayarlarin-tarihsel-gelisimi-kuantum-bilisim/">Kuantum Bilgisayarların Tarihsel Gelişimi (Kuantum Bilişim) | samXcompany</a></li><li><a href="https://kuantumturkiye.org/klasik-bilgisayarlar-ve-kuantum-bilgisayarlar-arasindaki-farklar/">Klasik Bilgisayarlar ve Kuantum Bilgisayarlar Arasındaki Farklar</a></li></ul><p>KEYİFLİ OKUMALAR…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7673410d9e43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yazılıma İlk Adım…]]></title>
            <link>https://omerabay1.medium.com/yaz%C4%B1l%C4%B1ma-i%CC%87lk-ad%C4%B1m-70673ed338c6?source=rss-c4786676d9ff------2</link>
            <guid isPermaLink="false">https://medium.com/p/70673ed338c6</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Ömer Abay]]></dc:creator>
            <pubDate>Tue, 20 Apr 2021 19:36:05 GMT</pubDate>
            <atom:updated>2021-04-20T19:36:05.344Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Şüphesiz yazılıma başlamak isteyip de, bir türlü başlayamayanların kendine sorduğu ilk sorudur, <strong><em>Yazılıma Nereden Başlamalıyım?</em></strong> Kendimde başlarken birçok defa kendime sordum ve birçok kez cevabını aradım hala da sormaya devam ediyor ve yeni yeni cevaplar bulmaya çalışıyorum ama bugün bu yazı da şimdiye kadar bulduğum cevapları sizlerle paylaşmak istedim umarım faydalı bir içerik olur…</blockquote><h4>1-Sorgulamak</h4><p>Bence her şeyden önce yapacağınız iş ne olursa olsun başlamak istediğiniz işe sorgulamakla başlamalısınız. Sorgulamaya öncelikle kendinizden başlayın, bu işi neden yapmak istiyorum, iş gereksinimlerini yerine getirebilecek miyim? gibi sorularla kendinizi sorgulayın çünkü bir işe başlarken o işi yapabilecek miyim diye düşünmeden başlayan çoğu kimse yolun yarısına dahi gelemeden sıkılıp bırakıyor bu da vakit kaybı bence.</p><p>İkinci olarak sorgulamanız gereken durum, yazılımı kendinize iş olarak mı seçiyorsunuz yoksa hobi olarak mı?</p><p>Yaptığınız ve ya yapacağınız iş ne olursa olsun o işe sadece para kazanma gözüyle bakarsınız, yaptığınız iş size bir süre sonra ağır bir yük olarak gelecektir, yaptığınız işi kendinize hobi olarak görürseniz daha mutlu ve daha rahat yaptığınızı fark edeceksiniz çünkü insanlar hobilerini yapmaya daha meyillidir…</p><h4>2-ANALİTİK BECERİLER</h4><p>Bu başlığın açıklaması çokta uzun olmayacak, başlıktan da anlaşılacağı gibi Matematik, fizik vb. sayısal kabiliyetlerinizi geliştirebileceğiniz dersler çok önemli yazılıma bir adım atmak istiyorum diyorsanız analitik becerilerinizi geliştirebileceğiniz derslere önem verin.</p><h4>3-ALGORİTMA</h4><p>Algoritma, yazılımın temel taşıdır. Öncelikle işe algoritma öğrenmekle başlamalısınız. Yazılıma başlayan birçok kişinin “algoritma basit ya” diyerek algoritma öğrenmeden direk üst seviyelere çıkma çabası var. Öncelikle temeli sağlam atmalısınız ki kendinizi geliştirmeniz daha hızlı olsun.</p><blockquote><strong>Yazılım da ilerlemeye başladıkça göreceksiniz ki program yazmak, algoritma geliştirmektir…</strong></blockquote><h4>4-ALANINIZI BELİRLEYİN</h4><p>Yazılıma başlayan herkesin bir başlama nedeni, bir merakı elbet vardır. Sizler de öncelikle yazılıma size başlatan o nedeni bulun.</p><blockquote>Mesela sürekli oyun oynayan birisi illaki oyun geliştirme nasıl oluyor diye hayatında bir defa merak etmiştir. Bu örneği vermemdeki amaç beni yazılıma başlatan olayın bu olması…</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JeHwxisoAc9LIlb8" /><figcaption>Photo by <a href="https://unsplash.com/@everywheresean?utm_source=medium&amp;utm_medium=referral">Sean Do</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Kendinize alan belirlemenin bir diğer önemli yanı ise yazılımda kullanılan bir sürü programlama dili olması, eğer kendinize alanınızı seçerseniz bir sonraki maddeyi çok rahat geçeceksiniz.</p><blockquote>Örneğin kendini android uygulama geliştirme alanında geliştirmek isteyen birisi hangi programlama dilini öğrenmeliyim sorusunu kendine sorduğunda kendine alan belirlemeyen birisine göre daha rahat karar verebilecektir. Mesela java ve ya kotlin’den birini öğrenerek yazılıma bir adım atabilir.</blockquote><h4>5-PROGRAMLAMA DİLLERİ</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XAZfL3o0am9TXCsE" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Herkesin sabırsızlıkla beklediği, yazılıma başlamak isteyenleri asıl heyecanlandıran maddeye geldik (En azından ben öyle düşünüyorum :) ). Programlama dili öğrenmek; herkesin yazılıma başlarken kendine sorduğu ilk sorudur: “Hangisini öğrenmeliyim?”. Cevap aslında çok basit. Hangi alanda çalışmak istiyorsanız o alanda sık kullanılan dillerinden birini öğrenmenizi ben tavsiye ederim. Bunun iki sebebi var :</p><p><strong>Birinci Sebep :</strong></p><p>Eğer çalışmak istediğiniz alanda sık kullanılan dillerden birini seçerseniz ileride yazılım işini profesyonel bir şekilde yapmaya karar verdiğinizde meslek hayatına atılmanız daha kolay olacaktır.</p><p><strong>İkinci Sebep :</strong></p><p>Eğer bir dil, yazılımda herhangi bir alanda sık kullanılıyor ve o alanda fazlasıyla tercih ediliyorsa, gelişmiş bir kütüphaneye sahiptir. Çalışmak istediğiniz alanda gelişmiş bir kütüphaneye sahip olan bir dili kullanmanız geliştirme yaparken size fazlasıyla konfor sağlayacaktır…</p><h4>6-ÖĞRETİN</h4><blockquote>Öğrenmenin en kolay ve en güzel yolu öğretmektir…</blockquote><p>Belki de araştırmalarımın hepsinde gördüğüm tek madde budur. Öğrendiklerinizi öğretmek size hem motivasyon sağlayıp yazılımdan hemen sıkılmamanızı sağlayacak, hem de öğrendiğiniz bilgileri tekrar etme açısından size faydalı olacaktır…</p><p>Basit basit projeler yapıp internet ortamında yayınlayabilir ve ya teorik bilgilerinizi makale halinde internette yayınlayabilirsiniz. Belli bir seviyeye geldikten sonra insanlardan alacağınız tepkiler size motivasyon sağlayacak ve daha da gelişmenizi, insanlara daha fazla öğretmek adına daha fazla araştırmanızı sağlayacaktır…</p><p>Mesela şu an bu yazıyı okuyorsanız bu yazıdan aklınızda kalanları bir blog sayfasında sizde yayınlayabilirsiniz. Bu sizi daha da motive edecektir :)</p><h4>7-İNGİLİZCE</h4><p>Ve son maddemiz. İngilizce öğrenmek; İngilizce öğrenmek özellikle yazılımda araştırma yaparken, geliştirme yaparken, programlama dili öğrenirken fazlasıyla lazım ve şarttır. Programlama dillerinin syntax’ları olsun, yazdığınız programda oluşan bir hata da editörün size verdiği hata olsun her şey İngilizcedir.</p><p>Bunlar dışında, herhangi bir sorun yaşadınız ve o sorunu internette araştırıyorsunuz, karşınıza çoğunlukla İngilizce metinler ve makaleler gelecektir. Öğreneceğiniz dillerin tutorial’larının tamamı İngilizce’dir.</p><p>İngilizce öğrenemek yazılıma başlamanın ve devam ettirmenin en önemli maddelerindendir…</p><blockquote>Yazının sonuna geldik. Elimden geldiği kadar bildiklerimi, araştırmalarımı ve öğrendiklerimi aktarmaya çalıştım. Umarım faydalı olmuştur. Bu benim kendi alanımda yayınlayacağım ilk yazı olacak. Yazı içerisinde hatalı bir kullanımım varsa heyecanıma verin. Umarım sizlere fayda sağlar…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70673ed338c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>