<?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 Büşra İleri on Medium]]></title>
        <description><![CDATA[Stories by Büşra İleri on Medium]]></description>
        <link>https://medium.com/@busraileri?source=rss-3d22804a70cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0dypJWaPTTjx9SjufeWUtg.jpeg</url>
            <title>Stories by Büşra İleri on Medium</title>
            <link>https://medium.com/@busraileri?source=rss-3d22804a70cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 05:42:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@busraileri/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[Breaking the Fortresses: Why “Zero Trust” is the Talk of the Cyber World]]></title>
            <link>https://medium.com/@busraileri/breaking-the-fortresses-why-zero-trust-is-the-talk-of-the-cyber-world-6063fd0b7648?source=rss-3d22804a70cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/6063fd0b7648</guid>
            <category><![CDATA[zero-trust]]></category>
            <category><![CDATA[zero-trust-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[zero-trust-architecture]]></category>
            <category><![CDATA[zero-trust-model]]></category>
            <dc:creator><![CDATA[Büşra İleri]]></dc:creator>
            <pubDate>Mon, 22 Dec 2025 11:24:01 GMT</pubDate>
            <atom:updated>2025-12-22T11:24:01.989Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello fellow cyber guardians! <br>In this post, we’re not just talking about those who wield the sword, but those who build their defense lines with intelligence.</p><p>For decades, we relied on the <strong>“Castle and Moat”</strong> strategy in cybersecurity. We built a strong firewall, assuming everything outside was “bad” and everything inside was “trusted.” However, today’s hybrid work models and sophisticated attack vectors have proven one thing: <strong>the castle walls have crumbled, and being on the inside no longer means you are trustworthy.</strong></p><p>This is exactly where <strong>Zero Trust Architecture (ZTA)</strong> comes in, showing us how to reposition our shields.</p><h3>Where Trust Ends and Verification Begins: Zero Trust</h3><p>In its simplest terms, Zero Trust means never granting default trust to any user, device, or system, regardless of their location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-h4AkrZSyYv2smMmMdAkGA.png" /><figcaption><a href="https://ika.xyz/blog/zero-trust-protocols-ztps">Comparing the Castle-and-Moat design of imaginary “Castleum” with Zero Trust of Ethereum</a></figcaption></figure><p>In academic literature (according to the <strong>NIST SP 800–207</strong> document), Zero Trust is not just a tool; it is an architecture built on 7 unwavering tenets:</p><ol><li><strong>All data sources and computing services are considered resources:</strong> (Not just PCs, but printers, IoT devices, and cloud services).</li><li><strong>All communication is secured regardless of network location:</strong> (Being inside the corporate network doesn’t grant you a free pass).</li><li><strong>Access to individual enterprise resources is granted on a per-session basis:</strong> (One login doesn’t mean access to everything).</li><li><strong>Access to resources is determined by dynamic policy:</strong> (Continuous checks on who is accessing, from where, and with what device).</li><li><strong>The enterprise monitors and measures the integrity and security posture of all assets:</strong> (If your device isn’t up to date, you can’t get in).</li><li><strong>All resource authentication and authorization are dynamic and strictly enforced before access is allowed:</strong> (Verify first, trust never).</li><li><strong>The enterprise collects as much information as possible about the current state of assets and network infrastructure:</strong> (Continuous logging and analysis).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fwusoy6nkT2xdKAlSCgvkg.jpeg" /><figcaption><a href="https://nvlpubs.nist.gov/nistpubs/specialpublications/NIST.SP.800-207.pdf">The NIST Tenes of Zero Trust Architecture</a></figcaption></figure><h3>The 3 Golden Rules of Modern Defense</h3><p>We can summarize these 7 technical tenets into 3 core principles for daily operations:</p><ul><li><strong>Never Trust, Always Verify:</strong> No matter your location or identity, there is a checkpoint at every door.</li><li><strong>Least Privilege:</strong> You can only enter the room you need for your job; all other doors remain locked.</li><li><strong>Assume Breach:</strong> Operates under the mindset that “the walls have already been breached,” so monitor every single movement within the network.</li></ul><h3>What Are These Principles Trying to Tell Us?</h3><p>Through my research, the most critical point I’ve realized is that Zero Trust is not a product (software); it is a <strong>strategy.</strong> You can not simply buy a piece of software and say, “We’ve moved to Zero Trust.” It is an ongoing process across every layer — from identity management to endpoint security, network micro-segmentation to data analytics.</p><p>Think of it this way: instead of looking for a needle in a haystack, we place smart sensors and locks in every corner of the haystack.</p><ul><li><strong>Preventing Lateral Movement:</strong> In traditional networks, an attacker who compromises the weakest link (e.g., an intern’s computer) can move like a ghost horizontally to reach main servers. With ZTA and micro-segmentation, even if an attacker gets in, their paths are blocked. Every step requires re-authentication, narrowing their “field of movement.”</li><li><strong>Limiting the Blast Radius:</strong> Even if a breach is inevitable, you restrict its “blast radius” or impact area. The attack is trapped within its micro-segment instead of spreading across the entire network, allowing the rest of the operation to continue safely.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cyDGUBCuzM1xRLUhF3LB7w.jpeg" /><figcaption><a href="https://www.wallarm.com/what/what-is-microsegmentation-guide-by-wallarm">Micro-segmentation and Attack Spread</a></figcaption></figure><ul><li><strong>Visibility and Analysis:</strong> The “Never Trust, Always Verify” rule ensures more meaningful and traceable logs flow into SOC panels. This allows analysts to detect attacks in their early stages.</li></ul><h3>Shields Up!</h3><p>The era of traditional “perimeter-only” security is over. We must now build a system that constantly monitors every room and corridor of our digital house, asking for a key at every crossing.</p><p><strong>Until the next post; never trust, always verify!</strong></p><p><strong>Reference:</strong> <a href="https://nvlpubs.nist.gov/nistpubs/specialpublications/NIST.SP.800-207.pdf">NIST Special Publication 800–207: Zero Trust Architecture</a></p><p>✨ <strong>Thank you for reading. See you in the next post!</strong> ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6063fd0b7648" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Siber Güvenlikte Kaleleri Yıkmak: Neden “Zero Trust” Konuşuyoruz?]]></title>
            <link>https://medium.com/@busraileri/siber-g%C3%BCvenlikte-kaleleri-y%C4%B1kmak-neden-zero-trust-konu%C5%9Fuyoruz-f46d88dd0b86?source=rss-3d22804a70cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f46d88dd0b86</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[siber-guvenlik]]></category>
            <category><![CDATA[zero-trust-security]]></category>
            <category><![CDATA[zero-trust-architecture]]></category>
            <category><![CDATA[zero-trust]]></category>
            <dc:creator><![CDATA[Büşra İleri]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 20:38:43 GMT</pubDate>
            <atom:updated>2025-12-22T11:15:26.715Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba siber muhafızlar,</p><p>Bu yazıda, at binen kılıç kuşanan ve savunma hattını akıllıca kuranlardan bahsedeceğiz.</p><p>Siber güvenlikte uzun yıllar boyunca “Kale ve Hendek” stratejisini izledik. Güçlü bir güvenlik duvarı ördük, dışarıyı “kötü”, içeriyi ise “güvenilir” kabul ettik. Ancak bugün; hibrit çalışma modelleri ve karmaşık saldırı vektörleri bize tek bir şeyi kanıtladı: <strong>Artık kalelerin surları yıkıldı ve içeride olmak, güvenilir olmak anlamına gelmiyor.</strong></p><p><strong>Zero Trust Architecture (ZTA)</strong> ise tam da bu noktada kalkanlarımızı nasıl yeniden konumlandırmamız gerektiğini anlatıyor.</p><p><strong>Güvenin Bittiği, Doğrulamanın Başladığı Yer: Zero Trust Mimarisi<br></strong>En basit tabiriyle Zero Trust; lokasyonuna bakılmaksızın hiçbir kullanıcıya, cihaza veya sisteme varsayılan olarak güvenmemektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-h4AkrZSyYv2smMmMdAkGA.png" /><figcaption><a href="https://ika.xyz/blog/zero-trust-protocols-ztps">Kale ve hendek tasarımını Sıfır Güven yaklaşımıyla karşılaştırmak</a></figcaption></figure><p>Akademik literatürde (NIST SP 800–207 dokümanına göre) Sıfır Güven Mimarisi, sadece bir araç değil; şu 7 sarsılmaz kural üzerine kurulu bir mimaridir:</p><ol><li><strong>Tüm veri kaynakları ve bilgi işlem hizmetleri kaynak olarak kabul edilir:</strong> (Sadece PC’ler değil, yazıcılar, IoT cihazları ve bulut servisleri de dahil).</li><li><strong>Tüm iletişim, ağ konumuna bakılmaksızın güvenli hale getirilir:</strong> (Kurumsal ağın içinde olmanız bir şey değiştirmez).</li><li><strong>Bireysel kurumsal kaynaklara erişim, her bir oturum (session) bazında verilir:</strong> (Bir kez giriş yapınca her yere erişemezsiniz).</li><li><strong>Kaynaklara erişim dinamik politikalarla belirlenir:</strong> (Kimin, nereden, hangi cihazla ve ne zaman eriştiği sürekli kontrol edilir).</li><li><strong>Kurum, tüm sahip olduğu ve ilişkili olduğu cihazların bütünlüğünü ve güvenlik durumunu izler ve ölçer:</strong> (Cihazın güncel değilse ağa giremezsin).</li><li><strong>Tüm kaynak kimlik doğrulama ve yetkilendirmeleri dinamiktir ve erişime izin verilmeden önce kesinlikle uygulanır:</strong> (Önce doğrula, sonra güven).</li><li><strong>Kurum, varlıkların mevcut durumu, ağ altyapısı ve iletişimler hakkında mümkün olduğunca çok bilgi toplar:</strong> (Yani sürekli loglama ve analiz etme).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fwusoy6nkT2xdKAlSCgvkg.jpeg" /><figcaption><a href="https://nvlpubs.nist.gov/nistpubs/specialpublications/NIST.SP.800-207.pdf">NIST’in Sıfır Güven Mimarisi İlkeleri</a></figcaption></figure><p>Bu 7 teknik prensibi günlük operasyonda 3 ana başlıkta özetleyebiliriz:</p><ul><li><strong>Asla Güvenme, Daima Doğrula (Never Trust, Always Verify):</strong> Lokasyonun veya kimliğin ne olursa olsun, her kapıda kimlik kontrolü var.</li><li><strong>En Az Yetki İlkesi (Least Privilege):</strong> Sadece işini yapman için gereken odaya girebilirsin, diğer odalar sana kapalı.</li><li><strong>İhlali Varsay (Assume Breach):</strong> “Surlar çoktan aşıldı” gibi düşünerek, ağın içindeki en ufak hareketi bile takip et.</li></ul><p><strong>Peki Bu Prensipler Bize Ne Anlatmak İstiyor?<br></strong>Literatür taramalarım sırasında fark ettiğim en kritik nokta şu: <strong>Zero Trust bir ürün (yazılım) değil, bir stratejidir</strong>. Bir firewall satın alarak “Bir yazılım satın alalım ve Zero Trust’a geçelim.” diyemezsiniz; bu, kimlik yönetiminden uç nokta güvenliğine, ağ mikrosegmentasyonundan veri analizine kadar her katmanda süregelen bir süreçtir.<strong><br></strong>Zero Trust uygulanan bir yapıda, samanlıkta iğne aramak yerine samanlığın her köşesine akıllı sensörler ve aşılmaz kilitler koymuş oluruz. Bu bize üç kritik avantaj sağlar:</p><ul><li><strong>Sızma Var Ama Hareket Yok (Lateral Movement):</strong> Geleneksel ağlarda bir saldırgan en zayıf halkayı (örneğin bir stajyerin bilgisayarını) ele geçirdiğinde, ağ içerisinde bir hayalet gibi yatayda ilerleyerek ana sunuculara (Domain Controller gibi) ulaşabilir. Zero Trust ve beraberinde getirdiği <strong>mikro-segmentasyon</strong> sayesinde, saldırgan içeri sızsa bile gidebileceği yerler kısıtlıdır. Her adımda yeniden kimlik doğrulaması gerektiği için saldırganın ağ içindeki “hareket alanı” daraltılmış olur.</li><li><strong>Hasarı Sınırlandırmak (Blast Radius):</strong> Bir ihlal kaçınılmaz olsa bile, bu ihlalin “patlama yarıçapını” yani etki alanını kısıtlarsınız. Saldırı tüm ağa yayılmak yerine, sadece sızılan mikro-segment içerisinde hapsolur. Böylece operasyonun geri kalanı güvenle devam edebilir.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cyDGUBCuzM1xRLUhF3LB7w.jpeg" /><figcaption><a href="https://www.wallarm.com/what/what-is-microsegmentation-guide-by-wallarm">Mikro-segmentasyon ve Saldırı Yayılımı</a></figcaption></figure><ul><li><strong>Görünmez Denetim (Görünürlük):</strong> “Asla Güvenme, Daima Doğrula” kuralı, SOC panellerinde çok daha anlamlı ve takip edilebilir loglar akmasını sağlar. Her erişim isteği bir iz bıraktığı için, saldırılar henüz başlangıç aşamasındayken fark edilme şansı artar.</li></ul><p><strong>Kalkanlar Havaya!</strong><br>Geleneksel güvenliğin “sadece kapıyı kilitleme” devri kapandı. Artık evin her odasını, her koridorunu sürekli izleyen ve her geçişte anahtar soran bir sistem kurmak zorundayız.</p><p>Bir sonraki yazıya kadar <strong>asla güvenmeyin, daima doğrulayın</strong>!</p><p>Referans:<br><a href="https://nvlpubs.nist.gov/nistpubs/specialpublications/NIST.SP.800-207.pdf">NIST Special Publication 800-207: Zero Trust Architecture</a></p><p>✨​<em>Okuduğunuz için teşekkür ederim. Bir sonraki yazıda görüşmek üzere</em>✨​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f46d88dd0b86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React | Props & State]]></title>
            <link>https://medium.com/@busraileri/react-props-state-3cbce6678f0d?source=rss-3d22804a70cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cbce6678f0d</guid>
            <category><![CDATA[react-props]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-state]]></category>
            <dc:creator><![CDATA[Büşra İleri]]></dc:creator>
            <pubDate>Thu, 29 Aug 2024 15:41:38 GMT</pubDate>
            <atom:updated>2024-08-29T18:24:55.302Z</atom:updated>
            <content:encoded><![CDATA[<p>Bu yazıda React’te yaygın olarak kullanılan ‘Props’ (properties) ve ‘State’ yapılarını inceleyeceğiz.</p><p>Öncelikle daha iyi anlamak için gerçek hayattan bir örnekle başlayalım. Bir alışveriş sepeti sayfası var ve bu sayfada ürünler bulunuyor. Her ürün bir kart olarak gösterilir. Kartlar tasarım olarak aynıdır (component), ancak ürün adı, fiyatı ve açıklaması gibi o ürüne ait özellikler (props) farklıdır. Ürün kartına tıklanıldığında ürün sepete eklenir veya çıkarılır. Bu da ürünün sepette olup olmadığını belirleyen bir state’tir.</p><p>O halde:</p><ul><li><strong>Ürün Kartları: Component</strong></li><li><strong>Ürün Bilgileri: Props</strong></li><li><strong>Sepete Ekleme Durumu: State</strong></li></ul><p><strong>Props </strong>aslında bir bileşene (component) dışarıdan verilen verilerdir. Bir bileşen, bu verileri almak için <em>props </em>kullanır ve bu verilere göre bir şeyler render eder ve ekrana yazdırır.</p><p>Yaygın olarak gördüğümüz bir örnekle devam edelim.</p><p>Bir Welcome adlı bileşeniniz var ve bu bileşen bir isim alıp onu ekrana &quot;Hello [isim]&quot; şeklinde yazdırıyor. name=&quot;Büşra&quot; props&#39;u bu bileşene veriliyor ve bileşen bunu kullanarak &quot;Hello Büşra&quot; yazdırıyor.</p><pre>import React from &#39;react&#39;;<br><br>// Fonksiyonel bileşen olarak Welcome<br>function Welcome(props) {<br>  return &lt;h1&gt;Hello {props.name}&lt;/h1&gt;;<br>}<br><br>// Welcome bileşenini kullanarak bir React elementi oluşturma<br>const element = &lt;Welcome name=&quot;Büşra&quot; /&gt;;</pre><p>Props’lar, bir fonksiyona verilen parametrelere benzer. Nasıl bir fonksiyona bir değer verirseniz ve o fonksiyon bu değeri kullanırsa, React’teki bileşenler de props’ları bu şekilde kullanır.</p><p>Genellikle props’lar bir bileşene <strong>üst bileşenden gelir </strong>(parent → child), yani bir bileşen başka bir bileşeni çağırdığında ona props verir. Ancak, her zaman bu şekilde olmak zorunda değil. Eğer bir bileşene props verilmezse, bileşen kendi içinde varsayılan bir değer belirleyebilir. Yine aynı örnekle inceleyelim:</p><pre>import React from &#39;react&#39;;<br><br>// Fonksiyonel bileşen olarak Welcome ve varsayılan props: &quot;world&quot;<br>function Welcome({ name = &quot;world&quot; }) {<br>  return &lt;h1&gt;Hello {name}&lt;/h1&gt;;<br>}<br><br>// Welcome bileşenini kullanarak bir React elementi oluşturma<br>const element = &lt;Welcome /&gt;; // name prop&#39;u verilmediği için varsayılan değer &quot;world&quot; kullanılır</pre><p>Özetle, Props’lar bileşene “üstten” gelir, ve bir kez verildiğinde <strong>değiştirilmezler</strong> (immutable). Bu özellikleri, bileşenlerin tutarlı ve öngörülebilir şekilde çalışmasını sağlar.</p><p><strong>State </strong>bir bileşenin (component) içindeki değerleri saklamanıza ve yönetmenize olanak tanır. Bu değerler zaman içinde değişebilir, güncellenebilir ve React, bu değişiklikleri otomatik olarak bileşeni yeniden render ederek yansıtır. Yani State, React’in bir bileşenin içinden kaydedilen değerleri hatırlamasının bir yoludur.</p><p>State, genellikle bir bileşenin constructor’ında veya fonksiyon bileşenlerinde useState kullanılarak başlatılır.</p><pre>import React, { useState } from &#39;react&#39;;<br><br>function MyComponent()  //fonksiyon bileşeni<br>{<br>  const [count, setCount] = useState(0); // Başlangıç durumu<br>}</pre><p>Bir sınıf bileşeninin constructor’ında state kullanımı:</p><pre>import React from &#39;react&#39;;<br><br>class Counter extends React.Component {<br>  state = { count: 0 }; <br><br>  incrementCount = () =&gt; this.setState({ count: this.state.count + 1 });<br><br>  render() {<br>    return (<br>      &lt;div&gt;<br>        &lt;h1&gt;Count: {this.state.count}&lt;/h1&gt;<br>        &lt;button onClick={this.incrementCount}&gt;Increase&lt;/button&gt;<br>      &lt;/div&gt;<br>    );<br>  }<br>}<br><br>export default Counter;</pre><p>Değişkenin değeri değişmek için <strong>this.setState</strong> kullanarak değişken değerini değiştirebiliyoruz.</p><p>Yukarıdaki örneği bir de asenkron state değişimi kod parçası ile inceleyelim.</p><pre>  const incrementCount = () =&gt; {<br>    // Fonksiyon yapıcı kullanımı<br>    setCount(prevCount =&gt; prevCount + 1);<br>    console.log(count); // Bu log, state güncellenmeden önceki değeri gösterebilir<br>  };</pre><p>useState ile oluşturulan setCount, state&#39;i güncellemek için kullanılan bir fonksiyondur. Bu fonksiyon, state değişimini başlatır ancak bu değişim hemen gerçekleşmeyebilir; güncellemeler bir kuyrukta toplanır ve en uygun zamanda uygulanır.</p><p>setCount(prevCount =&gt; prevCount + 1) ifadesi, bir fonksiyon yapıcı kullanır. Bu fonksiyon, mevcut state değerini (prevCount) alır ve yeni state değerini hesaplar. Bu yöntem, state&#39;in asenkron olarak güncellenmesi durumunda doğru güncellemeleri sağlar.</p><p>Asenkron state güncellemeleri, React’in performansını artırır ve gereksiz yeniden render’ları önler.</p><figure><img alt="Props vs State" src="https://cdn-images-1.medium.com/max/1024/1*d7fLhAWTP_ihETUB4tdjtQ.png" /><figcaption>Props vs State</figcaption></figure><blockquote><strong><em>Bazı önemli notlar:</em></strong></blockquote><p><strong>Kapsülleme (Encapsulation):</strong> State, bileşen içinde kapsüllenmiştir, bu nedenle bileşen kendi verilerini bağımsız olarak takip edebilir.</p><p><strong>Değişkenlik (Mutability):</strong> State değişken olabilir, yani zaman içinde kullanıcı etkileşimleri veya diğer olaylara bağlı olarak değişebilir.</p><p><strong>State is mutable</strong>: State, bileşen içinde tanımlanan ve bileşen tarafından yönetilen verilerdir. State, bileşen içinde değiştirilebilir, yani bileşenin yaşam döngüsü boyunca güncellenebilir ve yeniden render edilebilir.</p><p><strong>Props are immutable</strong>: Props, bir bileşene dışarıdan verilen verilerdir ve bileşen tarafından değiştirilemez. Bir kez verildikten sonra, bileşen bu değerleri yalnızca kullanabilir ama değiştiremez. Salt okunurdur (read-only).</p><p><strong>Yaşam Döngüsü (Lifecycle):</strong> State değişiklikleri bileşenin yeniden render edilmesini tetikler, bu da UI’ın veriyle senkronize kalmasını sağlar.</p><p>Props’u, bir bileşene dışarıdan veri aktarmak ve bu verilerin bileşen tarafından kullanılarak ekranda neyin görüntüleneceğine karar verilmesini sağlamak istediğinizde kullanırsınız. Yani, bir bileşenin sadece aldığı verilerle (props) ne yapacağına karar vermesi gerektiğinde ve bu verilerin bileşenin dışında yönetilmesi gerektiğinde props kullanmak en uygun yaklaşımdır.</p><p>State’i, bir bileşenin kendi içinde bazı değerleri yönetmesi ve bu değerleri hatırlaması gerektiğinde kullanırsınız. Yani, bileşenin içindeki verilerin zamanla değişmesi, güncellenmesi veya hatırlanması gerekiyorsa, state kullanmak en uygun yaklaşımdır. React bileşeni yeniden render edildiğinde, state içerisindeki değerler korunur ve bileşen bu değerlere göre davranışını sürdürebilir.</p><p>✨​<em>Okuduğunuz için teşekkür ederim. Bir sonraki yazıda görüşmek üzere</em>✨​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cbce6678f0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Array Metotları]]></title>
            <link>https://medium.com/@busraileri/javascript-array-metotlar%C4%B1-5813838199b3?source=rss-3d22804a70cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5813838199b3</guid>
            <category><![CDATA[array-methods]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-array-methods]]></category>
            <dc:creator><![CDATA[Büşra İleri]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 10:52:31 GMT</pubDate>
            <atom:updated>2024-08-03T18:43:52.814Z</atom:updated>
            <content:encoded><![CDATA[<p>Dizi (array), bir programlama dilinde birden fazla veriyi sıralı ve indeksli bir koleksiyon halinde tek bir değişkende saklamamızı sağlayan veri yapısıdır. JavaScript, dizi işlemlerini kolaylaştırmak ve daha okunabilir hale getirmek için çeşitli yerleşik metotlar sunar. Bu yazıda sıkça kullanılan; push, pop, unshift, shift, splice, slice, map, find, filter, some, every ve includes metotlarını ve nasıl kullanıldıklarını örnekler üzerinden anlatacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yOuYeH3iP0hjpJvb3pBaw.png" /></figure><blockquote><strong><em>array.push()</em></strong></blockquote><blockquote>push fonksiyonu, bir dizinin sonuna yeni bir eleman ekler ve dizinin yeni uzunluğunu döner.<br> users isminde var olan bir diziye yeni bir eleman ekleyelim:</blockquote><pre>const users = [<br>    { <br>        name: &quot;Ahmet&quot;,<br>        age: 25,<br>    }, <br>    { <br>        name: &quot;Ayşe&quot;,<br>        age: 29,<br>    }, <br>    {<br>        name: &quot;Azra&quot;,<br>        age: 16,<br>    }<br>];<br><br>users.push({ name: &quot;Büşra&quot;, age: 25 });<br>console.log(users);</pre><p>Çıktısı:</p><pre>[<br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Ayşe&#39;,  age: 29 },<br>  { name: &#39;Azra&#39;,  age: 16 },<br>  { name: &#39;Büşra&#39;, age: 25 }<br>]</pre><blockquote><strong><em>array.pop()</em></strong></blockquote><blockquote>pop fonksiyonu, bir dizinin sonundaki elemanı çıkarır ve bu elemanı döner.<br>users dizisinin son elemanını diziden çıkartalım ve bu işlemden sonra dizinin son halini yazdıralım:</blockquote><pre>console.log(users.pop()); <br><br>console.log(users); </pre><p>Çıktısı:</p><pre>[<br>  { name: &#39;Büşra&#39;, age: 25 } <br>]<br><br><br>[ <br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Ayşe&#39;,  age: 29 },<br>  { name: &#39;Azra&#39;,  age: 16 }<br>]</pre><blockquote><strong><em>array.unshift()</em></strong></blockquote><blockquote>unshift fonksiyonu, bir dizinin başına yeni eleman eklemeye yarar.</blockquote><pre>users.unshift({ name: &quot;Selen&quot;, age: 35 });<br><br>console.log(users);</pre><p>Çıktısı:</p><pre>[ <br>  { name: &#39;Selen&#39;, age: 35 },<br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Ayşe&#39;,  age: 29 },<br>  { name: &#39;Azra&#39;,  age: 16 }<br>]</pre><blockquote><strong><em>array.shift()</em></strong></blockquote><blockquote>shift fonksiyonu, bir dizinin başındaki elemanı çıkarır ve bu elemanı döner.</blockquote><pre>console.log(users.shift());<br><br>console.log(users);</pre><p>Çıktısı:</p><pre>{ name: &#39;Selen&#39;, age: 35 }<br><br><br>[<br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Ayşe&#39;, age: 29 },<br>  { name: &#39;Azra&#39;, age: 16 }<br>]</pre><blockquote><strong><em>array.splice()</em></strong></blockquote><blockquote>splice fonksiyonu, bir dizinin belirli bir konumundan eleman eklemeye veya çıkarmaya yarar.</blockquote><pre>/*  1. parametre: başlama indeksi, <br>    2. parametre: kaç eleman çıkarılacağı, <br>    3. ve sonraki parametreler: eklenecek elemanlar<br>*/<br><br>users.splice(1, 1, { name: &quot;Pınar&quot;, age: 22 });<br>console.log(users);</pre><p>Çıktısı:</p><pre>[<br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Pınar&#39;, age: 22 },<br>  { name: &#39;Azra&#39;, age: 16 }<br>]</pre><blockquote><strong><em>array.slice()</em></strong></blockquote><blockquote>slice fonksiyonu, bir dizinin belirli bir bölümünü seçip yeni bir dizi olarak döner. Orijinal dizi değişmeden kalır.</blockquote><pre>console.log(users.slice(1,3)); <br><br>/*   Dizinin 1. indeksinden (dahil) başlayarak 3. indeksine kadar (hariç) <br>     olan elemanları yeni bir dizi olarak döner. */<br><br><br>console.log(users);</pre><p>Çıktısı:</p><pre>//kopyalanan yeni dizi<br>[ <br>{ name: &#39;Pınar&#39;, age: 22 }, <br>{ name: &#39;Azra&#39;, age: 16 } <br>]<br><br>//users dizisi<br>[<br>  { name: &#39;Ahmet&#39;, age: 25 },<br>  { name: &#39;Pınar&#39;, age: 22 },<br>  { name: &#39;Azra&#39;, age: 16 }<br>]</pre><blockquote><strong><em>array.map()</em></strong></blockquote><blockquote>map fonksiyonu, bir dizi üzerinde döngü kurarak her bir eleman için belirtilen işlemi yapar ve diziyi listeler. <strong>For döngüsü ile aynı işlevdedir, fakat döngüde başlangıç ve bitiş değeri belirtmek gerekir. Map ise doğrudan eleman sayısı neyse o sayıda döner.</strong></blockquote><pre>users.map((item) =&gt; {<br>    console.log(item);<br>});</pre><p>Çıktısı:</p><pre>{ name: &#39;Ahmet&#39;, age: 25 }<br>{ name: &#39;Pınar&#39;, age: 22 }<br>{ name: &#39;Azra&#39;,  age: 16 }</pre><blockquote><strong><em>array.find()</em></strong></blockquote><blockquote>find fonksiyonu, dizide belirtilen <strong>koşulu sağlayan ilk elemanı</strong> bulur ve döner.</blockquote><pre>const findMethod = users.find((item) =&gt; item.age &gt; 20);<br>console.log(findMethod);</pre><p>Çıktısı:</p><pre>{ name: &#39;Ahmet&#39;, age: 25 }</pre><blockquote><strong><em>array.filter()</em></strong></blockquote><blockquote>filter fonksiyonu, belirtilen <strong>koşulu sağlayan tüm elemanları </strong>içeren yeni bir dizi döner.</blockquote><pre>const filtered = users.filter(({ age }) =&gt; age &lt; 50);<br>console.log(filtered);</pre><p>Çıktısı:</p><pre>[<br>  { name: &#39;Ahmet&#39;, age: 25},<br>  { name: &#39;Ayşe&#39;,  age: 29},<br>  { name: &#39;Azra&#39;,  age: 16}<br>]</pre><p><strong><em>find() ve filter() metotlarının arasındaki fark; find() koşullara uyan ilk elemanı döndürürken, filter() ise koşullara uyan tüm elemanları döndürür.</em></strong></p><blockquote><strong><em>array.some()</em></strong></blockquote><blockquote>some fonksiyonu, <strong>dizide en az bir elemanın </strong>belirtilen koşulu sağlaması durumunda true, aksi takdirde false döner.</blockquote><pre>const some = users.some((item) =&gt; item.age === 10);<br>console.log(some);<br><br>//sonuç false döner</pre><blockquote><strong><em>array.every()</em></strong></blockquote><blockquote>every fonksiyonu, <strong>dizideki tüm elemanların </strong>belirtilen koşulu sağlaması durumunda true, aksi takdirde false döner.</blockquote><pre>const every = users.every((item) =&gt; item.age &gt; 5);<br>console.log(every);<br><br>//sonuç true döner</pre><blockquote><strong><em>array.includes()</em></strong></blockquote><blockquote>includes fonksiyonu, bir dizide belirtilen elemanın bulunup bulunmadığını kontrol eder ve true veya false döner.</blockquote><pre>const meyveler = [&#39;kiraz&#39;, &#39;portakal&#39;, &#39;muz&#39;];<br>const isIncluded = meyveler.includes(&quot;vişne&quot;);<br>console.log(isIncluded);<br><br>//sonuç false döner</pre><p>✨​<em>Okuduğunuz için teşekkür ederim. Bir sonraki yazıda görüşmek üzere</em>✨​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5813838199b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>