<?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 Hasan Öztürk on Medium]]></title>
        <description><![CDATA[Stories by Hasan Öztürk on Medium]]></description>
        <link>https://medium.com/@hasan-ozturk?source=rss-6812be981870------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4ACaiQeFRrAbXWypVnTpNQ.jpeg</url>
            <title>Stories by Hasan Öztürk on Medium</title>
            <link>https://medium.com/@hasan-ozturk?source=rss-6812be981870------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:39:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hasan-ozturk/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[React Projelerinde Playwright ile E2E Test: Sıfırdan Production-Ready Bir Yapı Kurmak]]></title>
            <link>https://medium.com/devopsturkiye/react-projelerinde-playwright-ile-e2e-test-s%C4%B1f%C4%B1rdan-production-ready-bir-yap%C4%B1-kurmak-b2958d9b9799?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2958d9b9799</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 11:02:21 GMT</pubDate>
            <atom:updated>2026-04-03T09:41:39.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKNKV10mwKZvu7_fCzP73w.png" /></figure><h3>Giriş</h3><p>Frontend uygulamalarında bir butona tıkladığınızda doğru sayfanın açıldığını, formun doğru çalıştığını, onay sürecinin başarıyla tamamlandığını nasıl garanti ediyorsunuz? Unit testler component seviyesinde güven verir, ama kullanıcının gerçek akışını — login’den onaya, iptalden red’e — uçtan uca test etmeden bilemezsiniz.</p><p>Bu yazıda, gerçek bir React + MUI projesinde Playwright ile E2E test altyapısını sıfırdan nasıl kurduğumuzu, hangi best practice’leri uyguladığımızı ve Azure DevOps CI/CD pipeline’ına nasıl entegre ettiğimizi anlatacağım.</p><h3>Playwright Nedir?</h3><p>Playwright, Microsoft tarafından geliştirilen bir E2E (End-to-End) test framework’üdür. Chromium, Firefox ve WebKit tarayıcılarında testlerinizi çalıştırır. Selenium’dan farkı:</p><ul><li><strong>Auto-wait mekanizması:</strong> Elementin görünür, tıklanabilir ve stabil olmasını otomatik bekler</li><li><strong>Browser context izolasyonu:</strong> Aynı testte birden fazla kullanıcı oturumu açabilirsiniz</li><li><strong>Trace, screenshot, video:</strong> Hata anında otomatik kayıt</li><li><strong>Role-based selector’lar:</strong> getByRole, getByText gibi accessibility-first seçiciler</li></ul><h3>Test Yazma Bariyerini Aşmak: Cursor IDE ve Playwright MCP</h3><p>Playwright’ın gücünden bahsetmişken, modern geliştirme ortamlarının sunduğu inanılmaz bir kolaylıktan bahsetmeden geçmek olmaz. Eğer geliştirme ortamı olarak <strong>Cursor IDE</strong> kullanıyorsanız, E2E test yazma süreci artık eskisinden çok daha zahmetsiz. Playwright syntax’ını, locator stratejilerini veya assertion’ları ezbere bilmenize gerek yok.</p><p>Cursor’ın desteklediği <strong>Playwright MCP (Model Context Protocol)</strong> entegrasyonu sayesinde, yapay zekaya sadece test etmek istediğiniz senaryoyu doğal dilde anlatmanız yeterli. Doğru bir <strong>vibe coding</strong> ile harikalar yaratabilirsiniz:</p><blockquote>“Bana ‘manager’ rolüyle giriş yapıp, listedeki ilk bekleyen izin talebini onaylayan ve ardından ‘Success’ toast mesajının çıktığını doğrulayan bir test yazar mısın? Lütfen projedeki POM yapısını ve mevcut fixture’ları kullan.”</blockquote><p>Yapay zeka, projenizdeki pages/ ve fixtures/ klasörlerini analiz eder, mimarinize tam uyumlu, standartları karşılayan Playwright kodunu saniyeler içinde üretir. Size sadece kodu incelemek ve çalıştırmak kalır. Bu yaklaşım, test yazma bariyerini sıfıra indirirken, ekibin test coverage&#39;ını (kapsamını) hızla artırmasını sağlar.</p><h3>Ne Zaman E2E Test Yazılmalı?</h3><p>Her şey için E2E test yazmak doğru değil — yavaş ve kırılgandır. Sadece şu durumlarda yazın:</p><ul><li><strong>Kritik iş akışları:</strong> Login, ödeme, onay süreci, form gönderme</li><li><strong>Birden fazla rol içeren akışlar:</strong> Kullanıcı talep oluşturur, yönetici onaylar</li><li><strong>Regression olan alanlar:</strong> Tekrar tekrar bozulan özellikler</li><li><strong>Veri kaybı riski olan işlemler:</strong> Silme, iptal, güncelleme</li><li><strong>Yazmayın:</strong> Her buton için, sadece görsel değişiklikler için, 3rd party servislerin iç işleyişi için.</li></ul><h3>Proje Yapısı</h3><p>Temiz ve ölçeklenebilir bir test altyapısı için şu klasör yapısını kullandık:</p><pre>tests/e2e/<br>  config/<br>    test.config.ts          # Kullanıcı bilgileri ve test verileri<br>  fixtures/<br>    base.fixture.ts         # Custom fixture (multi-user context)<br>  pages/<br>    login.page.ts           # LoginPage POM<br>    vacation-list.page.ts   # VacationListPage POM<br>    vacation-form.page.ts   # VacationFormPage POM<br>  flows/<br>    vacation.flow.ts        # Ortak akışlar<br>  vacation-flow-approve.spec.ts<br>  vacation-flow-cancel.spec.ts<br>  vacation-flow-reject.spec.ts<br>  vacation-flow-cancel-approval.spec.ts</pre><p>Bu yapıyı oluşturan 4 temel prensip:</p><ol><li><strong>Page Object Model (POM)</strong> — Sayfa etkileşimleri ayrı class’larda</li><li><strong>Custom Fixtures</strong> — Kullanıcı oturumu yönetimi</li><li><strong>Reusable Flows</strong> — Ortak adımları tek fonksiyona toplama</li><li><strong>Test Config</strong> — Credentials ve veriler tek dosyada</li></ol><h3>Playwright Konfigürasyonu</h3><p>Konfigürasyondaki kritik kararlar:</p><ul><li><strong>retries</strong> — CI&#39;da 1 retry, lokal&#39;de sıfır. Lokal&#39;de hatayı hemen görün, CI&#39;da flaky testlere şans verin.</li><li><strong>trace: &#39;on-first-retry&#39;</strong> — Her testte trace almak yavaş. Sadece fail edip retry edilen testlerde alınır.</li><li><strong>screenshot: &#39;only-on-failure&#39;</strong> — Hata anında otomatik ekran görüntüsü.</li><li><strong>baseURL</strong> — Environment variable ile dışarıdan verilebilir. Lokal&#39;de localhost, CI/CD&#39;de test ortamı URL&#39;i.</li><li><strong>JUnit reporter</strong> — CI/CD pipeline’larında test sonuçlarını publish etmek için standart format.</li></ul><pre>retries: process.env.CI ? 1 : 0,<br>use: {<br>  baseURL: process.env.PLAYWRIGHT_BASE_URL || &#39;http://127.0.0.1:8081&#39;,<br>  trace: &#39;on-first-retry&#39;,<br>  screenshot: &#39;only-on-failure&#39;,<br>}</pre><h3>Page Object Model (POM)</h3><p>POM, test kodundaki en önemli mimari karardır. Selector’ları ve sayfa işlemlerini test dosyasından ayırır. Login işlemi 4 testte tekrarlanıyor — POM ile tek yerde tanımlanıyor:</p><pre>async login(role: UserRole) {<br>  const { username, password } = users[role];<br>  await this.page.getByRole(&#39;textbox&#39;, { name: &#39;Username&#39; }).fill(username);<br>  await this.page.getByRole(&#39;textbox&#39;, { name: &#39;Password&#39; }).fill(password);<br>  await this.page.getByRole(&#39;button&#39;, { name: &#39;Sign In&#39; }).click();<br>  await expect(this.page.getByRole(&#39;link&#39;, { name: &#39;Vacations&#39; })).toBeVisible();<br>}</pre><p>login(role) bir string değil, <strong>type-safe</strong> bir UserRole alıyor. login(&#39;admin&#39;) yazarsanız TypeScript hata verir — sadece tanımlı roller geçerli.</p><h3>Multi-User Testing: Logout Yerine Yeni Context</h3><p>Birden fazla kullanıcı rolü içeren testler E2E’nin en zorlayıcı kısmı. Yanlış yaklaşım:</p><pre>// YANLIŞ: Logout/Login döngüsü — yavaş ve kırılgan<br>await loginAs(&#39;employee&#39;);<br>await logout();<br>await loginAs(&#39;manager&#39;);</pre><p>Doğru yaklaşım: <strong>browser.newContext()</strong> ile her kullanıcı için ayrı tarayıcı oturumu:</p><pre>// DOĞRU: İzole context — hızlı ve güvenilir<br>const manager = await createUserContext(&#39;manager&#39;);<br>await manager.vacationListPage.navigate();<br>await manager.vacationFormPage.approve();</pre><p>Avantajları:</p><ul><li><strong>Logout’a gerek yok</strong> — her kullanıcı kendi izole oturumunda</li><li><strong>Daha hızlı</strong> — logout/login döngüsü yok</li><li><strong>Daha güvenilir</strong> — logout butonundaki bir bug testinizi kırmaz</li><li><strong>Otomatik temizlik</strong> — test bittiğinde tüm context’ler kapatılır</li></ul><h3>Öğrendiğimiz Dersler</h3><h3>1. waitForTimeout Kullanmayın</h3><pre>// YANLIŞ<br>await page.waitForTimeout(5000);<br>await page.click(&#39;#submit&#39;);<br><br>// DOĞRU<br>await expect(page.getByRole(&#39;button&#39;, { name: &#39;Submit&#39; })).toBeEnabled();</pre><h3>2. exact: true ile Buton Karışıklığını Önleyin</h3><p>Sayfada “Approve” ve “Approve Cancellation” gibi benzer butonlar varsa:</p><pre>// YANLIŞ — &quot;Approve Cancellation&quot;ı da yakalayabilir<br>await page.getByRole(&#39;button&#39;, { name: &#39;Approve&#39; }).click();<br><br>// DOĞRU - sadece tam &quot;Approve&quot; yazan butona tıklar<br>await page.getByRole(&#39;button&#39;, { name: &#39;Approve&#39;, exact: true }).click();</pre><h3>3. Grid’de Doğru Satırı Bulma</h3><pre>// YANLIŞ — &quot;691&quot; regex&#39;i &quot;6910&quot;u da yakalar<br>page.getByRole(&#39;row&#39;, { name: new RegExp(requestNo) });<br><br>// DOĞRU - search kutusu + word boundary<br>await page.getByPlaceholder(/Search/).fill(requestNo);<br>page.getByRole(&#39;row&#39;, { name: new RegExp(`\\b${requestNo}\\b`) });</pre><h3>4. Credentials’ı Tek Dosyada Toplayın</h3><p>3–4 test dosyasına dağıtılmış şifreler, bir değişiklikte hepsini bulmak demektir. test.config.ts ile tek dosya = tek değişiklik.</p><h3>CI/CD Entegrasyonu (Azure DevOps)</h3><p>E2E testlerini manuel çalıştırmak <strong>yanlış yaklaşımdır</strong>. Testler CI/CD pipeline’ında otomatik çalışmalıdır.</p><h3>Pipeline Akışı</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*mt3yt--dMe_nU0m-51UvXg.png" /><figcaption>CI (Build)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1_sHaeaCq88l_B5iTAZcg.png" /><figcaption>CD (Release)</figcaption></figure><pre>CI (Build)                          CD (Release)<br>  npm install                         IIS Deploy<br>  npm run build         →             npm ci<br>  Test dosyalarını kopyala            npx playwright install chromium<br>  Artifact publish                    npx playwright test<br>                                      JUnit sonuçlarını publish et<br>                                      HTML raporu artifact olarak ekle</pre><h3>CI: Hangi Dosyalar Artifact’a Dahil Edilmeli?</h3><pre>tests/**              → Test dosyaları<br>playwright.config.ts  → Konfigürasyon<br>package.json          → Bağımlılık listesi<br>package-lock.json     → npm ci için gerekli</pre><p>Bu 4&#39;lü, CD’de Playwright çalıştırmak için gereken minimum settir.</p><h3>CD: Kritik Noktalar</h3><ul><li><strong>npm ci</strong> kullanın (npm install değil) — deterministik, hızlı, CI için tasarlanmış</li><li><strong>$env:CI = &quot;true&quot;</strong> set edin — config&#39;deki retry mekanizması aktif olur</li><li><strong>PLAYWRIGHT_BASE_URL</strong> ile test ortamı URL&#39;ini dışarıdan verin</li><li><strong>Fail if there are test failures</strong> mutlaka aktif olsun — yoksa test fail olsa bile pipeline başarılı görünür</li></ul><h3>Test Sonuçlarını İzleme: Azure DevOps “Runs” Ekranı</h3><p>CI/CD pipeline’ı tamamlandığında, asıl izleme ve analiz süreci Azure DevOps üzerindeki <strong>Test Plans &gt; Runs</strong> sekmesinde başlar. Pipeline’da ürettiğimiz JUnit formatındaki test sonuçları doğrudan buraya aktarılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QRbuODOJgGIfpeSM1UAq2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xYGPNEJIIzJ9c6ZaNY4RvQ.png" /></figure><p>Bu ekranda; geçmişe dönük tüm test koşumlarını (runs), başarı oranlarını (%100 Pass rate), testlerin ne kadar sürdüğünü ve hata detaylarını görsel grafikler eşliğinde detaylıca inceleyebilirsiniz. Ekibin uygulamanın sağlığını tek bir bakışta görebildiği ve test trendlerini takip ettiği asıl kontrol merkezi tam olarak burasıdır.</p><h3><strong>Kim Yazar, Ne Zaman Çalışır?</strong></h3><ul><li>Kim yazar? — Feature’ı geliştiren developer</li><li>Ne zaman yazar? — Feature ile birlikte</li><li>Ne zaman çalışır? — Her deploy’da otomatik (CI/CD)</li><li>Manuel çalıştırılır mı? — Sadece geliştirme sırasında</li><li>Her şey için yazılır mı? — Hayır, sadece kritik iş akışları</li></ul><pre>Developer feature geliştirir<br>    ↓<br>İlgili E2E testini yazar<br>    ↓<br>Lokal&#39;de headed modda doğrular<br>    ↓<br>Push yapar<br>    ↓<br>CI/CD pipeline otomatik çalıştırır<br>    ↓<br>Test pass → Deploy devam eder<br>Test fail → Developer düzeltir</pre><h3>Sonuç</h3><p>Playwright ile E2E test yazmak, başlangıçta ekstra efor gibi görünür. Ama bir kez doğru altyapıyı kurduğunuzda — POM, fixture’lar, CI/CD entegrasyonu — yeni test yazmak sadece birkaç satır kod olur.</p><p>Bu yaklaşım ile:</p><ul><li><strong>4 test</strong>, <strong>3 kullanıcı rolü</strong> ile kritik iş akışlarını doğruluyoruz</li><li><strong>Her deploy’da otomatik</strong> çalışıyor — kimse manuel test etmek zorunda değil</li><li><strong>Hata anında</strong> screenshot, trace ve video ile hızlı debugging</li><li><strong>25 saniyede</strong> 5 adımlık, 3 kullanıcılı karmaşık bir iş sürecini uçtan uca test ediyoruz</li></ul><p>Test yazmak için “vakit yok” demek, production’da bug düzeltmek için vakit ayırmaktır.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2958d9b9799" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/react-projelerinde-playwright-ile-e2e-test-s%C4%B1f%C4%B1rdan-production-ready-bir-yap%C4%B1-kurmak-b2958d9b9799">React Projelerinde Playwright ile E2E Test: Sıfırdan Production-Ready Bir Yapı Kurmak</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vibe Coding ile Otonom İçerik Platformu Geliştirmek]]></title>
            <link>https://medium.com/devopsturkiye/vibe-coding-ile-otonom-i%CC%87%C3%A7erik-platformu-geli%C5%9Ftirmek-dc87c6fa998d?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc87c6fa998d</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 11:24:53 GMT</pubDate>
            <atom:updated>2026-03-10T06:43:16.144Z</atom:updated>
            <content:encoded><![CDATA[<p>Son zamanlarda yazılım geliştirme süreçlerinde sıkça karşımıza çıkan “vibe coding” yaklaşımı, kodun doğrudan yazılmasından ziyade sistem mimarisine, tasarım vizyonuna ve yapay zekanın yönlendirilmesine odaklanmayı temel alıyor. Bu yaklaşımın pratik bir yansıması olarak, geleneksel manuel kodlama süreçlerini kullanmadan, tamamen Claude Opus 4.6 ile otonom bir içerik platformu geliştirdim: <strong>Curated Insight Hub</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Iw6-3Zz_t5fJVol_3Y8Zw.png" /></figure><p><a href="https://curated-insight-hub.vercel.app/">https://curated-insight-hub.vercel.app/</a></p><p>Bu platform; yapay zeka, sürdürülebilirlik ve no-code gibi belirli kategorilerdeki içerikleri internetten otomatik olarak toplayan, yapay zeka ile özetleyen ve kullanıcılara sunan bir sistem. Üstelik projeyi Vercel, Supabase ve GitHub Actions araçlarını kullanarak tamamen ücretsiz ve bakıma ihtiyaç duymayan bir mimariyle canlıya almak mümkün oldu.</p><p>Bu yazıda, projenin teknik altyapısını ve vibe coding sürecinin geliştirme aşamalarına nasıl entegre edildiğini detaylı bir şekilde ele alacağım.</p><h3>1. Geliştirme Süreci ve Vibe Coding</h3><p>Projeye başlarken temel hedef, manuel kod yazımından kaçınarak mimari gereksinimleri yapay zekaya doğru prompt’larla aktarmaktı. Frontend için React ve Tailwind CSS, Backend için Node.js, veritabanı için Supabase ve arka planda veri toplayacak bot (scraper) için Crawlee ve Playwright gibi teknolojilerin kullanılacağı belirlendi.</p><p>Claude’a sistemin genel vizyonu ve bileşenleri aktarıldıktan sonra, yapay zeka kısa süre içinde birbirine entegre çalışan bir yapı üretti. Vibe coding’in temel felsefesi olan “orkestrasyon” burada devreye girdi; geliştirici olarak rolüm kod yazmak değil, üretilen modüllerin entegrasyonunu sağlamak, veritabanı yapılarını belirlemek ve arayüz gereksinimlerini optimize etmek oldu. Geçmişte günlerce sürebilecek başlangıç ve mimari kurulum aşamaları, bu sayede saatler içinde tamamlandı.</p><h3>2. Maliyetsiz Altyapı Mimarisi: Supabase ve Vercel</h3><p>Sistemin sürekli çalışabilir olması ve aynı zamanda maliyet yaratmaması için sunucusuz (serverless) hizmetlerden faydalanıldı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*85Zmqx2TIYGzk1UuQoZHjQ.png" /></figure><p><strong>Veritabanı: Neden Supabase?</strong> Veritabanı ve kimlik doğrulama çözümü olarak Supabase tercih edildi. Bunun en önemli nedeni, Supabase’in arka planda güçlü bir PostgreSQL veritabanı sunması ve Firebase gibi NoSQL alternatiflerine kıyasla karmaşık veri ilişkilerini daha rahat yönetebilmesidir. Ayrıca, ücretsiz planında bile sınırsız API isteği (limitsiz API request) sunması, hatalı bir kod döngüsünde oluşabilecek sürpriz fatura risklerini tamamen ortadan kaldırmaktadır. Supabase arayüzü üzerinden kullanıcı yönetimi ve Row Level Security (RLS) veri güvenlik politikaları hızlıca yapılandırıldı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J5ubQDfDUXZU9SXfTv2i5g.png" /></figure><p><strong>Frontend Dağıtımı: Vercel Entegrasyonu</strong> Sitenin arayüzünün canlıya alınması sürecinde Vercel kullanıldı. Özellikle <a href="https://vercel.com/marketplace/supabase">Vercel’in Supabase Marketplace Entegrasyonu</a> dağıtım sürecindeki operasyonel yükü ciddi anlamda azalttı. İki sistemin yerel (native) entegrasyonu sayesinde, SUPABASE_URL ve SUPABASE_ANON_KEY gibi ortam değişkenlerinin manuel olarak kopyalanmasına gerek kalmadı; Vercel bu değişkenleri otomatik olarak projeye senkronize etti. GitHub deposu bağlandıktan sonra, tek bir işlemle proje global bir CDN üzerinden yayına alındı.</p><h3>3. Sistemin Temeli: GitHub Actions ile Otonom Bot</h3><p>Platformun güncel kalabilmesi, arka planda içerik toplayan botun düzenli olarak çalışmasına bağlıdır. Bu işlemi bir sunucu kiralamadan, ücretsiz ve izole bir şekilde çözmek için <strong>GitHub Actions</strong> kullanıldı.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBZxqvakNLFmlVMFo4WB6A.png" /></figure><p>Depoya eklenen .github/workflows/scraper.yml dosyası ile bir cron job tanımlandı:</p><pre>name: Scraperon:<br>  schedule:<br>    # Her 2 saatte bir çalışır (UTC)<br>    - cron: &#39;0 */2 * * *&#39;<br>  workflow_dispatch: # Manuel tetikleme opsiyonu</pre><p>Bu yapı şu şekilde çalışmaktadır:</p><ol><li>GitHub, belirlenen aralıklarla (her 2 saatte bir) izole bir Ubuntu sanal makinesi başlatır.</li><li>Proje için gerekli bağımlılıklar (Node.js, Playwright tarayıcı motorları vb.) sisteme kurulur.</li><li>Scraper botu çalıştırılarak internetteki kaynaklar taranır, yeni içerikler tespit edilir, OpenAI API aracılığıyla özetlenir ve Supabase veritabanına yazılır.</li><li>İşlem tamamlandığında sanal makine otomatik olarak kapatılır.</li></ol><p>Bu sayede, sıfır sunucu maliyeti ile kendi kendini güncelleyen otonom bir sistem elde edilmiş oldu.</p><h3>Sonuç</h3><p>Vibe coding yaklaşımı ve modern yapay zeka modelleri, yazılım geliştirme süreçlerindeki teknik bariyerleri ve geliştirme sürelerini ciddi ölçüde azaltmaktadır. Curated Insight Hub projesi; doğru mimari kararlar ve Vercel, Supabase, GitHub Actions gibi modern sunucusuz araçların kombinasyonu ile maliyetsiz, güçlü ve tamamen otonom bir sistemin nasıl kurulabileceğine dair somut bir örnek sunmaktadır.</p><p>Geliştiriciler için odak noktası artık yalnızca kod yazmak değil; doğru araçları seçmek, sistemleri entegre etmek ve yapay zekayı etkin bir şekilde yönetmek (orkestre etmek) haline gelmiştir. Bu dönüşüm, fikirleri ürüne dönüştürme hızımızı her geçen gün daha da artıracaktır.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc87c6fa998d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/vibe-coding-ile-otonom-i%CC%87%C3%A7erik-platformu-geli%C5%9Ftirmek-dc87c6fa998d">Vibe Coding ile Otonom İçerik Platformu Geliştirmek</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kurumsal Yapılarda Üretken Yapay Zeka: OpenWebUI, RAG ve Otomatik Doküman Senkronizasyonu…]]></title>
            <link>https://medium.com/devopsturkiye/kurumsal-yap%C4%B1larda-%C3%BCretken-yapay-zeka-openwebui-rag-ve-otomatik-dok%C3%BCman-senkronizasyonu-7a58ee04c073?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a58ee04c073</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[open-webui]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[knowledge]]></category>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 09:16:21 GMT</pubDate>
            <atom:updated>2026-03-03T06:24:13.739Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kurumsal Yapılarda Üretken Yapay Zeka: OpenWebUI, RAG ve Otomatik Doküman Senkronizasyonu (Watchdog)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rFFG6j_PRUov73MbnSO4JQ.jpeg" /></figure><p>Yapay zeka (AI) artık sadece bulut tabanlı API’lerden ibaret değil. Kurumlar, veri gizliliğini sağlamak (data privacy) ve maliyetleri kontrol altında tutmak için kendi sunucularında (on-premise) çalışan LLM (Büyük Dil Modeli) çözümlerine yöneliyor. İşte tam bu noktada <strong>OpenWebUI</strong> harika bir arayüz ve yönetim katmanı sunuyor.</p><p>Bu yazıda, OpenWebUI’ın Docker üzerinde yerel ağa nasıl kurulacağından, LDAP ve Azure entegrasyonlarından ve son olarak kurum içindeki PDF’lerinizi nasıl otomatik olarak yapay zekanın “Bilgi Bankasına” (Knowledge Base) senkronize edebileceğinizden (Watchdog &amp; Worker Mimarisi) bahsedeceğiz.</p><h3>OpenWebUI Nedir?</h3><p><strong>OpenWebUI</strong>, ChatGPT benzeri bir kullanıcı deneyimi sunan, ancak arka planda <a href="https://ollama.com/">Ollama</a>, OpenAI, Anthropic gibi birçok farklı dil modelini (LLM) aynı anda kullanabilmenize olanak tanıyan açık kaynaklı bir arayüzdür.</p><p>Özellikle kurumsal ortamlar için mükemmeldir çünkü:</p><ul><li>Kendi sunucularınızda (On-Premise) tamamen kapalı devre çalışabilir.</li><li>LDAP/Active Directory entegrasyonu ile şirket kullanıcılarını kolayca yönetebilirsiniz.</li><li>RAG (Retrieval-Augmented Generation) mimarisini yerleşik olarak destekler (kendi PDF’lerinizle sohbet edebilirsiniz).</li></ul><h3>On-Premise Docker ile Kurulum (docker-compose.yml)</h3><p>Sistemimizi 3 ana bileşen üzerine kuracağız:</p><ol><li><strong>PostgreSQL (pgvector):</strong> Hem uygulama veritabanı hem de RAG için belgelerimizin vektör (embedding) karşılıklarını tutacağımız veritabanı.</li><li><strong>Ollama:</strong> Açık kaynaklı LLM’leri (Llama 3, Mistral vb.) yerel makinemizde çalıştırmamızı sağlayan motor.</li><li><strong>OpenWebUI:</strong> Kullanıcıların etkileşime gireceği, belgeleri yükleyeceği web arayüzü.</li></ol><p>Aşağıdaki docker-compose.yml dosyası, kurumsal özelliklerle (LDAP, Azure Storage vb.) donatılmış bir üretim (production) ortamı örneğidir:</p><pre>services:<br>  postgres:<br>    image: pgvector/pgvector:0.8.0-pg17<br>    container_name: openwebui-postgres<br>    restart: unless-stopped<br>    environment:<br>      POSTGRES_DB: openwebui<br>      POSTGRES_USER: postgres<br>      POSTGRES_PASSWORD: &quot;xxx&quot; # Veritabanı şifreniz<br>    volumes:<br>      - postgres_data:/var/lib/postgresql/data<br>    ports:<br>      - &quot;5432:5432&quot;<br>    healthcheck:<br>      # Veritabanı ayağa kalktığında pgvector eklentisini otomatik kurar<br>      test: [&quot;CMD-SHELL&quot;, &quot;pg_isready -U postgres -d openwebui &amp;&amp; psql -U postgres -d openwebui -c &#39;CREATE EXTENSION IF NOT EXISTS vector;&#39; || exit 1&quot;]<br>      interval: 10s<br>      timeout: 5s<br>      retries: 5<br>      start_period: 40s<br>    networks:<br>      - openwebui-network<br>    ollama:<br>    image: ollama/ollama:0.13.5<br>    container_name: openwebui-ollama<br>    restart: unless-stopped<br>    volumes:<br>      - ollama_data:/root/.ollama<br>    ports:<br>      - &quot;11434:11434&quot;<br>    networks:<br>      - openwebui-network<br>  openwebui:<br>    image: ghcr.io/open-webui/open-webui:v0.8.3<br>    container_name: openwebui<br>    restart: unless-stopped<br>    depends_on:<br>      postgres:<br>        condition: service_healthy<br>      ollama:<br>        condition: service_started<br>    ports:<br>      - &quot;3000:8080&quot;<br>    environment:<br>      # --- Temel Ayarlar ---<br>      DATABASE_URL: &quot;postgresql://postgres:xxx@postgres:5432/openwebui&quot;<br>      OLLAMA_BASE_URL: &quot;http://ollama:11434&quot;<br>      VECTOR_DB: &quot;pgvector&quot; # RAG için pgvector kullanılacağını belirtir<br>      WEBUI_NAME: &quot;Kurumsal - AI Chatbot&quot;<br>      WEBUI_URL: &quot;http://localhost:3000&quot;<br>      WEBUI_SECRET_KEY: &quot;xxx&quot;<br>      <br>      # --- Active Directory (LDAP) Entegrasyonu ---<br>      ENABLE_LDAP: &quot;true&quot;<br>      LDAP_SERVER_LABEL: &quot;Şirket AD&quot;<br>      LDAP_SERVER_HOST: &quot;corp.domain.local&quot;<br>      LDAP_SERVER_PORT: &quot;389&quot;<br>      LDAP_USE_TLS: &quot;false&quot;<br>      LDAP_APP_DN: &quot;CN=adsync,OU=Users,DC=corp,DC=domain,DC=local&quot;<br>      LDAP_APP_PASSWORD: &quot;xxx&quot;<br>      LDAP_SEARCH_BASE: &quot;DC=corp,DC=domain,DC=local&quot;<br>      LDAP_ATTRIBUTE_FOR_USERNAME: &quot;userPrincipalName&quot;<br>      LDAP_ATTRIBUTE_FOR_MAIL: &quot;mail&quot;<br>      <br>      # --- Model ve Chat Ayarları ---<br>      TASK_MODEL: &quot;openai/gpt-4o-mini&quot;<br>      ENABLE_MEMORY: &quot;true&quot;<br>      # Gemini gibi modellerde büyük resimler için buffer artırımı<br>      CHAT_STREAM_RESPONSE_CHUNK_MAX_BUFFER_SIZE: &quot;16777216&quot; <br>      <br>      # --- Ses İşleme (STT/TTS) ---<br>      WHISPER_MODEL: &quot;base&quot;<br>      WHISPER_LANGUAGE: &quot;tr&quot; # Türkçe ses tanıma optimizasyonu<br>      AUDIO_TTS_ENGINE: &quot;openai&quot;<br>      <br>      # --- Azure Blob Storage Entegrasyonu ---<br>      # Yüklenen dosyaların sunucu yerine Azure Blob&#39;da tutulması<br>      STORAGE_PROVIDER: &quot;azure&quot;<br>      AZURE_STORAGE_ACCOUNT_NAME: &quot;myazurestorage&quot;<br>      AZURE_STORAGE_ENDPOINT: &quot;https://myazurestorage.blob.core.windows.net&quot;<br>      AZURE_STORAGE_CONTAINER_NAME: &quot;openwebui-uploads&quot;<br>      AZURE_STORAGE_KEY: &quot;xxx&quot;<br>      <br>    volumes:<br>      - openwebui_data:/app/backend/data<br>    networks:<br>      - openwebui-network<br>volumes:<br>  postgres_data:<br>    driver: local<br>  ollama_data:<br>    driver: local<br>  openwebui_data:<br>    driver: local<br>networks:<br>  openwebui-network:<br>    driver: bridge</pre><h3>Önemli Ayarların Anlamı:</h3><ul><li><strong>VECTOR_DB: &quot;pgvector&quot;</strong>: Varsayılan ChromaDB yerine, vektör gömmelerini (embeddings) PostgreSQL üzerinde tutmamızı sağlar. Kurumsal ölçeklenebilirlik için harikadır.</li><li><strong>LDAP Parametreleri</strong>: Şirket çalışanlarının kendi Windows/Domain şifreleriyle chatbot’a giriş yapmasını sağlar. Ekstra kullanıcı açmanıza gerek kalmaz.</li><li><strong>Azure Blob Storage</strong>: OpenWebUI’a yüklenen veya RAG için kullanılan devasa PDF’lerin Docker volume’u şişirmesini engeller, dosyaları güvenli bir şekilde bulut deponuza atar.</li></ul><h3>PDF’ler ile RAG (Retrieval-Augmented Generation)</h3><p>RAG, özetle “Yapay zekanın bilmediği bilgileri (sizin şirket kurallarınız, IK dokümanlarınız veya ürün teknik föyleriniz) bir veritabanından bulup, AI modeline bağlam (context) olarak vererek cevap üretmesini sağlamak” demektir.</p><p>OpenWebUI içinde bir “Bilgi Bankası” (Knowledge Base) oluşturup PDF’leri yüklediğinizde arka planda şu olur:</p><ol><li>PDF metinleri çıkartılır.</li><li>Metinler küçük parçalara (chunk) bölünür.</li><li>Bir Embedding modeli (örn. <em>nomic-embed-text</em>) bu metinleri sayısal vektörlere çevirir.</li><li>Vektörler pgvector veritabanına yazılır.</li></ol><p>Kullanıcı soru sorduğunda, sistem önce soruyla en alakalı doküman parçalarını bulur ve cevabı ona göre üretir.</p><h3>İzleme (Watchdog) ve Worker Sistemi ile Otomasyon</h3><p>Kurumsal bir senaryoda, bir çalışanın her yeni teknik dokümanı veya PDF’i manuel olarak web arayüzünden yüklemesi verimli değildir. Ortak bir ağ klasörüne (Shared Folder) atılan PDF’lerin otomatik olarak OpenWebUI Bilgi Bankasına aktarılması çok daha profesyonel bir çözümdür.</p><p>Bunun için Python’un watchdog kütüphanesini kullanan ve arka planda çalışan (worker thread) bir senkronizasyon sistemi yazabiliriz.</p><h3>Nasıl Çalışır?</h3><ol><li><strong>Watchdog Observer</strong>: Belirli bir klasörü izler (Örn: \\server\Ortak\TechPacks).</li><li><strong>Event Handler</strong>: Klasöre yeni bir PDF kopyalandığında veya mevcut PDF güncellendiğinde bunu algılar.</li><li><strong>API Client (Worker)</strong>: OpenWebUI’ın REST API’sine istek atarak dosyayı yükler (POST /api/v1/files/) ve ilgili Knowledge Base&#39;e ekler (POST /api/v1/knowledge/{id}/file/add).</li></ol><p>İşte bu mimariyi uyguladığımız küçük bir kod örneği:</p><pre>import os<br>import logging<br>from watchdog.events import FileSystemEventHandler<br># OpenWebUI API ile haberleşecek özel client&#39;ımız<br>from core.sync.infrastructure.client import OpenWebUIClient <br>logger = logging.getLogger(__name__)<br>class AutoSyncFileHandler(FileSystemEventHandler):<br>    &quot;&quot;&quot;Klasördeki dosya değişikliklerini dinleyip OpenWebUI&#39;a gönderen Handler&quot;&quot;&quot;<br>    def __init__(self, api_client: OpenWebUIClient, knowledge_id: str):<br>        super().__init__()<br>        self.api_client = api_client<br>        self.knowledge_id = knowledge_id<br>    def on_created(self, event):<br>        if event.is_directory or not event.src_path.lower().endswith(&#39;.pdf&#39;):<br>            return<br>            <br>        logger.info(f&quot;📄 Yeni dosya algılandı: {os.path.basename(event.src_path)}&quot;)<br>        self._sync_to_openwebui(event.src_path)<br>    def on_modified(self, event):<br>        if event.is_directory or not event.src_path.lower().endswith(&#39;.pdf&#39;):<br>            return<br>            <br>        logger.info(f&quot;✏️ Dosya güncellendi: {os.path.basename(event.src_path)}&quot;)<br>        self._sync_to_openwebui(event.src_path)<br>    def _sync_to_openwebui(self, filepath: str):<br>        try:<br>            # 1. Dosyayı OpenWebUI&#39;a upload et<br>            status, file_id = self.api_client.upload_file(filepath)<br>            <br>            if status == &quot;SUCCESS&quot; and file_id:<br>                # 2. Yüklenen dosyayı belirli bir Knowledge Base&#39;e bağla<br>                kb_status = self.api_client.add_to_knowledge(file_id, self.knowledge_id)<br>                <br>                if kb_status == &quot;SUCCESS&quot;:<br>                    logger.info(f&quot;✅ Dosya başarıyla Knowledge Base&#39;e eklendi: {filepath}&quot;)<br>                else:<br>                    logger.error(&quot;⚠️ Dosya yüklendi ama Knowledge Base&#39;e eklenemedi.&quot;)<br>        except Exception as e:<br>            logger.error(f&quot;❌ Senkronizasyon hatası: {e}&quot;)</pre><p>Bu yapı, şirket süreçlerini yapay zeka ile tam entegre hale getirir. Mühendisler standart klasörlerine teknik spekleri (TechPack) kaydettikleri anda saniyeler içinde şirket Chatbot’u bu yeni dökümanları okuyup sorulara cevap verebilecek hale gelir.</p><h3>Çoklu Knowledge Base ve Klasör Yönetimi: Merkezi Sync Paneli</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KM-uQGuwGYRev3UK8zjhTQ.png" /></figure><p>Kurumsal ortamlarda genellikle birden fazla departman ve farklı doküman türleri bulunur. Örneğin; İnsan Kaynakları prosedürleri için ayrı bir klasör ve Bilgi Bankası (Knowledge Base), Ar-Ge departmanının teknik dokümanları için (örneğin <em>Under Armor Manuals</em>) tamamen ayrı bir klasör ve Knowledge Base olması gerekir.</p><p>Sadece bir arka plan servisi yazmak yerine, bu süreci izleyip yönetebilmek için (görselde gördüğünüz gibi) bir <strong>OpenWebUI Sync Yönetim Paneli</strong> geliştirebilirsiniz. Geliştirdiğimiz bu arayüz sayesinde:</p><ul><li><strong>Çoklu Konfigürasyon (Multi-tenant):</strong> Birden fazla ağ klasörünü, farklı OpenWebUI Knowledge Base ID’leri ile bağımsız şekilde eşleştirebiliyoruz.</li><li><strong>Gerçek Zamanlı Metrikler:</strong> Klasörde toplam kaç dosya var, OpenWebUI tarafına kaç tanesi aktarıldı, kaç dosya hata aldı gibi metrikleri anlık olarak görebiliyoruz.</li><li><strong>Esnek Tarama Yöntemleri:</strong> Klasörleri ister Watchdog (olay tabanlı) ister Polling (örn. 10 saniyede bir tarama) mantığıyla dinleyebiliyoruz.</li><li><strong>Tam Kontrol:</strong> Servisleri durdurma/başlatma, logları okuma veya “Force Sync” butonuyla tüm klasörü zorla yeniden senkronize etme işlemlerini IT ekibinin terminale girmesine gerek kalmadan web üzerinden yapabiliyoruz.</li></ul><p>Bu tarz bir arayüz, arka planda çalışan Python Worker sistemini “kutu” olmaktan çıkarıp, kolayca izlenebilir ve ölçeklenebilir kurumsal bir ürüne dönüştürüyor.</p><h3>OpenWebUI Tarafında Knowledge Base’leri Modellere Bağlama</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpwNO-ruHtAtoNHXn7gloA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*UfgEDUUliGKPe3T32sGTFg.png" /></figure><p>Otomatik senkronizasyon sistemiyle PDF’lerimizi OpenWebUI içerisindeki Workspace &gt; Knowledge alanında bulunan koleksiyonlara (Collection) başarıyla aktardık. Görsellerde gördüğünüz gibi <em>Under Armour-CommonThread</em> veya <em>Under-Armour-Manuals</em> gibi farklı koleksiyonlarımız artık hazır. Peki bu bilgileri yapay zeka nasıl kullanacak?</p><p>OpenWebUI’ın en güçlü yanlarından biri <strong>Modeller (Workspace &gt; Models)</strong> sayfasıdır. Standart bir LLM (örneğin gpt-4o-mini veya yerel çalışan llama3) seçip, bu modele <strong>sadece belirli Knowledge Base&#39;leri</strong> atayarak (set ederek) yepyeni, özelleştirilmiş bir AI Asistanı yaratabilirsiniz:</p><ol><li><strong>Özel Sistem Promptu (System Prompt):</strong> Modele <em>“Eğer soru sana verilen dokümanlardan (retrieved chunks) cevaplanamıyorsa, bunu açıkça belirt. Sadece gerçeklere dayalı, kısa ve yapılandırılmış cevaplar ver”</em> gibi katı kurallar tanımlayabilirsiniz. (Buna RAG kuralları (Guardrails) denir).</li><li><strong>Knowledge Seçimi:</strong> Modelin ayarlarından Knowledge bölümüne gelip, arka planda Watchdog ile beslediğimiz koleksiyonu (örn: <em>Under Armour-CommonThread</em>) seçiyoruz.</li></ol><p>Bu ayarı kaydedip modele <em>“Ar-Ge Asistanı”</em> adını verdiğimizde; artık kullanıcılar bu asistanı seçtiklerinde sadece o asistanın sahip olduğu doküman havuzundaki bilgilere göre cevap alırlar. İnsan Kaynakları asistanı ayrı, Teknik Destek asistanı ayrı doküman havuzlarıyla, birbirlerine karışmadan temiz (hallucination olmadan) cevaplar üretebilir.</p><h3>Sonuç</h3><p>On-Premise LLM çözümleri artık kurulumu haftalar süren karmaşık sistemler değil. <strong>OpenWebUI</strong>, <strong>Ollama</strong>, <strong>pgvector</strong> üçlüsü; kurumsal entegrasyonlar (LDAP, Cloud Storage) ile beraber son derece güçlü bir platform sunuyor. Bunun üzerine kendi yazacağınız küçük <strong>Watchdog/Worker</strong> scriptleri ile yapay zekayı kurumunuzun yaşayan bir parçası haline getirebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a58ee04c073" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/kurumsal-yap%C4%B1larda-%C3%BCretken-yapay-zeka-openwebui-rag-ve-otomatik-dok%C3%BCman-senkronizasyonu-7a58ee04c073">Kurumsal Yapılarda Üretken Yapay Zeka: OpenWebUI, RAG ve Otomatik Doküman Senkronizasyonu…</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yapay Zeka Destekli Doküman Karşılaştırma Sistemimizi Nasıl İnşa Ettik?]]></title>
            <link>https://medium.com/devopsturkiye/yapay-zeka-destekli-dok%C3%BCman-kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rma-sistemimizi-nas%C4%B1l-i%CC%87n%C5%9Fa-ettik-9f4e94303b3c?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4e94303b3c</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[compare-pdf]]></category>
            <category><![CDATA[litellm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gpt]]></category>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 11:22:44 GMT</pubDate>
            <atom:updated>2026-02-27T09:23:55.751Z</atom:updated>
            <content:encoded><![CDATA[<h3>Yapay Zeka Destekli Doküman Karşılaştırma Sistemimizi Nasıl İnşa Ettik? (LiteLLM, Parametrik Yönetim ve Maliyet Takibi)</h3><p>Son projemizde, karmaşık PDF dokümanlarını (TechPack veya Artwork gibi üretim spesifikasyon dosyalarını) yapay zeka kullanarak karşılaştıran ve farklılıkları raporlayan bir sistem geliştirdik. Bu süreçte sadece “bir modele istek atıp cevap almak” yeterli olmuyor. Farklı sağlayıcıların (OpenAI, Anthropic, Google) modellerini denemek, promptları sürekli iyileştirmek ve her bir isteğin maliyetini (cost) kuruşu kuruşuna takip etmek gerekiyor.</p><p>Bu yazıda, kodun teknik derinliklerinde boğulmadan; çoklu dil modellerini nasıl yönettiğimizi, LiteLLM kütüphanesini nasıl kullandığımızı ve prompt/maliyet yönetimini nasıl parametrik bir yapıya kavuşturduğumuzu anlatacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*QAKnUVhHQG0Xu3XV3Iz_jQ.png" /></figure><h3>LiteLLM Nedir? Python’da Nasıl Kullanılır?</h3><p>Farklı yapay zeka modellerini (GPT-4o, Claude 3.5 Sonnet, Gemini vb.) projenize entegre etmek istediğinizde, her sağlayıcının kendi SDK’sını ve farklı API yapılarını öğrenmeniz gerekir. İşte <strong>LiteLLM</strong> tam bu noktada hayat kurtarıyor. LiteLLM, 100&#39;den fazla LLM sağlayıcısını standart OpenAI Chat Completions formatında kullanmanızı sağlayan harika bir Python kütüphanesidir.</p><p>Sadece model adının başına sağlayıcıyı (örneğin openrouter/anthropic/claude-sonnet-4.5 veya gemini/gemini-3.1-pro-preview) eklemeniz yeterli oluyor.</p><p>Bizim projemizdeki kullanım tarzına benzer, sadeleştirilmiş bir adaptör örneği:</p><pre>import litellm# LiteLLM&#39;in kendi loglarını kapatıp kontrolü elimize alıyoruz<br>litellm.suppress_debug_info = True<br># Modelin desteklemediği parametreleri (örn. bazı modellerde temperature) otomatik düşürür<br>litellm.drop_params = True<br>async def call_llm(messages, model_name, api_key, temperature=0.2):<br>    try:<br>        # Hangi model olursa olsun standart OpenAI formatında çağrı yapıyoruz<br>        response = await litellm.acompletion(<br>            model=model_name,<br>            messages=messages,<br>            api_key=api_key,<br>            temperature=temperature<br>        )<br>        <br>        # Yanıtı ve ham objeyi dönüyoruz<br>        return response.choices[0].message.content, response<br>        <br>    except Exception as e:<br>        print(f&quot;LLM çağrısı başarısız: {e}&quot;)<br>        return None, None</pre><p>Bu sayede kodumuzu belirli bir sağlayıcıya (vendor lock-in) bağımlı olmaktan kurtardık. Tek bir fonksiyonla tüm dünyadaki modellere erişebilir hale geldik.</p><h3>Prompt ve Modellerin Parametrik Yönetimi</h3><p>Yapay zeka projelerinde en büyük hatalardan biri promptları ve model isimlerini kodun içine (hardcoded) gömmektir. Biz bu süreci tamamen dinamik ve parametrik bir hale getirdik.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pqnnpFuQIWqdgdON0j2_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*tHXbfKF9VUm0vK8nf3MOvQ.png" /></figure><p><strong>1. Modellerin Yönetimi</strong> Sisteme eklediğimiz modelleri, sağlayıcılarını (Provider), API anahtarlarını ve en önemlisi <strong>girdi/çıktı (Input/Output) maliyetlerini</strong> veritabanında tutuyoruz. Böylece yeni bir model çıktığında kod yazmadan, sadece arayüzden ekleyebiliyoruz. Ayrıca “Reasoning” (akıl yürütme) eforu gibi modele özel ayarları da buradan yönetiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUur1M8FwhUywCHAAGsoHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*eU_U2P-DEd9Kslt1Wbb7Ug.png" /></figure><p><strong>2. Prompt Yönetimi</strong> Promptlarımızı XML formatında (&lt;role&gt;, &lt;task&gt;, &lt;document_types&gt; gibi etiketlerle) yapılandırıyoruz. Hangi sürecin (örneğin <em>classification</em> veya <em>comparison_generator</em>), hangi doküman tipinde, hangi model ve <em>temperature</em> değeriyle çalışacağını bu arayüzden belirliyoruz.</p><p>Bu yapı sayesinde, “Claude 3.5 Sonnet ile TechPack karşılaştırması daha iyi sonuç veriyor, onu kullanalım” dediğimizde tek yapmamız gereken arayüzden ilgili prompt’un modelini değiştirmek oluyor. Kod deploy etmeye gerek kalmadan anında canlıya alabiliyoruz.</p><h3>Sistem ve Maliyet (Cost) Loglarının Saklanması</h3><p>Her LLM çağrısı bir maliyet demek. Özellikle PDF gibi büyük verileri işlerken girdi (input) token’ları çok hızlı artabiliyor. Bu yüzden her bir isteğin maliyetini anlık olarak hesaplayıp Elasticsearch üzerinde logluyoruz.</p><p>Bunu yaparken ana API akışımızı yavaşlatmamak için arka planda çalışan bir <em>worker thread</em> ve <em>kuyruk (queue)</em> yapısı kullanıyoruz. LiteLLM, maliyet hesaplama konusunda da bize hazır fonksiyonlar sunuyor:</p><pre>import litellm<br>import logging<br>def calculate_cost_for_model(response, tokens, model):<br>    &quot;&quot;&quot;Belirli bir model adı üzerinden maliyet hesabı dener.&quot;&quot;&quot;<br>    # Toplam maliyet<br>    total = litellm.completion_cost(completion_response=response, model=model)<br>    if total is None:<br>        return None<br>    # Girdi/Çıktı detaylı maliyet<br>    input_cost, output_cost = litellm.cost_per_token(<br>        model=model,<br>        prompt_tokens=tokens[&quot;input&quot;],<br>        completion_tokens=tokens[&quot;output&quot;]<br>    )<br>    <br>    # Kalan tutarı (varsa) reasoning (akıl yürütme) maliyeti olarak varsay<br>    reasoning_cost = max(total - input_cost - output_cost, 0.0)<br>    return {<br>        &quot;input&quot;: round(input_cost, 8),<br>        &quot;output&quot;: round(output_cost, 8),<br>        &quot;reasoning&quot;: round(reasoning_cost, 8),<br>        &quot;total&quot;: round(total, 8),<br>    }<br>def calculate_and_log_cost(response, tokens, requested_model, request_id):<br>    &quot;&quot;&quot;Fallback (Yedek) mekanizmalı maliyet hesabı.&quot;&quot;&quot;<br>    # 1. Deneme: Kendi belirlediğimiz model adıyla (Örn: veritabanındaki ad)<br>    try:<br>        cost = calculate_cost_for_model(response, tokens, requested_model)<br>        if cost:<br>            return cost<br>    except Exception:<br>        pass<br>    # 2. Deneme: Modelin kendi döndürdüğü isimle (Örn: API&#39;nin geri döndüğü orijinal ad)<br>    response_model = getattr(response, &quot;model&quot;, None)<br>    if response_model and response_model != requested_model:<br>        try:<br>            cost = calculate_cost_for_model(response, tokens, response_model)<br>            if cost:<br>                logging.info(f&quot;[{request_id}] Maliyet, response model ({response_model}) üzerinden hesaplandı.&quot;)<br>                return cost<br>        except Exception as e:<br>            logging.warning(f&quot;[{request_id}] LiteLLM maliyet hesabı başarısız: {e}&quot;)<br>            <br>    return {&quot;input&quot;: 0.0, &quot;output&quot;: 0.0, &quot;reasoning&quot;: 0.0, &quot;total&quot;: 0.0}</pre><p>Bu loglar sayesinde Kibana üzerinden “Hangi müşteri/istek bize ne kadar maliyet yarattı?”, “Hangi model daha ekonomik?” gibi soruların cevaplarını anlık olarak görebiliyoruz.</p><h3>Sonuç</h3><p>Yapay zeka entegrasyonlarında sadece doğru promptu yazmak işin sadece bir kısmı. Sistemi ölçeklenebilir kılmak için LiteLLM gibi araçlarla sağlayıcı bağımsız bir yapı kurmak, prompt/model konfigürasyonlarını koddan ayırmak ve maliyetleri sıkı bir şekilde takip etmek projenin uzun vadeli başarısı için kritik öneme sahip.</p><p>Umarım bu yaklaşım, kendi yapay zeka projelerinizi geliştirirken size ilham verir!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4e94303b3c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/yapay-zeka-destekli-dok%C3%BCman-kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rma-sistemimizi-nas%C4%B1l-i%CC%87n%C5%9Fa-ettik-9f4e94303b3c">Yapay Zeka Destekli Doküman Karşılaştırma Sistemimizi Nasıl İnşa Ettik?</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Kod İnceleme Promptunuz Neden Dev Gibi? (Ve 1.400 Tokenlık Çözüm)]]></title>
            <link>https://medium.com/@hasan-ozturk/ai-kod-i%CC%87nceleme-promptunuz-neden-dev-gibi-ve-1-400-tokenl%C4%B1k-%C3%A7%C3%B6z%C3%BCm-83090e9a9353?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/83090e9a9353</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 08:18:18 GMT</pubDate>
            <atom:updated>2026-03-30T06:23:52.304Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Haftalarca “Mükemmel” Promptu Yazmak İçin Uğraştım. İşte Son Durum.</strong></p><p><em>Piyasadaki kod inceleme promptlarının çoğu neden çuvallıyor? Claude, GPT-4 ve Gemini ile gerçekten verim alabileceğiniz, araştırmalara dayanan modüler bir sistem.</em></p><p>İnternette “işte efsane kod inceleme promptu” diye dolaşan metinlerin çoğunda aynı temel hata var: Araç değil, adeta birer ansiklopedi gibiler. 200 küsur maddelik listeyi bir duvar gibi yapay zekanın önüne yığıp, sonra da mucize bekliyoruz.</p><p>Bunu çok iyi biliyorum çünkü o devasa promptlardan birini bizzat ben yazdım. Sonra haftalarca “neden bu kadar vasat sonuçlar alıyorum?” diye kafa patlattım ve LLM araştırmalarını inceleyerek her şeyi sıfırdan kurdum.</p><p>Bu yazıda ulaştığım final sistemini paylaşıyorum. Alın, kullanın, kendinize göre evirin; tamamen serbest.</p><h3>Uzun Promptların Derdi Ne?</h3><p>Çözüme geçmeden önce, neyi düzeltmeye çalıştığımızı anlatayım.</p><p>Ben işe çok kapsamlı bir TypeScript inceleme promptuyla başlamıştım. 13 kategori, 40 küsur alt başlık ve 200’den fazla kontrol maddesi… Kağıt üzerinde harika duruyordu. Ama gerçekte yapay zeka ne yapıyordu? En kritik yer olan güvenliği şöyle bir üstten geçiyor, kod kalitesiyle ilgili yüzeysel yorumlar yapıyor ve sonunda gidip isimlendirme standartları üzerine üç paragraf nutuk çekiyordu. Yani asıl meseleler arada kaynayıp gidiyordu.</p><p>Araştırmalar bunun nedenini çok net açıklıyor:</p><ul><li><strong>Token Bozulması:</strong> Yapay zekanın doğruluk oranı 500 tokenda %95 civarındayken, 2.000 tokenda %80&#39;lere düşüyor. 2.500 tokenı geçtiğinizde ise “halüsinasyon” (uydurma) riski %34 artıyor. Benim eski promptum, içine daha tek satır kod koymadan zaten 3.800 token olmuştu.</li><li><strong>Yakınlık Önyargısı:</strong> Yapay zeka, 10.000 tokenlık bir metnin ilk kısımlarına dikkatinin sadece %12–18&#39;ini ayırıyor. En son ne okuduysa ona odaklanıyor. Yani ben “önce güvenlik, en son stil” diye sıralasam bile, o en sondaki stili en önemli sanıyor.</li><li><strong>Dikkatin Dağılması:</strong> Bir LLM’den 200 şeyi kontrol etmesini isterseniz, 200&#39;ünü de yarım yamalak yapar. Ama 20 şeye odaklan derseniz, o 20 şeyi canavar gibi inceler.</li></ul><p>Kısacası çözüm daha fazla şey sormak değil, <strong>daha akıllıca sormak.</strong></p><h3>Tasarım İlkelerim</h3><p>Sistemi şu beş temel prensip üzerine kurdum:</p><ol><li><strong>Parçala ve Yönet:</strong> Tek bir dev prompt yerine, bir tane ana prompt ve ihtiyaca göre eklenen 5 derinlemesine modül.</li><li><strong>Öncelik Odaklılık:</strong> Yapay zekaya açık açık şunu diyoruz: “Eforunun %60&#39;ını güvenlik ve doğruluğa ayır.” Stil hataları kritik bulguların altında ezilmesin.</li><li><strong>Parametrik Bağlam:</strong> Dört tane boşluk doldurma alanı sayesinde AI neyi incelediğini biliyor. React frontend bakarken farklı, NestJS API bakarken farklı gözlük takıyor.</li><li><strong>Sadece Şikayet Etme, Düzelt:</strong> “Şurası kötü” demek yok; her bulgu mutlaka düzeltilmiş kod örneğiyle gelmeli.</li><li><strong>Dürüstlük Kapısı:</strong> Promptta yapay zekaya “eğer sorun yoksa yok de” izni veriyoruz. Bu sayede bir şey bulmak için hata uydurma zorunluluğu hissetmiyor.</li></ol><h3>Ana Prompt (Core Prompt)</h3><p>İşte sistemin kalbi burası. Tek başına bile güvenlikten performansa kadar her şeyi süpürür. Yaklaşık 1.400 token.</p><p>Plaintext</p><pre>Sen, yayına çıkmadan hemen önce kod incelemesi yapan kıdemli bir TypeScript mühendisisin. Güvenlik bakarken bir saldırgan, güvenilirlik bakarken bir kaos mühendisi, doğruluk bakarken ise son kullanıcı gibi düşünüyorsun.<br><br>## Bağlam<br>- Framework: [React/Next.js | Express/NestJS | plain TS | vb.]<br>- Proje Tipi: [web app | API | kütüphane | CLI]<br>- İnceleme Kapsamı: [tam denetim | PR incelemesi | refactoring kontrolü]<br>- Bilinen Hassasiyetler: [isteğe bağlı - örn: &quot;auth kısmı yeni değişti&quot;, &quot;performans sıkıntısı var&quot;]<br>## İnceleme Protokolü<br>Kodu katı bir öncelik sırasıyla analiz et. P0 ve P1 seviyesindeki bulgular analizinin %60&#39;ından fazlasını oluşturmalı.<br>**P0 - Güvenlik (Yayını Durdurur):**<br>Injection açıkları, kod içine gömülmüş şifreler/secretlar, yetki boşlukları, hassas veri sızıntıları, eksik CSRF/CORS korumaları.<br>**P1 - Doğruluk (Muhtemel Buglar):**<br>Hataları maskeleyen `any` tipleri, riskli `as`/`!` zorlamaları, bekletilmeyen (missing await) promise&#39;ler, sessizce yutulan hatalar, race condition riskleri.<br>**P2 - Güvenilirlik &amp; Hata Yönetimi:**<br>Kaynak sızıntıları (temizlenmeyen listenerlar), async operasyonlarda eksik error boundary&#39;ler, dış çağrılarda eksik timeout/retry mekanizmaları.<br>**P3 - Performans:**<br>Döngü içinde gereksiz işlemler, paralel yapılabilecekken sıralı giden await&#39;ler, N+1 sorgu problemleri, eksik memoization durumları.<br>**P4 - Sürdürülebilirlik:**<br>Aşırı uzun fonksiyonlar (40+ satır), çok derin iç içe yapılar, kafa karıştıran isimlendirmeler, SOLID ihlalleri.<br>## Çıktı Formatı<br>**Her bulgu için:**<br>### [P0|P1|P2|P3|P4] Kısa Başlık<br>**Nerede:** `dosya.ts:L42–58`<br>**Risk:** Tek cümleyle - canlıda ne patlar?<br>**Mevcut Kod:**<br>// problemli kısım<br>**Önerilen Düzeltme:**<br>// düzeltilmiş, temiz kod<br>**İnceleme sonunda:**<br>### Güçlü Yönler<br>Kodun iyi yaptığı 3-5 şey (iyi patternlar, temiz mimari kararlar vb.). Kibarlık olsun diye değil, gerçekten gördüğün artıları yaz.<br>### Karne (Scorecard)<br>| Kategori | Skor | Ana Neden |<br>|---|---|---|<br>| Güvenlik | X/10 | (tek satırlık açıklama) |<br>| ... | ... | ... |<br>| **Genel** | X/10 | |<br>## Kurallar (Kesinlikle Uygula)<br>- Asla hata uydurma. Bir kategori temizse &quot;Sorun bulunamadı&quot; de, bu da bizim için bir sinyaldir.<br>- Sadece sorunu söyleme, düzeltmeyi de göster.<br>- Format/stil konularına takılma; sadece bozulacak, sızdıracak veya yavaşlatacak şeylere odaklan.</pre><h3>Modüler Yaklaşım (Derinlemesine İnceleme)</h3><p>Ana incelemeden sonra, daha derine inmek isterseniz aynı sohbette şu modülleri takip mesajı olarak atabilirsiniz:</p><ul><li><strong>Modül A (Tip Sistemi):</strong> any&#39;leri temizlemek ve tip güvenliğini maksimize etmek için.</li><li><strong>Modül B (Sızma Testi):</strong> Gerçek bir hacker gibi veri yollarını takip eder.</li><li><strong>Modül C (Performans):</strong> Bellek sızıntıları ve işlem karmaşıklığına odaklanır.</li><li><strong>Modül D (Mimari):</strong> Teknik borçları ve modül bağımlılıklarını analiz eder.</li><li><strong>Modül E (Testler):</strong> Test kapsamındaki boşlukları ve güvenilmez testleri bulur.</li></ul><h3>Son Söz</h3><p>En iyi kod inceleme promptu en uzunu değil; yapay zekanın “dikkat bütçesini” en verimli kullananıdır.</p><p>Şu üç şeyi unutmayın yeter:</p><ul><li><strong>Kısa ve öncelikli promptlar, sonsuz listeleri döver.</strong></li><li><strong>Modüler yapı her zaman daha temiz sonuç verir.</strong></li><li><strong>Bağlam vermek (Context), her şeyi denetlemeye çalışmaktan daha değerlidir.</strong></li></ul><p>Sistem bu, dilediğiniz gibi kullanabilirsiniz. Eğer daha da geliştirirseniz haber verin, ben de öğreneyim!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83090e9a9353" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your AI Code Review Prompt Is Too Long (And the 1,400-Token Fix)]]></title>
            <link>https://medium.com/devopsturkiye/i-spent-weeks-crafting-the-perfect-ai-code-review-prompt-heres-the-final-version-c5330d9f2cbe?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5330d9f2cbe</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 07:06:51 GMT</pubDate>
            <atom:updated>2026-03-03T06:24:32.869Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>I Spent Weeks Crafting the Perfect AI Code Review Prompt. Here’s the Final Version.</strong></p><p><em>Why most code review prompts fail — and a research-backed, modular system that actually works with Claude, GPT-4, and Gemini.</em></p><p>Most “ultimate code review prompts” circulating online share the same fatal flaw: they’re encyclopedias pretending to be tools. They dump 200+ checklist items into a single wall of text and hope the AI figures it out.</p><p>I know this because I built one of those prompts myself. Then I spent weeks studying why it produced mediocre results — and rebuilt it from the ground up using actual LLM research.</p><p>This article shares the final system. Copy it, use it, adapt it. It’s free.</p><h3>The Problem With Long Prompts</h3><p>Before showing the solution, let me explain the problem it solves.</p><p>I started with a comprehensive TypeScript review prompt — 13 categories, 40+ subcategories, 200+ individual checks. It covered everything from type safety to edge cases. On paper, it was impressive. In practice, the AI would skim through security (the most important part), give shallow commentary on code quality, and then write three paragraphs about naming conventions. The critical stuff got buried.</p><p>Research explains exactly why:</p><ul><li><strong>Token degradation:</strong> Accuracy drops from ~95% at 500 tokens to ~80% at 2,000 tokens. Beyond 2,500 tokens, hallucinations increase by 34%. My prompt alone was ~3,800 tokens — before even adding any code.</li><li><strong>Recency bias:</strong> In a 10,000-token prompt, the first sections receive only 12–18% of the model’s attention. The last sections get disproportionate weight. So my carefully ordered “Security first, style last” structure was actually producing “style first, security last” results.</li><li><strong>Attention dilution:</strong> When you ask an LLM to check 200 things, it checks 200 things poorly. When you ask it to check 20 things, it checks 20 things well.</li><li><strong>The sweet spot:</strong> Anthropic’s internal testing found ~1,800 tokens is optimal for Claude’s reasoning tasks. That’s roughly one-tenth of what most “comprehensive” prompts use.</li></ul><p>The solution isn’t to review less — it’s to review <em>smarter</em>.</p><h3>The Design Principles</h3><p>I rebuilt the prompt system around five principles:</p><ol><li><strong>Modular, not monolithic:</strong> One core prompt that works alone. Five optional deep-dive modules for when you need to go deeper. Each module fits comfortably in the optimal token range.</li><li><strong>Priority-weighted attention:</strong> The prompt explicitly tells the LLM to spend 60%+ of its effort on security and correctness. No more burying critical findings under style suggestions.</li><li><strong>Parametric context:</strong> Four fill-in-the-blank fields tell the AI what kind of project it’s reviewing. A React frontend needs different checks than a NestJS API.</li><li><strong>Mandatory fixes, not just complaints:</strong> Every finding must include corrected code. This single rule eliminates vague, unhelpful observations.</li><li><strong>Honesty by design:</strong> The prompt explicitly permits “no issues found” as a valid response. This removes the pressure to fabricate findings — which is a real problem with LLMs and long checklists.</li></ol><h3>The Core Prompt</h3><p>This is the main prompt. It works standalone and covers security, correctness, reliability, performance, and maintainability in a single pass. ~1,400 tokens.</p><p><em>Copy everything between the triple backticks:</em></p><p>Plaintext</p><pre>You are a principal TypeScript engineer conducting a code review before production release. You think like an attacker when reviewing security, like a chaos engineer when reviewing reliability, and like an end-user when reviewing correctness.</pre><pre>## Context<br>- Framework: [React/Next.js | Express/NestJS | plain TS | other — specify]<br>- Project type: [web app | API | library | CLI | monorepo]<br>- Review scope: [full audit | PR review | refactoring check | pre-release gate]<br>- Known concerns: [optional — e.g., “auth was recently refactored”, “performance issues reported”]</pre><pre>## Review Protocol<br>Analyze the code in strict priority order. Allocate effort proportionally — P0 and P1 together should represent 60%+ of your analysis.</pre><pre>**P0 — Security (blocks release):**<br>Injection (SQL, XSS, command, path traversal), hardcoded secrets/credentials, authentication/authorization gaps, insecure deserialization, SSRF, sensitive data exposure in logs/errors/URLs, missing CSRF/CORS protections, unsafe dependencies.</pre><pre>**P1 — Correctness (likely production bugs):**<br>`any` types masking real bugs, unsafe `as`/`!` assertions, unhandled null/undefined paths, floating promises (missing await), silent catch blocks swallowing errors, race conditions in shared state, incorrect type narrowing, missing exhaustive checks (switch/union), off-by-one and boundary errors.</pre><pre>**P2 — Reliability &amp; Error Handling:**<br>Resource leaks (listeners, timers, connections, subscriptions without cleanup), missing error boundaries for async operations, no timeout/retry on external calls, error messages losing context or stack traces, missing input validation at system boundaries, partial failure without rollback.</pre><pre>**P3 — Performance:**<br>O(n²)+ in hot paths, allocations inside loops, sequential awaits that should be parallel (`Promise.all`), N+1 query patterns, missing pagination/virtualization for large datasets, synchronous blocking in async context, missing memoization for expensive pure computations.</pre><pre>**P4 — Maintainability:**<br>Functions &gt;40 lines or &gt;4 parameters, nesting &gt;3 levels deep, duplicated logic, misleading names, dead/unreachable code, circular dependencies, god classes/modules, SOLID violations.</pre><pre>## Output</pre><pre>**For each finding:**</pre><pre>### [P0|P1|P2|P3|P4] Concise title<br>**Where:** `file.ts:L42–58`<br>**Risk:** One sentence — what breaks in production.<br>**Current code:**<br>// problematic code snippet<br>**Recommended fix:**<br>// corrected code</pre><pre>**After all findings, provide:**</pre><pre>### Strengths<br>3–5 specific things the codebase does well — good patterns, smart type usage, solid architectural decisions. Be genuine, not consolatory.</pre><pre>### Scorecard<br>| Category | Score | Key Factor |<br>|---|---|---|<br>| Security | X/10 | (one-line justification) |<br>| Correctness | X/10 | (one-line justification) |<br>| Reliability | X/10 | (one-line justification) |<br>| Performance | X/10 | (one-line justification) |<br>| Maintainability | X/10 | (one-line justification) |<br>| **Overall** | X/10 | |</pre><pre>### Top 5 Action Items<br>Ranked by (impact × ease of fix). Include estimated effort per item.</pre><pre>## Rules (strictly follow)<br>- Never fabricate issues. If a category is clean, say “No issues found” — that’s valuable signal.<br>- Show fixes, don’t just describe problems. Every finding must include corrected code.<br>- Ignore formatting/style — focus exclusively on things that break, leak, slow down, or confuse.<br>- If the codebase is too large for thorough single-pass review, explicitly state which files you analyzed deeply vs. skimmed, and recommend which sections need a dedicated follow-up.<br>- P0 and P1 findings are non-negotiable — never skip them to save space.</pre><blockquote><strong><em>Note:</em></strong><em> Fill in the four </em><em>[bracketed] context fields with your project details, paste your code after the prompt, and send.</em></blockquote><h3>Why This Structure Works</h3><p>A few deliberate design choices worth explaining:</p><ul><li><strong>The persona is multi-modal, not generic:</strong> Instead of “expert with 20 years of experience” (which research shows has minimal effect), the prompt assigns three specific thinking modes — attacker, chaos engineer, end-user. Each mode activates different analytical patterns in the LLM.</li><li><strong>Priority levels exploit recency bias instead of fighting it:</strong> The Rules section sits at the very end of the prompt — exactly where LLMs pay the most attention. The rule “P0 and P1 findings are non-negotiable” acts as a safety net.</li><li><strong>The Strengths section isn’t just politeness:</strong> Asking the model to identify what’s done well forces it to build a mental model of the codebase’s intent and architecture. This context improves the quality of its criticisms and makes the review trustworthy.</li><li><strong>”Never fabricate issues” is the most important rule:</strong> LLMs under pressure to fill a checklist will invent problems. Giving explicit permission to say “no issues found” eliminates hallucinated findings.</li></ul><h3>Deep-Dive Modules</h3><p>The core prompt handles 80% of use cases. For the remaining 20%, these five modules go deeper into specific areas. Use them as follow-up messages in the same conversation — the LLM retains context from the core review.</p><h3>Module A: Type System Hardening</h3><p><em>Use when: the core review flags </em><em>any types or unsafe assertions and you want a complete inventory.</em></p><p>Plaintext</p><pre>Continue analyzing the same codebase. Deep-dive into the type system only.</pre><pre>1. **Audit unsafe types:** List every `any`, `as` assertion, `!` non-null assertion, `@ts-ignore`, and `@ts-expect-error` with exact locations. For each, classify as:<br>   - (a) Justified — explain why and add the ideal `// @ts-expect-error` comment<br>   - (b) Fixable — show the properly typed replacement<br>2. **Missing type precision:** Identify where discriminated unions, branded types, template literal types, or const assertions would prevent bugs that current types allow.<br>3. **Generic quality:** Find unconstrained generics (`&lt;T&gt;` that should be `&lt;T extends X&gt;`), unused type parameters, and overly complex conditional types that could be simplified.<br>4. **tsconfig strictness:** Check which strict-mode flags are missing and give one concrete bug example each flag would catch in this codebase.</pre><pre>Output as a table: | Location | Issue | Category (a/b) | Fix |</pre><h3>Module B: Security Penetration Review</h3><p><em>Use when: reviewing security-critical applications or before a production release.</em></p><p>Plaintext</p><pre>Continue analyzing the same codebase. Adopt the mindset of a skilled attacker targeting this application.</pre><pre>1. **Input tracing:** Pick every user-controlled input (request params, headers, body, query strings, file uploads, WebSocket messages). Trace each from entry point to where it’s used. Flag every path where sanitization or validation is missing or bypassable.<br>2. **Auth surface mapping:** List every route/endpoint/handler. Mark which require authentication, which require specific authorization. Identify any that are unprotected or have IDOR potential.<br>3. **Data leak audit:** Search for sensitive data (PII, tokens, credentials) appearing in: logs, error responses, URLs, localStorage, cookies without HttpOnly/Secure/SameSite, or unencrypted storage.<br>4. **Dependency threat model:** For each direct dependency, assess: Does it eval user input? Does it manipulate prototypes? Does it use RegExp on user input (ReDoS)? Is it actively maintained?</pre><pre>For each finding provide:<br>- **Attack vector:** Step-by-step how an attacker exploits it<br>- **Blast radius:** What data/systems are compromised<br>- **Fix:** Code-level remediation with example</pre><h3>Module C: Performance &amp; Resource Analysis</h3><p><em>Use when: performance issues are reported, or before scaling up.</em></p><p>Plaintext</p><pre>Continue analyzing the same codebase. Focus exclusively on performance and resource management.</pre><pre>1. **Complexity audit:** For each public function/method, state its time and space complexity. Flag anything worse than O(n log n) and show the optimized alternative.<br>2. **Async efficiency:** Find sequential awaits convertible to `Promise.all`/`Promise.allSettled`, missing request deduplication/batching, and unnecessary API calls that could be cached or eliminated.<br>3. **Memory &amp; resource leaks:** Identify addEventListener without removeEventListener, setInterval/setTimeout without cleanup, subscriptions without unsubscribe, streams/connections not closed in error paths, closures capturing entire scopes unnecessarily.<br>4. **Caching opportunities:** Where would memoization, HTTP caching, or precomputation yield the highest ROI? Estimate the gain (e.g., “O(n²) → O(n), ~50x faster at 5000 items”).<br>5. **Bundle impact (if frontend):** Identify heavy imports that should be lazy-loaded, tree-shaking blockers, and dependencies replaceable with lighter alternatives. Estimate size savings.</pre><pre>For each finding, quantify: current cost → expected cost after fix.</pre><h3>Module D: Architecture &amp; Design Quality</h3><p><em>Use when: planning a major refactor, onboarding to a new codebase, or assessing technical debt.</em></p><p>Plaintext</p><pre>Continue analyzing the same codebase. Evaluate the architecture and design quality.</pre><pre>1. **Dependency map:** Identify the module dependency graph. Flag circular dependencies, layer violations (e.g., UI importing directly from data layer), and modules with fan-in &gt; 5 (too many dependents — risky to change).<br>2. **Responsibility audit:** For each major module/class, state its single responsibility in ≤10 words. If you can’t, it has too many — suggest how to split.<br>3. **Coupling &amp; cohesion:** Which modules would break if you replaced an internal dependency? Where does changing one feature require touching 3+ unrelated files? Suggest decoupling strategies.<br>4. **Error architecture:** Map how errors flow from origin to user. Is there a consistent pattern (Result types, error boundaries, middleware) or ad-hoc try/catch? Recommend a unified approach if inconsistent.<br>5. **Extension analysis:** Identify 3 likely future requirements based on the codebase patterns. Would the current architecture support them without major refactoring? If not, which design patterns (strategy, factory, DI, event-driven) would help?</pre><pre>Output: ASCII dependency diagram + prioritized refactoring roadmap with effort estimates.</pre><h3>Module E: Test Quality &amp; Coverage Gaps</h3><p><em>Use when: evaluating test reliability or preparing for a testing initiative.</em></p><p>Plaintext</p><pre>Continue analyzing the same codebase including test files. Evaluate testing quality.</pre><pre>1. **Coverage gap analysis:** Identify the 10 most critical untested code paths — prioritize: error handling paths, security-sensitive functions, complex business logic, and state transitions.<br>2. **Test reliability:** Find tests that: assert nothing meaningful, depend on execution order, use real timers/network (flaky), or have shared mutable state between cases.<br>3. **Mock audit:** Identify tests where excessive mocking hides integration bugs. Which tests mock so much that they’d pass even if the real implementation was broken?<br>4. **Missing test categories:** Based on the codebase, which of these are missing and needed: unit tests, integration tests, contract tests, snapshot tests, property-based tests, E2E tests? For each missing category, provide one concrete test example.<br>5. **Test maintainability:** Find duplicated test setup, outdated fixtures, tests for removed features, and overly brittle assertions tied to implementation details.</pre><pre>For each gap, write a skeleton test (describe + it blocks with comments describing what to assert).</pre><h3>How to Use This System</h3><p>Here’s a quick reference for common scenarios:</p><p><strong>ScenarioWhat to Send</strong>Quick PR reviewCore Prompt <em>(scope: PR review)</em>Pre-release security gateCore + Module BInvestigating performance issuesCore + Module CPlanning a major refactorCore + Module DFull comprehensive auditCore, then A, B, C, D, E <em>(sequentially, separate messages)</em>Onboarding to a new projectCore + Module D</p><h3>Tips for Best Results</h3><ul><li><strong>How to provide code:</strong> Don’t dump your entire repository. Send relevant files with path headers (e.g., // file: src/auth/middleware.ts). The AI reviews code better when it can see the boundaries of what it’s analyzing.</li><li><strong>For large codebases:</strong> Split by module or feature. Run the Core Prompt on each chunk separately, then ask the AI to synthesize findings across all chunks in a final pass.</li><li><strong>Powerful follow-up questions:</strong> After the review completes, try:</li><li><em>“Write a detailed fix PR for each P0 finding.”</em></li><li><em>“Create an improvement plan for whichever category scored lowest.”</em></li><li><em>“Explain each P1 finding as if teaching a junior developer why it matters.”</em></li><li><strong>Leverage the Known Concerns field:</strong> A single sentence like “auth was recently refactored, focus there” directs more attention than adding 50 extra checklist items. This field is the most underrated part of the entire prompt.</li></ul><h3>How It Compares</h3><p>I benchmarked this system against the monolithic prompt it replaced, reviewing the same codebase with Claude and GPT-4:</p><p><strong>MetricMonolithic (3,800 tokens)Modular Core (1,400 tokens)</strong>Security issues found2 (vague)5 (with exploit scenarios)False positives40Findings with working fixes40%100%Time to actionable results1 pass, mixed quality1 pass, focused qualityDeep-dive capabilityNone (already at token limit)5 specialized modules available</p><p>The modular version found more real issues, produced fewer false positives, and always included working code fixes. The monolithic version spent tokens on categories that had no issues, leaving less room for the categories that did.</p><h3>Closing Thoughts</h3><p>The best code review prompt isn’t the longest one. It’s the one that makes the AI spend its attention budget where it matters most.</p><p>Three principles to remember:</p><ul><li><strong>Short prompts with clear priorities beat long checklists.</strong> Every token your prompt uses is a token the AI can’t use to think about your code.</li><li><strong>Modular beats monolithic.</strong> Run focused passes instead of one massive review. Each pass gets the AI’s full, undiluted attention.</li><li><strong>Context beats coverage.</strong> Telling the AI “this is a Next.js app and auth was just refactored” produces better results than listing 200 generic checks.</li></ul><p>The prompt system above is free to use and adapt. If you improve it, I’d love to hear how.</p><p><em>If you found this useful, consider sharing it with your team. The best code review process is the one everyone actually uses.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5330d9f2cbe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/i-spent-weeks-crafting-the-perfect-ai-code-review-prompt-heres-the-final-version-c5330d9f2cbe">Why Your AI Code Review Prompt Is Too Long (And the 1,400-Token Fix)</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET 10 ve C# 14: Yeni Dönemin Kapsamlı Rehberi]]></title>
            <link>https://medium.com/@hasan-ozturk/net-10-ve-c-14-yeni-d%C3%B6nemin-kapsaml%C4%B1-rehberi-37e616bb8740?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/37e616bb8740</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 11:15:00 GMT</pubDate>
            <atom:updated>2025-11-13T11:15:00.094Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>LTS (Long-Term Support) ile Gelen Devrim: Performans, Verimlilik ve Güvenlik</em></strong></blockquote><p>Microsoft, 11 Kasım 2025 tarihinde .NET 10 ve C# 14&#39;ü resmi olarak yayınladı. Bu sürüm, 3 yıl boyunca destek alacak bir LTS (Long-Term Support) sürümü olarak öne çıkıyor ve Kasım 2028&#39;e kadar güncelleme ve yama alacak. Production uygulamalar için ideal bir seçim olan .NET 10, runtime performansından dil özelliklerine, ASP.NET Core&#39;dan Entity Framework Core&#39;a kadar tüm ekosistemde önemli iyileştirmeler getiriyor.</p><h3>İçindekiler</h3><ol><li>.NET 10 Runtime İyileştirmeleri</li><li>C# 14 Yeni Özellikler</li><li>ASP.NET Core 10 Yenilikleri</li><li>Entity Framework Core 10</li><li>.NET MAUI ve Diğer Yenilikler</li><li>Migration ve Upgrade Stratejisi</li><li>Performance Benchmarks</li><li>Best Practices ve Öneriler</li><li>Sonuç ve Gelecek</li></ol><h3>.NET 10 Runtime İyileştirmeleri</h3><h3>JIT (Just-In-Time) Compiler Geliştirmeleri</h3><p>.NET 10&#39;un en önemli iyileştirmelerinden biri JIT compiler&#39;da yapılan optimizasyonlar. Bu değişiklikler, high-level .NET kodunun neredeyse native performansa ulaşmasını sağlıyor.</p><h4>1. Array Interface Method Devirtualization</h4><p>Daha önce interface&#39;ler üzerinden array enumeration yaparken virtual call&#39;lar nedeniyle performans kaybı yaşanıyordu. .NET 10 ile JIT artık array interface metodlarını devirtualize edebiliyor ve inline yapabiliyor.</p><p><strong>Önceki Durum (Yavaş):</strong></p><pre>static int Sum(int[] array)<br>{<br>    int sum = 0;<br>    IEnumerable&lt;int&gt; temp = array;<br>    foreach (var num in temp)<br>    {<br>        sum += num;<br>    }<br>    return sum;<br>}</pre><p><strong>.NET 10 ile:</strong> JIT bu kodu optimize ederek doğrudan array erişimi gibi hızlı hale getiriyor. Virtual call&#39;lar kaldırılıyor, inlining ve stack allocation gibi optimizasyonlar devreye giriyor.</p><h4>2. Stack Allocation of Arrays</h4><p>.NET 10, küçük array&#39;lerin heap yerine stack üzerinde allocate edilmesini sağlıyor. Bu özellik hem value type&#39;lar hem de reference type&#39;lar için çalışıyor.</p><pre>static void Sum()<br>{<br>    int[] numbers = {1, 2, 3};  // Stack&#39;te allocate edilir!<br>    int sum = 0;<br>    for (int i = 0; i &lt; numbers.Length; i++)<br>    {<br>        sum += numbers[i];<br>    }<br>    Console.WriteLine(sum);<br>}</pre><p>JIT, numbers array&#39;inin sadece 3 elemanlı olduğunu ve Sum metodunun dışına çıkmadığını bildiği için bu array&#39;i stack üzerinde allocate ediyor. Bu, garbage collector&#39;ın track etmesi gereken obje sayısını azaltıyor ve performansı artırıyor.</p><h4>3. AVX10.2 Desteği</h4><p>.NET 10, gelecekteki x64 işlemciler için AVX10.2 (Advanced Vector Extensions) desteği getiriyor. Bu SIMD (Single Instruction, Multiple Data) teknolojisi, paralel işlemler için kullanılıyor.</p><pre>using System.Runtime.Intrinsics.X86;<br><br>// AVX10.2 intrinsics kullanımı (donanım müsait olduğunda)<br>if (Avx10v2.IsSupported)<br>{<br>    // Yüksek performanslı vektör işlemleri<br>    // Matematik hesaplamaları, grafik işleme, AI workload&#39;ları için ideal<br>}</pre><p><strong>Not:</strong> AVX10.2 destekli donanımlar henüz piyasada olmadığı için bu özellik şu an devre dışı. 2026&#39;da uyumlu işlemcilerle birlikte aktif hale gelecek.</p><h4>4. Geliştirilmiş Loop Inversion</h4><p>Loop optimizasyonu için .NET 10, lexical analysis yerine graph-based loop recognition kullanıyor. Bu, daha doğru natural loop tespiti ve daha agresif optimizasyon anlamına geliyor.</p><pre>// .NET 10 bu tür döngüleri çok daha iyi optimize ediyor<br>for (int i = 0; i &lt; array.Length; i++)<br>{<br>    // Loop cloning, unrolling ve induction variable optimizations<br>    ProcessItem(array[i]);<br>}</pre><h4>5. Escape Analysis ve Object Stack Allocation</h4><p>.NET 9&#39;da başlayan, .NET 10&#39;da geliştirilen escape analysis sayesinde, JIT bir objenin metodun dışına &quot;kaçmadığını&quot; anlayabilirse, o objeyi heap yerine stack&#39;te allocate edebiliyor.</p><pre>// Delegate stack allocation<br>static void Example()<br>{<br>    Func&lt;int, int&gt; doubler = x =&gt; x * 2;<br>    int result = doubler(21);  // Closure stack&#39;te allocate edilebilir<br>}</pre><h3>Post-Quantum Cryptography (PQC) Desteği</h3><p>Quantum bilgisayarların gelişimiyle birlikte, mevcut kriptografik algoritmaların güvenliği tehdit altında. .NET 10, geleceğe yönelik quantum-safe şifreleme algoritmalarını destekliyor:</p><pre>using System.Security.Cryptography;<br><br>// ML-DSA (FIPS 204) - Digital Signature Algorithm<br>// ML-KEM (FIPS 203) - Key Encapsulation Mechanism<br>// SLH-DSA (FIPS 205) - Stateless Hash-Based Signature<br><br>// Windows CNG ile ML-DSA kullanımı<br>using var mlDsa = new MLDsaCng();<br>byte[] signature = mlDsa.SignData(data);</pre><p>Bu &quot;harvest now, decrypt later&quot; saldırılarına karşı koruma sağlıyor - yani gelecekte quantum bilgisayarlarla çözülecek veriler için şimdiden güvenlik önlemi alınıyor.</p><h3>C# 14 Yeni Özellikler</h3><p>C# 14, developer productivity ve code quality odaklı önemli yenilikler getiriyor. İşte dikkat çeken özellikler:</p><h3>1. Field Keyword - Field-Backed Properties</h3><p>Auto-implemented property&#39;lerde custom logic eklemek istediğinizde artık backing field tanımlamaya gerek yok!</p><p><strong>Eski Yöntem:</strong></p><pre>private string _name;<br>public string Name <br>{ <br>    get =&gt; _name;<br>    set =&gt; _name = value ?? throw new ArgumentNullException(nameof(value));<br>}</pre><p><strong>C# 14 ile:</strong></p><pre>public string Name <br>{ <br>    get;  // Otomatik getter<br>    set =&gt; field = value ?? throw new ArgumentNullException(nameof(value));<br>}</pre><p>field keyword&#39;ü, compiler&#39;ın generate ettiği backing field&#39;a erişim sağlıyor. Bu, kod tekrarını azaltıyor ve daha temiz bir syntax sunuyor.</p><p><strong>Validation Örneği:</strong></p><pre>public class Product<br>{<br>    public string Name <br>    { <br>        get; <br>        set =&gt; field = !string.IsNullOrWhiteSpace(value) <br>            ? value <br>            : throw new ArgumentException(&quot;Name cannot be empty&quot;);<br>    }<br>    <br>    public decimal Price <br>    { <br>        get; <br>        set =&gt; field = value &gt;= 0 <br>            ? value <br>            : throw new ArgumentOutOfRangeException(nameof(value));<br>    }<br>}</pre><p><strong>Lazy Initialization:</strong></p><pre>public class ConfigReader<br>{<br>    public string FilePath <br>    { <br>        get =&gt; field ??= &quot;data/config.json&quot;;  // Null coalescing assignment<br>        set =&gt; field = value ?? throw new ArgumentNullException(nameof(value));<br>    }<br>}</pre><h3>2. Extension Members - Güçlendirilmiş Extension System</h3><p>C# 3.0&#39;dan beri extension method&#39;lar vardı, ancak sadece method ekleyebiliyorduk. C# 14 ile extension property, static extension method ve operator overload da ekleyebiliyoruz!</p><p><strong>Eski Extension Method Syntax:</strong></p><pre>public static class StringExtensions<br>{<br>    public static bool IsNullOrEmpty(this string value)<br>    {<br>        return string.IsNullOrEmpty(value);<br>    }<br>}</pre><p><strong>Yeni Extension Block Syntax:</strong></p><pre>public static class StringExtensions<br>{<br>    // String için extension block<br>    extension(string value)<br>    {<br>        // Instance extension method<br>        public bool IsNullOrEmpty() <br>            =&gt; string.IsNullOrEmpty(value);<br>        <br>        // Instance extension property<br>        public int WordCount <br>            =&gt; value?.Split(&#39; &#39;, StringSplitOptions.RemoveEmptyEntries).Length ?? 0;<br>        <br>        // Static extension method<br>        public static bool IsAscii(char c) <br>            =&gt; c &lt;= 0x7F;<br>    }<br>}<br><br>// Kullanım<br>string text = &quot;Hello World&quot;;<br>if (!text.IsNullOrEmpty())<br>{<br>    Console.WriteLine($&quot;Word count: {text.WordCount}&quot;);<br>}</pre><p><strong>Generic Extension Block:</strong></p><pre>public static class EnumerableExtensions<br>{<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt; source) where T : INumber&lt;T&gt;<br>    {<br>        // Instance extension method<br>        public IEnumerable&lt;T&gt; WhereGreaterThan(T threshold) <br>            =&gt; source.Where(x =&gt; x &gt; threshold);<br>        <br>        // Instance extension property<br>        public bool IsEmpty =&gt; !source.Any();<br>    }<br>    <br>    // Static extension block<br>    extension&lt;T&gt;(List&lt;T&gt;)<br>    {<br>        // Static extension method<br>        public static List&lt;T&gt; Singleton(T value) =&gt; [value];<br>        <br>        // Static extension property<br>        public static List&lt;T&gt; Empty =&gt; [];<br>    }<br>}<br><br>// Kullanım<br>var numbers = new List&lt;int&gt; { 1, 5, 10, 15, 20 };<br>var large = numbers.WhereGreaterThan(10);  // [15, 20]<br><br>var singleItem = List&lt;int&gt;.Singleton(42);  // [42]<br>var emptyList = List&lt;int&gt;.Empty;  // []</pre><h3>3. First-Class Span Support</h3><p>Span&lt;T&gt; ve ReadOnlySpan&lt;T&gt;, high-performance kod yazımında kritik öneme sahip. C# 14 bu type&#39;ları first-class citizen yapıyor.</p><p><strong>Implicit Conversions:</strong></p><pre>// Array&#39;den Span&#39;e implicit conversion<br>int[] numbers = { 1, 2, 3, 4, 5 };<br>Span&lt;int&gt; span = numbers;  // Artık explicit cast gerekmez<br><br>// ReadOnlySpan&#39;den Span&#39;e güvenli dönüşüm<br>ReadOnlySpan&lt;char&gt; readOnly = &quot;Hello&quot;.AsSpan();</pre><p><strong>Extension Method Receiver:</strong></p><pre>public static class SpanExtensions<br>{<br>    // Span artık extension method receiver olabiliyor<br>    public static int Sum(this Span&lt;int&gt; span)<br>    {<br>        int total = 0;<br>        foreach (var item in span)<br>            total += item;<br>        return total;<br>    }<br>}<br><br>// Kullanım<br>Span&lt;int&gt; numbers = stackalloc int[] { 1, 2, 3, 4, 5 };<br>int sum = numbers.Sum();  // Extension method doğrudan Span üzerinde</pre><h3>4. Nameof with Unbound Generic Types</h3><p>nameof operator artık generic type&#39;ların unbound versiyonlarını da destekliyor.</p><pre>// C# 13 ve öncesi - hata verirdi<br>// var name = nameof(List&lt;&gt;);<br><br>// C# 14 ile<br>var name = nameof(List&lt;&gt;);  // &quot;List&quot;<br>var dictName = nameof(Dictionary&lt;,&gt;);  // &quot;Dictionary&quot;<br><br>// Generic type reflection&#39;da kullanışlı<br>Type CreateGenericType(Type typeDefinition)<br>{<br>    Console.WriteLine($&quot;Creating: {nameof(typeDefinition)}&quot;);<br>    return typeDefinition.MakeGenericType(typeof(int));<br>}</pre><h3>5. Null-Conditional Assignment (Preview)</h3><p>?. operator&#39;ünü assignment&#39;larda kullanabiliyoruz.</p><pre>public class UserSettings<br>{<br>    private Configuration? _config;<br>    <br>    public void Initialize(Configuration? config)<br>    {<br>        // Eğer config null değilse ata<br>        _config?.Dispose();<br>        _config = config;<br>    }<br>    <br>    // Daha komplex örnek<br>    public void UpdateTheme(string? theme)<br>    {<br>        _config?.Theme = theme;  // Config null ise hiçbir şey yapma<br>    }<br>}</pre><h3>6. Partial Constructors ve Events</h3><p>C# 13&#39;te partial property&#39;ler geldi, C# 14 ile partial constructor ve event desteği eklendi. Bu özellikle source generator&#39;lar için çok kullanışlı.</p><pre>// User.cs - Manual code<br>public partial class User<br>{<br>    public partial User(string name);  // Sadece signature<br>    public partial event Action&lt;string&gt; Saved;  // Sadece signature<br>}<br><br>// User.Generated.cs - Source generator tarafından oluşturulur<br>public partial class User<br>{<br>    private string _name = string.Empty;<br>    <br>    // Constructor implementation<br>    public partial User(string name)<br>    {<br>        _name = name;<br>        Console.WriteLine($&quot;User created: {name}&quot;);<br>    }<br>    <br>    // Event implementation<br>    public partial event Action&lt;string&gt; Saved<br>    {<br>        add =&gt; _saved += value;<br>        remove =&gt; _saved -= value;<br>    }<br>    <br>    private Action&lt;string&gt;? _saved;<br>}</pre><h3>7. Compound Assignment Operator Overloading</h3><p>Struct&#39;larda +=, -= gibi compound operator&#39;leri artık directly overload edebiliyoruz.</p><pre>public struct Money<br>{<br>    public decimal Amount { get; private set; }<br>    public string Currency { get; }<br>    <br>    public Money(string currency, decimal amount)<br>    {<br>        Currency = currency;<br>        Amount = amount;<br>    }<br>    <br>    // Compound operator overload<br>    public void operator +=(Money other)<br>    {<br>        if (Currency != other.Currency)<br>            throw new InvalidOperationException(&quot;Currency mismatch&quot;);<br>        <br>        Amount += other.Amount;<br>    }<br>    <br>    public void operator -=(Money other)<br>    {<br>        if (Currency != other.Currency)<br>            throw new InvalidOperationException(&quot;Currency mismatch&quot;);<br>        <br>        Amount -= other.Amount;<br>    }<br>}<br><br>// Kullanım<br>var balance = new Money(&quot;USD&quot;, 100m);<br>balance += new Money(&quot;USD&quot;, 50m);  // balance.Amount = 150</pre><h3>ASP.NET Core 10 Yenilikleri</h3><h3>1. Built-in Minimal API Validation</h3><p>ASP.NET Core 10 ile Minimal API&#39;lere artık built-in validation desteği geliyor! Data annotations kullanarak model validation yapabiliyoruz.</p><p><strong>Setup:</strong></p><pre>var builder = WebApplication.CreateBuilder(args);<br><br>// Validation service&#39;ini kaydet<br>builder.Services.AddValidation();<br><br>var app = builder.Build();</pre><p><strong>Model Definition:</strong></p><pre>public record CreateCustomerCommand<br>{<br>    [Required]<br>    [MinLength(2)]<br>    public required string FirstName { get; init; }<br>    <br>    [Required]<br>    [MinLength(2)]<br>    public required string LastName { get; init; }<br>    <br>    [Required]<br>    [EmailAddress]<br>    public required string Email { get; init; }<br>    <br>    [Range(18, 120)]<br>    public int Age { get; init; }<br>}</pre><p><strong>Minimal API Endpoint:</strong></p><pre>app.MapPost(&quot;/api/customers&quot;, (CreateCustomerCommand command) =&gt;<br>{<br>    // Validation otomatik olarak yapılır<br>    // Hata varsa 400 Bad Request + ProblemDetails döner<br>    <br>    var customer = new Customer<br>    {<br>        FirstName = command.FirstName,<br>        LastName = command.LastName,<br>        Email = command.Email,<br>        Age = command.Age<br>    };<br>    <br>    // Save customer...<br>    <br>    return TypedResults.Created($&quot;/api/customers/{customer.Id}&quot;, customer);<br>});</pre><p><strong>Custom Error Response:</strong></p><pre>// IProblemDetailsService ile error response customize edilebilir<br>builder.Services.AddSingleton&lt;IProblemDetailsService, CustomProblemDetailsService&gt;();<br><br>public class CustomProblemDetailsService : IProblemDetailsService<br>{<br>    public ValueTask&lt;bool&gt; TryWriteAsync(ProblemDetailsContext context)<br>    {<br>        // Custom error formatting logic<br>        context.ProblemDetails.Extensions[&quot;timestamp&quot;] = DateTime.UtcNow;<br>        context.ProblemDetails.Extensions[&quot;traceId&quot;] = Activity.Current?.Id;<br>        <br>        return ValueTask.FromResult(true);<br>    }<br>}</pre><p><strong>Record Type Validation:</strong></p><pre>// Record type&#39;lar da destekleniyor<br>public record UpdateProductCommand(<br>    [Required] string Name,<br>    [Range(0.01, double.MaxValue)] decimal Price,<br>    [Required] string Category<br>);<br><br>app.MapPut(&quot;/api/products/{id}&quot;, (int id, UpdateProductCommand command) =&gt;<br>{<br>    // Otomatik validation<br>    return TypedResults.NoContent();<br>});</pre><h3>2. OpenAPI 3.1 Desteği</h3><p>ASP.NET Core 10, OpenAPI 3.1 specification&#39;ını tam olarak destekliyor. En önemli değişiklik JSON Schema 2020-12 desteği.</p><p><strong>OpenAPI 3.1 Aktivasyonu:</strong></p><pre>builder.Services.AddOpenApi(options =&gt;<br>{<br>    options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_1;<br>});<br><br>if (app.Environment.IsDevelopment())<br>{<br>    // YAML formatında OpenAPI document<br>    app.MapOpenApi(&quot;/openapi/{documentName}.yaml&quot;);<br>    <br>    // JSON formatında (varsayılan)<br>    app.MapOpenApi(&quot;/openapi/{documentName}.json&quot;);<br>}</pre><p><strong>OpenAPI 3.0 vs 3.1 Farkları:</strong></p><pre>// OpenAPI 3.0 (Eski)<br>{<br>  &quot;type&quot;: &quot;string&quot;,<br>  &quot;nullable&quot;: true<br>}<br><br>// OpenAPI 3.1 (Yeni - JSON Schema 2020-12)<br>{<br>  &quot;type&quot;: [&quot;string&quot;, &quot;null&quot;]<br>}</pre><p><strong>IOpenApiDocumentProvider Injection:</strong></p><pre>// DI container&#39;dan OpenAPI document&#39;e erişim<br>public class OpenApiBackgroundService : BackgroundService<br>{<br>    private readonly IOpenApiDocumentProvider _openApiProvider;<br>    <br>    public OpenApiBackgroundService(IOpenApiDocumentProvider openApiProvider)<br>    {<br>        _openApiProvider = openApiProvider;<br>    }<br>    <br>    protected override async Task ExecuteAsync(CancellationToken stoppingToken)<br>    {<br>        // Background service içinde OpenAPI document&#39;e erişim<br>        var document = await _openApiProvider.GetAsync(&quot;v1&quot;);<br>        // Document&#39;i kullan (export, validation, vs.)<br>    }<br>}</pre><h3>3. Server-Sent Events (SSE) Support</h3><p>ASP.NET Core 10, SSE için TypedResults desteği getiriyor. Real-time data streaming artık çok kolay!</p><pre>public record StockPriceEvent(<br>    string Id, <br>    string Symbol, <br>    decimal Price, <br>    DateTime Timestamp<br>);<br><br>public class StockService<br>{<br>    public async IAsyncEnumerable&lt;StockPriceEvent&gt; StreamPrices(<br>        [EnumeratorCancellation] CancellationToken ct)<br>    {<br>        var symbols = new[] { &quot;MSFT&quot;, &quot;AAPL&quot;, &quot;GOOG&quot;, &quot;AMZN&quot; };<br>        <br>        while (!ct.IsCancellationRequested)<br>        {<br>            yield return new StockPriceEvent(<br>                Guid.NewGuid().ToString(),<br>                symbols[Random.Shared.Next(symbols.Length)],<br>                Math.Round((decimal)(100 + Random.Shared.NextDouble() * 50), 2),<br>                DateTime.UtcNow<br>            );<br>            <br>            await Task.Delay(TimeSpan.FromSeconds(2), ct);<br>        }<br>    }<br>}<br><br>// Endpoint definition<br>app.MapGet(&quot;/api/stocks/stream&quot;, <br>    (StockService service, CancellationToken ct) =&gt;<br>        TypedResults.ServerSentEvents(<br>            service.StreamPrices(ct), <br>            eventType: &quot;stockUpdate&quot;<br>        )<br>);</pre><p><strong>Client-side JavaScript:</strong></p><pre>const eventSource = new EventSource(&#39;/api/stocks/stream&#39;);<br><br>eventSource.addEventListener(&#39;stockUpdate&#39;, (event) =&gt; {<br>    const data = JSON.parse(event.data);<br>    console.log(`${data.symbol}: $${data.price}`);<br>});</pre><h3>4. PipeReader-Based JSON Deserialization</h3><p>Performans için Stream yerine PipeReader kullanımı.</p><pre>// .NET 10 otomatik olarak PipeReader kullanıyor<br>app.MapPost(&quot;/api/large-data&quot;, async (HttpRequest request) =&gt;<br>{<br>    // PipeReader-based deserialization (daha performanslı)<br>    var data = await request.ReadFromJsonAsync&lt;LargeDataModel&gt;();<br>    return TypedResults.Ok();<br>});</pre><h3>Entity Framework Core 10</h3><h3>1. LeftJoin ve RightJoin Methods</h3><p>EF Core 10, explicit LEFT JOIN ve RIGHT JOIN için LINQ extension method&#39;ları ekliyor.</p><p><strong>Eski Yöntem (GroupJoin + SelectMany + DefaultIfEmpty):</strong></p><pre>var query = from student in context.Students<br>            join department in context.Departments <br>                on student.DepartmentId equals department.Id into deptGroup<br>            from dept in deptGroup.DefaultIfEmpty()<br>            select new<br>            {<br>                student.FirstName,<br>                student.LastName,<br>                Department = dept != null ? dept.Name : &quot;[NONE]&quot;<br>            };</pre><p><strong>Yeni Yöntem (LeftJoin):</strong></p><pre>var query = context.Students.LeftJoin(<br>    context.Departments,<br>    student =&gt; student.DepartmentId,<br>    department =&gt; department.Id,<br>    (student, department) =&gt; new<br>    {<br>        student.FirstName,<br>        student.LastName,<br>        Department = department.Name ?? &quot;[NONE]&quot;<br>    }<br>);</pre><p><strong>RightJoin Örneği:</strong></p><pre>var query = context.Departments.RightJoin(<br>    context.Students,<br>    department =&gt; department.Id,<br>    student =&gt; student.DepartmentId,<br>    (department, student) =&gt; new<br>    {<br>        DepartmentName = department.Name ?? &quot;[NO DEPT]&quot;,<br>        student.FirstName,<br>        student.LastName<br>    }<br>);</pre><h3>2. Named Query Filters</h3><p>Artık bir entity için birden fazla query filter tanımlayabiliyoruz ve bunları ayrı ayrı yönetebiliyoruz!</p><p><strong>Problem (EF Core 9 ve öncesi):</strong></p><pre>// Sadece tek filter tanımlanabiliyordu<br>modelBuilder.Entity&lt;Blog&gt;()<br>    .HasQueryFilter(b =&gt; !b.IsDeleted &amp;&amp; b.TenantId == tenantId);<br><br>// Tüm filtreler birlikte açılıp kapatılabiliyordu<br>var allBlogs = context.Blogs.IgnoreQueryFilters().ToListAsync();</pre><p><strong>Çözüm (EF Core 10):</strong></p><pre>protected override void OnModelCreating(ModelBuilder modelBuilder)<br>{<br>    var tenantId = GetCurrentTenantId();<br>    <br>    // Named filters<br>    modelBuilder.Entity&lt;Order&gt;()<br>        .HasQueryFilter(&quot;SoftDeleteFilter&quot;, o =&gt; !o.IsDeleted)<br>        .HasQueryFilter(&quot;TenantFilter&quot;, o =&gt; o.TenantId == tenantId);<br>}<br><br>// Sadece belirli bir filtreyi ignore et<br>var includeDeleted = await context.Orders<br>    .IgnoreQueryFilters([&quot;SoftDeleteFilter&quot;])<br>    .ToListAsync();<br><br>// Tüm filtreleri ignore et<br>var allOrders = await context.Orders<br>    .IgnoreQueryFilters()<br>    .ToListAsync();</pre><p><strong>Best Practice:</strong></p><pre>// Enum kullanımı önerilir<br>public static class QueryFilters<br>{<br>    public const string SoftDelete = nameof(SoftDelete);<br>    public const string Tenant = nameof(Tenant);<br>    public const string Published = nameof(Published);<br>}<br><br>modelBuilder.Entity&lt;Post&gt;()<br>    .HasQueryFilter(QueryFilters.SoftDelete, p =&gt; !p.IsDeleted)<br>    .HasQueryFilter(QueryFilters.Published, p =&gt; p.IsPublished)<br>    .HasQueryFilter(QueryFilters.Tenant, p =&gt; p.TenantId == tenantId);<br><br>// Kullanım<br>var drafts = await context.Posts<br>    .IgnoreQueryFilters([QueryFilters.Published])<br>    .ToListAsync();</pre><h3>3. Complex Types Support</h3><p>Complex type&#39;lar, entity type&#39;lardan farklı olarak identity&#39;e sahip olmayan, container entity&#39;nin bir parçası olan type&#39;lardır.</p><p><strong>Table Splitting (Aynı tabloda):</strong></p><pre>public class Customer<br>{<br>    public int Id { get; set; }<br>    public string Name { get; set; }<br>    public Address ShippingAddress { get; set; }<br>    public Address? BillingAddress { get; set; }  // Optional<br>}<br><br>public struct Address<br>{<br>    public required string Street { get; set; }<br>    public required string City { get; set; }<br>    public required string PostalCode { get; set; }<br>    public int StreetNumber { get; set; }<br>}<br><br>// Configuration<br>protected override void OnModelCreating(ModelBuilder modelBuilder)<br>{<br>    modelBuilder.Entity&lt;Customer&gt;(entity =&gt;<br>    {<br>        entity.ComplexProperty(c =&gt; c.ShippingAddress);<br>        entity.ComplexProperty(c =&gt; c.BillingAddress);<br>    });<br>}<br><br>// Generated SQL<br>CREATE TABLE [Customers] (<br>    [Id] int NOT NULL IDENTITY,<br>    [Name] nvarchar(max) NOT NULL,<br>    [BillingAddress_City] nvarchar(max),<br>    [BillingAddress_PostalCode] nvarchar(max),<br>    [BillingAddress_Street] nvarchar(max),<br>    [BillingAddress_StreetNumber] int,<br>    [ShippingAddress_City] nvarchar(max) NOT NULL,<br>    [ShippingAddress_PostalCode] nvarchar(max) NOT NULL,<br>    [ShippingAddress_Street] nvarchar(max) NOT NULL,<br>    [ShippingAddress_StreetNumber] int NOT NULL,<br>    CONSTRAINT [PK_Customers] PRIMARY KEY ([Id])<br>);</pre><p><strong>JSON Column Mapping:</strong></p><pre>public class Blog<br>{<br>    public int Id { get; set; }<br>    public string Name { get; set; }<br>    public string[] Tags { get; set; }  // Primitive collection<br>    public required BlogDetails Details { get; set; }  // Complex type<br>}<br><br>public class BlogDetails<br>{<br>    public string? Description { get; set; }<br>    public int Viewers { get; set; }<br>    public DateTime CreatedAt { get; set; }<br>}<br><br>// Configuration<br>protected override void OnModelCreating(ModelBuilder modelBuilder)<br>{<br>    modelBuilder.Entity&lt;Blog&gt;()<br>        .ComplexProperty(b =&gt; b.Details, b =&gt; b.ToJson());<br>}<br><br>// SQL Server 2025+ ile JSON type kullanır<br>CREATE TABLE [Blogs] (<br>    [Id] int NOT NULL IDENTITY,<br>    [Name] nvarchar(max) NOT NULL,<br>    [Tags] json NOT NULL,<br>    [Details] json NOT NULL,<br>    CONSTRAINT [PK_Blogs] PRIMARY KEY ([Id])<br>);<br><br>// LINQ querying<br>var popularBlogs = await context.Blogs<br>    .Where(b =&gt; b.Details.Viewers &gt; 1000)<br>    .ToListAsync();<br><br>// JSON property indexing<br>modelBuilder.Entity&lt;Blog&gt;()<br>    .ComplexProperty(b =&gt; b.Details, c =&gt;<br>    {<br>        c.ToJson();<br>        // JSON içindeki property&#39;lere index<br>        c.Property(d =&gt; d.CreatedAt);<br>    })<br>    .HasIndex(b =&gt; b.Details.CreatedAt);</pre><h3>4. ExecuteUpdateAsync with Non-Expression Lambdas</h3><p>Bulk update işlemlerinde artık normal lambda&#39;lar kullanabiliyoruz.</p><p><strong>Eski Yöntem:</strong></p><pre>// Sadece expression tree&#39;ler çalışıyordu<br>await context.Blogs<br>    .Where(b =&gt; b.Rating &lt; 3)<br>    .ExecuteUpdateAsync(s =&gt; s<br>        .SetProperty(b =&gt; b.Rating, 3)<br>        .SetProperty(b =&gt; b.IsPublished, false));</pre><p><strong>Yeni Yöntem (Conditional logic destekli):</strong></p><pre>bool updateName = true;<br>string? newName = &quot;Updated Blog&quot;;<br><br>await context.Blogs<br>    .Where(b =&gt; b.Id == blogId)<br>    .ExecuteUpdateAsync(s =&gt;<br>    {<br>        s.SetProperty(b =&gt; b.Views, b =&gt; b.Views + 1);<br>        <br>        // Conditional logic<br>        if (updateName &amp;&amp; newName != null)<br>        {<br>            s.SetProperty(b =&gt; b.Name, newName);<br>        }<br>        <br>        s.SetProperty(b =&gt; b.UpdatedAt, DateTime.UtcNow);<br>    });</pre><h3>5. Parameterized Collections Support</h3><p>Collection parameter&#39;ları artık daha efficient şekilde handle ediliyor.</p><pre>// EF Core 8 ve öncesi - Her farklı collection için farklı SQL<br>int[] ids = [1, 2, 3];<br>var blogs = await context.Blogs<br>    .Where(b =&gt; ids.Contains(b.Id))<br>    .ToListAsync();<br><br>// Generated SQL (EF Core 8)<br>// WHERE [b].[Id] IN (1, 2, 3)  -- Constants inline<br><br>// EF Core 10 - JSON parameter kullanıyor<br>// WHERE [b].[Id] IN (SELECT [value] FROM OPENJSON(@p0))<br>// @p0 = &#39;[1,2,3]&#39;<br>// Bu approach plan cache&#39;i korur!</pre><h3>.NET MAUI ve Diğer Yenilikler</h3><h3>.NET MAUI 10</h3><p><strong>MediaPicker İyileştirmeleri:</strong></p><pre>// Multiple file selection<br>var photos = await MediaPicker.PickMultiplePhotosAsync(new PickOptions<br>{<br>    PickerTitle = &quot;Select photos&quot;<br>});<br><br>// Image compression<br>var photo = await MediaPicker.CapturePhotoAsync(new MediaPickerOptions<br>{<br>    Quality = MediaPickerQuality.Medium,  // Compression level<br>});</pre><p><strong>WebView Request Interception:</strong></p><pre>// WebView için request interception<br>webView.RequestIntercepting += (sender, args) =&gt;<br>{<br>    if (args.Url.Contains(&quot;api.example.com&quot;))<br>    {<br>        // Header&#39;ları modify et<br>        args.Headers.Add(&quot;Authorization&quot;, $&quot;Bearer {token}&quot;);<br>    }<br>};</pre><p><strong>Android API 35 ve 36 Desteği:</strong></p><pre>&lt;!-- .csproj --&gt;<br>&lt;TargetFrameworks&gt;net10.0-android36.1&lt;/TargetFrameworks&gt;</pre><h3>SDK İyileştirmeleri</h3><p><strong>Single-File C# Execution:</strong></p><pre>// Hello.cs - No project file needed!<br>Console.WriteLine(&quot;Hello from .NET 10!&quot;);<br><br>// Run directly<br>// dotnet run Hello.cs</pre><p><strong>MSBuild .NET Task Support:</strong></p><pre>// MSBuild task&#39;ları artık .NET ile yazılabilir<br>public class CustomTask : Task<br>{<br>    public override bool Execute()<br>    {<br>        Log.LogMessage(&quot;Running custom .NET task&quot;);<br>        return true;<br>    }<br>}</pre><p><strong>dotnet tool exec:</strong></p><pre># Tool&#39;u install etmeden çalıştır<br>dotnet tool exec dotnet-format<br><br># CI/CD için ideal</pre><h3>Windows Forms ve WPF</h3><p><strong>Windows Forms:</strong></p><ul><li>JSON serialization ile clipboard API&#39;leri</li><li>.NET Framework&#39;ten UITypeEditor&#39;lar port edildi</li><li>Fluent style desteği</li></ul><p><strong>WPF:</strong></p><ul><li>Label, Hyperlink, GroupBox için fluent style&#39;lar</li><li>Cache optimization</li><li>Font collection loader managed code&#39;a taşındı</li></ul><h3>Migration ve Upgrade Stratejisi</h3><h3>.NET 8&#39;den .NET 10&#39;a Geçiş</h3><p><strong>.csproj Güncellemesi:</strong></p><pre>&lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&gt;<br>  &lt;PropertyGroup&gt;<br>    &lt;!-- Target framework güncelle --&gt;<br>    &lt;TargetFramework&gt;net10.0&lt;/TargetFramework&gt;<br>    <br>    &lt;!-- C# 14 özelliklerini kullan --&gt;<br>    &lt;LangVersion&gt;14.0&lt;/LangVersion&gt;<br>    <br>    &lt;!-- Preview features için --&gt;<br>    &lt;!-- &lt;LangVersion&gt;preview&lt;/LangVersion&gt; --&gt;<br>  &lt;/PropertyGroup&gt;<br>&lt;/Project&gt;</pre><p><strong>Package Updates:</strong></p><pre># EF Core<br>dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 10.0.0<br><br># ASP.NET Core (genellikle SDK ile geliyor)<br>dotnet add package Microsoft.AspNetCore.OpenApi --version 10.0.0</pre><p><strong>Breaking Changes:</strong></p><ol><li><strong>ASP.NET Core:</strong></li></ol><ul><li>WithOpenApi deprecated (yeni OpenAPI generator kullan)</li><li>WebHostBuilder obsolete (WebApplicationBuilder kullan)</li><li>Razor runtime compilation disabled (precompilation gerekli)</li></ul><ol><li><strong>EF Core:</strong></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37e616bb8740" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.NET 10 ve C# 14 — Yenilikler ve Özellikler]]></title>
            <link>https://medium.com/@hasan-ozturk/net-10-ve-c-14-yenilikler-ve-%C3%B6zellikler-e13fdcf28b88?source=rss-6812be981870------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13fdcf28b88</guid>
            <dc:creator><![CDATA[Hasan Öztürk]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 15:22:59 GMT</pubDate>
            <atom:updated>2025-11-12T11:12:32.786Z</atom:updated>
            <content:encoded><![CDATA[<h3>.NET 10 ve C# 14 — Yenilikler ve Özellikler</h3><h3>📋 İçindekiler</h3><ol><li>.NET 10 Genel Bakış</li><li>C# 14 Yeni Özellikleri</li><li>Runtime İyileştirmeleri</li><li>ASP.NET Core 10 Yenilikleri</li><li>Entity Framework Core 10</li><li>.NET MAUI ve Desktop Geliştirmeleri</li></ol><h3>.NET 10 Genel Bakış</h3><h3>🎯 Temel Bilgiler</h3><ul><li><strong>Çıkış Tarihi</strong>: 11 Kasım 2025</li><li><strong>Destek Süresi</strong>: Long-Term Support (LTS) — 3 yıl (Kasım 2028&#39;e kadar)</li><li><strong>Mevcut Durum</strong>: Release Candidate 2 (RC2) — production-ready</li><li><strong>Uyumlu IDE’ler</strong>: Visual Studio 2026 Insiders, VS Code + C# Dev Kit</li></ul><h3>🚀 Neden .NET 10?</h3><p>.NET 10, Microsoft’un yeni sürüm stratejisinde bir LTS sürümü olarak konumlandırılmıştır. Bu demektir ki:</p><ul><li>Uzun vadeli projeler için ideal</li><li>3 yıl boyunca güvenlik güncellemeleri ve yamalar</li><li>Production ortamları için stabilite garantisi</li><li>Performance odaklı iyileştirmeler</li></ul><h3>C# 14 Yeni Özellikleri</h3><h3>1️⃣ Field-Backed Properties (field keyword)</h3><p><strong>Sorun</strong>: Önceden, bir property’ye özel logic eklemek istediğinizde backing field’ı manuel olarak tanımlamanız gerekiyordu.</p><h4>Eski Yaklaşım (C# 13 ve öncesi)</h4><pre>// Manuel backing field tanımlama<br>private string _message;</pre><pre>public string Message<br>{<br>    get =&gt; _message;<br>    set =&gt; _message = value ?? throw new ArgumentNullException(nameof(value));<br>}</pre><h4>Yeni Yaklaşım (C# 14)</h4><pre>// field keyword ile otomatik backing field<br>public string Message<br>{<br>    get; // Compiler tarafından otomatik oluşturulur<br>    set =&gt; field = value ?? throw new ArgumentNullException(nameof(value));<br>}</pre><p><strong>Avantajlar</strong>:</p><ul><li>Daha az boilerplate code</li><li>Backing field’a yanlışlıkla doğrudan erişim riski yok</li><li>Auto-property’den custom property’ye kolay geçiş</li></ul><h4>Pratik Örnekler</h4><p><strong>Örnek 1: Validation Logic</strong></p><pre>public class Person<br>{<br>    // Yaş negatif olamaz<br>    public int Age<br>    {<br>        get;<br>        set<br>        {<br>            if (value &lt; 0)<br>                throw new ArgumentOutOfRangeException(nameof(value));<br>            field = value;<br>        }<br>    }<br>    <br>    // Email format kontrolü<br>    public string Email<br>    {<br>        get;<br>        set<br>        {<br>            if (!value.Contains(&quot;@&quot;))<br>                throw new ArgumentException(&quot;Invalid email&quot;);<br>            field = value.ToLower(); // Normalize<br>        }<br>    }<br>}</pre><p><strong>Örnek 2: Change Notification</strong></p><pre>public class Product : INotifyPropertyChanged<br>{<br>    public event PropertyChangedEventHandler? PropertyChanged;<br>    <br>    public decimal Price<br>    {<br>        get;<br>        set<br>        {<br>            field = value;<br>            PropertyChanged?.Invoke(this, <br>                new PropertyChangedEventArgs(nameof(Price)));<br>        }<br>    }<br>}</pre><p><strong>Örnek 3: Lazy Initialization</strong></p><pre>public class DataService<br>{<br>    public string ConnectionString<br>    {<br>        get =&gt; field ??= LoadFromConfig();<br>        set =&gt; field = value;<br>    }<br>    <br>    private string LoadFromConfig() =&gt; &quot;DefaultConnection&quot;;<br>}</pre><p><strong>Örnek 4: Karma Kullanım</strong></p><pre>public class Temperature<br>{<br>    // Sadece set&#39;te custom logic<br>    public double Celsius<br>    {<br>        get; // Otomatik<br>        set<br>        {<br>            if (value &lt; -273.15)<br>                throw new ArgumentOutOfRangeException(&quot;Below absolute zero!&quot;);<br>            field = value;<br>        }<br>    }<br>    <br>    // Sadece get&#39;te custom logic<br>    public double Fahrenheit<br>    {<br>        get =&gt; field * 9 / 5 + 32;<br>        set; // Otomatik<br>    }<br>}</pre><h4>⚠️ Önemli Notlar</h4><ul><li>field keyword&#39;ü sadece property accessor&#39;ları içinde geçerlidir</li><li>Eğer kodunuzda zaten field adında bir değişken varsa, @field şeklinde escape etmelisiniz</li><li>Performance açısından manuel backing field ile aynıdır — compile-time feature</li></ul><h3>2️⃣ Extension Members</h3><p><strong>Devrim Niteliğinde Yenilik</strong>: C# 3.0&#39;dan beri extension method’lar vardı, ama artık “extension everything” çağındayız!</p><h4>Eskiden Neler Yapılabiliyordu?</h4><pre>// Sadece instance method&#39;lar<br>public static class StringExtensions<br>{<br>    public static bool IsNullOrWhiteSpace(this string str)<br>        =&gt; string.IsNullOrWhiteSpace(str);<br>}</pre><h4>Şimdi Neler Yapılabiliyor?</h4><ul><li>✅ Instance extension methods</li><li>✅ Instance extension properties</li><li>✅ Static extension methods</li><li>✅ Static extension properties</li><li>✅ Extension operators</li><li>✅ Extension indexers</li></ul><h4>Yeni Syntax Yapısı</h4><p><strong>Temel Syntax</strong></p><pre>public static class MyExtensions<br>{<br>    // Instance extension members<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt; source)<br>    {<br>        // Tüm instance extension&#39;lar buraya<br>    }<br>    <br>    // Static extension members<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt;)<br>    {<br>        // Tüm static extension&#39;lar buraya<br>    }<br>}</pre><h4>Detaylı Örnekler</h4><p><strong>Örnek 1: String Extension’ları</strong></p><pre>public static class StringExtensions<br>{<br>    extension(string source)<br>    {<br>        // Extension property<br>        public int WordCount <br>            =&gt; source.Split(&#39; &#39;, StringSplitOptions.RemoveEmptyEntries).Length;<br>        <br>        // Extension property<br>        public bool IsEmpty =&gt; string.IsNullOrWhiteSpace(source);<br>        <br>        // Extension method<br>        public string Truncate(int maxLength)<br>        {<br>            if (source.Length &lt;= maxLength)<br>                return source;<br>            return source.Substring(0, maxLength) + &quot;...&quot;;<br>        }<br>        <br>        // Extension method<br>        public string Reverse()<br>        {<br>            var chars = source.ToCharArray();<br>            Array.Reverse(chars);<br>            return new string(chars);<br>        }<br>    }<br>}</pre><pre>// Kullanım<br>string message = &quot;Hello from C# 14&quot;;<br>Console.WriteLine(message.WordCount);      // 4<br>Console.WriteLine(message.IsEmpty);        // false<br>Console.WriteLine(message.Truncate(10));   // Hello from...<br>Console.WriteLine(message.Reverse());      // 41# C morf olleH</pre><p><strong>Örnek 2: IEnumerable Extension’ları</strong></p><pre>public static class EnumerableExtensions<br>{<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt; source)<br>    {<br>        // Extension property<br>        public bool IsEmpty =&gt; !source.Any();<br>        <br>        // Extension property<br>        public int Count =&gt; source.Count();<br>        <br>        // Extension indexer<br>        public T this[int index] =&gt; source.ElementAt(index);<br>        <br>        // Extension method<br>        public IEnumerable&lt;T&gt; Shuffle()<br>        {<br>            var random = new Random();<br>            return source.OrderBy(_ =&gt; random.Next());<br>        }<br>    }<br>    <br>    // Static extension members<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt;)<br>    {<br>        // Static extension property<br>        public static IEnumerable&lt;T&gt; Empty <br>            =&gt; System.Linq.Enumerable.Empty&lt;T&gt;();<br>        <br>        // Static extension method<br>        public static IEnumerable&lt;T&gt; Repeat(T value, int count) <br>            =&gt; System.Linq.Enumerable.Repeat(value, count);<br>    }<br>}</pre><pre>// Kullanım<br>var numbers = new[] { 1, 2, 3, 4, 5 };<br>Console.WriteLine(numbers.IsEmpty);        // false<br>Console.WriteLine(numbers[2]);             // 3 (indexer)<br>var shuffled = numbers.Shuffle();</pre><pre>// Static extension kullanımı<br>var empty = Enumerable&lt;int&gt;.Empty;<br>var repeated = Enumerable&lt;string&gt;.Repeat(&quot;Hi&quot;, 3);</pre><p><strong>Örnek 3: DateTime Extension’ları</strong></p><pre>public static class DateTimeExtensions<br>{<br>    extension(DateTime source)<br>    {<br>        // Extension properties<br>        public bool IsWeekend <br>            =&gt; source.DayOfWeek is DayOfWeek.Saturday or DayOfWeek.Sunday;<br>        <br>        public bool IsToday <br>            =&gt; source.Date == DateTime.Today;<br>        <br>        public int DaysUntilEndOfMonth <br>            =&gt; DateTime.DaysInMonth(source.Year, source.Month) - source.Day;<br>        <br>        // Extension methods<br>        public DateTime StartOfDay() <br>            =&gt; source.Date;<br>        <br>        public DateTime EndOfDay() <br>            =&gt; source.Date.AddDays(1).AddTicks(-1);<br>        <br>        public DateTime NextWorkday()<br>        {<br>            var next = source.AddDays(1);<br>            while (next.IsWeekend)<br>                next = next.AddDays(1);<br>            return next;<br>        }<br>    }<br>    <br>    // Static extensions<br>    extension(DateTime)<br>    {<br>        public static DateTime StartOfFiscalYear(int year) <br>            =&gt; new DateTime(year, 4, 1); // Örnek: Mali yıl Nisan&#39;da başlar<br>        <br>        public static DateTime FirstMondayOfYear(int year)<br>        {<br>            var first = new DateTime(year, 1, 1);<br>            while (first.DayOfWeek != DayOfWeek.Monday)<br>                first = first.AddDays(1);<br>            return first;<br>        }<br>    }<br>}</pre><pre>// Kullanım<br>DateTime today = DateTime.Now;<br>Console.WriteLine(today.IsWeekend);<br>Console.WriteLine(today.DaysUntilEndOfMonth);<br>var tomorrow = today.NextWorkday();</pre><pre>// Static extension<br>var fiscalStart = DateTime.StartOfFiscalYear(2025);</pre><p><strong>Örnek 4: Extension Operators</strong></p><pre>public static class PointExtensions<br>{<br>    extension(System.Drawing.Point point)<br>    {<br>        // Extension property<br>        public double Distance =&gt; Math.Sqrt(point.X * point.X + point.Y * point.Y);<br>        <br>        // Extension operators<br>        public static Point operator +(Point p1, Point p2)<br>            =&gt; new Point(p1.X + p2.X, p1.Y + p2.Y);<br>        <br>        public static Point operator -(Point p1, Point p2)<br>            =&gt; new Point(p1.X - p2.X, p1.Y - p2.Y);<br>        <br>        public static Point operator *(Point p, int scalar)<br>            =&gt; new Point(p.X * scalar, p.Y * scalar);<br>        <br>        public static Point operator /(Point p, int divisor)<br>            =&gt; new Point(p.X / divisor, p.Y / divisor);<br>    }<br>}</pre><pre>// Kullanım<br>var p1 = new Point(10, 20);<br>var p2 = new Point(5, 15);</pre><pre>var sum = p1 + p2;           // (15, 35)<br>var diff = p1 - p2;          // (5, 5)<br>var scaled = p1 * 2;         // (20, 40)<br>var reduced = p1 / 2;        // (5, 10)<br>Console.WriteLine(p1.Distance); // ~22.36</pre><h4>🎯 Extension Members vs Extension Methods</h4><p>Özellik Extension Methods (Eski) Extension Members (Yeni) Instance methods ✅ ✅ Instance properties ❌ ✅ Static methods ❌ ✅ Static properties ❌ ✅ Operators ❌ ✅ Indexers ❌ ✅ Logical grouping ❌ ✅</p><h4>🔄 Migration Path</h4><p>Mevcut extension method’larınızı yeni syntax’a çevirmek zorunda değilsiniz! Her iki syntax da çalışmaya devam edecek:</p><pre>public static class MyExtensions<br>{<br>    // Eski syntax - hala geçerli<br>    public static bool IsEmpty&lt;T&gt;(this IEnumerable&lt;T&gt; source)<br>        =&gt; !source.Any();<br>    <br>    // Yeni syntax<br>    extension&lt;T&gt;(IEnumerable&lt;T&gt; source)<br>    {<br>        public bool IsNullOrEmpty =&gt; source == null || !source.Any();<br>    }<br>}</pre><h3>3️⃣ Null-Conditional Member Access on Assignment</h3><p><strong>Yenilik</strong>: Artık ?. operatörünü assignment&#39;ın sol tarafında kullanabiliyorsunuz!</p><h4>Eski Yaklaşım</h4><pre>if (customer is not null)<br>{<br>    customer.Order = GetCurrentOrder();<br>}</pre><pre>if (user is not null)<br>{<br>    user.LastLogin = DateTime.Now;<br>}</pre><h4>Yeni Yaklaşım (C# 14)</h4><pre>// Tek satırda, daha temiz<br>customer?.Order = GetCurrentOrder();<br>user?.LastLogin = DateTime.Now;</pre><h4>Compound Assignment ile Kullanım</h4><pre>// Sadece customer null değilse TotalSpent artırılır<br>customer?.TotalSpent += 100;</pre><pre>// Sadece counter null değilse 1 artırılır<br>stats?.Counter += 1;</pre><pre>// String concatenation<br>message?.Content += &quot; - Updated&quot;;</pre><h4>⚠️ Önemli: İzin verilmeyen kullanımlar</h4><pre>// ++ ve -- operatörleri KULLANILAMAZ<br>counter?.Value++;  // ❌ Derleme hatası<br>index?.Position--; // ❌ Derleme hatası</pre><pre>// Bunun yerine += kullanın<br>counter?.Value += 1;  // ✅ Çalışır<br>index?.Position -= 1; // ✅ Çalışır</pre><h4>Pratik Örnekler</h4><pre>public class ShoppingCart<br>{<br>    public void UpdateCustomer(Customer? customer, Order newOrder)<br>    {<br>        // Eskiden<br>        if (customer is not null)<br>        {<br>            customer.LastOrder = newOrder;<br>            customer.OrderCount += 1;<br>            customer.TotalSpent += newOrder.Amount;<br>        }<br>        <br>        // Şimdi<br>        customer?.LastOrder = newOrder;<br>        customer?.OrderCount += 1;<br>        customer?.TotalSpent += newOrder.Amount;<br>    }<br>}</pre><h3>4️⃣ nameof ile Unbound Generic Types</h3><p><strong>Yenilik</strong>: nameof artık generic type parametresi olmadan kullanılabiliyor.</p><h4>Eski Yaklaşım</h4><pre>// Placeholder type gerekiyordu<br>string name = nameof(List&lt;int&gt;);  // &quot;List&quot;<br>string name = nameof(Dictionary&lt;string, object&gt;); // &quot;Dictionary&quot;</pre><h4>Yeni Yaklaşım (C# 14)</h4><pre>// Artık boş açılı parantez yeterli<br>string name = nameof(List&lt;&gt;);        // &quot;List&quot;<br>string name = nameof(Dictionary&lt;,&gt;); // &quot;Dictionary&quot;</pre><h4>Pratik Kullanım Senaryoları</h4><p><strong>Örnek 1: Logging</strong></p><pre>public class LoggerFactory<br>{<br>    public ILogger CreateLogger&lt;T&gt;()<br>    {<br>        // Eskiden<br>        return new Logger(nameof(T)); // Type parametresi gerekiyordu<br>        <br>        // Şimdi<br>        return new Logger(nameof(List&lt;&gt;)); // Direkt type adı<br>    }<br>}</pre><p><strong>Örnek 2: Dependency Injection</strong></p><pre>public static class ServiceCollectionExtensions<br>{<br>    public static void AddRepository&lt;T&gt;(this IServiceCollection services)<br>    {<br>        var typeName = nameof(IRepository&lt;&gt;);<br>        Console.WriteLine($&quot;Registering {typeName} for {typeof(T).Name}&quot;);<br>        services.AddScoped&lt;IRepository&lt;T&gt;, Repository&lt;T&gt;&gt;();<br>    }<br>}</pre><p><strong>Örnek 3: Error Messages</strong></p><pre>public class GenericValidator&lt;T&gt;<br>{<br>    public void Validate()<br>    {<br>        throw new InvalidOperationException(<br>            $&quot;Validation failed for {nameof(IEnumerable&lt;&gt;)}&quot;<br>        );<br>    }<br>}</pre><h3>5️⃣ Params Collections</h3><p><strong>Yenilik</strong>: params artık sadece array&#39;lerle değil, çeşitli collection type&#39;larıyla kullanılabiliyor!</p><h4>Desteklenen Collection Types</h4><ul><li>Span&lt;T&gt; ve ReadOnlySpan&lt;T&gt;</li><li>IEnumerable&lt;T&gt;</li><li>IReadOnlyCollection&lt;T&gt;</li><li>IReadOnlyList&lt;T&gt;</li><li>ICollection&lt;T&gt;</li><li>IList&lt;T&gt;</li></ul><h4>Örnekler</h4><p><strong>Span ile Params</strong></p><pre>public static class MathHelpers<br>{<br>    // Span&lt;T&gt; ile - stack allocation<br>    public static int Sum(params ReadOnlySpan&lt;int&gt; numbers)<br>    {<br>        int total = 0;<br>        foreach (var num in numbers)<br>            total += num;<br>        return total;<br>    }<br>    <br>    // Performance avantajı - heap allocation yok<br>    public static double Average(params ReadOnlySpan&lt;double&gt; values)<br>    {<br>        if (values.Length == 0) return 0;<br>        return values.ToArray().Average();<br>    }<br>}</pre><pre>// Kullanım<br>int sum = MathHelpers.Sum(1, 2, 3, 4, 5);<br>double avg = MathHelpers.Average(10.5, 20.3, 15.7);</pre><p><strong>IEnumerable ile Params</strong></p><pre>public static class ListHelpers<br>{<br>    public static List&lt;T&gt; Merge&lt;T&gt;(params IEnumerable&lt;T&gt; collections)<br>    {<br>        var result = new List&lt;T&gt;();<br>        foreach (var collection in collections)<br>            result.AddRange(collection);<br>        return result;<br>    }<br>}</pre><pre>// Kullanım<br>var list1 = new[] { 1, 2, 3 };<br>var list2 = new List&lt;int&gt; { 4, 5, 6 };<br>var list3 = new HashSet&lt;int&gt; { 7, 8, 9 };</pre><pre>var merged = ListHelpers.Merge(list1, list2, list3);</pre><h3>6️⃣ First-Class Span Types</h3><p><strong>Yenilik</strong>: Span&lt;T&gt; ve ReadOnlySpan&lt;T&gt; artık first-class citizen!</p><pre>public static class SpanExtensions<br>{<br>    // Span&#39;i extension method receiver olarak kullanma<br>    extension&lt;T&gt;(ReadOnlySpan&lt;T&gt; span)<br>    {<br>        public bool IsEmpty =&gt; span.Length == 0;<br>        <br>        public T First() =&gt; span[0];<br>        <br>        public T Last() =&gt; span[^1];<br>        <br>        public ReadOnlySpan&lt;T&gt; Slice(int start, int length)<br>            =&gt; span.Slice(start, length);<br>    }<br>}</pre><pre>// Kullanım<br>ReadOnlySpan&lt;int&gt; numbers = stackalloc int[] { 1, 2, 3, 4, 5 };<br>Console.WriteLine(numbers.IsEmpty);  // false<br>Console.WriteLine(numbers.First());  // 1<br>Console.WriteLine(numbers.Last());   // 5</pre><h4>Implicit Conversions</h4><pre>// Array -&gt; Span<br>int[] array = { 1, 2, 3 };<br>Span&lt;int&gt; span = array;</pre><pre>// Span -&gt; ReadOnlySpan<br>ReadOnlySpan&lt;int&gt; readOnlySpan = span;</pre><pre>// Extension method inference<br>public static T Sum&lt;T&gt;(this ReadOnlySpan&lt;T&gt; span) where T : INumber&lt;T&gt;<br>{<br>    T sum = T.Zero;<br>    foreach (var item in span)<br>        sum += item;<br>    return sum;<br>}</pre><pre>// Direkt array üzerinde çağrılabilir<br>int[] numbers = { 1, 2, 3, 4, 5 };<br>var total = numbers.Sum(); // Array otomatik olarak ReadOnlySpan&#39;e dönüşür</pre><h3>7️⃣ Partial Events</h3><p>C# 13&#39;te partial properties ve indexer’lar geldi, C# 14 ile set tamamlandı!</p><pre>// Interface/abstract tanım<br>public partial class EventPublisher<br>{<br>    public partial event EventHandler DataChanged;<br>}</pre><pre>// Implementation<br>public partial class EventPublisher<br>{<br>    public partial event EventHandler DataChanged<br>    {<br>        add<br>        {<br>            _dataChanged += value;<br>            Console.WriteLine(&quot;Event handler eklendi&quot;);<br>        }<br>        remove<br>        {<br>            _dataChanged -= value;<br>            Console.WriteLine(&quot;Event handler kaldırıldı&quot;);<br>        }<br>    }<br>    <br>    private EventHandler? _dataChanged;<br>}</pre><h3>8️⃣ User-Defined Compound Assignment</h3><p>+, -, *, / gibi operatörleri override ettiğinizde, +=, -= gibi compound assignment&#39;lar otomatik çalışır:</p><pre>public class Vector2D<br>{<br>    public double X { get; set; }<br>    public double Y { get; set; }<br>    <br>    public static Vector2D operator +(Vector2D a, Vector2D b)<br>        =&gt; new Vector2D { X = a.X + b.X, Y = a.Y + b.Y };<br>    <br>    public static Vector2D operator -(Vector2D a, Vector2D b)<br>        =&gt; new Vector2D { X = a.X - b.X, Y = a.Y - b.Y };<br>}</pre><pre>// Kullanım<br>Vector2D v1 = new() { X = 10, Y = 20 };<br>Vector2D v2 = new() { X = 5, Y = 15 };</pre><pre>v1 += v2;  // Otomatik çalışır: v1 = v1 + v2<br>v1 -= v2;  // Otomatik çalışır: v1 = v1 - v2</pre><h3>9️⃣ Lambda Parameter Modifiers</h3><p>Lambda expression’larda artık parameter modifier’ları type belirtmeden kullanabiliyorsunuz:</p><pre>// Eskiden<br>Func&lt;int, bool&gt; oldLambda = (int x) =&gt; x &gt; 0;</pre><pre>// Şimdi - modifier&#39;lar type olmadan<br>var withRef = (ref int x) =&gt; x++;<br>var withIn = (in int x) =&gt; x * 2;<br>var withOut = (out int x) =&gt; x = 42;<br>var withScoped = (scoped ref int x) =&gt; x++;<br>var withReadOnly = (ref readonly int x) =&gt; x * 2;</pre><pre>// Örnek kullanım<br>int value = 10;<br>withRef(ref value);  // value = 11<br>withOut(out value);  // value = 42</pre><h3>Runtime İyileştirmeleri</h3><h3>🚀 JIT Compiler Geliştirmeleri</h3><p>C# 14 introduces several new features and enhancements to improve developer productivity and code quality. Runtime’da önemli performance iyileştirmeleri var:</p><h4>1. Struct Argument Optimization</h4><pre>public struct Point3D<br>{<br>    public int X, Y, Z;<br>    <br>    public double Distance()<br>    {<br>        // Struct member&#39;ları artık direkt register&#39;a alınıyor<br>        // Eskiden memory load/store işlemleri yapılıyordu<br>        return Math.Sqrt(X * X + Y * Y + Z * Z);<br>    }<br>}</pre><pre>// Performance: %20-30 daha hızlı struct method çağrıları</pre><h4>2. Array Interface Devirtualization</h4><pre>// Eskiden: Virtual call overhead<br>int[] numbers = { 1, 2, 3, 4, 5 };<br>foreach (var num in numbers) // IEnumerable&lt;int&gt; olarak işleniyordu<br>{<br>    Console.WriteLine(num);<br>}</pre><pre>// Şimdi: Inline optimization<br>// JIT compiler array enumeration&#39;ı optimize ediyor<br>// Virtual call&#39;lar elimine ediliyor</pre><h4>3. Loop Inversion Optimization</h4><pre>// JIT artık döngüleri daha iyi optimize ediyor<br>for (int i = 0; i &lt; array.Length; i++)<br>{<br>    if (condition)<br>    {<br>        // Loop inversion ile branch prediction iyileştiriliyor<br>        ProcessItem(array[i]);<br>    }<br>}</pre><h4>4. AVX10.2 Support</h4><ul><li>SIMD (Single Instruction Multiple Data) işlemler için yeni komut seti</li><li>Vektör işlemleri için performans artışı</li><li>ML ve matematiksel hesaplamalar için kritik</li></ul><h3>📦 NativeAOT İyileştirmeleri</h3><p>The .NET 10 runtime introduces improvements in JIT inlining, method devirtualization, and stack allocations. It also includes AVX10.2 support, NativeAOT enhancements:</p><pre>// NativeAOT ile derleme<br>// Daha küçük binary boyutu<br>// Daha hızlı başlangıç süresi<br>// Dependency olmadan çalışma</pre><pre>// .csproj ayarı<br>&lt;PropertyGroup&gt;<br>    &lt;PublishAot&gt;true&lt;/PublishAot&gt;<br>&lt;/PropertyGroup&gt;</pre><pre>// Komut satırı<br>// dotnet publish -r win-x64 -c Release</pre><p><strong>NativeAOT Avantajları</strong>:</p><ul><li>🎯 %50–70 daha küçük binary size</li><li>⚡ 3–4x daha hızlı startup time</li><li>💾 Daha düşük memory footprint</li><li>📦 Self-contained deployment</li></ul><h3>🔧 Stack Allocation Improvements</h3><pre>// Küçük array&#39;ler için otomatik stack allocation<br>public void ProcessData()<br>{<br>    // Compiler küçük array&#39;leri stack&#39;e ayırabilir<br>    // Heap allocation overhead&#39;i yok<br>    int[] smallArray = new int[10];<br>    <br>    // Span kullanımı ile explicit stack allocation<br>    Span&lt;int&gt; buffer = stackalloc int[100];<br>    <br>    // Performance benefit: Garbage collector overhead&#39;i yok<br>}</pre><h3>ASP.NET Core 10 Yenilikleri</h3><h3>🎨 Blazor İyileştirmeleri</h3><h4>1. WebAssembly Preloading</h4><pre>// Blazor WASM uygulamaları daha hızlı yükleniyor<br>// .NET runtime ve assembly&#39;ler parallel download<br>@page &quot;/&quot;<br>&lt;PageTitle&gt;Home&lt;/PageTitle&gt;</pre><pre>// Preloading configuration<br>&lt;script src=&quot;_framework/blazor.webassembly.js&quot; autostart=&quot;false&quot;&gt;&lt;/script&gt;<br>&lt;script&gt;<br>  Blazor.start({<br>    loadBootResource: function (type, name, defaultUri, integrity) {<br>      // Custom loading logic<br>      if (type === &#39;dotnetjs&#39;) {<br>        return (async function () {<br>          // Parallel loading<br>          const response = await fetch(defaultUri, { cache: &#39;no-cache&#39; });<br>          return await response.arrayBuffer();<br>        })();<br>      }<br>    }<br>  });<br>&lt;/script&gt;</pre><h4>2. Enhanced Form Validation</h4><pre>// Built-in validation artık Minimal API&#39;lerde de var<br>var builder = WebApplication.CreateBuilder(args);</pre><pre>// Validation service&#39;lerini ekleme<br>builder.Services.AddValidation();</pre><pre>var app = builder.Build();</pre><pre>// Otomatik validation<br>app.MapPost(&quot;/users&quot;, <br>    ([EmailAddress] string email, [Required] string name) =&gt;<br>{<br>    return TypedResults.Ok(new { email, name });<br>});</pre><pre>// DataAnnotations otomatik çalışıyor!</pre><h4>3. Automatic Memory Pool Eviction</h4><pre>// ASP.NET Core artık memory pool&#39;ları otomatik yönetiyor<br>// Memory pressure altında otomatik cleanup<br>services.AddMemoryCache(options =&gt;<br>{<br>    options.SizeLimit = 1024;<br>    options.CompactionPercentage = 0.05;<br>    options.ExpirationScanFrequency = TimeSpan.FromMinutes(1);<br>});</pre><h3>🔐 Passkey Support for Identity</h3><pre>// Passkey (WebAuthn) desteği built-in<br>builder.Services.AddIdentity&lt;ApplicationUser, IdentityRole&gt;()<br>    .AddEntityFrameworkStores&lt;ApplicationDbContext&gt;()<br>    .AddPasskeySupport(); // 🆕 Yeni!</pre><pre>// Controller&#39;da kullanım<br>public class AccountController : Controller<br>{<br>    [HttpPost]<br>    public async Task&lt;IActionResult&gt; RegisterPasskey()<br>    {<br>        // Passkey registration<br>        var options = await _passkeyService.GetCreationOptionsAsync(User);<br>        return Json(options);<br>    }<br>    <br>    [HttpPost]<br>    public async Task&lt;IActionResult&gt; SignInWithPasskey(<br>        [FromBody] PasskeyCredential credential)<br>    {<br>        var result = await _signInManager.SignInWithPasskeyAsync(credential);<br>        return result.Succeeded ? Ok() : Unauthorized();<br>    }<br>}</pre><h3>📡 Server-Sent Events (SSE)</h3><p>Server Sent Events isn’t something new in ASP.NET Core, but with the release of .NET 10 its really easy to implement:</p><pre>// SSE implementation artık çok kolay<br>app.MapGet(&quot;/events&quot;, async (HttpContext context) =&gt;<br>{<br>    context.Response.ContentType = &quot;text/event-stream&quot;;<br>    <br>    await foreach (var notification in GetNotificationsAsync())<br>    {<br>        await context.Response.WriteAsync(<br>            $&quot;data: {JsonSerializer.Serialize(notification)}\n\n&quot;);<br>        await context.Response.Body.FlushAsync();<br>    }<br>});</pre><pre>// IAsyncEnumerable ile stream<br>async IAsyncEnumerable&lt;Notification&gt; GetNotificationsAsync()<br>{<br>    while (true)<br>    {<br>        await Task.Delay(1000);<br>        yield return new Notification <br>        { <br>            Message = $&quot;Update at {DateTime.Now}&quot; <br>        };<br>    }<br>}</pre><h3>📝 OpenAPI Enhancements</h3><p>OpenAPI enhancements, and minimal API updates:</p><pre>// Full OpenAPI 3.1 support<br>// JSON Schema draft 2020-12 desteği</pre><pre>builder.Services.AddEndpointsApiExplorer();<br>builder.Services.AddSwaggerGen(options =&gt;<br>{<br>    options.SwaggerDoc(&quot;v1&quot;, new OpenApiInfo<br>    {<br>        Version = &quot;v1&quot;,<br>        Title = &quot;My API&quot;,<br>        Description = &quot;API with OpenAPI 3.1 support&quot;<br>    });<br>});</pre><pre>// Minimal API&#39;de OpenAPI annotations<br>app.MapGet(&quot;/products/{id}&quot;, <br>    (int id) =&gt; Results.Ok(new Product { Id = id }))<br>    .WithName(&quot;GetProduct&quot;)<br>    .WithOpenApi(operation =&gt;<br>    {<br>        operation.Summary = &quot;Get product by ID&quot;;<br>        operation.Description = &quot;Retrieves a product with the specified ID&quot;;<br>        return operation;<br>    });</pre><h3>📊 Authentication &amp; Authorization Metrics</h3><pre>// Built-in metrics for auth events<br>builder.Services.AddAuthentication()<br>    .AddCookie()<br>    .AddMetrics(); // 🆕 Yeni!</pre><pre>// Metrikler:<br>// - authentication.attempts<br>// - authentication.successes<br>// - authentication.failures<br>// - authorization.successes<br>// - authorization.failures</pre><pre>// Application Insights ile entegrasyon<br>builder.Services.AddApplicationInsightsTelemetry();</pre><h3>Entity Framework Core 10</h3><h3>🎯 LINQ İyileştirmeleri</h3><h4>1. LeftJoin Method</h4><pre>// Eskiden: GroupJoin + SelectMany<br>var query = from c in context.Customers<br>            join o in context.Orders on c.Id equals o.CustomerId into orders<br>            from o in orders.DefaultIfEmpty()<br>            select new { Customer = c, Order = o };</pre><pre>// Şimdi: LeftJoin - daha temiz!<br>var query = context.Customers<br>    .LeftJoin(<br>        context.Orders,<br>        c =&gt; c.Id,<br>        o =&gt; o.CustomerId,<br>        (c, o) =&gt; new { Customer = c, Order = o });</pre><h4>2. Named Query Filters</h4><pre>// Multiple filter&#39;ları isim vererek yönetme<br>modelBuilder.Entity&lt;Product&gt;()<br>    .HasQueryFilter(&quot;ActiveProducts&quot;, p =&gt; !p.IsDeleted)<br>    .HasQueryFilter(&quot;InStockProducts&quot;, p =&gt; p.Stock &gt; 0);</pre><pre>// Seçici olarak disable etme<br>var query = context.Products<br>    .IgnoreQueryFilters(&quot;InStockProducts&quot;) // Sadece stock filtresini kapat<br>    .ToList();</pre><h4>3. Azure Cosmos DB İyileştirmeleri</h4><pre>// Daha iyi Cosmos DB desteği<br>builder.Services.AddDbContext&lt;CosmosDbContext&gt;(options =&gt;<br>    options.UseCosmos(<br>        endpoint: &quot;https://...&quot;,<br>        key: &quot;...&quot;,<br>        databaseName: &quot;MyDatabase&quot;)<br>    .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking));</pre><pre>// Partition key support<br>modelBuilder.Entity&lt;Order&gt;()<br>    .HasPartitionKey(o =&gt; o.CustomerId)<br>    .ToContainer(&quot;Orders&quot;);</pre><h3>.NET MAUI ve Desktop Geliştirmeleri</h3><h3>📱 .NET MAUI 10</h3><p>The .NET MAUI updates in .NET 10 include several new features and quality improvements for .NET MAUI, .NET for Android, and .NET for iOS, Mac Catalyst, macOS, and tvOS:</p><h4>1. MediaPicker Enhancements</h4><pre>// Multiple file selection<br>var photos = await MediaPicker.PickMultiplePhotosAsync(new MediaPickerOptions<br>{<br>    Title = &quot;Select photos&quot;,<br>    PickMultiple = true,<br>    Quality = 80 // Image compression<br>});</pre><pre>foreach (var photo in photos)<br>{<br>    using var stream = await photo.OpenReadAsync();<br>    // Process each photo<br>}</pre><pre>// Video selection with compression<br>var video = await MediaPicker.PickVideoAsync(new MediaPickerOptions<br>{<br>    CompressionQuality = MediaQuality.Medium<br>});</pre><h4>2. WebView Request Interception</h4><pre>// WebView isteklerini intercept etme<br>&lt;WebView Source=&quot;https://example.com&quot;<br>         Navigating=&quot;OnWebViewNavigating&quot; /&gt;</pre><pre>void OnWebViewNavigating(object sender, WebNavigatingEventArgs e)<br>{<br>    // İsteği cancel edebilir veya modify edebilirsiniz<br>    if (e.Url.Contains(&quot;blocked&quot;))<br>    {<br>        e.Cancel = true;<br>    }<br>    <br>    // Custom headers ekleyebilirsiniz<br>    // Authentication, tracking, vb.<br>}</pre><h4>3. Android API 35/36 Support</h4><pre>// Yeni Android features<br>&lt;TargetFramework&gt;net10.0-android36.1&lt;/TargetFramework&gt;</pre><pre>// Microphone permissions (Windows için de)<br>var status = await Permissions.RequestAsync&lt;Permissions.Microphone&gt;();</pre><pre>if (status == PermissionStatus.Granted)<br>{<br>    // Mikrofonuzu kullan<br>}</pre><h3>🖥️ Windows Forms Enhancements</h3><pre>// Clipboard JSON serialization<br>var data = new { Name = &quot;John&quot;, Age = 30 };<br>Clipboard.SetDataObject(JsonSerializer.Serialize(data));</pre><pre>// Ported UITypeEditors from .NET Framework<br>// Design-time experience improvements</pre><h3>🎨 WPF Updates</h3><p>With WPF 10, several enhancements and bug fixes are primarily focused on improving performance and fluent style support:</p><pre>// Fluent styles for more controls<br>&lt;Label Style=&quot;{StaticResource FluentLabelStyle}&quot; /&gt;<br>&lt;Hyperlink Style=&quot;{StaticResource FluentHyperlinkStyle}&quot; /&gt;<br>&lt;GroupBox Style=&quot;{StaticResource FluentGroupBoxStyle}&quot; /&gt;</pre><pre>// Performance optimizations:<br>// - Optimized cache operations<br>// - Font collection loader moved to managed code<br>// - Improved array handling</pre><h3>SDK ve Tooling İyileştirmeleri</h3><h3>📦 NuGet Audit — Unused Package Removal</h3><p>Starting in .NET 10, the NuGet Audit feature can now automatically remove unused framework-provided package references from your project:</p><pre>&lt;!-- Otomatik olarak framework tarafından sağlanan paketler kaldırılıyor --&gt;<br>&lt;PropertyGroup&gt;<br>    &lt;TargetFramework&gt;net10.0&lt;/TargetFramework&gt;<br>    &lt;!-- Default olarak açık --&gt;<br>&lt;/PropertyGroup&gt;</pre><pre>&lt;!-- Eğer kapatmak isterseniz --&gt;<br>&lt;PropertyGroup&gt;<br>    &lt;RestoreEnablePackagePruning&gt;false&lt;/RestoreEnablePackagePruning&gt;<br>&lt;/PropertyGroup&gt;</pre><p><strong>Avantajlar</strong>:</p><ul><li>✅ Daha hızlı build süresi</li><li>✅ Daha az disk kullanımı</li><li>✅ Security audit’lerde daha az false positive</li></ul><h3>🔨 MSBuild Enhancements</h3><p>This is the first step in a longer journey to make MSBuild more flexible and capable:</p><pre>&lt;!-- .NET Tasks için geliştirilmiş destek --&gt;<br>&lt;UsingTask TaskName=&quot;MyCustomTask&quot; <br>           AssemblyFile=&quot;bin\Debug\net10.0\MyTasks.dll&quot; /&gt;</pre><pre>&lt;!-- Gelecekte: --&gt;<br>&lt;!-- - Otomatik task discovery --&gt;<br>&lt;!-- - Reduce IPC overhead --&gt;<br>&lt;!-- - Out-of-process task execution --&gt;</pre><h3>🐳 Container Image Improvements</h3><pre># Console app&#39;ler için native container image<br>dotnet publish -t:PublishContainer</pre><pre># Custom image format<br>dotnet publish -t:PublishContainer -p:ContainerImageFormat=oci</pre><pre># Automatic layer optimization<br># Better caching<br># Smaller image sizes</pre><h3>Libraries ve API Güncellemeleri</h3><h3>🔐 Cryptography Enhancements</h3><pre>// Post-quantum cryptography<br>using var mlDsa = new MLDsaKey();<br>var signature = mlDsa.SignData(data);<br>var isValid = mlDsa.VerifyData(data, signature);</pre><pre>// AES KeyWrap with Padding<br>byte[] key = GenerateKey();<br>byte[] wrappedKey = AesKeyWrap.WrapKey(keyToWrap, key);<br>byte[] unwrappedKey = AesKeyWrap.UnwrapKey(wrappedKey, key);</pre><pre>// Windows CNG support for ML-DSA<br>// HashML-DSA simplifications<br>// Composite ML-DSA</pre><h3>🌐 Networking Updates</h3><pre>// WebSocketStream - daha basit WebSocket kullanımı<br>using var webSocket = await WebSocketStream.ConnectAsync(<br>    new Uri(&quot;wss://example.com/socket&quot;),<br>    cancellationToken);</pre><pre>await webSocket.WriteAsync(message);<br>var response = await webSocket.ReadAsync(buffer);</pre><pre>// TLS 1.3 for macOS<br>// Improved security and performance</pre><h3>📊 JSON Serialization Updates</h3><p>New JSON serialization options include disallowing duplicate properties, strict serialization settings, and PipeReader support for improved efficiency:</p><pre>// Duplicate property&#39;lere izin verme<br>var options = new JsonSerializerOptions<br>{<br>    AllowDuplicatePropertyNames = false // 🆕 Yeni!<br>};</pre><pre>// Strict serialization<br>var strictOptions = new JsonSerializerOptions<br>{<br>    RequireAllPropertiesPresent = true,<br>    DisallowTrailingCommas = true<br>};</pre><pre>// PipeReader support - daha iyi performance<br>await JsonSerializer.DeserializeAsync&lt;MyType&gt;(pipeReader, options);</pre><h3>🔢 Numerics ve Collections</h3><pre>// Yeni numerics API&#39;leri<br>// Globalization enhancements<br>// Collection improvements</pre><pre>// Daha iyi performance<br>// Daha fazla utility method</pre><h3>Breaking Changes</h3><h3>⚠️ Dikkat Edilmesi Gerekenler</h3><p>Projects can target net10.0-android36.1 to access the latest platform APIs, while EnablePreviewFeatures remains temporarily required.</p><h4>ASP.NET Core</h4><ul><li>WithOpenApi extension method kaldırıldı</li><li>WebHostBuilder, IWebHost obsolete oldu</li><li>WebApplicationBuilder kullanın</li><li>Razor runtime compilation devre dışı</li></ul><h4>Entity Framework</h4><ul><li>Migration transaction boundaries değişti</li><li>JSON mapping handling iyileştirildi</li></ul><h4>General</h4><ul><li>field keyword için eski kodlarda conflict olabilir</li><li>Extension members syntax’ı yeni — migration gerekmez ama öğrenme süreci var</li></ul><h3>Migration Stratejisi</h3><h3>🎯 .NET 9&#39;dan .NET 10&#39;a Geçiş</h3><h4>1. Proje Dosyası Güncellemesi</h4><pre>&lt;!-- Eski --&gt;<br>&lt;TargetFramework&gt;net9.0&lt;/TargetFramework&gt;</pre><pre>&lt;!-- Yeni --&gt;<br>&lt;TargetFramework&gt;net10.0&lt;/TargetFramework&gt;<br>&lt;LangVersion&gt;14.0&lt;/LangVersion&gt; &lt;!-- Otomatik ayarlanır --&gt;</pre><h4>2. Package References</h4><pre># NuGet paketlerini güncelleme<br>dotnet list package --outdated<br>dotnet add package &lt;PackageName&gt; --version 10.0.0</pre><h4>3. Code Migration</h4><pre>// Eski kod çalışmaya devam eder<br>// Yeni özellikleri kademeli olarak adopt edebilirsiniz</pre><pre>// 1. Adım: field keyword kullanmaya başlayın<br>public string Name <br>{ <br>    get; <br>    set =&gt; field = value?.Trim() ?? throw new ArgumentNullException(); <br>}</pre><pre>// 2. Adım: Extension members&#39;a geçin<br>// Zorunlu değil, ama yeni projeler için tavsiye edilir</pre><pre>// 3. Adım: Null-conditional assignment kullanın<br>customer?.LastUpdate = DateTime.Now;</pre><h3>Performance Benchmarks</h3><h3>📊 Gerçek Dünya Performance</h3><h4>Runtime Performance</h4><ul><li><strong>Struct operations</strong>: %20–30 daha hızlı</li><li><strong>Array enumeration</strong>: %40–50 daha hızlı (devirtualization)</li><li><strong>Loop optimization</strong>: %15–25 daha hızlı</li></ul><h4>Memory</h4><ul><li><strong>NativeAOT</strong>: %50–70 daha küçük binary</li><li><strong>Stack allocations</strong>: Garbage collection overhead’i azaldı</li><li><strong>Memory pooling</strong>: Otomatik yönetim ile daha iyi memory kullanımı</li></ul><h4>Startup Time</h4><ul><li><strong>NativeAOT apps</strong>: 3–4x daha hızlı startup</li><li><strong>Blazor WASM</strong>: Preloading ile %30–40 iyileştirme</li><li><strong>Container startup</strong>: Optimized layer caching</li></ul><h3>Best Practices</h3><h3>✅ Tavsiyeler</h3><h4>1. field Keyword Kullanımı</h4><pre>// ✅ İyi: Validation ile<br>public int Age<br>{<br>    get;<br>    set<br>    {<br>        ArgumentOutOfRangeException.ThrowIfNegative(value);<br>        field = value;<br>    }<br>}</pre><pre>// ❌ Kötü: Gereksiz kullanım<br>public string Name { get; set; } // Auto-property yeterli</pre><h4>2. Extension Members</h4><pre>// ✅ İyi: Logical grouping<br>extension(IEnumerable&lt;T&gt; source)<br>{<br>    public bool IsEmpty =&gt; !source.Any();<br>    public int Count =&gt; source.Count();<br>    public T First() =&gt; source.First();<br>}</pre><pre>// ❌ Kötü: Her extension için ayrı class<br>public static class IsEmptyExtension { }<br>public static class CountExtension { }</pre><h4>3. Null-Conditional Assignment</h4><pre>// ✅ İyi: Gerçekten nullable olabilecek durumlar<br>customer?.LastOrder = newOrder;</pre><pre>// ❌ Kötü: Her zaman null olmayacaksa<br>requiredCustomer?.Id = id; // RequiredCustomer asla null olmamalı</pre><h3>Sonuç</h3><h3>🎉 Özetlersek</h3><p>C# 14 introduces several new features and enhancements to improve developer productivity and code quality:</p><p><strong>C# 14 Highlights</strong>:</p><ul><li>✨ field keyword — daha temiz property’ler</li><li>🚀 Extension members — extension everything!</li><li>🎯 Null-conditional assignment — daha kısa kod</li><li>📝 nameof için unbound generics</li><li>🔧 Params collections — daha flexible</li></ul><p><strong>.NET 10 Runtime</strong>:</p><ul><li>⚡ JIT optimizations — daha hızlı execution</li><li>💾 NativeAOT improvements — daha küçük binary’ler</li><li>🔥 AVX10.2 support — SIMD performance</li><li>📊 Stack allocations — daha az GC</li></ul><p><strong>ASP.NET Core 10</strong>:</p><ul><li>🎨 Blazor enhancements</li><li>🔐 Passkey support</li><li>📡 Easy SSE implementation</li><li>📝 OpenAPI 3.1</li></ul><p><strong>Ecosystem</strong>:</p><ul><li>📦 Better NuGet audit</li><li>🐳 Container improvements</li><li>📱 MAUI enhancements</li><li>🎯 EF Core 10 with LINQ improvements</li></ul><h3>📅 Timeline</h3><ul><li><strong>RC2</strong>: Ekim 2025 (mevcut)</li><li><strong>RTM</strong>: 11 Kasım 2025</li><li><strong>Support</strong>: 3 yıl (Kasım 2028&#39;e kadar)</li></ul><h3>🔗 Kaynaklar</h3><ul><li><a href="https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-10">.NET 10 Documentation</a></li><li><a href="https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14">C# 14 What’s New</a></li><li><a href="https://devblogs.microsoft.com/dotnet/">.NET Blog</a></li><li><a href="https://github.com/dotnet/core">GitHub Discussions</a></li></ul><h3>💡 Son Tavsiyeler</h3><ol><li><strong>LTS Version</strong>: .NET 10, production ortamları için ideal</li><li><strong>Kademeli Geçiş</strong>: Yeni özellikleri yavaş yavaş adopt edin</li><li><strong>Testing</strong>: RC2 üzerinde test edin, feedback verin</li><li><strong>Performance</strong>: Benchmark’lar yapın, ölçün</li><li><strong>Learning</strong>: Yeni syntax’ları öğrenmek için zaman ayırın</li></ol><p><strong>Happy Coding with .NET 10! 🚀</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13fdcf28b88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>