<?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 Betul Salim on Medium]]></title>
        <description><![CDATA[Stories by Betul Salim on Medium]]></description>
        <link>https://medium.com/@betulsalim6?source=rss-758f220b5be9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EY53QpADgx-XM-dX</url>
            <title>Stories by Betul Salim on Medium</title>
            <link>https://medium.com/@betulsalim6?source=rss-758f220b5be9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:35:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@betulsalim6/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[Daha Güvenli ve Sağlam Bir Sistem İçin Öğrendiklerimiz]]></title>
            <link>https://medium.com/@betulsalim6/daha-g%C3%BCvenli-ve-sa%C4%9Flam-bir-sistem-i%CC%87%C3%A7in-%C3%B6%C4%9Frendiklerimiz-3fc4f115c1d8?source=rss-758f220b5be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fc4f115c1d8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Betul Salim]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 20:11:12 GMT</pubDate>
            <atom:updated>2026-02-26T20:11:12.814Z</atom:updated>
            <content:encoded><![CDATA[<h3>1️⃣ Regex Hatalıysa Ne Oluyor?</h3><h3>“Daha basit eşleşmeye düşmek” ne demek?</h3><pre>def _match_sender(pattern: str, sender: str) -&gt; bool:<br>    if not pattern:<br>        return True<br>    pat = pattern.strip()<br>    try:<br>        return re.search(pat, sender or &quot;&quot;, flags=re.IGNORECASE) is not None<br>    except re.error:<br>        # regex değilse substring gibi davran<br>        return pat.lower() in (sender or &quot;&quot;).lower()</pre><h3>Bu Kod Gerçekten Ne Yapıyor?</h3><p>Diyelim ki kullanıcı filtreye şunu yazdı:</p><pre>[0-9]{6}</pre><p>Bu doğru bir regex.<br> re.search() çalışır ve mesaj içinde 6 haneli sayı varsa True döner.</p><p>Ama kullanıcı yanlış yazarsa:</p><pre>[0-9+</pre><p>Bu hatalı bir regex.</p><p>Normalde Python şunu yapar:</p><pre>re.error: unterminated character set</pre><p>Ve sistem 500 hatası verir.</p><h3>Biz Ne Yapıyoruz?</h3><pre>try:<br>    re.search(...)<br>except re.error:<br>    return pat.lower() in sender.lower()</pre><p>Yani:</p><ul><li>Regex düzgünse → regex gibi çalış</li><li>Regex bozuksa → “bu kelime mesajın içinde geçiyor mu?” diye normal metin araması yap</li></ul><h3>Basit Örnek</h3><p>Pattern: bank<br> Sender: GarantiBank</p><p>Regex düzgün çalışır → eşleşir.</p><p>Pattern: [0-9+ (bozuk regex)<br> Sender: 123456</p><p>Regex patlar → except’e düşer → substring arama yapılır.</p><p>Bu durumda:</p><pre>&quot;[0-9+&quot; in &quot;123456&quot;</pre><p>False döner ama sistem <strong>çökmez</strong>.</p><h3>“Basit eşleşmeye düşmek” tam olarak şu demek:</h3><p>Regex çalışmazsa, şu kontrol yapılır:</p><pre>pat.lower() in sender.lower()</pre><p>Yani:</p><blockquote><em>“Bu yazdığın metin, mesajın içinde geçiyor mu?”</em></blockquote><p>Sistemi çökertmek yerine daha basit bir kontrol yapıyoruz.</p><h3>2️⃣ Öncelik Zinciri Gerçekten Ne Demek?</h3><pre>def resolve_target_email(device, sender: str, body: str, fallback_from_request: str | None):<br><br>    # 1) Filtreler<br>    filters = device.sms_filters.filter(<br>        is_active=True,<br>        forward_enabled=True,<br>        filter_type=SmsFilter.FILTER_TYPE_INCOMING,<br>    ).order_by(&quot;-created_at&quot;)<br><br>    for f in filters:<br>        if not _match_sender(f.sender_pattern, sender):<br>            continue<br>        if f.body_keyword and f.body_keyword.lower() not in (body or &quot;&quot;).lower():<br>            continue<br><br>        if f.target_email:<br>            return f.target_email, f<br><br>        break<br><br>    # 2) Cihaz target<br>    if device.target_email:<br>        return device.target_email, None<br><br>    # 3) Owner profile default<br>    if getattr(device.owner.profile, &quot;default_target_email&quot;, None):<br>        return device.owner.profile.default_target_email, None<br><br>    # 4) Request fallback<br>    if fallback_from_request:<br>        return fallback_from_request, None<br><br>    return None, None</pre><h3>Bu Gerçek Hayatta Ne Anlama Geliyor?</h3><p>Bir SMS geldi.</p><p>Sistem şu sırayla karar veriyor:</p><h3>1️⃣ Filtreye Bak</h3><p>Eğer bu SMS bir filtreyle eşleşiyorsa<br> ve filtre içinde özel bir target_email varsa<br> → <strong>oraya gönder</strong></p><h3>2️⃣ Filtre yoksa → Cihaz Ayarına Bak</h3><pre>if device.target_email:<br>    return device.target_email</pre><p>Yani cihazın kendine ait bir e-posta adresi varsa<br> → <strong>oraya gönder</strong></p><h3>3️⃣ O da yoksa → Kullanıcı Profiline Bak</h3><pre>device.owner.profile.default_target_email</pre><p>Yani:</p><p>“Bu kullanıcı için varsayılan mail adresi ne?”</p><h3>4️⃣ En Son → Request İçindeki Geçici Adres</h3><pre>if fallback_from_request:<br>    return fallback_from_request</pre><h3>Bu Neden Önemli?</h3><p>Çünkü bu sıralama sayesinde:</p><ul><li>Aynı SMS her zaman aynı yere gider</li><li>Sistem davranışı net olur</li><li>Karar mekanizması rastgele olmaz</li></ul><h3>3️⃣ Gerçek Hata Log’a, Güvenli Mesaj Kullanıcıya</h3><pre>except Exception as exc:<br>    logger.error(&quot;SMS forward mail error for %s: %s&quot;, email, exc, exc_info=True)<br><br>    if sms_obj:<br>        sms_obj.status = ForwardedSms.STATUS_FAILED<br>        sms_obj.error_message = str(exc)<br>        sms_obj.save(update_fields=[&quot;status&quot;, &quot;error_message&quot;])<br><br>    safe_error = humanize_mail_error(exc)<br>    results.append({<br>        &quot;target_email&quot;: email,<br>        &quot;success&quot;: False,<br>        &quot;error&quot;: safe_error,<br>    })</pre><pre>def humanize_mail_error(exc: Exception) -&gt; str:<br>    s = str(exc).lower()<br>    if &quot;connection refused&quot; in s:<br>        return &quot;Mail sunucusuna bağlanılamadı.&quot;<br>    if &quot;authentication&quot; in s:<br>        return &quot;Mail hesabı doğrulanamadı.&quot;<br>    if &quot;timeout&quot; in s:<br>        return &quot;Mail gönderimi zaman aşımına uğradı.&quot;<br>    return &quot;Mail gönderilemedi. Lütfen daha sonra tekrar deneyin.&quot;</pre><h3>Burada Gerçekten Ne Oluyor?</h3><p>Diyelim ki gerçek hata şu:</p><pre>SMTPAuthenticationError: Authentication failed for smtp.example.com</pre><h3>Log’a Ne Gidiyor?</h3><pre>logger.error(..., exc_info=True)</pre><p>Log dosyasında tam stack trace yazılır.</p><p>Bu geliştirici içindir.</p><h3>Client’a Ne Gidiyor?</h3><p>humanize_mail_error() çalışır.</p><p>“authentication” kelimesini yakalar.</p><p>Client’a şu gider:</p><pre>&quot;Mail hesabı doğrulanamadı.&quot;</pre><h3>Bu Neden Önemli?</h3><p>Çünkü:</p><ul><li>SMTP sunucu adı kullanıcıya gösterilmez.</li><li>Sistem altyapısı ifşa edilmez.</li><li>Güvenlik korunur.</li></ul><h3>4️⃣ PCSync Pair Verify Neden Backend’de Değil?</h3><p>Pair verify işlemi backend’de değil<br> PCSyncService.kt (telefonun local servisi) içinde olmalı.</p><h3>Basit Anlatım</h3><p>Telefon pairing kodunu üretir.</p><p>O halde doğrulamayı kim yapmalı?</p><p>👉 Telefon.</p><p>Backend araya girerse:</p><ul><li>Gereksiz internet bağımlılığı oluşur.</li><li>Güvenlik yüzeyi artar.</li><li>Offline çalışmaz.</li></ul><p>Doğru akış:</p><pre>Web → Telefonun local server’ı</pre><p>Yanlış akış:</p><pre>Web → Backend → Telefon</pre><h3>Genel Olarak Ne Öğrendik?</h3><p>Bu projede şunları öğrendik:</p><ul><li>Kullanıcı input’u sistemi çökertmemeli.</li><li>Karar verme sırası açık ve net olmalı.</li><li>Hatalar güvenli şekilde yönetilmeli.</li><li>Doğru yetki doğru yerde olmalı.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fc4f115c1d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[☕ My Java Learning Journal: From Basics to Real Code]]></title>
            <link>https://medium.com/@betulsalim6/my-java-learning-journal-from-basics-to-real-code-29b906495254?source=rss-758f220b5be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/29b906495254</guid>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[coding-tutorial]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[developer-journey]]></category>
            <dc:creator><![CDATA[Betul Salim]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 15:59:32 GMT</pubDate>
            <atom:updated>2025-08-01T15:59:32.589Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi there! I’m Betül 👋<br> I believe the best way to truly learn programming is by <strong>writing to understand</strong>. So as I was learning Java from scratch, I began documenting everything — my notes, code snippets, and mini challenges — and turned it into a GitHub repository:</p><p>👉 <a href="https://github.com/betulsalim/core-java-springboot-tutorial"><strong>core-java-springboot-tutorial</strong></a></p><p>This article is both my personal study log and a roadmap for anyone who wants to learn Java from the ground up.<br> Let’s explore it together 🚀</p><h3>📦 What’s Inside the Repo?</h3><p>I structured Java fundamentals into separate folders, keeping it clean and focused. Each folder covers one topic with related examples.</p><h3>📂 Key Folders:</h3><ul><li>01_VariablesAndDataTypes</li><li>02_AssignmentStatements</li><li>03_ConditionalStatements</li><li>04_Loops</li><li>05_Methods</li><li>06_TypeCasting</li><li>07_Operators</li></ul><p>Each folder contains commented .java files and small <strong>challenge</strong> examples to reinforce learning.</p><h3>🔹 01 — Variables &amp; Data Types</h3><blockquote><em>The first step in any language: answering </em>“What is a variable?”</blockquote><pre>int number = 5;<br>float pi = 3.14f;<br>char letter = &#39;A&#39;;<br>boolean isActive = true;</pre><p>This section also includes naming rules, constants, and primitive data types.</p><h3>🔹 02 — Assignment Operators</h3><p>Let’s explore how =, +=, -=, *=, /=, %= work.</p><pre>int a = 10;<br>a += 5;  // Now a = 15<br>a %= 4;  // Now a = 3</pre><p>You’ll find lots of short, hands-on exercises to understand how assignment works.</p><h3>🔹 03 — Conditional Statements (if, else, switch)</h3><blockquote><em>No conditions, no logic — no program! 😄</em></blockquote><pre>int age = 20;<br>if (age &gt;= 18) {<br>    System.out.println(&quot;You’re eligible for a driving license.&quot;);<br>} else {<br>    System.out.println(&quot;You’re not old enough yet.&quot;);<br>}</pre><p>Also includes switch-case examples like menu systems and date-related use cases.</p><h3>🔹 04 — Loops (for, while, do-while)</h3><p>This section covers how to repeat actions with loops.</p><pre>for (int i = 1; i &lt;= 5; i++) {<br>    System.out.println(&quot;Step: &quot; + i);<br>}</pre><h3>Mini Challenges:</h3><ul><li>Print even numbers from 1 to 100</li><li>Check if a number is prime</li></ul><h3>🔹 05 — Methods</h3><p>Avoid code repetition and structure your logic using <strong>methods</strong>.</p><pre>public int sum(int a, int b) {<br>    return a + b;<br>}</pre><p><strong>Covers:</strong></p><ul><li>void vs return methods</li><li>With and without parameters</li><li>How to call methods</li></ul><p>All explained step by step ✅</p><h3>🔹 06 — Type Casting</h3><pre>int a = 5;<br>double b = a;  // Widening<br><br>double pi = 3.14;<br>int p = (int) pi; // Narrowing</pre><p>You’ll see when conversions happen automatically, and when you need to force them.</p><h3>🔹 07 — Operators</h3><p>Learn how logical (&amp;&amp;, ||, !) and comparison operators (==, !=, &lt;, &gt;) work with real examples.</p><pre>if (score &gt;= 50 &amp;&amp; isPresent == true) {<br>    System.out.println(&quot;You passed the class!&quot;);<br>}</pre><p>Fun real-life scenarios are included to make it easier to understand.</p><h3>💡 Why This Repo?</h3><p>✅ Folder-by-folder structured learning<br> ✅ Real examples with commented code<br> ✅ Mini challenges to reinforce every topic<br> ✅ Continuously evolving with my own learning pace</p><h3>🔗 GitHub Link:</h3><p>🎯 <a href="https://github.com/betulsalim/core-java-springboot-tutorial">github.com/betulsalim/core-java-springboot-tutorial</a></p><h3>📌 Final Words</h3><p>This repo is both a <strong>learning space</strong> and a <strong>creation log</strong> for me.<br> As I learn more, I’ll keep adding new sections like Spring Boot basics, data structures, and exception handling.</p><p>Feel free to <strong>fork it</strong>, open an <strong>issue</strong>, submit a <strong>PR</strong>, or just leave a ⭐ — <br> because we grow by learning, and we learn better by sharing.</p><p>With love &amp; code,<br> <strong>Betül</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29b906495254" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LOGLAMA — TELEME]]></title>
            <link>https://medium.com/@betulsalim6/loglama-teleme-e85b7d74770b?source=rss-758f220b5be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e85b7d74770b</guid>
            <category><![CDATA[json]]></category>
            <category><![CDATA[telemetrie]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[loglama]]></category>
            <dc:creator><![CDATA[Betul Salim]]></dc:creator>
            <pubDate>Fri, 16 May 2025 08:42:37 GMT</pubDate>
            <atom:updated>2025-05-16T08:42:37.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>LOGLAMA — TELEMETRİ</h3><p><strong>LOG NEDİR? HANGİ VERİLER DÖNER?</strong></p><p><strong>Log Türleri ve İçerikleri</strong></p><ul><li><strong>Uygulama Logları:</strong> Hata, uyarı, bilgi, debug mesajları (ör: hata kodu, mesaj, timestamp, kullanıcı id)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*7YxGHNB2Ybn_hwPoRFyoTg.png" /></figure><ul><li><strong>Erişim Logları:</strong> Kim, ne zaman, hangi kaynağa erişti? (ör: IP, kullanıcı adı, endpoint, zaman)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*t_rnkiVwRunP5h-a4JReiQ.png" /></figure><ul><li><strong>Güvenlik Logları:</strong> Yetkisiz erişim, başarısız giriş denemeleri, şüpheli aktiviteler</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*R3Go2XZ5cIt9RabGw9BU9w.png" /></figure><ul><li><strong>Performans Logları:</strong> Yanıt süresi, işlem süresi, kaynak kullanımı</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*gsAOOSBQNfbIwFXpJCwwQg.png" /></figure><ul><li><strong>Denetim Logları:</strong> Kim, neyi, ne zaman değiştirdi?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*weUmipves5YOaG1QOmUJZQ.png" /></figure><p><strong>Örnek Log (JSON):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*c0RmBkJHMj-6qR4cJKtgsA.png" /></figure><p><strong>TELEMETRİ NEDİR? HANGİ VERİLER DÖNER?</strong></p><ul><li><strong>Telemetri:</strong> Sistemden sürekli olarak toplanan metrikler ve olaylar (ör: CPU, bellek, istek sayısı, hata oranı, özel iş metrikleri)</li><li><strong>Event Telemetri:</strong> Kullanıcı tıklamaları, sayfa görüntülemeleri, işlem adımları</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*37aT5WEqVcgZAiBCCcwCwg.png" /></figure><ul><li><strong>Metrik Telemetri:</strong> Yanıt süresi, istek/saniye, hata oranı, kuyruk uzunluğu</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*TxpQP0kh_O_meXr5ECmmmw.png" /></figure><p><strong>Örnek Telemetri (Prometheus formatı):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*Z87khgM8wBOxRroPVwxTzw.png" /></figure><p><strong>C# İLE LOG VE TELEMETRİ ENTEGRASYONU</strong></p><p><strong>a) Loglama (C# — Serilog ile)</strong></p><p><strong>Kurulum:</strong>NuGet’ten Serilog ve Serilog.Sinks.File paketlerini ekle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*oYmEce6NGcL3yjr_u7wGow.png" /></figure><ul><li><strong>Hangi veriler döner?</strong>: Zaman, seviye, mesaj, hata detayları, opsiyonel olarak kullanıcı/id/ip gibi ek bilgiler.</li></ul><p><strong>b) Telemetri (C# — OpenTelemetry ile Prometheus/Jaeger)</strong></p><p><strong>Kurulum:</strong>NuGet’ten OpenTelemetry, OpenTelemetry.Exporter.Prometheus, OpenTelemetry.Exporter.Jaeger ekle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*gbOcC4KYuWn2gydSpYpiIw.png" /></figure><ul><li><strong>Hangi veriler döner?</strong>: HTTP istek sayısı, yanıt süresi, trace id, span id, hata oranı, özel metrikler.</li></ul><p><strong>FARKLI DİLLERDE LOG VE TELEMETRİ</strong></p><p><strong>Python</strong></p><ul><li><strong>Loglama:</strong> logging modülü, loguru, structlog</li><li><strong>Telemetri:</strong> prometheus_client, opentelemetry-sdk</li></ul><p><strong>Java</strong></p><ul><li><strong>Loglama:</strong> log4j, SLF4J, Logback</li><li><strong>Telemetri:</strong> Micrometer, OpenTelemetry Java, Prometheus Java client</li></ul><p><strong>Node.js</strong></p><ul><li><strong>Loglama:</strong> winston, bunyan, pino</li><li><strong>Telemetri:</strong> prom-client, opentelemetry-js</li></ul><p><strong>Go</strong></p><ul><li><strong>Loglama:</strong> log, zap, logrus</li><li><strong>Telemetri:</strong> prometheus/client_golang, opentelemetry-go</li></ul><p><strong>SİSTEMLER ARASI ENTEGRASYON (LOG &amp; TELEMETRİ)</strong></p><p><strong>Genel Akış</strong></p><p><strong>Uygulama Katmanı:</strong></p><p>Log ve telemetri verileri uygulama tarafından üretilir.</p><p><strong>Toplama Katmanı:</strong></p><p>Loglar ve metrikler merkezi bir toplama sistemine (agent, collector, forwarder) iletilir.</p><p><strong>İşleme ve Saklama Katmanı:</strong></p><p>Veriler analiz, indeksleme ve saklama için uygun sistemlere yönlendirilir.</p><p><strong>Görselleştirme ve Alarm Katmanı:</strong></p><p>Dashboard’lar, grafikler ve alarm sistemleriyle izleme ve bildirim yapılır.</p><p><strong>Entegre Edilebilecek Popüler Sistemler</strong></p><p><strong>Loglama Sistemleri</strong></p><p><strong>ELK Stack (Elasticsearch, Logstash, Kibana):</strong></p><p>Logstash logları toplar, işler ve Elasticsearch’e yollar.</p><p>Kibana ile loglar görselleştirilir.</p><p><strong>Graylog:</strong></p><p>Log toplama, işleme, arama ve alarm için kullanılır.</p><p><strong>Splunk:</strong></p><p>Büyük ölçekli log analizi ve SIEM için kullanılır.</p><p><strong>Fluentd/Fluent Bit:</strong></p><p>Hafif log forwarder, logları farklı hedeflere yönlendirebilir.</p><p><strong>Telemetri Sistemleri</strong></p><p><strong>Prometheus:</strong></p><p>Metrikleri HTTP endpoint’lerinden çeker (pull).</p><p>Zaman serisi veritabanı olarak saklar.</p><p><strong>OpenTelemetry:</strong></p><p>Hem metrik, hem trace, hem de log toplama için açık standarttır.</p><p>Farklı exporter’larla Prometheus, Jaeger, Zipkin, Grafana, Azure, Google Cloud gibi sistemlere veri gönderebilir.</p><p><strong>Jaeger/Zipkin:</strong></p><p>Dağıtık izleme (distributed tracing) için kullanılır.</p><p><strong>Grafana:</strong></p><p>Prometheus, InfluxDB, Elasticsearch gibi kaynaklardan veri çekip dashboard oluşturur.</p><p><strong>Entegrasyon Akışı Örneği</strong></p><p>Uygulama → (Log/Telemetri Kütüphanesi) → Logstash/Fluentd/OpenTelemetry Collector → Elasticsearch/Prometheus/Jaeger → Kibana/Grafana</p><p><strong>LOG SİSTEMLERİ KARŞILAŞTIRMASI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*UoE44wvyjZCUwep5h9yu9A.png" /></figure><p><strong>TELEMETRİ SİSTEMLERİ KARŞILAŞTIRMASI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*085I_kZzt6m0rCLP8kxufA.png" /></figure><p><strong>DETAYLI AÇIKLAMALAR</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*SR6UClpDBxaAhwPqfHOkZw.png" /></figure><p><strong>HANGİSİ NE ZAMAN KULLANILIR?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*8bV1M2jHDB3rhPtaayqlQw.png" /></figure><p><strong>KISA ÖZET</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*8Y7LQn_xVYhq377LKNmRCg.png" /></figure><p><strong>C#’TA LOG VE TELEMETRİ KÜTÜPHANELERİ</strong></p><p><strong>LOG KÜTÜPHANELERİ</strong></p><p><strong>a) Serilog</strong></p><p><strong>Yapı: Modern, yapılandırılabilir, sink tabanlı (farklı hedeflere log yazabilir).</strong></p><p><strong>Sink’ler: Dosya, Console, Elasticsearch, Seq, MSSQL, Azure, vs.</strong></p><p><strong>Format: JSON, düz metin, custom format.</strong></p><p><strong>Özellik: Yapılandırılmış log (structured logging), context ekleme, minimum seviye ayarı.</strong></p><p><strong>Kullanım:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*l2yy_PHMK5-jyXGhDzkXNQ.png" /></figure><p><strong>b) NLog</strong></p><ul><li><strong>Yapı: Eski ve yaygın, XML veya kod ile yapılandırılabilir.</strong></li><li><strong>Target’lar: Dosya, veritabanı, e-posta, EventLog, Elasticsearch, vs.</strong></li><li><strong>Format: Layout ile özelleştirilebilir.</strong></li><li><strong>Özellik: Async logging, rule tabanlı seviye ayarı.</strong></li><li><strong>Kullanım:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*YDipGpxDIt2TIe3LPohedg.png" /></figure><p><strong>c) log4net</strong></p><ul><li><strong>Yapı: Apache log4j’den türemiş, XML ile yapılandırılır.</strong></li><li><strong>Target’lar: Dosya, veritabanı, EventLog, vs.</strong></li><li><strong>Özellik: Rolling file, custom appender, filter.</strong></li><li><strong>Kullanım:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*xrGsRwXm94qaU9Q-7wf6OA.png" /></figure><p><strong>d) Microsoft.Extensions.Logging</strong></p><ul><li><strong>Yapı: .NET Core ile gelen standart logging abstraction.</strong></li><li><strong>Provider’lar: Console, Debug, EventSource, Application Insights, Serilog, NLog, vs.</strong></li><li><strong>Avantaj: Bağımlılık enjeksiyonu ile kolay entegrasyon, test edilebilirlik.</strong></li></ul><p><strong>Kullanım:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*GBNVLxbVW2OElLqhh1yJ8Q.png" /></figure><p><strong>TELEMETRİ KÜTÜPHANELERİ</strong></p><p><strong>a) OpenTelemetry .NET</strong></p><ul><li><strong>Amaç: Metrik, trace ve log toplama için açık standart.</strong></li><li><strong>Exporter’lar: Prometheus, Jaeger, Zipkin, Azure Monitor, Google Cloud, vs.</strong></li><li><strong>Özellik: Otomatik ve manuel enstrümantasyon, context propagation.</strong></li><li><strong>Kullanım</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*FJ-P1-bbr6jw5fW2qObngA.png" /></figure><p><strong>b) Application Insights (Azure)</strong></p><ul><li><strong>Amaç: Azure tabanlı telemetri, log ve izleme.</strong></li><li><strong>Özellik: Otomatik metrik toplama, dağıtık izleme, canlı metrikler, query desteği.</strong></li><li><strong>Kullanım</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*WR4Nw0w5hS2cLSq2mSChFg.png" /></figure><p><strong>c) Prometheus .NET Client</strong></p><ul><li><strong>Amaç: Prometheus ile uyumlu metrik endpoint’i oluşturmak.</strong></li><li><strong>Kullanım</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*DAFnw6Xy7Ghajdd6RhquRg.png" /></figure><p><strong>d) Jaeger .NET Client</strong></p><ul><li><strong>Amaç: Dağıtık izleme (tracing) için Jaeger’a trace göndermek.</strong></li><li><strong>Kullanım: OpenTelemetry ile entegre edilir.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*R3KrWAgZMHCqFmw_PrMtxQ.png" /></figure><p><strong>ENTEGRASYONDA DİKKAT EDİLECEKLER</strong></p><ul><li><strong>Log ve telemetriyi ayrı ayrı merkezi sistemlere yönlendirin.</strong></li><li><strong>Structured logging (JSON) kullanın, logları kolayca analiz edilebilir yapın.</strong></li><li><strong>Log seviyelerini (Info, Warning, Error, Debug) doğru kullanın.</strong></li><li><strong>Telemetri için metrik isimlendirmelerini ve label’ları standartlaştırın.</strong></li><li><strong>OpenTelemetry ile hem log, hem metrik, hem trace’i aynı anda toplayabilirsiniz.</strong></li><li><strong>Loglar genellikle olay bazlıdır, telemetri ise sürekli metrik sağlar.</strong></li><li><strong>Loglardan metrik üretmek (ör. hata loglarından hata oranı çıkarmak) mümkündür.</strong></li></ul><p><strong>ÖRNEK ENTEGRASYON (C#)</strong></p><p><strong>Hem loglama hem telemetriyi aynı uygulamada kullanmak:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*1VviGhm29Zyh0U0cOVX7Tw.png" /></figure><p><strong>LOG VE TELEMETRİ ARASINDAKİ İLİŞKİ</strong></p><ul><li>Loglar genellikle olay bazlıdır, telemetri ise sürekli metrik ve izleme sağlar.</li><li>Loglardan metrik üretilebilir (ör: hata loglarından hata oranı).</li><li>Telemetri event’leri loglanabilir.</li><li>Her ikisi de merkezi izleme ve alarm sistemlerine entegre edilebilir.</li></ul><p><strong>EN İYİ UYGULAMALAR</strong></p><ul><li><strong>Log ve telemetriyi ayrı ayrı ve merkezi olarak toplayın.</strong></li><li><strong>Veri formatı olarak JSON kullanın.</strong></li><li><strong>Kişisel verileri maskeleyin veya loglamayın.</strong></li><li><strong>Otomatik arşivleme ve silme politikaları uygulayın.</strong></li><li><strong>Alarm ve dashboard’lar kurun.</strong></li><li><strong>Yasal gerekliliklere uyun (ör: 5651, GDPR).</strong></li></ul><p><strong>SONUÇ</strong></p><ul><li><strong>Serilog, NLog, log4net</strong> gibi kütüphaneler loglama için; <strong>OpenTelemetry, Prometheus .NET Client, Application Insights</strong> gibi kütüphaneler telemetri için kullanılır.</li><li><strong>OpenTelemetry</strong> modern projelerde hem log, hem metrik, hem trace için önerilir.</li><li>Loglar ve telemetri verileri merkezi sistemlere (ELK, Prometheus, Grafana, Jaeger, Azure) yönlendirilerek izlenir ve analiz edilir.</li><li>Entegrasyon için genellikle log forwarder’lar (Logstash, Fluentd), exporter’lar (Prometheus, Jaeger exporter) ve dashboard araçları (Kibana, Grafana) kullanılır.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e85b7d74770b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start Coding!]]></title>
            <link>https://medium.com/@betulsalim6/start-coding-e931be34a362?source=rss-758f220b5be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e931be34a362</guid>
            <dc:creator><![CDATA[Betul Salim]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 10:06:25 GMT</pubDate>
            <atom:updated>2024-10-08T10:06:25.206Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hi Guys,</em></p><p><em>This is my very first “medium write” so because of that today I want to tell you “How did I start coding?”</em></p><figure><img alt="Start Coding!!!" src="https://cdn-images-1.medium.com/max/1024/1*7jMlxEwJGex3RQurk9SmLg.png" /></figure><p><em>First of all, I know you have a lot of questions in your mind like “Where Should I start?” “How am I gonna handle it?” “Which Language Should I Learn?” like these.</em></p><p><em>Now, take a breath and calm down because I am going to write about it in this essay.</em></p><p><em>Well for me, I didn&#39;t know anything about coding when I started to University. But now I am going to graduate this year and I did lots of things to find my career path.</em></p><p><em>In School, you will start with C or C++ for Algorithms and for that, I recommend you make an effort to learn these Languages with lots of practice. Because in this career exercises makes us to reach our goal.</em></p><p><em>After you learned C or C++ and made lots of practice you can start other languages. Like Python, C#, Java, and JavaScript… but at first, I recommend you start with Java or C# to learn Object Oriented Programming (OOP). Then you should start to draw the way for your career goal.</em></p><p><em>Okay, now we know the basic ones learn Algorithm and OOP. After these there will be paths you can go like “Frontend, Backend, Fullstack…” Well, let me say how I find my own path…</em></p><p><em>I started with the Frontend path to see how it is and I learned HTML, CSS, Bootstrap, and JavaScript then I realized I could get a little bit bored of making Designs all the time then I did research about languages and how they are used in careers and I found that in Backend path there are lots of Language can be used for Backend Technologies.</em></p><p><em>In the Backend, you can use mostly JavaScript, Python, Java and C# how I find which Language is fine for me? Basically, when you learned OOP from Java or C# you kind of tell if these languages are good for you or not so I find C# more for me than the others.</em></p><p><em>This is how I found my programming language.</em></p><p><em>Okay, now we found our language and now we have to decide what to do with this language.</em></p><p><strong><em>Python</em></strong></p><p><em>Python is one of the Languages that make lots of things you can do whatever you want with Python like games, websites, data science and artificial intelligence…</em></p><p><em>Easy Readability: Python is easy to write and read because it has a natural English syntax. It is ideal for both beginners and experienced programmers because the codes are less complex and understandable.</em></p><p><em>Wide Community Support: There is a huge community behind Python. Thanks to this, you can find various libraries, frameworks and constantly updated documentation.</em></p><p><em>Rich Library Support: Popular libraries and tools such as NumPy, Pandas, Matplotlib, TensorFlow, Django allow you to develop a wide range of projects.</em></p><p><em>Modular Structure: Thanks to Python’s modular structure, you can organize your codes into modules to be used in different projects and reuse them later.</em></p><p><em>Data Science and Machine Learning: You can analyze data and create machine learning models with libraries such as Pandas, NumPy, SciPy, scikit-learn and TensorFlow.</em></p><p><em>Artificial Intelligence: It has a wide range of use in artificial intelligence fields such as Natural Language Processing (NLP) and image processing.<br>Web Development: You can develop web applications with frameworks such as Django, Flask, and FastAPI.</em></p><p><em>Game Development: You can create simple games with libraries such as PyGame.</em></p><p><em>Robotics and IoT: It can work with microcontroller cards such as Raspberry Pi and can be used in robotics projects.</em></p><p><em>Automation: You can create various scripts and automation tools, and automate daily processes.</em></p><p><em>Pros:<br>Simple and Clean Syntax: Python speeds up the coding process and allows developers to produce faster solutions.</em></p><p><em>Large Community: Since Python has a large community, you have a high chance of finding a solution when you encounter problems.<br>Versatility: Whether you are a web developer or a data scientist, Python is useful in almost every field.</em></p><p><em>Cons:<br>Speed: It can run slower than low-level languages ​​such as C++ or Java. However, the lack of speed is usually compensated by its ease of use.<br>Mobile Development Support: It is not a preferred language when developing for Android or iOS, but mobile development is possible with frameworks such as Kivy.<br>High Memory Usage: Memory consumption is higher than other languages, especially when working with large data sets.</em></p><p><strong><em>Advice for Those Who Want to Learn Python</em></strong></p><p><em>Practice: Start with simple projects and algorithms.<br>Examine Libraries: Learning libraries such as Numpy, Pandas and Scikit-learn will allow you to use Python more efficiently.<br>Join Communities: Be active on platforms such as StackOverflow, GitHub and Python communities.<br>Develop Real Projects: Put what you learn into practice with small projects.</em></p><p><strong><em>JavaScript:</em></strong></p><p><em>if you want to be a Web Developer JavaScript is the most Popular Programming Language for this.</em></p><p><em>A Complete Web Language: Along with HTML and CSS, it is the language that completes the modern web development trio. It is indispensable for processes such as user interface (UI) interactions, dynamic content creation, and integration with APIs.</em></p><p><em>Works on All Platforms: JavaScript runs on all browsers without requiring any additional software and is therefore highly portable.</em></p><p><em>Rich Ecosystem: The JavaScript ecosystem is quite extensive with thousands of libraries and frameworks (React, Angular, Vue.js, jQuery, etc.). Whether you are developing small-scale projects or large-scale applications, you can easily find the tools you need.</em></p><p><em>Frontend Development: You can develop complex user interfaces and SPA (Single Page Applications) with popular frameworks such as React, Angular and Vue.js that run on the browser.</em></p><p><em>Backend Development: You can create dynamic applications and APIs on the server side with frameworks such as Node.js, Express.js, and Nest.js.<br>Mobile Development: You can develop hybrid and native mobile applications with tools such as React Native and Ionic.<br>Game Development: You can create 2D games with libraries like Phaser.js.</em></p><p><em>IoT and Robotics: You can use libraries like Johnny-Five for robotics and hardware projects.</em></p><p><em>Desktop Applications: You can develop desktop applications with tools like Electron.js.</em></p><p><em>Pros:</em></p><p><em>Platform Independence: JavaScript can run on any browser and does not require any special configuration.<br>High Performance: JavaScript runs very fast thanks to Just-in-Time (JIT) compilation and optimizations offered by modern browsers.</em></p><p><em>Rich Framework and Library Support: You can find thousands of open-source libraries and tools for any functionality you need.<br>Community Support: JavaScript has one of the largest developer communities in the world. This gives you a great advantage in both learning and problem-solving processes.</em></p><p><em>Cons:</em></p><p><em>Complex and Inconsistent Syntax: JavaScript has some complexities in terms of language features and design decisions. The operation of this context and operators like == and === can be confusing.</em></p><p><em>Flexibility Issues: The dynamic type system can sometimes cause unexpected errors, which can be a challenge in large projects.<br>Browser Compatibility Issues: Each browser may run JavaScript slightly differently, and this can cause compatibility issues, especially with older browsers.</em></p><p><strong><em>Advice for Those Who Want to Learn JavaScript</em></strong></p><p><em>Learn the Basics: Learn variable definitions such as var, let, const, function structure, and this context well.<br>Learn Asynchronous Programming: Understand how async/await, promise, and callback structures work well.<br>Examine Modern JavaScript Frameworks: Learn modern frameworks such as React, Angular, or Vue.js.<br>Consider Using TypeScript: TypeScript, which adds type safety to JavaScript, is recommended especially for large projects.<br>Develop Your Own Projects: Put it into practice by developing small projects while learning JavaScript.</em></p><p><strong><em>Java</em></strong></p><p><em>Java is a coding language that has been used for years and still continues to be used and never loses its importance.</em></p><p><em>Security: Java places great importance on security during the design phase. It minimizes security breaches through secure classes, memory access controls, and virtual machines (JVM).</em></p><p><em>Large Community Support: Java has a very large community since it has been developed and supported since 1995. In this way, encountered problems are solved quickly and new tools, libraries, and frameworks are constantly developed.</em></p><p><em>Modular and Scalable Structure: It allows you to create reusable classes by modularizing large, complex projects. This makes Java especially attractive for large-scale corporate projects.</em></p><p><em>Multi-Purpose: It has a wide range of uses from desktop applications to mobile applications, from web services to large data processing solutions.</em></p><p><em>Enterprise Applications: Large-scale enterprise applications can be developed with Spring Framework and Java Enterprise Edition (Java EE).</em></p><p><em>Android Development: The Android operating system is based on Java. Android application development is usually done using Java (or Kotlin).</em></p><p><em>Web Development: Dynamic web applications can be developed with technologies such as Java Server Pages (JSP), Servlets, Spring, and Hibernate.<br>Big Data: Big data processing technologies such as Apache Hadoop and Apache Spark are written in Java, and Java is widely used in big data projects.</em></p><p><em>Scientific and Financial Applications: It is preferred in finance and scientific calculations with its powerful calculation capabilities, security and parallel processing support.</em></p><p><em>Game Development: 2D and 3D games can be created with game engines such as LibGDX and jMonkeyEngine.</em></p><p><em>Pros:</em></p><p><em>Platform Independence: The “Write once, run anywhere” feature allows the same code to be run on different operating systems.</em></p><p><em>Performance: It is faster than other interpreted languages ​​(such as Python and JavaScript). It offers high-performance thanks to the JIT (Just-In-Time) compiler and JVM optimizations.<br>Multithreading: Java provides built-in multithreading support and is ideal for parallel processing.<br>Strong Type Checking: Java is a language that performs statically type checking. This prevents most errors during the compilation phase and allows you to write more reliable code.<br>Wide Library Support: Java’s rich standard library provides ready-made solutions for a wide range of functions. Third-party libraries such as Apache Commons and Google Guava are also common.</em></p><p><em>Cons:</em></p><p><em>Unnecessary Code Complexity: Java has a longer and more complex syntax than some languages. This can reduce efficiency, especially in small projects.<br>High Memory Usage: Running a JVM and managing the garbage collector can cause high memory consumption.<br>Slow Start: The startup time of Java programs can be slow, especially in large projects.<br>Difficulty Level: For beginners, its object-oriented structure and syntax may seem complicated.</em></p><p><strong><em>Advice for Those Who Want to Learn Java</em></strong></p><p><em>Learn Basic OOP Concepts: Java is a completely object-oriented language. You need to have a good understanding of OOP concepts such as classes, objects, inheritance, polymorphism, and encapsulation.<br>Use the Standard Library: Learn to use ready-made functions and data structures by working with Java’s rich standard library.<br>Examine Frameworks: Learning tools included in the Java ecosystem such as Spring, Hibernate and Maven will make your work easier in large projects. Develop Real Projects: Reinforce your theoretical knowledge with practical projects. Develop desktop applications, simple web services, and Android projects.</em></p><p><strong><em>C#</em></strong></p><p><em>C# is a programming language developed by Microsoft, has a wide range of uses and is equipped with modern features. Preferred in both small-scale applications and corporate projects, C# has an important place in the software world with its strong object-oriented structure, security and performance.</em></p><p><em>Full Compatibility with Microsoft Ecosystem: It is frequently preferred especially in corporate projects thanks to its integration with Visual Studio IDE and its seamless operation with other Microsoft technologies (Azure, SQL Server, ASP.NET).<br>Rich Standard Libraries: It offers a wide set of standard libraries with .NET Framework and .NET Core. These libraries facilitate many operations from file operations to database operations, from network programming to multi-threading.<br>Strong IDE and Tool Support: C# offers a fully integrated working environment with Visual Studio, developed by Microsoft. Productivity is increased with Visual Studio’s tools such as IntelliSense, debugging and profiling.<br>Platform Independence and Widespread Usage: With .NET Core and .NET 5, it is now possible to develop desktop applications not only on Windows but also on other platforms (Linux, macOS)</em></p><p><em>Desktop Applications: It is possible to develop desktop applications with technologies such as Windows Forms and WPF (Windows Presentation Foundation).</em></p><p><em>Web Development: You can develop dynamic web applications and APIs with ASP.NET and Blazor. It is also possible to develop both client-side and server-side web applications using C# with Blazor.</em></p><p><em>Game Development: Unity game engine offers game development using C#. Unity is one of the most popular game engines for developing 2D and 3D games.</em></p><p><em>Mobile Development: iOS and Android applications can be developed using C# with Xamarin. Xamarin provides native application development and allows the reuse of a large part of the code on different platforms.</em></p><p><em>Cloud-Based Applications: Thanks to its ability to integrate with Azure and other cloud services, C# is frequently preferred in developing cloud-based solutions and services.</em></p><p><em>Database and Data Analytics: Database operations can be easily managed with ORM tools such as Entity Framework.</em></p><p><em>Pros:</em></p><p><em>Strong IDE Support: C# development is much more efficient with tools such as Visual Studio.</em></p><p><em>Rich Language Features: Provides modern and clean code writing with features such as LINQ, async/await, delegates and lambda expressions.<br>High Performance: Provides high performance with JIT (Just-In-Time) compiler and advanced optimization techniques.<br>Multi-Platform Support: Thanks to .NET Core and .NET 5+, C# codes can now be run not only on Windows but also on other operating systems.<br>Large Community Support: The C# and .NET ecosystem has a large developer community and is actively updated.</em></p><p><em>Cons:</em></p><p><em>Relatively High Learning Curve: The C# and .NET ecosystem can be complex for beginners. Understanding the basic language features as well as the framework structure can take time.<br>Heavy Memory Usage: In some cases, C# and .NET applications can consume more memory.<br>Support for Legacy Codes: There may be some compatibility issues when migrating from .NET Framework to .NET Core and .NET 5+.</em></p><p><em>Platform Dependency: Although .NET Core has become platform independent, Windows-based features and tools may still not be fully supported on Linux and macOS.</em></p><p><strong><em>Advice for Those Who Want to Learn C#</em></strong></p><p><em>Understand the Basics Well: Learn object-oriented programming concepts such as classes, objects, inheritance, and encapsulation.<br>Use Modern Language Features: Learn modern C# features such as LINQ, async/await, lambda expressions, and extension methods.<br>Examine ASP.NET and Xamarin: Learning ASP.NET and Xamarin in web and mobile development will expand your C# knowledge.</em></p><p><em>In brief, after you choose a Programming Language first please make sure you become a professional in it Don’t leave it halfway and move on to the others. It will only make your mood go down and make you feel bad.</em></p><p><em>So be a professional in one Language then you will see you gonna find the right way for yourself. After being Professional you will start searching for career paths which I wrote about it and if you have a chance try every one of them.</em></p><p><em>Then you will find your own career path :)</em></p><figure><img alt="Career Path" src="https://cdn-images-1.medium.com/max/1024/1*kyjD-0Xvr4nbaK9Zndgd4g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e931be34a362" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>