<?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 Harun Özaslan on Medium]]></title>
        <description><![CDATA[Stories by Harun Özaslan on Medium]]></description>
        <link>https://medium.com/@harunzsln0?source=rss-f8046950e8c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L8l0NrYxSCUbFrVuqHNpog.jpeg</url>
            <title>Stories by Harun Özaslan on Medium</title>
            <link>https://medium.com/@harunzsln0?source=rss-f8046950e8c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 13:48:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harunzsln0/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[Conventional Commits: Git Commit Messages]]></title>
            <link>https://medium.com/@harunzsln0/conventional-commits-git-commit-messages-5dce0ce409e6?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dce0ce409e6</guid>
            <category><![CDATA[git-commit-messages]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[conventional-commits]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 11:34:48 GMT</pubDate>
            <atom:updated>2026-07-14T11:34:48.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lj4fS-I6IEtSu0Ndj7IMxg.png" /></figure><p><strong><em>Hello everyone, in this article I’ll walk you through the prefixes used in Git commit messages — feat, fix, chore, and others — and explain what each of them actually means. Happy reading!</em></strong></p><p>As software developers, once we’ve learned to commit regularly to our projects, the next step is making those commit messages actually mean something. A commit history filled with messages like “update”, “fixed stuff”, or “asdasd” makes life harder both for us and for our teammates. That’s exactly why I want to talk about a standard called <strong>Conventional Commits</strong> — let’s get started!</p><blockquote><strong><em>What Is Conventional Commits?</em></strong></blockquote><p>Conventional Commits is a specification that adds certain prefixes to our commit messages, making them meaningful for both humans and machines. It’s used in large open-source projects like Angular and Vue, as well as in many software companies.</p><p>For example, if you fix a bug in your project and write a message starting with fix: ..., both you and anyone else looking at the project will instantly understand that this commit is a bug fix.</p><p>Here are the benefits this standard gives us:</p><ul><li>Makes the commit history far more readable</li><li>Enables tools like semantic-release to automatically generate version numbers (e.g. 1.2.0, 1.3.0)</li><li>Helps automatically generate the CHANGELOG (release notes) file</li></ul><p>Now that we’ve covered the definition, let’s move on to the commit types and examples.</p><p><strong><em>1. feat (feature) — New Feature:</em></strong></p><p>We use the feat prefix when we add a new feature that&#39;s visible to the user.</p><pre>git commit -m &quot;feat: added user profile photo upload feature&quot;</pre><p>If we also want to indicate which part of the project the change affects, we can add a scope in parentheses:</p><pre>git commit -m &quot;feat(auth): added google sign-in feature&quot;</pre><p><strong><em>2. fix — Bug Fix:</em></strong></p><p>We use the fix prefix when we fix a bug found in our project.</p><pre>git commit -m &quot;fix: corrected incorrect cart total calculation&quot;</pre><p>For example, if you received feedback from users saying “I’m getting an error when logging in” and resolved it, your commit message could look like this:</p><pre>git commit -m &quot;fix(login): fixed whitespace character bug in password field&quot;</pre><p><strong><em>3. chore — Maintenance Tasks:</em></strong></p><p>We use the chore prefix for tasks related to project maintenance that don&#39;t directly affect the code&#39;s business logic. Package updates, configuration file changes, and similar tasks fall into this category.</p><pre>git commit -m &quot;chore: updated npm packages&quot;</pre><pre>git commit -m &quot;chore: added node_modules to .gitignore&quot;</pre><p><strong><em>4. docs — Documentation:</em></strong></p><p>Used when we make a documentation-only change, such as editing the README file or code comments.</p><pre>git commit -m &quot;docs: added installation steps to README&quot;</pre><p><strong><em>5. style — Formatting:</em></strong></p><p>Used for changes that don’t affect how the code behaves, only its appearance (whitespace, indentation, semicolons, etc.).</p><pre>git commit -m &quot;style: fixed code indentation&quot;</pre><p><strong><em>6. refactor — Restructuring:</em></strong></p><p>Used when we neither add a new feature nor fix a bug, but simply make the code cleaner and more readable.</p><pre>git commit -m &quot;refactor: simplified payment function&quot;</pre><p><strong><em>7. perf (performance) — Performance Improvement:</em></strong></p><p>Used when we improve the code’s execution speed or resource usage.</p><pre>git commit -m &quot;perf: optimized database query&quot;</pre><p><strong><em>8. test — Testing:</em></strong></p><p>Used when we add a new test or edit existing tests.</p><pre>git commit -m &quot;test: added unit test for login function&quot;</pre><p><strong><em>9. build — Build System:</em></strong></p><p>Used for changes affecting the project’s build process or external dependencies (webpack, npm, etc.).</p><pre>git commit -m &quot;build: updated webpack config&quot;</pre><p><strong><em>10. ci — Continuous Integration:</em></strong></p><p>Used when we change the configuration of automation tools like GitHub Actions.</p><pre>git commit -m &quot;ci: added github actions workflow&quot;</pre><p><strong><em>11. revert — Reverting:</em></strong></p><p>Used when we want to undo a previously made commit.</p><pre>git commit -m &quot;revert: feat: reverted google sign-in feature&quot;</pre><blockquote><strong><em>How Do You Indicate Breaking Changes?</em></strong></blockquote><p>If a change is incompatible with the old code — meaning it breaks backward compatibility — we need to indicate this explicitly. There are two ways to do it:</p><p>By adding an exclamation mark next to the type:</p><pre>git commit -m &quot;feat!: changed api endpoint structure&quot;</pre><p>Or by explicitly stating it in the footer of the commit message:</p><pre>feat: revamped user authentication system</pre><pre>BREAKING CHANGE: the old /login endpoint has been removed, use /auth/login instead</pre><p><strong><em>12. Let’s See It All Together:</em></strong></p><p>Now let’s combine all the pieces and write a real commit message example:</p><pre>git commit -m &quot;feat(cart): added item limit to cart&quot; -m &quot;Users can now add up to 20 different items to their cart. This limit was added to prevent server-side performance issues.&quot; -m &quot;Closes #142&quot;</pre><p>From this single message, we understand: this is a feature addition (feat), it concerns the cart module (cart), the reasoning behind it is explained, and which issue it closes is specified (#142).</p><blockquote><strong><em>Summary Table</em></strong></blockquote><pre>feat → New feature<br>fix → Bug fix<br>chore → Maintenance task<br>docs → Documentation<br>style → Formatting<br>refactor → Restructuring<br>perf → Performance<br>test → Testing<br>build → Build system<br>ci → CI/CD configuration<br>revert → Reverting</pre><p>Type Meaning feat New feature fix Bug fix chore Maintenance task docs Documentation style Formatting refactor Restructuring perf Performance test Testing build Build system ci CI/CD configuration revert Reverting</p><p><strong><em>In this article, I tried my best to explain the Conventional Commits standard and its commit types. Now you can write more meaningful and organized commit messages in your own projects too. Don’t forget to practice using this knowledge! Wishing you bug-free coding!</em></strong></p><h3>References</h3><ul><li>Conventional Commits Official Specification — <a href="https://www.conventionalcommits.org/en/v1.0.0/">conventionalcommits.org</a></li><li>Angular Commit Message Guidelines — <a href="https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format">github.com/angular/angular</a></li><li>Semantic Versioning (SemVer) Specification — <a href="https://semver.org/">semver.org</a></li><li>Commitlint — <a href="https://github.com/conventional-changelog/commitlint">github.com/conventional-changelog/commitlint</a></li><li>semantic-release — <a href="https://github.com/semantic-release/semantic-release">github.com/semantic-release/semantic-release</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dce0ce409e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conventional Commits: Git Commit Mesajları]]></title>
            <link>https://medium.com/@harunzsln0/conventional-commits-git-commit-mesajlar%C4%B1-91b4d14ed94a?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/91b4d14ed94a</guid>
            <category><![CDATA[conventional-commits]]></category>
            <category><![CDATA[git-commit-messages]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 11:08:15 GMT</pubDate>
            <atom:updated>2026-07-14T11:08:15.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g0q39-MbgfYevNaBB1fH0g.png" /></figure><p><strong><em>Merhaba arkadaşlar bu yazımda sizlere Git commit mesajlarında kullanılan feat, fix, chore gibi önekleri ve bunların ne işe yaradığını anlatacağım. İyi okumalar dilerim!</em></strong></p><p>Bir yazılım geliştiricisi olarak projelerimizde düzenli commit atmayı öğrendikten sonra sıra commit mesajlarımızı anlamlı hale getirmeye geliyor. “update”, “düzenleme yapıldı”, “asdasd” gibi mesajlarla dolu bir commit geçmişi hem bizim hem de ekipteki arkadaşlarımızın işini zorlaştırıyor. İşte bu yüzden <strong>Conventional Commits</strong> denilen bir standarttan bahsedeceğim, hadi başlayalım!</p><blockquote><strong><em>Conventional Commits Nedir?</em></strong></blockquote><p>Conventional Commits, commit mesajlarımıza belirli önekler ekleyerek onları hem insanlar hem de makineler için anlamlı hale getiren bir yazım standardıdır. Angular, Vue gibi büyük açık kaynak projelerinde ve birçok yazılım şirketinde kullanılır.</p><p>Örneğin projenizde bir hata düzelttiğinizde fix: ... diye başlayan bir mesaj yazarsanız, hem siz hem de projeye bakan başka biri bu commit&#39;in bir hata düzeltmesi olduğunu anında anlar.</p><p>Bu standardı kullanmanın bize sağladığı faydalar şunlar:</p><ul><li>Commit geçmişini daha okunabilir hale getirir</li><li>semantic-release gibi araçlarla otomatik versiyon numarası (1.2.0, 1.3.0 gibi) üretilmesini sağlar</li><li>CHANGELOG (sürüm notları) dosyasının otomatik oluşturulmasına yardımcı olur</li></ul><p>Tanımımızdan bahsettiğimize göre şimdi commit tiplerine ve örneklerine geçebiliriz.</p><p><strong><em>1. feat (feature) — Yeni Özellik:</em></strong></p><p>Projemize kullanıcının göreceği yeni bir özellik eklediğimizde feat önekini kullanırız.</p><pre>git commit -m &quot;feat: kullanıcı profil fotoğrafı yükleme özelliği eklendi&quot;</pre><p>Eğer değişikliğin hangi bölümü ilgilendirdiğini de belirtmek istersek parantez içinde bir kapsam (scope) ekleyebiliriz:</p><pre>git commit -m &quot;feat(auth): google ile giriş özelliği eklendi&quot;</pre><p><strong><em>2. fix — Hata Düzeltme:</em></strong></p><p>Projemizde bulduğumuz bir hatayı (bug) düzelttiğimizde fix önekini kullanırız.</p><pre>git commit -m &quot;fix: sepet toplamının yanlış hesaplanması giderildi&quot;</pre><p>Örneğin kullanıcılardan “giriş yaparken hata alıyorum” şeklinde bir geri bildirim aldıysanız ve bunu çözdüyseniz, commit mesajınız şöyle olabilir:</p><pre>git commit -m &quot;fix(login): şifre alanındaki boşluk karakteri hatası düzeltildi&quot;</pre><p><strong><em>3. chore — Bakım İşleri:</em></strong></p><p>Kodun çalışma mantığını doğrudan etkilemeyen, projenin bakımıyla ilgili işlemler için chore önekini kullanırız. Paket güncellemeleri, yapılandırma dosyası düzenlemeleri gibi işlemler burada yer alır.</p><pre>git commit -m &quot;chore: npm paketleri güncellendi&quot;</pre><pre>git commit -m &quot;chore: .gitignore dosyasına node_modules eklendi&quot;</pre><p><strong><em>4. docs — Dokümantasyon:</em></strong></p><p>Sadece README dosyası veya kod içi açıklamalar gibi dokümantasyon değişikliği yaptığımızda kullanılır.</p><pre>git commit -m &quot;docs: README dosyasına kurulum adımları eklendi&quot;</pre><p><strong><em>5. style — Biçimlendirme:</em></strong></p><p>Kodun çalışma şeklini değiştirmeyen, sadece görünümünü ilgilendiren değişiklikler (boşluk, girinti, noktalı virgül gibi) için kullanılır.</p><pre>git commit -m &quot;style: kod girintileri düzenlendi&quot;</pre><p><strong><em>6. refactor — Yeniden Yapılandırma:</em></strong></p><p>Ne yeni bir özellik eklediğimizde ne de bir hata düzelttiğimizde, sadece kodu daha temiz ve okunabilir hale getirdiğimizde kullanırız.</p><pre>git commit -m &quot;refactor: ödeme fonksiyonu sadeleştirildi&quot;</pre><p><strong><em>7. perf (performance) — Performans İyileştirmesi:</em></strong></p><p>Kodun çalışma hızını veya kaynak kullanımını iyileştirdiğimizde kullanılır.</p><pre>git commit -m &quot;perf: veritabanı sorgusu optimize edildi&quot;</pre><p><strong><em>8. test — Test İşlemleri:</em></strong></p><p>Yeni bir test eklediğimizde ya da var olan testleri düzenlediğimizde kullanılır.</p><pre>git commit -m &quot;test: login fonksiyonu için unit test eklendi&quot;</pre><p><strong><em>9. build — Build Sistemi:</em></strong></p><p>Projenin build sürecini veya dış bağımlılıklarını (webpack, npm gibi) etkileyen değişiklikler için kullanılır.</p><pre>git commit -m &quot;build: webpack config güncellendi&quot;</pre><p><strong><em>10. ci — Sürekli Entegrasyon:</em></strong></p><p>GitHub Actions gibi otomasyon araçlarının yapılandırmasını değiştirdiğimizde kullanılır.</p><pre>git commit -m &quot;ci: github actions workflow eklendi&quot;</pre><p><strong><em>11. revert — Geri Alma:</em></strong></p><p>Daha önce yaptığımız bir commit’i geri almak istediğimizde kullanılır.</p><pre>git commit -m &quot;revert: feat: google girişi özelliği geri alındı&quot;</pre><blockquote><strong><em>Kırıcı Değişiklikler (Breaking Change) Nasıl Belirtilir?</em></strong></blockquote><p>Eğer yaptığımız değişiklik eski kodla uyumsuzsa yani geriye dönük çalışmayı bozuyorsa, bunu özellikle belirtmemiz gerekir. Bunu iki şekilde yapabiliriz:</p><p>Tip’in yanına ünlem işareti ekleyerek:</p><pre>git commit -m &quot;feat!: api endpoint yapısı değiştirildi&quot;</pre><p>Ya da commit mesajının footer kısmına açıkça yazarak:</p><pre>feat: kullanıcı kimlik doğrulama sistemi yenilendi</pre><pre>BREAKING CHANGE: eski /login endpoint&#39;i kaldırıldı, artık /auth/login kullanılmalı</pre><p><strong><em>12. Hepsini Bir Arada Görelim:</em></strong></p><p>Şimdi tüm parçaları birleştirip gerçek bir commit mesajı örneği yazalım:</p><pre>git commit -m &quot;feat(cart): sepete ürün ekleme limiti eklendi&quot; -m &quot;Kullanıcılar artık sepete en fazla 20 farklı ürün ekleyebiliyor. Bu limit sunucu tarafında yaşanan performans sorunlarını önlemek için eklendi.&quot; -m &quot;Closes #142&quot;</pre><p>Bu tek mesajdan şunları anlıyoruz: bu bir özellik eklemesi (feat), sepet modülünü ilgilendiriyor (cart), neden yapıldığı açıklanmış ve hangi issue’yu kapattığı belirtilmiş (#142).</p><blockquote><strong><em>Özet Tablo</em></strong></blockquote><pre>feat → Yeni özellik<br>fix → Hata düzeltme<br>chore → Bakım işi<br>docs → Dokümantasyon<br>style → Biçimlendirme<br>refactor → Yeniden yapılandırma<br>perf → Performans<br>test → Test<br>build → Build sistemi<br>ci → CI/CD yapılandırması<br>revert → Geri alma</pre><p><strong><em>Arkadaşlar bu yazımda sizlere elimden geldiğince Conventional Commits standardını ve commit tiplerini anlatmaya çalıştım. Artık siz de projelerinizde daha anlamlı ve düzenli commit mesajları yazabilirsiniz. Bu bilgileri kullanarak pratik yapmayı unutmayın! Hatasız kodlamalar dilerim!</em></strong></p><h3>Kaynakça</h3><ul><li>Conventional Commits Resmi Spesifikasyonu — <a href="https://www.conventionalcommits.org/en/v1.0.0/">conventionalcommits.org</a></li><li>Angular Commit Message Guidelines — <a href="https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format">github.com/angular/angular</a></li><li>Semantic Versioning (SemVer) Spesifikasyonu — <a href="https://semver.org/">semver.org</a></li><li>Commitlint — <a href="https://github.com/conventional-changelog/commitlint">github.com/conventional-changelog/commitlint</a></li><li>semantic-release — <a href="https://github.com/semantic-release/semantic-release">github.com/semantic-release/semantic-release</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91b4d14ed94a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Makine Öğrenmesinde Veri Bölme Rehberi: Train, Validation ve Test Setleri]]></title>
            <link>https://medium.com/@harunzsln0/makine-%C3%B6%C4%9Frenmesinde-veri-b%C3%B6lme-rehberi-train-validation-ve-test-setleri-95316482a775?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/95316482a775</guid>
            <category><![CDATA[derin-ogrenme]]></category>
            <category><![CDATA[makine-öğrenmesi]]></category>
            <category><![CDATA[train-test-validation]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Thu, 26 Mar 2026 12:48:50 GMT</pubDate>
            <atom:updated>2026-03-26T12:48:50.573Z</atom:updated>
            <content:encoded><![CDATA[<p>Makine öğrenmesi dünyasına yeni adım atıyorsanız, “Train”, “Validation” ve “Test” kelimelerini sıkça duyacaksınız. Bu kavramlar, yapay zeka modellerinin nasıl öğrendiğini ve performanslarının nasıl değerlendirildiğini anlamak için temel yapı taşlarıdır. Bu rehberde, bu kavramları hiç bilmeyen birine anlatır gibi açıklayacak ve üç farklı model türü (Nesne Tespiti ve Sınıflandırma, Dil Çevirisi, Görüntü Sınıflandırma) üzerinden somut örneklerle pekiştireceğiz.</p><h3>Temel Kavramlar: Veriyi Neden Bölüyoruz?</h3><p>Bir yapay zeka modeli geliştirmek, bir öğrenciyi sınava hazırlamaya benzer. Öğrenciye tüm soruları ve cevapları verirseniz, sadece o soruları ezberler (buna makine öğrenmesinde overfitting yani aşırı öğrenme denir). Sınavda farklı sorular sorulduğunda ise başarısız olur. Bu nedenle, elimizdeki veriyi stratejik olarak bölmemiz gerekir.</p><p>Genellikle veriler üç ana parçaya ayrılır :</p><p>Train (Eğitim) Seti: Modelin desenleri, kuralları ve özellikleri öğrendiği ana veri setidir. Okul analojisinde, öğrencinin ders çalıştığı ders kitapları ve çözümlü örnekler gibidir. Ortalama payı %60 — %80.</p><p>Validation (Doğrulama) Seti: Eğitim sırasında modelin gidişatını kontrol etmek ve ayarlarını (hiperparametreler) optimize etmek için kullanılır. Okul analojisinde, öğrencinin kendini denediği, eksiklerini görüp çalışma stratejisini değiştirdiği deneme sınavları gibidir. Ortalama payı %10 — %20.</p><p>Test Seti: Modelin eğitimi tamamen bittikten sonra, gerçek dünyadaki performansını ölçmek için sadece bir kez kullanılır. Okul analojisinde, öğrencinin daha önce hiç görmediği sorulardan oluşan gerçek final sınavı gibidir. Ortalama payı %10 — %20.</p><p>Bu ayrım sayesinde, modelimizin sadece veriyi ezberlemediğinden, gerçekten “öğrendiğinden” ve yeni verilerle karşılaştığında doğru tahminler yapabileceğinden emin oluruz.</p><h3>1. Object Detection and Classification (Nesne Tespiti ve Sınıflandırma)</h3><p>Nesne tespiti modelleri (örneğin YOLO), bir görüntüdeki nesnelerin hem ne olduğunu (sınıflandırma) hem de nerede olduğunu (kutucuk içine alma) bulmaya çalışır. Otonom araçların yayaları, arabaları ve trafik işaretlerini tanıması bu teknolojiye bir örnektir .</p><p>Train Seti ile Öğrenme:Otonom araç modeli için eğitim setinde binlerce sokak fotoğrafı bulunur. Bu fotoğraflarda arabalar, yayalar ve bisikletler önceden insanlar tarafından kutucuk içine alınmış ve etiketlenmiştir. Model bu fotoğraflara bakarak “Araba genellikle dört tekerlekli, metalik bir objedir” veya “Yaya genellikle dikey dikdörtgen şeklindedir” gibi kuralları öğrenir.</p><p>Validation Seti ile İnce Ayar:Eğitim devam ederken model, validation setindeki fotoğraflarda nesneleri bulmaya çalışır. Diyelim ki model sürekli olarak çöp kutularını yaya olarak algılıyor. Bu durumda geliştiriciler, modelin “öğrenme oranını” veya tespit hassasiyetini (confidence threshold) değiştirerek bu hatayı düzeltmeye çalışır. Validation seti, modelin çok fazla ezber yapmasını (overfitting) engeller.</p><p>Test Seti ile Final Değerlendirmesi:Model tamamen hazır olduğunda, daha önce hiç görmediği, örneğin farklı bir şehirde çekilmiş karlı veya yağmurlu hava fotoğraflarından oluşan test setine sokulur. Burada elde edilen başarı (mAP — mean Average Precision gibi metriklerle ölçülür), modelin gerçek dünyada trafiğe çıkıp çıkamayacağını belirler.</p><h3>2. Language Translation (Dil Çevirisi)</h3><p>Dil çevirisi modelleri (örneğin Google Çeviri’nin arkasındaki Seq2Seq veya Transformer modelleri), bir dildeki cümleyi alıp başka bir dile çevirir . Bu modeller kelime kelime değil, bağlamı anlayarak çeviri yapmak zorundadır.</p><p>Train Seti ile Öğrenme:Eğitim setinde milyonlarca İngilizce ve Türkçe karşılıklı cümle çifti bulunur. Model bu cümleleri inceleyerek dilbilgisi kurallarını, kelime öbeklerini ve deyimleri öğrenir. Örneğin, “It’s raining cats and dogs” cümlesinin “Kedi köpek yağıyor” değil, “Bardaktan boşanırcasına yağıyor” olarak çevrilmesi gerektiğini bu büyük veri yığınından çıkarır.</p><p>Validation Seti ile İnce Ayar:Model çeviri yapmayı öğrenirken, validation setindeki cümleleri çevirir ve sonuçlar insan çevirileriyle karşılaştırılır (genellikle BLEU skoru gibi metriklerle) . Eğer model çok uzun cümlelerde bağlamı kaybediyorsa, geliştiriciler modelin “dikkat mekanizması” (attention mechanism) ayarlarıyla oynayarak modelin cümleyi daha iyi hatırlamasını sağlarlar.</p><p>Test Seti ile Final Değerlendirmesi:Eğitim bittikten sonra model, test setindeki yepyeni makaleler, haberler veya günlük konuşmalar üzerinde denenir. Bu aşamada modelin hiç görmediği kelime kombinasyonlarını veya yeni türetilmiş terimleri ne kadar başarılı çevirdiği ölçülür. Test seti performansı, modelin kullanıcılara sunulup sunulmayacağını belirler.</p><h3>3. Image Classification (Görüntü Sınıflandırma)</h3><p>Görüntü sınıflandırma modelleri (örneğin ResNet veya CNN tabanlı modeller), bir görüntüde ne olduğunu tek bir etiketle belirler . Örneğin, tıbbi bir röntgen görüntüsüne bakıp hastanın zatürre olup olmadığını anlamak bir görüntü sınıflandırma problemidir.</p><p>Train Seti ile Öğrenme:Hastalık teşhisi yapan bir model için eğitim setinde binlerce sağlıklı ve zatürreli akciğer röntgeni bulunur. Model bu pikselleri analiz ederek, zatürreli akciğerlerdeki puslu veya beyaz lekeleri, sağlıklı akciğerlerdeki net siyah alanlardan ayırt etmeyi öğrenir.</p><p>Validation Seti ile İnce Ayar:Model her eğitim turundan (epoch) sonra validation setindeki röntgenleri tahmin eder. Eğer model sadece eğitim setindeki hastanenin röntgen cihazının bıraktığı spesifik bir izi ezberlemişse, validation setinde başarısız olacaktır. Bu durumda geliştiriciler “veri artırma” (data augmentation — fotoğrafları döndürme, bulanıklaştırma) gibi teknikler uygulayarak modelin sadece hastalığa odaklanmasını sağlarlar.</p><p>Test Seti ile Final Değerlendirmesi:Modelin gerçek bir hastanede kullanılıp kullanılamayacağına karar vermek için, tamamen farklı hastanelerden, farklı cihazlarla çekilmiş yepyeni hasta röntgenlerinden oluşan test seti kullanılır. Burada modelin doğruluğu (accuracy), hassasiyeti (precision) ve duyarlılığı (recall) ölçülür. Eğer model test setinde yüksek başarı gösterirse, gerçek hastalara teşhis koymada doktorlara yardımcı olabilir.</p><h3>Özet</h3><p>Makine öğrenmesinde veriyi Train, Validation ve Test olarak üçe bölmek, modelin güvenilirliği için vazgeçilmez bir standarttır. Eğitim seti modeli şekillendirir, doğrulama seti rotasını düzeltir ve test seti ise gerçek dünyadaki başarısını kanıtlar. Bu disiplinli yaklaşım olmadan, yapay zeka modellerinin gerçek hayatta karşımıza çıkacak sürprizlere karşı hazırlıklı olması imkansızdır.</p><h3>Referanslar</h3><p><a href="https://www.v7labs.com/blog/train-validation-test-set">[1] V7 Labs. “Train Test Validation Split: How To &amp; Best Practices”.</a></p><p><a href="https://encord.com/blog/train-val-test-split/">[2] Encord. “Training, Validation, Test Split for Machine Learning Datasets”.</a></p><p><a href="https://docs.ultralytics.com/modes/val/">[3] Ultralytics. “Model Validation with Ultralytics YOLO”.</a></p><p><a href="https://huggingface.co/docs/transformers/en/tasks/translation">[4] Hugging Face. “Translation Tasks”.</a></p><p><a href="https://huggingface.co/docs/transformers/en/tasks/translation#evaluate">[5] Hugging Face. “Evaluate Translation Models”.</a></p><p><a href="https://www.geeksforgeeks.org/machine-learning/image-classifier-using-cnn/">[6] GeeksforGeeks. “Image Classification using CNN”.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95316482a775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending Emails from a Node.js App Using Gmail SMTP]]></title>
            <link>https://medium.com/@harunzsln0/sending-emails-from-a-node-js-app-using-gmail-smtp-a46b5bc8782f?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a46b5bc8782f</guid>
            <category><![CDATA[contact-form]]></category>
            <category><![CDATA[gmail-smtp]]></category>
            <category><![CDATA[nodemailer]]></category>
            <category><![CDATA[smtp]]></category>
            <category><![CDATA[smtp-server]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 09:04:37 GMT</pubDate>
            <atom:updated>2025-08-04T09:04:37.878Z</atom:updated>
            <content:encoded><![CDATA[<p>After creating a contact form in a web project, the natural next step is to send the submitted messages to your email. I implemented this step in my portfolio project using <strong>Gmail’s SMTP service</strong>.</p><p>In this post, I’ll walk you through how to <strong>send emails with Node.js using Gmail SMTP</strong>. I personally prefer Gmail SMTP for small personal projects due to its practicality and simplicity. Since I’m using Node.js, I chose <strong>Nodemailer</strong>, one of the most widely used libraries in this area. You can adapt this setup according to your own project’s structure and needs.</p><blockquote><strong>Requirements for Using Gmail SMTP</strong></blockquote><p>Google doesn’t allow direct SMTP access using your regular email password for security reasons. Instead:</p><p>You must enable two-factor authentication on your Google account, then Create an App Password to use for SMTP authentication.</p><blockquote><strong>Project Setup</strong></blockquote><pre>npm init -y<br>npm install express nodemailer dotenv</pre><blockquote><strong>.env File</strong></blockquote><pre>SMTP_HOST=smtp.gmail.com<br>SMTP_PORT=587<br>SMTP_USER=your_email@gmail.com<br>SMTP_PASS=your_app_password<br>TO_EMAIL=your_email@gmail.com</pre><blockquote><strong>Sending Emails with SMTP — Node.js Code</strong></blockquote><pre>const express = require(&#39;express&#39;);<br>const cors = require(&#39;cors&#39;);<br>const nodemailer = require(&#39;nodemailer&#39;);<br>require(&#39;dotenv&#39;).config();<br><br>const app = express();<br><br>app.use(cors({origin:&#39;*&#39;}));<br>app.use(express.json());<br><br>app.post(&#39;/contact&#39;, async (req, res) =&gt; {<br><br>    const { name, email, message } = req.body;<br><br>    if (!name || !email || !message) {<br>        return res.status(400).json({ error: &#39;All fields are required&#39; });<br>    }<br><br>    const transporter = nodemailer.createTransport({<br>        host: process.env.SMTP_HOST,<br>        port: process.env.SMTP_PORT,<br>        auth: {<br>            user: process.env.SMTP_USER,<br>            pass: process.env.SMTP_PASS,<br>        },<br>    });<br><br>    try {<br><br>        await transporter.sendMail({<br><br>            from: `&quot;${name}&quot; &lt;${process.env.SMTP_USER}&gt;`, <br>            to: process.env.TO_EMAIL,                     <br>            replyTo: email,                               <br>            subject: `New message from: ${name}`,<br>            text: `<br>You’ve received a new message:<br><br>  Name: ${name}<br>  Email: ${email}<br> <br>  Message:<br>${message}<br>  `,<br><br>        });<br><br>        res.status(200).json({ success: true, message: &#39;Email sent successfully&#39; });<br>    } catch (error) {<br>        console.error(&#39;Error sending email:&#39;, error);<br>        res.status(500).json({ success: false, message: &#39;Failed to send email&#39; });<br><br>    }<br><br>});<br><br>const PORT = process.env.PORT || 5000;<br><br>app.listen(PORT, () =&gt; {<br>    console.log(`Server is running on port ${PORT}`);<br>});</pre><blockquote><strong>Testing</strong></blockquote><p>Send the following JSON data to the POST endpoint using Postman:</p><pre>{<br>  &quot;name&quot;: &quot;John Doe&quot;,<br>  &quot;email&quot;: &quot;johndoe@example.com&quot;,<br>  &quot;message&quot;: &quot;Hi! I am John Doe.&quot;<br>}</pre><p>Here’s an example Postman screenshot you can include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*30v9D3CA3rgAwhWzz1XMQA.png" /><figcaption>postman test massage</figcaption></figure><blockquote><strong>Security Tips</strong></blockquote><ul><li>Store SMTP credentials in a .env file, never directly in code.</li><li>Don’t forget to add .env to .gitignore</li><li>Never share your app password with anyone.</li></ul><blockquote><strong>Conclusion</strong></blockquote><p>In this post, we explored how to send emails from a Node.js application using Gmail’s SMTP service. As you’ve seen, building a simple mail delivery setup using Nodemailer is quite straightforward. With a few security steps like creating an app password, you can establish a reliable and secure messaging infrastructure.</p><p>This setup is ideal for portfolio websites, blogs, or small-scale projects.If you’re planning to add a contact form to your project, this basic structure will likely meet your needs.</p><p><strong><em>See you in the next post</em></strong></p><p><strong><em>Happy coding!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a46b5bc8782f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git ve GitHub ile Sürüm Kontrolüne Giriş]]></title>
            <link>https://medium.com/@harunzsln0/git-ve-github-ile-s%C3%BCr%C3%BCm-kontrol%C3%BCne-giri%C5%9F-85c3c4090eff?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/85c3c4090eff</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Sat, 16 Nov 2024 23:33:26 GMT</pubDate>
            <atom:updated>2024-12-08T12:42:37.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfM3Qz5mrr9ItSCwo7MmeA.png" /></figure><p><strong><em>Merhaba arkadaşlar bu yazımda sizlere kısaca Git ve GitHub nedir ve temel kullanımı nasıldır bunlardan bahsedeceğim. İyi okumalar dilerim!</em></strong></p><p>Bir yazılım geliştiricisi olarak projelerimizi düzenli, takip edilebilir ve güvenli hale getirmek istiyorsak Git ve Github kullanımını iyice öğrenmemiz gerekiyor. En başlarda bunu öğrenirken biraz karıştırabiliyoruz ama zamanla hepimiz bunlara alışacağız bu yüzden ben de bu yazıyı hem sizlere hem de bana yardımcı olması için hazırladım. Hadi başlayalım!</p><blockquote><strong>Git Nedir?</strong></blockquote><p>Git, bir sürüm kontrol sistemidir. Bir proje üzerinde çalışırken yaptığınız tüm değişiklikleri kaydetmenizi, farklı sürümleri karşılaştırmanızı ve gerektiğinde geçmişe dönmenizi sağlar. Bu, özellikle ekip projelerinde hataları yönetmek ve iş birliğini kolaylaştırmak için vazgeçilmezdir.</p><p>Örneğin bir web uygulamasında bir hata yaptınız ve bu hatanın nedenini bulamıyorsunuz. Git ile önceki bir sürüme dönerek hatanın hangi aşamada oluştuğunu hızlıca anlayabilirsiniz.</p><blockquote><strong>GitHub Nedir?</strong></blockquote><p>GitHub, Git ile oluşturduğunuz yerel depolarınızı internet üzerinde barındırmanıza olanak tanır. Ayrıca, iş birliği yapmayı kolaylaştıran özellikleriyle ekip projelerinde vazgeçilmez bir araçtır.</p><p>Örneğin GitHub üzerinden bir takım üyesi, sizinle eş zamanlı olarak projedeki başka bir dosya üzerinde çalışabilir. Herkesin katkısı ayrı dallarda tutulur ve birleştirilir.</p><p>Tanımlarımızdan bahsettiğimize göre şimdi örneklerimize geçebiliriz.</p><p><strong><em>1 - Git komutları:</em></strong></p><p>Buradaki komutlarımızı projemizin klasoründe açtığımız git bash ya da command prompt üzerinden gerçekleştirebiliriz.</p><p>1.1 Yeni Bir Git Deposu Oluşturma:</p><p>git init komutu bulunduğumuz dizini bir Git deposuna dönüştürür.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*BkrwHlu2zCVRbzutIoekJQ.png" /></figure><p>1.2 Uzaktan Depo Bağlama:</p><pre>git remote add origin [SSH/HTTPS URL]</pre><p>Yerel depomuzu GitHub’daki bir depoya bağlar. Bağlamak istediğimiz deponun ssh anahtarını ya da URL adresini kullanarak burada birleştiririz.</p><p><strong><em>2. Dosya Yönetimi ve Takibi:</em></strong></p><p>2.1 Dosya Ekleme:</p><p>git add komutunu kullanarak hangi dosyayı yükleyeceğimizi belirtebiliriz.</p><pre>git add .  <br>//bu komutumuz klasörümüzdeki tüm dosyaları yüklememize hazır hale getirir.<br><br>git add [klasor_adı]<br>//bu komutumuz da klasörümüzdeki belirttiğimiz dosyayı yüklememize hazır hale getirir.</pre><p>2.2 Değişiklikleri Commit Etme:</p><p>git commit -m “First commit” komutunu kullanarak dosyamızı commit edebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*-dEret0J56IbRlXSh2BhWQ.png" /></figure><p><strong><em>3. Var Olan Bir Depoya Dosya Ekleme:</em></strong></p><p>Yerelde var olan bir depoya dosya eklemek içinse aşağıdaki kodları sırasıyla yazıp çalıştırabiliriz.</p><pre>git remote add origin https://github.com/harunzsln/blablaa.git<br>/* remote already exist ciktisini alirsak sadece <br>git add .<br>ya da git add &lt;klasor ismi&gt; komutlarini kullanabiliriz<br>*/<br>git branch -M main<br>git push -u origin main</pre><p>eğer dosya eklemek istediğimiz depomuz bilgisayarımız localinde değilse öncesinde bu depoyu klonlamamız gerekir onu da git clone komutu ile gerçekleştirebiliriz.</p><pre>git clone https://github.com/kullaniciadi/projeadi.git<br></pre><p>Bu komutu çalıştırıp klonlama işlemini gerçekleştirdikten sonra diğer işlemlere devam edebiliriz.</p><p><strong><em>4. Branch (Dal) Yönetimi:</em></strong></p><p>Branching (dal oluşturma), bir <strong>sürüm kontrol sistemi</strong> olan Git’te, ana kod tabanından bağımsız olarak değişiklikler yapabilmenizi sağlayan bir yöntemdir. Bu, özellikle bir projede yeni özellikler geliştirme, hata düzeltme veya deneysel değişiklikler yaparken, ana kodun bozulmasını engellemek için kullanılır.</p><p>Bir branch (dal), bir Git deposundaki bağımsız bir çalışma alanıdır. Ana kod tabanından (genelde <strong>main</strong> ya da <strong>master</strong> dalı) ayrılır ve bu ayrılan dalda yapılan değişiklikler ana dala etkide bulunmaz. Değişiklikler tamamlandığında, dallar tekrar birleştirilebilir.</p><p>4.1 Main Branch Oluşturma:</p><p>git branch -M main komutunu kullanarak main branch yani ana dalımızı oluştururuz.</p><p>4.2 Yeni Branch Oluşturma:</p><pre>git checkout -b [branch_adı]</pre><p>Bu komut ile yeni bir branch oluşturur ve o branch’e geçiş yapabiliriz. Eğer birden fazla branch üstünde çalışıyorsak git checkout [branh_adı] komutunu kullanarak branch yani dallar arasında geçiş yapabiliriz. Ve bunları yaptıktan sonra son işlemimize geçebiliriz.</p><p><strong><em>5. Değişiklikleri GitHub’a Gönderme:</em></strong></p><p>git push komutu yaptığımız tüm değişikliklerimizi uzak depoya göndermemizi sağlar.</p><pre>git push -u origin main</pre><p>Son olarak bu komutumuzu da çalıştırınca yaptığımız tüm değişiklikleri Gıthub’a aktarmış olacağız.</p><p><strong><em>Arkadaşlar bu yazımda sizlere elimden geldiğince Git ve GitHub kullanımını anlatmaya çalıştım artık projelerinizi daha etkili bir şekilde yönetebilir ve değişikliklerinizi güvenle takip edebilirsiniz.Bu bilgileri kullanarak pratik yapmayı unutmayın! Hatasız kodlamalar dilerim!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85c3c4090eff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DOM Manipulation with JavaScript Selectors]]></title>
            <link>https://medium.com/@harunzsln0/dom-manipulation-with-javascript-selectors-bf1a4431ff1c?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf1a4431ff1c</guid>
            <category><![CDATA[js]]></category>
            <category><![CDATA[js-dom-manipulation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[dom-manipulation]]></category>
            <category><![CDATA[dom]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Thu, 12 Sep 2024 12:18:07 GMT</pubDate>
            <atom:updated>2024-09-12T12:18:07.933Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello friends, in this article we will talk about what the DOM is and how we can manipulate it.</p><p>In the modern web development world, the DOM (Document Object Model) is at the heart of managing web pages dynamically. The DOM turns an HTML or XML document into a structure that programs can easily access and modify. In short, every element on a web page (text, image, heading, etc.) is converted into an object by the browser, giving developers full control over these objects. Thanks to the DOM, we can instantly change the content, style, or structure of a page using JavaScript. This is one of the most important ways to make pages more interactive and dynamic.</p><p>For example, by clicking a button, you can change the color of text, display a pop-up message, or completely remove an element from the page. To perform these actions, you first need to correctly locate the HTML element you want to manipulate. This is where JavaScript selectors come into play.</p><p>Now, let’s explore how you can find elements on your webpage and manipulate them using different selector methods provided by JavaScript.</p><h3>1. Accessing the Document Object</h3><p>Before starting with DOM manipulation, we need to access the document object, which is the memory copy of the page. The browser represents every webpage as a document object, which gives access to all elements on the page.</p><p>You can access the document object using the document keyword. For example, the following command shows the DOM structure of the current page in the browser console:</p><pre>console.log(document);</pre><p>Now, let’s look at how we can reach specific HTML elements using JavaScript selectors.</p><h3>2. Finding the First Element with Query Selector</h3><p>One of the most commonly used methods for selecting a specific HTML element is querySelector. This method returns the first element that matches the given CSS selector.</p><p>Example:</p><pre>const firstParagraph = document.querySelector(&#39;p&#39;);<br>console.log(firstParagraph);</pre><p>This command finds the first &lt;p&gt; (paragraph) tag on the page and displays it in the browser console.</p><p>You can use this method for other HTML tags as well. For example, to select the first &lt;a&gt; (anchor) tag on the page:</p><pre>const firstAnchor = document.querySelector(&#39;a&#39;);<br>console.log(firstAnchor);</pre><p>This will return the first anchor (link) element on the page.</p><h3>3. Finding All Matching Elements with Query Selector All</h3><p>If you have multiple matching elements on a page and want to select all of them, you can use the querySelectorAll method. This method returns all matching elements as a NodeList.</p><p>Example:</p><pre>const allParagraphs = document.querySelectorAll(&#39;p&#39;);<br>console.log(allParagraphs);</pre><p>This command finds all the &lt;p&gt; tags on the page and returns them as a list (NodeList). If there are two paragraphs on the page, you&#39;ll see both paragraphs returned.</p><h3>4. Finding an Element by Its ID with getElementById</h3><p>If you want to select an HTML element by its id attribute, you can use the getElementById method. This method returns the first element with the specified ID.</p><p>Example:</p><pre>const heading = document.getElementById(&#39;heading&#39;);<br>console.log(heading);</pre><p>If there is an &lt;h1&gt; element on the page with id=&quot;heading&quot;, this command will find it and display it in the console.</p><h3>5. Finding Elements by Their Class with getElementsByClassName</h3><p>To select elements that have the same class, you can use the getElementsByClassName method. This method returns all elements with the specified class name as an HTMLCollection.</p><p>Example:</p><pre>const txtElements = document.getElementsByClassName(&#39;txt&#39;);<br>console.log(txtElements);</pre><p>If two &lt;p&gt; tags on the page have the class class=&quot;txt&quot;, this command will find both paragraphs and return them as an HTMLCollection.</p><p>In this article, we learned how to easily find elements in HTML documents using some of JavaScript’s most common selector methods. These selectors are crucial for developing dynamic and interactive web pages. Now, you can target elements on your webpage using JavaScript and make changes to them.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf1a4431ff1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Selectors ile DOM Manipülasyonu]]></title>
            <link>https://medium.com/@harunzsln0/javascript-se%C3%A7icilerle-dom-manip%C3%BClasyonu-a8266b7e293a?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8266b7e293a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js-dom-manipulation]]></category>
            <category><![CDATA[dom-manipulation]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[dom]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Thu, 12 Sep 2024 11:47:04 GMT</pubDate>
            <atom:updated>2024-09-23T06:47:40.542Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba arkadaşlar bu yazımızda DOM nedir ve nasıl DOM manipülasyonu yapabiliriz onlardan bahsedeceğim.</p><p>İyi okumlar dilerim!</p><p>Modern web geliştirme dünyasında <strong>DOM</strong> (Document Object Model), web sayfalarını dinamik olarak yönetebilmenin merkezinde yer alır. DOM, bir HTML veya XML belgesini, programların kolayca erişip değiştirebileceği bir yapı haline getirir. Kısacası, bir web sayfasındaki her öğe (metin, resim, başlık vb.) tarayıcı tarafından bir nesneye dönüştürülür ve geliştiricilere bu nesneler üzerinde tam kontrol sağlar. DOM sayesinde, JavaScript kullanarak sayfanın içeriğini, stilini veya yapısını anında değiştirebiliriz. Bu, sayfaları daha interaktif ve dinamik hale getirmenin en önemli yollarından biridir.</p><p>Örneğin, bir düğmeye tıklayarak bir metnin rengini değiştirebilir, sayfada bir uyarı mesajı gösterebilir veya bir öğeyi tamamen kaldırabilirsiniz. Bu işlemleri gerçekleştirebilmek için, öncelikle manipüle etmek istediğiniz HTML öğesini doğru şekilde bulmanız gerekir. İşte tam burada <strong>JavaScript seçicileri</strong> devreye giriyor.</p><p>Şimdi JavaScript’in sunduğu farklı seçici yöntemlerle, web sayfanızdaki öğeleri nasıl bulabileceğinizi ve bunları nasıl manipüle edebileceğinizi inceleyelim.</p><h3>1. Document Nesnesine Erişim</h3><p>DOM manipülasyonuna başlamadan önce, sayfanın bellek kopyası olan <strong>document</strong> nesnesine erişmemiz gerekir. Tarayıcı, her web sayfasını bir <strong>document</strong> nesnesi olarak temsil eder. Bu nesne, sayfadaki tüm öğelere erişim sağlar.</p><p>Document nesnesine erişmek için document anahtar kelimesini kullanabilirsiniz. Örneğin, aşağıdaki komut, tarayıcı konsolunda mevcut sayfanın DOM yapısını gösterir:</p><pre>console.log(document);</pre><p>Şimdi, JavaScript seçicileri ile belirli HTML öğelerine nasıl ulaşabileceğimize bakalım.</p><h3>2. Query Selector ile İlk Elemanı Bulma</h3><p>Belirli bir HTML öğesini seçmek için en çok kullanılan yöntemlerden biri querySelector&#39;dır. Bu yöntem, belirttiğiniz CSS seçicisine uyan ilk öğeyi döndürür.</p><p><strong>Örnek:</strong></p><pre>const ilkParagraf = document.querySelector(&#39;p&#39;);<br>console.log(ilkParagraf);</pre><p>Bu komut, sayfada bulunan ilk &lt;p&gt; (paragraf) etiketini bulur ve tarayıcı konsolunda gösterir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5E8k4Hu0MiycGs8jdytJCA.png" /></figure><p>Aynı yöntemi başka HTML etiketleri için de kullanabilirsiniz. Örneğin, sayfadaki ilk &lt;a&gt; (anchor) etiketini seçmek için:</p><pre>const ilkAnchor = document.querySelector(&#39;a&#39;);<br>console.log(ilkAnchor);</pre><p>Bu, sayfadaki ilk bağlantı (link) etiketini döndürür.</p><h3>3. Query Selector All ile Tüm Uyumlu Elemanları Bulma</h3><p>Bir sayfada birden fazla uyumlu eleman varsa ve hepsini seçmek istiyorsanız, querySelectorAll yöntemini kullanabilirsiniz. Bu yöntem, belirtilen CSS seçicisine uyan tüm elemanları bir <strong>NodeList</strong> olarak döndürür.</p><p><strong>Örnek:</strong></p><pre>const tumParagraflar = document.querySelectorAll(&#39;p&#39;);<br>console.log(tumParagraflar);</pre><p>Bu komut, sayfadaki tüm &lt;p&gt; etiketlerini bulur ve bir dizi (NodeList) olarak döndürür. Eğer sayfada iki paragraf varsa, bu iki paragrafın da döndüğünü göreceksiniz.</p><h3>4. getElementById ile Belirli Bir ID’ye Sahip Elemanı Bulma</h3><p>Eğer bir HTML elemanını id özelliğine göre seçmek istiyorsanız, getElementById yöntemini kullanabilirsiniz. Bu yöntem, belirtilen ID&#39;ye sahip olan ilk öğeyi döndürür.</p><p><strong>Örnek:</strong></p><pre>const baslik = document.getElementById(&#39;heading&#39;);<br>console.log(baslik);</pre><p>Eğer sayfadaki bir &lt;h1&gt; öğesi id=&quot;heading&quot; olarak tanımlanmışsa, bu komut o öğeyi bulur ve konsolda görüntüler.</p><h3>5. getElementsByClassName ile Belirli Bir Sınıfa Sahip Elemanları Bulma</h3><p>Birden fazla öğeye sahip olabilen sınıfları seçmek için getElementsByClassName yöntemini kullanabilirsiniz. Bu yöntem, belirtilen sınıf adını taşıyan tüm öğeleri bir <strong>HTMLCollection</strong> olarak döndürür.</p><p><strong>Örnek:</strong></p><pre>const txtElemanlar = document.getElementsByClassName(&#39;txt&#39;);<br>console.log(txtElemanlar);</pre><p>Eğer iki paragraf &lt;p&gt; etiketi class=&quot;txt&quot; özelliğine sahipse, bu komut iki paragrafı da bulur ve bir HTMLCollection olarak döndürür.</p><p>Bu yazıda, JavaScript’in en yaygın seçici yöntemlerini kullanarak HTML belgelerindeki öğeleri nasıl kolayca bulabileceğimizi öğrendik. Bu seçiciler, dinamik ve interaktif web sayfaları geliştirmek için oldukça önemlidir. Artık JavaScript ile web sayfanızdaki öğeleri hedefleyebilir ve bunlar üzerinde değişiklikler yapabilirsiniz.</p><p><strong><em>Okuduğunuz için teşekkürler!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8266b7e293a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL ile Veritabanı Yönetimi: PROCEDURE kullanımı]]></title>
            <link>https://medium.com/@harunzsln0/postgresql-ile-veritaban%C4%B1-y%C3%B6netimi-procedure-kullan%C4%B1m%C4%B1-d1b9826d7e71?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1b9826d7e71</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[database-management]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 13:08:21 GMT</pubDate>
            <atom:updated>2024-08-12T13:08:21.985Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Merhaba arkadaşlar, bu yazıda PostgreSQL’de </em></strong><strong><em>PROCEDURE komutunun nasıl kullanılacağını açıklayacak ve örneklerle göstereceğiz. Bu yazıya başlamadan önce SQL komutalarını ve kullanımı anlattığım diğer yazılarımı okumak için </em></strong><a href="https://medium.com/@harunzsln0"><strong><em>buraya tıklayabilirsiniz</em></strong></a><strong><em>. İyi okumalar!</em></strong></p><blockquote><strong>PostgreSQL ile PROCEDURE</strong></blockquote><p>PROCEDURE, bir dizi SQL komutunu tek bir ad altında toplamak için kullanılan bir yapıdır. Bir prosedür, veritabanı üzerinde belirli bir işlem gerçekleştirmek için oluşturulur ve bu işlem, birden çok kez kullanılabilir.</p><p>CREATE PROCEDURE komutu ile oluşturulur ver CALL komutu ile çağrılır.</p><pre>create procedure tryprocedure()<br>language plpgsql<br>as $$<br>begin<br>raise notice &#39;SQL öğrediğim için çok heyecanlıyım!&#39;;<br>end $$<br><br>call tryprocedure();<br>-------------------------------------------------------<br>SQL öğrediğim için çok heyecanlıyım!<br><br></pre><p>Komutu güncellemek ya da ekleme yapmak için REPLACE komutunu ekleyebiliriz.</p><pre>create or replace procedure tryprocedure()<br>language plpgsql<br>as $$<br>begin<br>raise notice &#39;SQL öğrenmek inanılmaz!&#39;;<br>raise notice &#39;SQL öğrediğim için çok heyecanlıyım!&#39;;<br>end $$<br><br>call tryprocedure();<br><br>--------------------------------------------------------------<br>SQL öğrenmek inanılmaz!<br>SQL öğrediğim için çok heyecanlıyım!</pre><p><strong><em>Bir yazımızın daha sonuna geldik. Bu yazıda, PostgreSQL’deki </em></strong><strong><em>PROCEDURE komutunun nasıl kullanılacağını öğrendik. Prosedürler, veritabanı işlemlerini daha düzenli ve tekrar kullanılabilir hale getirmenin harika bir yoludur. Bir sonraki yazımızda, fonksiyonlara göz atacağız. Okuduğunuz için teşekkür ederim!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1b9826d7e71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL ile Veritabanı Yönetimi: WHILE ve Loop Yapısı]]></title>
            <link>https://medium.com/@harunzsln0/postgresql-ile-veritaban%C4%B1-y%C3%B6netimi-while-ve-loop-yap%C4%B1s%C4%B1-9c99bb32ce07?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c99bb32ce07</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database-management]]></category>
            <category><![CDATA[database-tools]]></category>
            <category><![CDATA[database-basics]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 08:55:32 GMT</pubDate>
            <atom:updated>2024-08-12T08:55:32.882Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Merhaba arkadaşlar bu yazımda while ve loop yapılarını inceleyip örneklendirmeler yapacağız. Bu yazıya başlamadan önce SQL komutalarını ve kullanımı anlattığım diğer yazılarımı okumak için </em></strong><a href="https://medium.com/@harunzsln0"><strong><em>buraya tıklayabilirsiniz</em></strong></a><strong><em>. İyi okumalar!</em></strong></p><blockquote><strong>PostgreSQL ile WHILE Döngüsü</strong></blockquote><p>WHILE döngüsü, belirli bir koşul doğru olduğu sürece bir dizi komutun tekrarlanmasını sağlar. Koşul her döngü başında kontrol edilir ve koşul yanlış olduğunda döngü sona erer.</p><pre>do $$<br>declare<br>    counter int :=1;<br>    sum int = 0;<br>begin<br>    while counter &lt;=10<br>    loop<br>    raise notice &#39;counter: %&#39;,counter;<br>    sum := sum + counter;<br>    counter := counter + 1;<br>    end loop;<br>    raise notice &#39;sum of the numbers : %&#39;, sum;<br>end $$</pre><p>Bu örneğimizde çıktısı aşağıdaki gibi olan bir sayaç döngüsü oluşturup sayaçtaki sayıları toplayan bir kod oluşturduk.</p><pre>counter: 1<br>counter: 2<br>counter: 3<br>counter: 4<br>counter: 5<br>counter: 6<br>counter: 7<br>counter: 8<br>counter: 9<br>counter: 10<br>sum of the numbers : 55</pre><p>PostgreSQL ile LOOP Yapısı</p><p>LOOP yapısı, içinde belirtilen komutları koşulsuz olarak tekrar eder. EXIT veya RETURN gibi bir komut kullanılmadıkça sonsuz döngü olarak çalışır. Bu nedenle, genellikle belirli bir sayıda tekrarlanması gereken işlemler için kullanılır.</p><pre>Do $$<br>declare<br>    counter int := 0;<br>    begin<br>    loop<br>        exit when counter = 5;<br>        raise notice &#39;SQL öğreniyorum&#39;;<br>        counter := counter + 1;<br>    end loop;<br>end $$<br><br>---------------------------------------------------------------------------<br>SQL öğreniyorum<br>SQL öğreniyorum<br>SQL öğreniyorum<br>SQL öğreniyorum<br>SQL öğreniyorum</pre><p>Buradaki örneğimizde yazılan mesajı 5 kere gösterecek olan bir kod oluşturduk.</p><p><strong><em>Bu yazıda, PostgreSQL’de döngü yapıları olan </em></strong><strong><em>WHILE ve </em></strong><strong><em>LOOPkomutlarını nasıl kullanabileceğimizi öğrendik. Döngülerle çalışmak, özellikle büyük veri kümeleri üzerinde belirli işlemler gerçekleştirmek istediğinizde büyük kolaylık sağlar. Bir sonraki yazımızda görüşmek üzere. Okuduğunuz için teşekkür ederim!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c99bb32ce07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL ile Veritabanı Yönetimi: Karar Yapıları]]></title>
            <link>https://medium.com/@harunzsln0/postgresql-ile-veritaban%C4%B1-y%C3%B6netimi-karar-yap%C4%B1lar%C4%B1-70bb61c1c42c?source=rss-f8046950e8c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bb61c1c42c</guid>
            <category><![CDATA[database-management]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database-basics]]></category>
            <dc:creator><![CDATA[Harun Özaslan]]></dc:creator>
            <pubDate>Sun, 11 Aug 2024 14:44:17 GMT</pubDate>
            <atom:updated>2024-08-11T14:44:17.528Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AyqJEPy07-9lo_2h.png" /></figure><p><strong><em>Merhaba arkadaşlar, bu yazıda sizlere karar yapılarının temel kullanımlarını tanımlayacak ve bu yapıların nasıl uygulanacağını örneklerle açıklayacağım. PostgreSQL ile Veritabanı Yönetimi’ni anlattığım diğer yazılarımı okumayı unutmayın. İyi okumalar!</em></strong></p><blockquote><strong>PostgreSQL ile IF - THEN -ELSE Yapısı</strong></blockquote><p>IF-THEN-ELSE yapısı, belirli bir koşulun doğru veya yanlış olmasına bağlı olarak farklı işlemler gerçekleştirir.</p><pre>do $$<br>declare<br><br>    vize  int :=30;<br>    final int:=60;<br>    ortalama int;<br><br>begin<br>    ortalama:= (vize*0.4+final*0.6);<br><br>     raise notice &#39;ortalama :%&#39;, ortalama;<br>if ortalama&gt;=50 then<br>    raise notice &#39;Öğrenci dersi geçti&#39;;<br>else<br>raise notice &#39;Öğrenci dersten kaldı&#39;;<br>end if;<br> end $$</pre><p>Buradaki örneğimizde öğrencinin aldığı notları hesaplayarak sınavdan geçip geçmediğini gösteren bir karar yapısı oluşturduk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*IzKdAbGRIvyJMSCHuf-hwA.png" /></figure><blockquote><strong>PostgreSQL ile CASE İfadesi</strong></blockquote><p>CASE ifadesi, birden fazla durumu ele almak için kullanılır. Bir değer için farklı koşullara göre nasıl işlem yapılacağını belirlemek için SQL sorgularında sıkça kullanılır.</p><pre>SELECT title,<br>       ho_authors.first_name || &#39; &#39; || ho_authors.last_name AS author_name,<br>       publish_year,<br>       CASE<br>           WHEN ho_books.publish_year &lt; 1900 THEN &#39;Antika&#39;<br>           WHEN ho_books.publish_year BETWEEN 1900 AND 1999 THEN &#39;Modern&#39;<br>           ELSE &#39;Çağdaş&#39;<br>       END AS kitap_kategorisi<br>FROM ho_books<br>JOIN ho_authors ON ho_books.author_id = ho_authors.author_id;</pre><p>Bu örneğimizde kitaplarımızı yayın yıllarına göre sınıflandırdık.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*bbuefDxMBOVe2nBbUy07EA.png" /><figcaption>case ifadesi ile kitap sınıflandırması</figcaption></figure><p><strong><em>Bu yazımızda </em></strong><strong><em>IF-THEN-ELSE ve </em></strong><strong><em>CASE yapıları ile neler yapabileceğimizi gördük. Bir sonraki yazımda görüşmek üzere.<br>Okuduğunuz için teşekkürler!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bb61c1c42c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>