<?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 Birkan Yilmaz on Medium]]></title>
        <description><![CDATA[Stories by Birkan Yilmaz on Medium]]></description>
        <link>https://medium.com/@birkanyilmaz?source=rss-c6cd7d089b1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ztwyHnWgB56hZt2u8IMVlg.jpeg</url>
            <title>Stories by Birkan Yilmaz on Medium</title>
            <link>https://medium.com/@birkanyilmaz?source=rss-c6cd7d089b1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 19:08:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@birkanyilmaz/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[Row Level Security(RLS): Kat Güvenliği]]></title>
            <link>https://medium.com/@birkanyilmaz/row-level-security-rls-kat-g%C3%BCvenli%C4%9Fi-263dd70e4c17?source=rss-c6cd7d089b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/263dd70e4c17</guid>
            <category><![CDATA[veritabanı]]></category>
            <category><![CDATA[database-security]]></category>
            <category><![CDATA[row-level-security]]></category>
            <category><![CDATA[supabase]]></category>
            <dc:creator><![CDATA[Birkan Yilmaz]]></dc:creator>
            <pubDate>Mon, 04 Nov 2024 07:17:18 GMT</pubDate>
            <atom:updated>2024-11-04T07:17:18.924Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUk6STwyVwBVz_PIPhskaA.jpeg" /><figcaption>Photo by: <a href="https://unsplash.com/@bernardhermant">Bernard Hermant</a></figcaption></figure><p>Son zamanlarda üzerinde çalıştığım bi projede (devitiraf) ilk kez <a href="https://supabase.com/">Supabase</a> kullandım. Bu projede hem her kullanıcının erişebileceği public bilgiler olmalı, hem de kullanıcıların yalnızca kendilerinin erişebileceği bilgiler olmalı. Bu yapıyı sağlamaya çalışırken yaşadığım zorluklardan birisini RLS sayesinde aşmayı başardım.</p><h4>RLS Nedir?</h4><p>Veritabanını bir apartman olarak düşünürsek, RLS’i bu apartmanın bekçisi olarak düşünebiliriz. Bu apartmanın her dairesinde (tablo) farklı sakinler (bilgiler) var ama binanın girişinde bir güvenlik kapısı koymazsak herkes bu apartmandaki dairelere erişebilir. Eğer bu güvenlik kapısını (RLS) aktif hale getirirsek, her daireye yalnızca sahipleri erişebilir.</p><h4>Her daire için anahtar tanımlamak: Politika belirlemek</h4><p>Artık güvenlikli bir apartmanda oturuyoruz ama hala dairelerin sahiplerini bilmiyoruz. Bu yüzden apartmana giriş yetkisi olan herkes aynı zamanda her daireye erişebilir. Bunun önüne geçmek için her daireye giriş için özel bir anahtar belirliyoruz.</p><p>Bu noktada RLS içinde politika yazmak devreye giriyor. Her tabloya özel politikalar yazıyoruz, bu sayede A tablosundaki bilgilere erişim iznini verdiğimiz kullanıcılar ulaşabiliyor.</p><h4>Eşsiz Anahtarlar</h4><p>Supabase’deki <em>auth.uid() </em>fonksiyonu her kullanıcının kendine özel anahtarı gibi çalışır. Bu anahtar olmadan kimse kendi verilerine erişemez.</p><p>Örneğin, Ahmet’in kimlik doğrulama kodu yalnızca onun verilerini açarken, Ayşe’nin kodu yalnızca kendi bilgilerine erişim sağlar. Uygulamanızda oturum açan her kullanıcı, <em>auth.uid()</em> sayesinde yalnızca kendisine ait verilere (satırlara) ulaşır. Bu noktada yapılacak bir hata, tüm kullanıcıların birbirlerinin verilerine erişebileceği bi güvenlik sorununa sebep olur.</p><h4>Gerçek Hayat Senaryosu</h4><p>Diyelim ki bir sağlık uygulamamız var ve bu uygulama, kullanıcıların kendi sağlık verilerini (kan testleri, randevu geçmişi, tıbbi geçmiş vb.) saklayabilmesi için tasarlandı. Kullanıcılar kişisel bilgilerini yalnızca kendilerine ait olan verilere erişim izni vererek koruma altına almak istiyor.</p><p>RLS aktifken kullanıcılar yalnızca kendi sağlık verilerine erişebilir. Ahmet sadece kendi kan testlerine ulaşabilirken, Ayşe de sadece kendi randevu geçmişine erişebilir.</p><p>Her kullanıcının verileri için uygun politikalar belirlenir. Bu sayede kan testini okuyacak kullanıcının UID’si kontrol edilir ve eşleşiyorsa bu bilgiye erişmesine izin verilir.</p><pre>CREATE POLICY select_own_blood_tests ON blood_tests<br>FOR INSERT<br>WITH CHECK (auth.uid() = user_id);</pre><h4>Sonuç</h4><p>Devitiraf içerisinde yayımlanan yazıların public şekilde okunabilmesi (erişilebilmesi) gerekirken, onay sürecinde ya da taslak durumundaki yazıların yalnızca bu yazının sahibi tarafından erişilebilmesi gerekiyordu. RLS sayesinde veri gizliliğini sağladım.</p><p>Devitiraf projesinin oluşum aşamalarını elimden geldiğince paylaşmaya gayret ediyorum. Süreci takip etmek ya da varsa önerilerinizi yazmak isterseniz çok mutlu olurum.</p><p>Umarım anlaşılır ve faydalı bir yazı olmuştur. Herkese kolaylıklar :)</p><p><strong>X (twitter): </strong><a href="https://x.com/thisisbirkan">https://x.com/thisisbirkan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=263dd70e4c17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey to Frontend Development After 32]]></title>
            <link>https://medium.com/@birkanyilmaz/my-journey-to-frontend-development-after-32-f9c3754cc501?source=rss-c6cd7d089b1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9c3754cc501</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[success-story]]></category>
            <dc:creator><![CDATA[Birkan Yilmaz]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 07:20:17 GMT</pubDate>
            <atom:updated>2023-06-21T07:20:17.391Z</atom:updated>
            <content:encoded><![CDATA[<h4>Career Shift</h4><figure><img alt="turquoise colored neon text saying “do you what love”" src="https://cdn-images-1.medium.com/max/1024/1*C31IL-84T-n7OtE8ppK7yA.jpeg" /></figure><p>We’ve all watched those TedX videos, read books about finding your true passion. Even we saw that famous saying on facebook countless times:</p><blockquote>“Choose a job you love, and you will never have to work a day in your life.”</blockquote><blockquote>— <strong>Confucius</strong></blockquote><p>Well, I’ve been seeking for that <em>special job</em> for my whole life.</p><h3>My decision to switch careers and pursue frontend development</h3><p>I was studying database programming at a not very good high school and I wasn’t quite happy. My social life wasn’t great during those days, and my future vision was quite blurry. The only positive aspect of my life was photography, which took me out of my tiny room and provided me with the social life I was seeking. Then I thought perhaps this was the missing piece, so I built my career around photography. Having said all that, it took me 10 years to realize that I shouldn’t turn my hobby into my profession.</p><p>So, how did I decide to come back to coding? In this big pile of time, I was still doing extra gigs on Wordpress. Who can say no to extra money, huh? Everything seemed to be fine in terms of money, but in a few projects, WordPress challenged me in terms of performance, customization, and creativity. I know, Wordpress is amazing and it was my own failure. Anyway, then I’ve decided to go back to old-school ways and coded a website with pure HTML and CSS successfully. Damn, I felt like a freaking genius! The way it makes me feel was amazing. After a while, I knew I wanna be good at this, I wanted to do more and more. That was my <em>euroka moment.</em></p><h3>Learning the ropes</h3><p>Obviously, that was only the beginning of my long journey. I had to dive into the land of things I didn’t know: What is variable? How to animate things? How does a button work? To be fully honest, there was lots of concepts I was familiar with but I had no deep knowledge about any of them. So, I’ve started from the core concepts without skipping any of them. I followed many online sources that you might have heard of thousands time.</p><p>I’ve spent a year like this but I was obsessed with CSS rather than Javascript itself. My one and only focus was coding the design flawlessly. If you’re a beginner, you may be asking what’s wrong with that. You’re right! This is one of the things that we should make good as a frontend developer. But this is not 90’s, folks! There’s still a lot more to do.</p><p><em>P.S: </em><a href="https://www.youtube.com/@KevinPowell"><em>Kevin Powell</em></a><em>’s gonna make you feel insufficient all the time, don’t be too hard on yourself. You can’t beat the God.</em></p><p>After I’ve learned all the core concepts of CSS and feeling comfy about coding design, I begin to learn Javascript. I used to think that JavaScript’s purpose was only to animate a few divs and perhaps add a hamburger menu. See? You don’t have to be so clever to be frontend developer. I didn’t have to be.</p><p>I was so lucky to meet bunch of awesome friends on Frontendship discord channel. Within their guidences, I’ve realized that frontend development is way more than “centering a div” cliche. We’re responsible of visualizing the data thanks to Javascript’s magic. Maybe inside of a centered div, but that’s optional.</p><h3>Work smarter, not harder</h3><p>I walked this road as a married guy who has a full-time job. I had limited time to work and had to spend it very wisely. At first, I followed up a wrong strategy. Weekend seemed to be an excellent opportunity to study from 8 to 5. After a few weeks past, I caught myself thinking “damn, I wish today wouldn’t be saturday.”</p><p>This strategy was the least efficient way to study for me. Then I’ve changed it immediately like a true general. From now on, I’m gonna study coding at least 30 mins everyday, I said. I had 30 minutes no matter what. I could sleep 30 mins late even everything would go wrong. Things escalated quickly; that 30 minutes increased up to 1 hour, 2 hours, 3 hours… Suddenly I’ve found myself coding consistently.</p><h3>Breaking points</h3><p>As I mentioned before, this is a really long path. There will always be up and downs. I walked this road as a married guy who’s responsible of working in another job. I felt freaking tired and insufficient lots of times, cause I had to spend my free time with VScode instead of watching movie with my beloving wife.</p><p>In such times, you’ll realize there’s always someone who’s believing you even more than yourself. All you have to do is remembering your goal. In the end, all those sufferings will leave its place to a great happiness.</p><h3>“But time is all it takes”</h3><p>After 2 years of effort, countless of sleepless nights, bunch of projects that no one is going to use in real life and of course a to do list app; I did it. I’ve been working as frontend developer with an amazing team.</p><p>There’s a story titled “How to lose weight in 4 easy steps” written by <a href="https://medium.com/u/23e9b3a06b61">Aaron Bleyaert</a>. I freaking love how it ends. I’ll finish this dumb article with that brilliant text;</p><blockquote>Late one Sunday afternoon you are writing out your rent check and realize it’s been exactly a year since you started working out. You think of all those miles you’ve run and those pounds you’ve lifted and chicken you’ve eaten and puddles you’ve made. It doesn’t seem that bad. You realize that it’s not about hitting a goal weight, or lifting a weight. It’s about being able to wait. Waiting, being patient, and trusting that life will slowly inch along and things will eventually get better. After all, change takes time.</blockquote><blockquote>But time is all it takes.</blockquote><blockquote><strong>— Aaron Bleyaert</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9c3754cc501" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>