<?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[Teknoloji ve Mühendislik Blogu - Medium]]></title>
        <description><![CDATA[Zingat Teknoloji Ekibi olarak tecrübelerimizi paylaştığımız mühendislik bloğu. - Medium]]></description>
        <link>https://medium.com/zingat?source=rss----ef932ede3e75---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Teknoloji ve Mühendislik Blogu - Medium</title>
            <link>https://medium.com/zingat?source=rss----ef932ede3e75---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 20:11:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/zingat" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Apache Airflow ile İş Akışlarınızı Düzenleyin]]></title>
            <link>https://medium.com/zingat/apache-airflow-ile-i%CC%87%C5%9F-ak%C4%B1%C5%9Flar%C4%B1n%C4%B1z%C4%B1-d%C3%BCzenleyin-c50431880c52?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/c50431880c52</guid>
            <category><![CDATA[apache-airflow]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[zingat]]></category>
            <dc:creator><![CDATA[Caglar Keskin]]></dc:creator>
            <pubDate>Tue, 13 Apr 2021 20:49:26 GMT</pubDate>
            <atom:updated>2021-04-13T20:49:26.188Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*en31T2PELEknSlD9" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Airflow’u anlamak için detaylar ve örneklerden önce, klasik olarak ne olduğunun tanımını kısaca yapalım. Airflow, Apache firmasının 2015&#39;te ilk sürümünü yayınladığı, projemizdeki iş akışlarını yazıp, planlayıp, daha sonra da bunları web arayüzü üzerinden izleyebildiğimiz açık kaynaklı bir platformdur. Özellikle data pipelinelarının akışını planlama konusunda öne çıkmaktadır. Python uyumu, açık kaynaklı olması ve kullanışlı web arayüzü Airflow’u özellikle Python projelerinin iş akışlarının düzenlenmesinde öne çıkarmıştır.</p><p>Şimdi olası bir proje senaryosu üzerinden giderek tanımı biraz somutlaştıralım. Örneğin, herhangi bir siteyi crawl ettiğimiz bir projemiz olsun ve aşağıdaki görevleri yapan python dosyalarından oluşsun.</p><p>—<strong> spider.py</strong>: İlgili sitedeki verileri crawl eder ve database’e kaydeder.</p><p>— <strong>read_db.py</strong>: Database’deki verilerin kontrolünü yapar.</p><p>— <strong>db_to_s3.py</strong>: Database’deki verileri AWS S3&#39;e kaydedip cloud entegrasyonunu yapar.</p><p>— <strong>report.py</strong>: AWS S3&#39;teki dosyaları kullanarak gerekli raporları hazırlar.</p><p>Bizim projede istediklerimiz ise sırasıyla:</p><ol><li>spider.py dosyasının her sabah saat 10&#39;da çalışarak siteyi crawl etmesi,</li><li>Crawl işlemi tamamlandıktan sonra read_db.py dosyasının çalışıp veri kontrolü yapması,</li><li>Veri kontrolü bittikten sonra db_to_s3.py dosyasının cloud entegrasyonunu yapması,</li><li>Report.py dosyasının günün raporunu oluşturması,</li><li>Son olarak da ‘logfile.txt’ dosyasına DAG’in başarılı olduğunu belirten log düşmesi.</li></ol><p>Peki bu durumda, bir işlem bittikten sonra diğerinin başlaması ya da bazı dosyaların belirli saatlerde çalışması gibi bize gereken iş akışlarını nasıl sağlayacağız?</p><p>Bunun tek cevabı tabi ki Airflow değil fakat Airflow tam da bu ihtiyaçlara cevap veren kuvvetli bir araç. Şimdi gerekli tanımlarla birlikte, aşama aşama bu akışı Airflow’da oluşturalım.İlk önce kurulumu yapalım (Daha ayrıntılı bilgi için <a href="https://airflow.apache.org/docs/apache-airflow/stable/start/local.html"><strong>döküman</strong></a>):</p><pre>➜ mkdir airflow blog_example<br>➜ cd airflow_blog_example<br>➜ mkdir airflow<br>➜ AIRFLOW_HOME=/Users/caglar/blog_example/airflow<br>➜ pip install apache-airflow<br>➜ airflow db init<br>➜ airflow users create --username admin --firstname caglar \<br>  --lastname keskin --role Admin --email caglar.keskin@zingat.com<br>➜ airflow schedule<br>➜ airflow webserver --port 9090</pre><p>Kurulum işleminin ardından DAG (Directed Acyclic Graph) oluşturmamız gerekiyor. İş akışlarını oluşturduğumuz ana yapılara DAG diyoruz ve task’ler ve operator’ler bu DAG’lerin altında oluşturuluyor. Kısaca yukarıda verilen görevlerin bütününün toplandığı ana çatıya DAG ismini veriyoruz.</p><p>Şimdi altındaki yapıları da içeren, ‘<strong><em>blog_example</em></strong>’ ismiyle bir DAG oluşturup web arayüzündeki çıktısını görelim ve ve satır satır kodu inceleyerek DAG, task ve operator kavramlarına sırasıyla bakalım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1caf7916efe4fd83381b79624d624ae4/href">https://medium.com/media/1caf7916efe4fd83381b79624d624ae4/href</a></iframe><p>Bu DAG’i oluşturup scheduler ve webserver’i yeniden başlattıktan sonra ‘localhost:9090’ portundan girdiğimiz web arayüzünde göreceğimiz sonuç şu şekilde olacaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEhRZWePl8A42iXQqirDVg.png" /></figure><p>DAG’i oluşturmayı ise temel olarak 4 parçada inceleyeceğiz:</p><ol><li>Gerekli kütüphanelerin ve metodların import edilmesi</li><li>DAG’in ve DAG parametrelerinin oluşturulması</li><li>DAG’de kullanılacak task’lerin oluşturulması</li><li>DAG’i oluşturan taskler arasındaki ilişkilerin belirtilmesi</li></ol><p><strong>1) Gerekli kütüphanelerin ve metodların import edilmesi:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b44a7f563fda6b9338d4f9d5078c714/href">https://medium.com/media/2b44a7f563fda6b9338d4f9d5078c714/href</a></iframe><p>Bu kısımda, daha sonra da bahsedeceğimiz task’lerin oluşturulmasında kullanılan operatörler ve DAG class’ı import edilir. İş akışındaki dosyalar ve metodlar da eğer ‘<strong><em>blog_example</em></strong>’ içinde değilse, bunlar da dosyaya çağrılır.</p><p><strong>2) DAG’in ve DAG parametrelerinin oluşturulması:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6eb6cad575515b0cf9b7115658cbb9c/href">https://medium.com/media/f6eb6cad575515b0cf9b7115658cbb9c/href</a></iframe><p>Ardından ise ‘<strong><em>dag</em></strong>’ değişkeninde ‘<strong><em>blog_example</em></strong>’ adında bir DAG oluşturulur ve ‘<strong><em>default_args</em></strong>’ değişkeni içinde gerekli parametreler verilir. (Satır 1–22)</p><p>Bu parametrelerden önemli bazıları:</p><pre><strong>&#39;owner&#39;</strong>: Airflow hesabınızdaki kullanıcı ismi (Ben Airflow taslakları üzerinden DAG&#39;leri oluşturup çalıştırdığım için airflow bilgilerini kullandım)<br><strong>&#39;email&#39;</strong>: Airflow hesabınızdaki kullanıcı maili <br><strong>&#39;email_on_failure&#39;</strong>: Failure durumunda mail isteme. True/False<br><strong>&#39;email_on_retry&#39;</strong>: Retry durumunda mail isteme. True/False<br><strong>&#39;retry_delay&#39;: </strong>Retry durumunda tekrar denemeye başlama süresi</pre><p>‘<strong><em>default_args</em></strong>’ tanımlamasından sonra gerekli paramatrelerle DAG class’ından bir DAG örneği oluşturulur. Burada ‘<strong><em>blog_example</em></strong>’ web arayüzünde görünecek DAG’in adıyken, ‘<strong><em>dag</em></strong>’ değişkeni DAG’i proje içinde çağıracağımız değişkendir.(Satır 23–24)</p><p>DAG oluştururken kullandığımız parametrelerden bazıları ise şöyledir:</p><pre><strong>&#39;default_args&#39;</strong>: &#39;default_args&#39;da tanımladığımız parametreleri DAG&#39;e verdiğimiz parametre<br><strong>&#39;description&#39;</strong>: Web arayüzünde DAG&#39;in yanında göreceğimiz açıklama<br><strong>&#39;schedule_interval&#39;</strong>: DAG&#39;in ne zaman çalışacağını belirlediğimiz kısım<br><strong>&#39;start_date&#39;</strong>: DAG&#39;in ilk çalışmaya başlayacağı zaman</pre><p>‘<strong><em>schedule_interval</em></strong>’ parametresine ayrı bir parantez açacak olursak (Satır 27), bu parametre crontab’lerdeki zaman ifadesi şeklinde yazılır. * * * * * şeklindeki beş bölüm sırasıyla dakika, saat, ay içindeki gün, ay ve haftanın gününü gösterir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wU1s26nE2sipWWrTwFBKYQ.png" /></figure><p>Bizim DAG’imizdeki ‘<strong><em>0 10 * * *</em></strong>’ ifadesi kodun başta planladığımız gibi her sabah 10&#39;da çalışacağını belirtir. * ifadeleri ise o kısmın, ilgili her zaman diliminde çalışacağını belirtir.</p><p>Daha fazlası ve yazdığınız cronların ne zaman çalışacağını görüp deneyebilmek için <a href="https://crontab.guru/"><strong>crontab.guru</strong></a><strong> </strong>sitesini inceleyebilirsiniz.</p><p><strong>3) DAG’de kullanılacak task’lerin oluşturulması:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0b8ab1ec3de6181145915b3bb0ec54c/href">https://medium.com/media/f0b8ab1ec3de6181145915b3bb0ec54c/href</a></iframe><p>Airflow’da operatör dediğimiz yapılar özel bir görevdir. Gerekli argümanları alırlar ve özelleşmiş görevleri yapabilirler. PythonOperator, BashOperator, EmailOperator gibi çeşitleri vardır. (Daha fazlası için <a href="https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/operators/index.html"><strong>doküman</strong></a>)</p><p>Task’ler ise operatörlerin örneklenmiş obje halidir. Bir operatörden örneklenen nesneye task adı verilir ve bu task’ler operatörle birlikte tanımlanmış görevi yapar. Task’ler arasında ilişkiler tanımlanabilir.</p><p>Yukarıdaki kod parçacığında p1, p2, p3, p4 PythonOperator ile b1 ise BashOperator ile oluşturulmuş task’lerdir. p1 task’i üzerinden Python operatöründeki parametreleri incelersek (Satır 1–5):</p><pre><strong>task_id:</strong> Task isminin verildiği parametredir.<br><strong>python_callable: </strong>Task&#39;in hangi Python metodunu çağıracağını belirtir.<br><strong>dag: </strong>Task&#39;in hangi DAG&#39;e bağlı olduğunu belirtir.</pre><p>p1 task’inde ‘<strong><em>spider</em></strong>’ isimli task Python operatörüyle oluşturulmuştur ve spider.py’dan import edilmiş spider metodunu çağırmaktadır.</p><p>Bash operatörünü incelersek (Satır 25–29):</p><pre><strong>task_id: </strong>Task isminin verildiği parametredir.<br><strong>bash_command: </strong>İlgili bash komutunun belirtildiği parametredir.<br><strong>dag: </strong>Task&#39;in hangi DAG&#39;e bağlı olduğunu belirtir.</pre><p>b1 task’indeki ‘<strong><em>log</em></strong>’ isimli task ise Bash operatörüyle oluşturulmuştur ve ‘<strong><em>DAG basarili</em></strong>’ yazısını logfile.txt’ye yazan bash komutunu çalıştırmaktadır.</p><p><strong>4) DAG’i oluşturan taskler arasındaki ilişkilerin belirtilmesi:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e85f281a156d3c1f02412420f7d520/href">https://medium.com/media/84e85f281a156d3c1f02412420f7d520/href</a></iframe><p>Burada ise task’ler arası ilişkiler kurulmuştur. Airflow’da ‘<strong><em>&gt;&gt;</em></strong>’ veya ‘<strong><em>.set_upstream()</em></strong>’ komutlarıyla taskler arasında ilişkiler kurulur. Örneğin kod parçacağındaki kod; sırasıyla p1,p2,p3,p4 ve b1 task’lerinin biri bittiğinde diğerinin başlayacağı bir sıra oluşturur.</p><p>‘<strong><em>&lt;&lt;</em></strong>’ veya ‘<strong><em>.set_downstream()</em></strong>’ komutunda ise görev yönü tam terse döner. Bu şekilde dallanma dahil çeşitli akışlar oluşturulabilir. Örneğin:</p><pre>branch_1 &gt;&gt; true_1 &gt;&gt; join_1<br>branch_1 &gt;&gt; false_1 &gt;&gt; branch_2 &gt;&gt; [true_2, false_2] &gt;&gt; join_2 &gt;&gt; false_3 &gt;&gt; join_1</pre><p>şeklindeki bir yapının ağaç görünümü aşağıdaki gibi olacaktır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rvDRdsU-3reRGUxIfsYG0w.png" /></figure><p>Son olarak ise kendi oluşturduğumuz DAG’in ağaç görünümü web arayüzünde bu şekilde görünecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mzPeNDZZFFhCgSU7kFa3KQ.png" /></figure><p>Son olarak da Airflow web arayüzüne kısaca bakacağız.</p><p>Web arayüzü sayesinde DAG’leri durdurup başlatma, task’leri ve ağaç görünümlerini görebilme, task’lerin başarılı çalıştığının takibi, log takibi gibi bir sürü işlem son derece kolaylaşır.</p><p>Örneğin üstte oluşturduğumuz DAG görünümünde, tasklerimizi ve tarihlere göre tasklerin başarı durumunu görebiliyoruz. Aynı zamanda DAG başlığının yanındaki butonla da DAG’i durdurup başlatabiliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqYDYjqD_1YH0-siyRjdIg.png" /></figure><p>Üstteki ‘<strong><em>DAGs</em></strong>’ kısmında ise bütün DAG’lerin liste görünümü ve task başarı durumları takip edilebilir. Aynı zamanda task’lerin durdurulup başlatılması buradan da kontrol edilebilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0dKlKOCX607tGYuG7IKkA.png" /></figure><p>Üstteki menüde bulunan işlevleri de genel anlamda özetlersek:</p><pre><strong>DAGs</strong>: DAG&#39;lerin özellikleri, grafikleri, logları, kodları gibi özellikler bu kısımda yer alır.</pre><pre><strong>Security</strong>: Burada kişi rolleri ve özellikleri gibi özellikler yönetilir.</pre><pre><strong>Browse</strong>: DAG ve task&#39;lerin başarı durumlarının ve süreçlerinin ayrıntılı görüntülendiği kısımdır.</pre><pre><strong>Admin</strong>: Konfigürasyonlar,bağlantı,plugin ayarları gibi özellikler burdan yönetilir.</pre><pre><strong>Docs</strong>: Airflow dökümanlarının yer aldığı bölümdür. </pre><p>Bu yazıda Airflow hakkında kısa bir özet geçip, Airflow’la proje iş akışlarını yönetme konusunda bir fikir vermeye çalıştım. Daha ayrıntılı bilgiler ve örnekler için Airflow dökümanını inceleyebilirsiniz.</p><p><a href="https://airflow.apache.org/docs/apache-airflow/2.0.1/">https://airflow.apache.org/docs/apache-airflow/2.0.1</a></p><p>Diğer yazılarda görüşmek üzere…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c50431880c52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/apache-airflow-ile-i%CC%87%C5%9F-ak%C4%B1%C5%9Flar%C4%B1n%C4%B1z%C4%B1-d%C3%BCzenleyin-c50431880c52">Apache Airflow ile İş Akışlarınızı Düzenleyin</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DNS Önceliklendirmesinde Modern Tarayıcıların Gücünden Faydalanmak]]></title>
            <link>https://medium.com/zingat/dns-%C3%B6nceliklendirmesinde-modern-taray%C4%B1c%C4%B1lar%C4%B1n-g%C3%BCc%C3%BCnden-faydalanmak-8e3e20a56265?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/8e3e20a56265</guid>
            <category><![CDATA[page-speed]]></category>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[dns-performance]]></category>
            <dc:creator><![CDATA[Serkan Bektaş]]></dc:creator>
            <pubDate>Wed, 08 Apr 2020 13:43:40 GMT</pubDate>
            <atom:updated>2020-04-08T14:53:57.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoTzgco_8ZvohKXJVZqirQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/pKeF6Tt3c08">https://unsplash.com/photos/pKeF6Tt3c08</a></figcaption></figure><p>Performans anlamında yapılması gerekenlerle ilgili bir yazı serisi paylaşmıştım. Bunun için diğer yazdıklarıma da <a href="https://labs.zingat.com/@serkanbektas">buradan</a> göz atabilirsiniz. Orada yazılanlar daha çok yazılım geliştirme süreçleri öncesi, sonrası ve bizzat geliştirme sırasında yapılacaklarla ilgiliydi. Aynı zamanda yazarken de keşfedeceğim birçok şey bilgi olacağı için kendi açımdan tatmin edici bir çıktı olacağını umuyorum. Yazıyı yazarken merak ederek baktığım büyük ölçekli sitelerden bazılarının henüz bu yöntemlere başvurmadığını gördüm.</p><p>Modern tarayıcılar, kullanıcı girişini ve amacını belirlemek için çeşitli tekniklerden faydalanır. Bu teknikler geliştiricilere; ağ oluşturma, işleme ve yorumlama gecikmelerinden bazılarının önleme olanağı sağlar. Ön bağlantılar (<strong>preconnect</strong>), kaynakların önceden getirilmesi (<strong>prefetch</strong>) ve diğer gezinmelere de hazırlık için diğer kaynakların hazırlanmasıdır (<strong>prerender</strong>). Burada alınacak önlemleri belirleme kararını verirken kullanıcının cihaz türü, ağ bağlantısı ve tercihleri gibi bilgilerden faydalanılabilir.</p><p>Yukarıda bahsettiğimiz tarayıcıyla kullanıcı isteği alışverişi öncesinde kullanıcı bilgilerini de kullanarak hangi kaynaklar bağlantılarının ön işleme alınması gerektiğini HTML’de &lt;link&gt; elementini kullanarak belirtiyoruz.</p><p>Basit bir kod örneği vermek gerekirse;</p><pre>&lt;link <em>href</em>=&quot;//www.google-analytics.com&quot; <em>rel</em>=&quot;<strong>preconnect</strong>&quot;/&gt;</pre><p>şeklinde ifade edebiliriz.</p><p>Buradaki ilişkiyi bildirme aşamasında 3 farklı ifade şekli var.</p><p>Birincisi, kaynak bağlantısı bildirme; <strong>dns-prefetch, preconnect, prefetch ve prerender </strong>yardımıyla önceden bağlanılması ya da getirilmesi gereken kaynakları belirtiyoruz.</p><p>İkincisi, <strong>prefetch ve prerender</strong> yardımıyla başlatılan kurgusal getirme işlemi. Diğer bir ifade şekliyle gerçekleşmesini beklediğiniz bir olayla ilgili bağlantıların bildirilmesi işlemidir.</p><p>Üçünçü olarak <strong>preload </strong>tekniğinde kurgudan ziyade ilgili kaynakların tarayıcıya bildirilmesi ve <strong>öncelikli</strong> olarak önceden getirilmesi sağlanır.</p><p>Şimdi bunların ne olduğunu ifade etmeye çalışalım.</p><h4>1 — DNS Prefetch</h4><p>Tarayıcılar web sitesiyle iletişime kurmak için DNS adreslerini kullanır. <strong>DNS prefetch</strong>, sitede kullandığınız bir kaynağın getirilmesini belirtmek için kullanılır. DNS çözümleme, kullanıcının karşı sunucuyla bağlantısındaki <strong>ilk adım</strong>dır.</p><pre>&lt;link <em>href</em>=&quot;//www.googletagservices.com&quot; <em>rel</em>=&quot;<strong>dns-prefetch</strong>&quot;/&gt;<br>&lt;link <em>href</em>=&quot;//www.google-analytics.com&quot; <em>rel</em>=&quot;<strong>dns-prefetch</strong>&quot;/&gt;</pre><p>Bu örnekte, Google Analitik ya da Tag Manager servisine bağlı DNS’i çözmek için <strong>dns-prefetch</strong>’i kullandık. Bu kod sayesinde tarayıcı HTML’i yorumlama aşamasında ilgili DNS bağlantılarının çözülmesini sağlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EpY96RS8Qd6Bme59FTVmtw.png" /></figure><h4>2 — Preconnect</h4><p>DNS-prefetch tekniğine ek olarak TCP anlaşmasının (handshake) ve TLS anlaşmasının (negotiation) yapılmasını sağlar.</p><p><strong>Preconnect</strong> ve <strong>dns-prefetch</strong> arasında birbirini destekleyici bir ilişki bulunmaktadır. Hangisini kullanmanız gerektiğine gelecek olursa, en kritik olan kaynaklar için <strong>preconnect</strong>, geri kalan ihtiyaçlarınızı desteklemek için <strong>dns-prefetch</strong> kullanmalısınız.</p><p>Tarayıcı desteği dikkate alınırsa <strong>dns-prefetch</strong>, <strong>preconnect’</strong>in fallback’i olarak kullanılabilir. Doğru kullanım şekli şu şekildedir:</p><pre>&lt;link <em>href</em>=&quot;//www.google-analytics.com&quot; <em>rel</em>=&quot;<strong>preconnect</strong>&quot;/&gt;<br>&lt;link <em>href</em>=&quot;//www.google-analytics.com&quot; <em>rel</em>=&quot;<strong>dns-prefetch</strong>&quot;/&gt;</pre><p>Ayrıntılı kullanım bilgisi için <a href="https://www.w3.org/TR/resource-hints/#preconnect">w3</a> sitesini ziyaret edebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RspX3x_zf97wEjn0eCEzTA.png" /></figure><h4>3 — Prefetch</h4><p>Sitenizi ziyaret eden kullanıcının ihtiyaç duyabileceği kaynakların tarayıcı tarafından önbelleğe alınmasını istediğinizde <strong>prefetch’</strong>i kullanabilirsiniz. Önbelleğe alınmasını istediğiniz background imajları, sitenin oluşmasında temel etken olan javascript dosyaları ya da custom font’unuza ait dosyalar burada yer alabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EbSwbSl8Z_jFM9k6sU3h1w.png" /></figure><pre>&lt;link <em>href</em>=&quot;sprite.png&quot; <em>rel</em>=&quot;<strong>prefetch</strong>&quot; /&gt;<br>&lt;link href=&quot;custom-font.woff&quot; rel=&quot;<strong>prefetch</strong>&quot; /&gt;</pre><h4>4 — Prerender</h4><p>Prerender, diğer kullanımlara oranla daha geniş değerlendirilebilen tekniktir. Belirtilen URL’deki kaynakların önbelleğe alınmasını, ziyaret edilmesi durumunda kaynakların önbellekten çağırılmasını sağlar.</p><p>Prerender’da geçiş sayfası işlenmez olmaz. Sadece GET istekleri karşılanır ve önbellekte hazırda bekletilir. Bu sebeple bu tekniği kullanırken, <strong>sadece</strong> kullanıcının bir sonra geçeceği sayfadan emin olduğumuz durumlarda bu tekniği kullanmalıyız. Aksi halde gereksiz bant yükü ve kaynak tüketimi yapmış oluruz.</p><p>Kullanımı için örnek vermek gerekirse, adım adım ilerlenen bir sayfada kullanıcı aksiyon almak için bir sonraki adıma geçeceği hesap edilerek prerender tekniğinden faydalanılabilir:</p><pre>&lt;link rel=&quot;prerender&quot; href=&quot;https://example.com/step-2&quot;&gt;</pre><p>Tarayıcı desteği konusunda oldukça yetersiz olsa da Chrome desteği nedeniyle tercih sebebi olabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2A5c_rwug84aIL2EWGjPoQ.png" /></figure><h4>5 — Preload</h4><p>Diğerlerinden farklı olarak preload tekniğinde, tarayıcıya ilgili kaynağın yüklenmesi gerekliliği bildirilir. Bu durumda tarayıcı <strong>page onload</strong> olayını bloklamadan ilgili dosyanın yüklenmesini sağlayacaktır. Fakat burada zorlanan içeriğin window load event’i sırasında kullanılacak kadar kritik olması tarayıcı tarafından beklenen bir durumdur. Aksi halde tarayıcı aşağıdaki uyarıyı verir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNcty9PxLDuo6e-tK9L3qQ.png" /></figure><p>Sıklıkla özel font kullanımlarında preload yönteminden faydalanılmaktadır. Ben de özel font kullanımında <strong>display: swap</strong> tanımının yaygınlaşmasından sonra kullanmaya başladım. Pagespeed skorunuzda özel fontlarla ilgili uyarıcı bir madde varsa preload yöntemiyle durumu düzeltebilirsiniz.</p><p>Yine diğerlerinden farklı olarak kullanımında ilgili belgenin türünü de belirtmek gerekmektedir.</p><pre>&lt;link rel=preload as=script href=...&gt;<br>&lt;link rel=preload as=style href=...&gt;<br>&lt;link rel=preload as=font href=...&gt;<br>&lt;link rel=preload as=image href=...&gt;</pre><p>Bunların haricinde fetch, object, document, track, video gibi yönergeleri de bulunmaktadır.</p><p>Font kullamınına örnek ekleyecek olursak:</p><pre>&lt;link rel=”preload” href=”https://examplecdn.com/<a href="https://d33wubrfki0l68.cloudfront.net/a978f759fa0230c1e590d1bdb5a1c03ceb538cec/fed6b/fonts/elenawebregular/elenawebregular.woff2">open-sans.woff2</a>&quot; as=”font” type=”font/woff2&quot;&gt;</pre><p>Eğer istenen kaynak CORS özellikliyse crossorigin eklemek gerekiyor.</p><pre>&lt;link rel=”preload” href=”https://examplecdn.com/<a href="https://d33wubrfki0l68.cloudfront.net/a978f759fa0230c1e590d1bdb5a1c03ceb538cec/fed6b/fonts/elenawebregular/elenawebregular.woff2">open-sans.woff2</a>&quot; as=”font” type=”font/woff2&quot; <strong>crossorigin</strong>&gt;</pre><p>Onload eventine bağlı bir script de çalıştır, yükleme tamamlandığında ilgili kaynağın sonucuna göre işlem yapabilirsiniz:</p><pre>&lt;script&gt;<br>  <strong>function</strong> <strong>onFinished</strong>(e) { ... }<br>  <strong>function</strong> <strong>onError</strong>(e)  { ... }<br>&lt;/script&gt;<br><br>&lt;link rel=&quot;preload&quot; href=&quot;app.js&quot; as=&quot;script&quot; onload=&quot;<strong>onFinished</strong>()&quot; onerror=&quot;<strong>onError</strong>()&quot;&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqEReOh7H9zn6shL-mArkw.png" /></figure><p><strong>Prefetch, preload</strong> birbirinin benzeri özellikte tekniklerdir. Burada fark tarayıcının önceliklendirmesiyle ortaya çıkıyor. <strong>Preload</strong> mutlak ifade içerir, tarayıcıya ilgili kaynağın yüklenmesini <strong>emrini</strong> verir, işlem sırası <strong>öncelikli</strong>dir. Prefetch ise tarayıcıya önceden getirilecek kaynaklarla ilgili bilgi verirken preload’a göre daha az önceliğe sahiptir.</p><pre>Bana aşağıdaki iletişim adreslerinden ulaşabilirsiniz: <br><strong>Twitter:</strong> <a href="http://twitter.com/serkanbektasim">http://twitter.com/serkanbektasim</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/serkan-bektas-58715536/">https://www.linkedin.com/in/serkan-bektas-58715536/</a><br><strong>Facebook:</strong> <a href="http://facebook.com/serkanbektas">http://facebook.com/serkanbektas</a></pre><h3>Kaynaklar:</h3><p><a href="https://web.dev/preconnect-and-dns-prefetch/">https://web.dev/preconnect-and-dns-prefetch/</a><br><a href="https://stackoverflow.com/questions/47273743/preconnect-vs-dns-prefetch-resource-hints">https://stackoverflow.com/questions/47273743/preconnect-vs-dns-prefetch-resource-hints</a><br><a href="https://csswizardry.com/2013/01/front-end-performance-for-web-designers-and-front-end-developers/#section:dns-prefetching">https://csswizardry.com/2013/01/front-end-performance-for-web-designers-and-front-end-developers/#section:dns-prefetching</a><br><a href="https://www.w3.org/TR/resource-hints/">https://www.w3.org/TR/resource-hints/</a><br><a href="https://responsivedesign.is/articles/prefetch-preconnect-dns-priority/">https://responsivedesign.is/articles/prefetch-preconnect-dns-priority/</a><br><a href="https://www.youtube.com/watch?v=0jB4YWgAxUo">https://www.youtube.com/watch?v=0jB4YWgAxUo</a><br><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content">https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content</a><br><a href="https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/webfont-optimization">https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/webfont-optimization</a><br><a href="https://css-tricks.com/prefetching-preloading-prebrowsing/">https://css-tricks.com/prefetching-preloading-prebrowsing/</a><br><a href="https://www.smashingmagazine.com/2016/02/preload-what-is-it-good-for/">https://www.smashingmagazine.com/2016/02/preload-what-is-it-good-for/</a><br><a href="https://caniuse.com/#search=dns-prefetch">https://caniuse.com/#search=dns-prefetch</a><br><a href="https://caniuse.com/#search=preconnect">https://caniuse.com/#search=preconnect</a><br><a href="https://caniuse.com/#search=prefetch">https://caniuse.com/#search=prefetch</a><br><a href="https://caniuse.com/#search=prerender">https://caniuse.com/#search=prerender</a><br><a href="https://caniuse.com/#search=preload">https://caniuse.com/#search=preload</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e3e20a56265" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/dns-%C3%B6nceliklendirmesinde-modern-taray%C4%B1c%C4%B1lar%C4%B1n-g%C3%BCc%C3%BCnden-faydalanmak-8e3e20a56265">DNS Önceliklendirmesinde Modern Tarayıcıların Gücünden Faydalanmak</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Temelleri: Hoisting]]></title>
            <link>https://medium.com/zingat/javascript-temelleri-hoisting-b6d7e94e6328?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/b6d7e94e6328</guid>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[zingat]]></category>
            <dc:creator><![CDATA[Doğan Öztürk]]></dc:creator>
            <pubDate>Tue, 17 Mar 2020 09:05:38 GMT</pubDate>
            <atom:updated>2020-03-19T09:35:37.847Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ztnMA6Q3Ilhn_I3JmEzaTQ.jpeg" /><figcaption><a href="https://unsplash.com/photos/jM2XuSKrqnQ">https://unsplash.com/photos/jM2XuSKrqnQ</a></figcaption></figure><p>Zingat’ta yazılımcılarla gerçekleştirdiğimiz iş görüşmelerinde sıklıkla karşılaştığımız problemlerden biri adayların kullandıkları dilin temel unsurlarıyla ilişkilerinin bir miktar kopuk olması. Çoğu genç arkadaş güncel web framework’leriyle (React, Vue vs.) yahut JS temelli cross-platform geliştirme ortamlarıyla (React-Native, Ionic vs.) ilgilenmiş oluyor; ancak JavaScript’in hikayesinden ya da dil ve dilin çalıştığı ortamların gerçeklerinden uzak durumdalar.</p><p>Bu konuda hem bir kaynak üretmek, hem de bu minvalde kendi bilgilerimi derleyip toplamak ve biraz da kişisel bir referans noktası oluşturmak adına yeni bir yazı dizisine başlamayı uygun gördüm. Okuduğum, izlediğim kaynaklardan edindiğim bilgileri kendimce düzenli bir biçimde sunmak adına böyle bir serüvene çıkıyorum.</p><p>Burada anlatacaklarım İnternet’te hali hazırda bulabileceğiniz şeyler, Türkçe ve İngilizce bu konularda söylenmiş pek çok şey var. Haliyle uzun süredir JavaScript’le geliştirme yapanlar burada yazılanları zaten biliyor olacaklar; fakat özellikle dili öğrenmeye yeni başlamış yahut dili kullanarak iş geliştirebilen -lakin daha da derinleşmek isteyenler için güzel bir başlangıç noktası olabilir bu yazı dizisi.</p><p>JavaScript motoru bir kod parçacığını çalıştırırken bazı aşamalardan geçirir. Bunları temel olarak:</p><ol><li>Yaratım fazı (<em>creation phase</em>)</li><li>Yürütme fazı (<em>execution phase</em>)</li></ol><p>olarak ifade edebiliriz. Yaratım fazı aşamasında JavaScript motoru bize <em>global</em> objeyi ve <em>this</em> anahtar kelimesini verir. Tarayıcı ortamı için <em>global</em>, <em>window</em> objesidir. <em>this</em> ayrı bir konu, kendisini bilahare inceleyeceğiz. Bunlar, <em>global execution context</em>’in oluşması sonucu elimizde olanlar aslında. Kullandığınız tarayıcıya boş bir .js dosyası verip geliştirici konsolunda <em>global</em> (<em>window</em>) ve <em>this</em> ifadelerini yazdırmayı deneyin, dosyanız boş olmasına rağmen bunlara erişiminiz olduğunu göreceksiniz.</p><p>Yaratım fazında gerçekleşen bir durum daha var. Bu yazının da konusu olan <em>hoisting</em> (yukarı kaldırma/çekme) tam da bu noktada gerçekleşiyor. Aşağıdaki gibi bir kod parçacığımız olsun:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/913667f4a43b96b3e391e11bc4cb0e5b/href">https://medium.com/media/913667f4a43b96b3e391e11bc4cb0e5b/href</a></iframe><p>JavaScript’te diğer birçok programlama dilinden farklı olarak <em>person</em> ve <em>greetPerson</em> değişkenlerinin kodun başında konsola yazılmalarını sağlayan fonksiyonları çağırmak herhangi bir hataya sebep olmaz. Değişken deklarasyonları (<em>variable</em> <em>declaration</em>) ve fonksiyon deklarasyonları (<em>function declaration</em>) <em>hoist</em> edilir. Aşağıdaki gibi bir durum oluştuğunu anlayışımızı kolaylaştırmak adına varsayabiliriz:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4debe086f440e4130dbfb4ac4ee8eaca/href">https://medium.com/media/4debe086f440e4130dbfb4ac4ee8eaca/href</a></iframe><p>Tabii aslında olan bu değil. JavaScript motoru yaratım fazında bütün kod bloğunun üzerinden geçer, <em>global execution context</em> ile varsa <em>function execution context</em>’ler (JavaScript’te her bir fonksiyonun kendi yürütme konteksti bulunur) içerisindeki değişken ve fonksiyon deklarasyonlarını hafızaya (<em>memory</em>) kaydeder.</p><p>Peki böyle bir ihtiyaç neden hasıl olmuş? Benim de bu yazıyı hazırlarken rast geldiğim, Brendan Eich’a ithaf edilen şu cümleyi paylaşmak isterim:</p><blockquote><em>“var hoisting was thus [an] unintended consequence of function hoisting, no block scope, [and] JS as a 1995 rush job.”</em></blockquote><p>Yine dönüp dolaşıp JavaScript’in şahsına münhasır dizaynından kaynaklı bir çıktı gibi duruyor.</p><p><em>Hoisting</em> konusunu anlama gayretimizde dikkat edilecek bazı noktalar var, bunları örnekler üzerinden inceleyelim:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b0ab0f78089e4b5d81cb00c8988185f6/href">https://medium.com/media/b0ab0f78089e4b5d81cb00c8988185f6/href</a></iframe><p>Bu kodu çalıştırdığımızda <em>person</em> değişkeni için yukarıda anlattıklarımız halen geçerli; fakat <em>greetPerson</em> fonksiyon deklarasyonu artık bir <em>IIFE</em> (<em>Immediately Invoked Function Expression</em>). Bu durumda ortada bir deklarasyon yok aslında. Haliyle JavaScript motoru bu kodun üzerinden geçerken <em>hoist</em> edilen sadece <em>person</em> değişkeni olacak.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a022d8df8ef0ea50040942383dc5b5d/href">https://medium.com/media/7a022d8df8ef0ea50040942383dc5b5d/href</a></iframe><p>Şimdi de sadece <em>variable initialization</em> durumunu ele alalım:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8773faabf670f3b969a17248d88483a3/href">https://medium.com/media/8773faabf670f3b969a17248d88483a3/href</a></iframe><p>Kodu çalıştırdığımızda hata alacağız. Başta dediğimiz gibi, sadece deklarasyonlar <em>hoist</em> ediliyor, burada bir deklarasyon durumu mevzu bahis değil.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93fcb54376f73ddfef96c528e523f33b/href">https://medium.com/media/93fcb54376f73ddfef96c528e523f33b/href</a></iframe><p>Benzeri bir durum da fonksiyon ifadeleri (<em>function expression</em>) nezdinde gerçekleşiyor:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc94deaf07300721083aaff5b613614c/href">https://medium.com/media/bc94deaf07300721083aaff5b613614c/href</a></iframe><p>Bu sefer çıktımız aşağıdaki gibi olacak; zira bu fonksiyon ifadesi bu bağlamda bir değişken deklarasyonu olmakta. <em>Hoisting</em>’in çalışma prensibi gereğince de bu bağlamda ele alınmakta.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f67b41a2b267aa8a36f83773e8dca1f/href">https://medium.com/media/0f67b41a2b267aa8a36f83773e8dca1f/href</a></iframe><p>Örneğimizi biraz daha geliştirip bu sefer işin içine <em>function execution context</em>’leri de katalım:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba423b1897f9652b6b0490f6e09323cd/href">https://medium.com/media/ba423b1897f9652b6b0490f6e09323cd/href</a></iframe><p>Dikkat etmemiz gereken nokta <em>greetPerson</em> fonksiyonu içerisinde de aynı <em>global execution context</em> içerisinde olduğu gibi <em>hoisting</em> gerçekleşiyor ve JavaScript motoru var person = &#39;mehmet&#39;; satırını gördüğü anda <em>person</em> değişkeni için hafızada yer arıyor (<em>memory allocation</em>). JavaScript&#39;teki kapsam zinciri (<em>scope chain</em>) işleyişi sonucu <em>person</em> değişkeninin davranışına da dikkatinizi çekmiş olayım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef01d96b9296deae58d5acc8037e9c80/href">https://medium.com/media/ef01d96b9296deae58d5acc8037e9c80/href</a></iframe><p>Bir diğer örnek:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06ce1d77b1aac4d656b310c68d059dd9/href">https://medium.com/media/06ce1d77b1aac4d656b310c68d059dd9/href</a></iframe><p><em>Hoisting</em> gerçekleştiğinde şöyle olacağını varsayabiliriz:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6fe9b0861b20ef19ee4e6369f8f65a29/href">https://medium.com/media/6fe9b0861b20ef19ee4e6369f8f65a29/href</a></iframe><p>Değişken deklarasyonları için şu ana kadar gördüğümüz örneklerden farklı bir şey yok gibi duruyor, peki fonksiyon deklarasyonları için durum ne?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22df55501748e319577a6d1c9609812c/href">https://medium.com/media/22df55501748e319577a6d1c9609812c/href</a></iframe><p>JavaScript motoru ilk <em>greetPerson</em> deklarasyonunu gördüğü anda bunu <em>hoist</em> edecek, ardından ikinci fonksiyon deklarasyonunu görecek ve bunu da aynı şekilde <em>hoist</em> edecek. Hafızadaki <em>greetPerson</em> fonksiyonunun üzerine ikinci fonksiyonu yazacak.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a83b300f722f3ab600fc21d22e836f8/href">https://medium.com/media/4a83b300f722f3ab600fc21d22e836f8/href</a></iframe><p>Son olarak da ECMAScript 2015 ile birlikte hayatımıza giren <em>let</em> ve <em>const</em> anahtar kelimelerinin <em>hoisting</em> durumundaki davranışlarına bakalım:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/395e5f7042ad5315d8fba1da0b2b6dca/href">https://medium.com/media/395e5f7042ad5315d8fba1da0b2b6dca/href</a></iframe><p>Aslında <em>let</em>, <em>const</em>, <em>var</em>, <em>class</em> ve <em>function</em> anahtar kelimeleri <em>hoist</em> ediliyor; fakat <em>initialization</em> aşamasında oluşan farklılıktan dolayı <em>let</em> ve <em>const</em>’un bu şekilde kullanımı <em>ReferenceError</em> oluşmasına yol açıyor. <em>let</em>/ <em>const</em> ile deklare edilen bir değişken ilgili ifade (<em>statement</em>) koşulana kadar başlatılmamış (<em>uninitialized</em>) durumda olurken, <em>var</em> ile deklare edilen bir değişken <em>undefined</em> primitifi ile başlatılmış da oluyor aynı zamanda.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2eeb022efdef2960f0b86e96c50e51cd/href">https://medium.com/media/2eeb022efdef2960f0b86e96c50e51cd/href</a></iframe><p>İlk konsol ifadesini kaldırırsak bu sefer <em>let</em> sebepli aynı hatayı <em>greetPerson</em> fonksiyonunun çalıştırılması dolayısıyla alacağız.</p><p>JavaScript’in temel kavramlarını daha iyi anlamak için çıktığımız bu yolculuğun devamında görüşmek üzere!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6d7e94e6328" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/javascript-temelleri-hoisting-b6d7e94e6328">JavaScript Temelleri: Hoisting</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[17 React Native UI Libraries You Should Know in 2020]]></title>
            <link>https://medium.com/zingat/17-react-native-ui-libraries-you-should-know-in-2020-b133cb342b3a?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/b133cb342b3a</guid>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[ui-library]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Serkan Bektaş]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 15:34:50 GMT</pubDate>
            <atom:updated>2020-05-05T08:33:19.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*keBKz7Il2fuKnXp7DPjNdw.jpeg" /></figure><p>The need to quickly create a website using ready-made frameworks such as Bootstrap, Semantic UI, Foundation, which is one of our habits from web development, is also encountered when developing a mobile application. As someone who has been constantly following developments on React and React Native, but has not published an app on mobile yet, I have searched for quite a few UI component libraries. While watching the courses and applying what I learned, I tried 3–4 libraries even at the beginning. I wanted to share the libraries I took a look while researching on the Internet, so that you can benefit from my experiences. It is a great to look at the ready-made examples and benefit from them in order to save time and not to reconstruct the standards again and again.</p><p>Although Github stars gives preliminary information about resources, sometimes it is misleading. A library needs below features:</p><ul><li>Documentation’s clarity and adequacy,</li><li>How much meets the need,</li><li>How much extra development cost it creates when developing an UI,</li><li>Consistency in code and design system,</li><li>Ease of starting to code quickly</li></ul><p>Even though visual display of code or code preview makes our job easier, this research phase helps us a lot in making decisions.</p><h3>1- React Native Elements</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYiGwZiyWtkvAiAVDYWmbQ.png" /></figure><p>React Native Elements is the most popular React Native UI library at Github with <a href="https://github.com/react-native-elements/react-native-elements/stargazers"><strong>18.2K</strong></a> stars. A beautiful library coded with native javascript, where you can examine and inspect the component structure, especially at the beginner level. It has all the components you will need. As mentioned by the authors, <strong>React Native Elements</strong> is a library that attaches importance to component structure rather than visuality. It is the most comfortable library in terms of usage and customization. Thanks to its descriptive documentation, you can easily create cross-platform applications.</p><pre><strong>Components:</strong><br>Avatar, Badge, Button, ButtonGroup, Card, CheckBox, Divider, Header, Icon, Image, Input, ListItem, Overlay, Pricing, Rating, SearchBar, Slider, SocialIcon, Text, Tile, Tooltip</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/react-native-elements/react-native-elements">https://github.com/react-native-elements/react-native-elements</a></pre><pre><strong>Website:</strong> <a href="https://react-native-elements.github.io/react-native-elements/">https://react-native-elements.github.io/react-native-elements/</a></pre><h3>2- UI Kitten</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUcwf58OUC6Tultg_f5uDg.jpeg" /></figure><p>UI Kitten has <a href="https://github.com/akveo/react-native-ui-kitten/stargazers"><strong>6K</strong></a> stars and especially growing after releasing its 4th version. It is one of the most advanced UI libraries in terms of both presentation and documentation. There is a demonstration application called <a href="https://github.com/akveo/kittenTricks"><strong>KittenTricks</strong></a> and they put many examples in the library. I preferred <strong>UI Kitten</strong> in my own application. You should definitely take a look. Library and the demo application are written in TypeScript.</p><p>UI Kitten has preferred Eva Design System as the main design system, the team added the Material Design option to the new update. It is up to you to choose the design system you want. This flexibility is a nice feature.</p><pre><strong>Components</strong>:</pre><pre><strong>Theme ve Style:</strong> Application Provider, Styled Component, Themed Component<br><strong>Global:</strong> Text, Layout, Card, Menu, List, Icon<br><strong>Navigasyon:</strong> Top Navigation, Bottom Navigation, Drawer, View Pager, Tab View<br><strong>Formlar:</strong> Input, Button, Button Group, CheckBox, Toggle, Radio, Select, Datepicker, Autocomplete<br><strong>Modal &amp; Overlay:</strong> Modal Popover Tooltip Overflow Menu<br>Ekstra: Avatar, Spinner, Calendar</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/akveo/react-native-ui-kitten">https://github.com/akveo/react-native-ui-kitten</a><br><strong>Starter Kit:</strong> <a href="https://github.com/akveo/kittenTricks">https://github.com/akveo/kittenTricks</a></pre><pre><strong>Website:</strong> <a href="https://akveo.github.io/react-native-ui-kitten/">https://akveo.github.io/react-native-ui-kitten/</a></pre><h3>3- React Native Paper</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuUmNueyVekHm_GWJQs4kg.png" /></figure><p><strong>React Native Paper</strong>, which has successfully implemented the Material Design style guide, has <a href="https://github.com/callstack/react-native-paper/stargazers"><strong>5.3K</strong></a> stars on Github. It has cross-platform support with React Native Web, IOS and Android. React Native Paper was created by the Callstack team, who contributed to the code development of React and React Native, and is growing day by day with open source contributing. It has a very descriptive documentation. React Native Paper is one of the most advanced libraries in this case. If you like and want to use Material Design system in your application, React Native Paper is one of the most advanced libraries in this field.</p><pre><strong>Components</strong>:<br>ActivityIndicator, Appbar, Avatar, Badge, Banner, BottomNavigation, Button, Card, Checkbox, Chip, DataTable, Dialog, Divider, Drawer, FAB, HelperText, IconButton, TouchableRipple, List, Menu, Modal, Portal, ProgressBar, RadioButton, Searchbar, Snackbar, Surface, Switch, TextInput, ToggleButton, Text, Subheading, Title, Paragraph, Headline, Caption</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/callstack/react-native-paper">https://github.com/callstack/react-native-paper</a></pre><pre><strong>Website:</strong> <a href="https://reactnativepaper.com/">https://reactnativepaper.com/</a></pre><h3>4- NativeBase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-2X7rBUZUEnZexdcSv7LQ.png" /></figure><p>Developed by a passionate team of React lovers, Native Base is coded according to the Material Design system. NativeBase has a <a href="https://github.com/GeekyAnts/NativeBase/stargazers"><strong>13.5K</strong></a> stars on Github. You can easily customize it with descriptive documentation. They have put their sample applications and ready-to-publish applications on sale at <strong>NativeBase Market</strong>.</p><p>There are preset themes called Platform, Material and CommonColor. <strong>Platform</strong> theme uses settings that match theme of the platform on which the application is running. The Material theme is usable even if it is not exactly compatible with the <strong>Material Design</strong> system. <strong>The CommonColor</strong> theme is a general theme that uses design elements such as color, icon etc. used in most applications.</p><p>NativeBase can be used as a library with many customizable options, although not visually rich and ambitious.</p><pre><strong>Components</strong>:<br>Anatomy, Accordion, ActionSheet, Badge, Button, Card, Check Box, Date Picker, Deck Swiper, FABs, Footer Tabs, Form, Header, Icon, Layout, List, Picker, Radio Button, Search Bar, Segment, Spinner, Swipeable List, Tabs, Thumbnail, Toast, Typography, Drawer, Ref</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/GeekyAnts/NativeBase">https://github.com/GeekyAnts/NativeBase</a><br><strong>Starter Kit:</strong> <a href="https://github.com/start-react/native-starter-kit">https://github.com/start-react/native-starter-kit</a></pre><pre><strong>Website:</strong> <a href="https://nativebase.io/">https://nativebase.io/</a></pre><h3>5- Galio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qkf25LA-rDwipchzBgbVyA.jpeg" /></figure><p>Galio is a UI library that is being currently developed and I follow this development process. In terms of documentation, it is the weakest compared to the top 5 libraries I wrote above. The theme settings can be easily customized, making your job easier. It has <a href="https://github.com/galio-org/galio/stargazers"><strong>1.9K</strong></a> stars on Github.</p><pre><strong>Components</strong>:<br>Accordion, Block, Button, Card, Checkbox, Deck Swiper, Icon, Input, NavBar, Radio, Text, Toast notification, Slider, Switch</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/galio-org/galio">https://github.com/galio-org/galio</a><br><strong>Starter Kit:</strong> <a href="https://github.com/galio-org/galio-starter-kit">https://github.com/galio-org/galio-starter-kit</a></pre><pre><strong>Website:</strong> <a href="https://galio.io/">https://galio.io/</a></pre><h3>6- React Native Ant Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czGmHEVIQUwtkopD-Fqn1g.png" /></figure><p>It is the largest UI library to use in terms of both visual <strong>aestetics</strong> and number of UI components. Many major sites in China (Alibaba, Tencent, Baidu) use the Ant Design framework. Ant Design has a design system like Material Design and it’s so good. It seems a bit complicated to use, but this is because I am not completely used to it yet. It is a very powerful UI library with documentation and stable design system. Although Github has <a href="https://github.com/ant-design/ant-design-mobile-rn/stargazers"><strong>1.6K</strong></a> stars, the main repo Ant Design has also <a href="https://github.com/ant-design/ant-design/stargazers"><strong>55K</strong></a> stars.</p><p>Ant Design has a very <strong>explanatory document</strong> on what and how you should use it with the components it groups in its documentation.</p><pre><strong>Components</strong>:</pre><pre><strong>Layout:</strong> Flex, WingBlank, WhiteSpace<br><strong>Navigation:</strong> Drawer, Popover, Pagination, SegmentedControl, TabBar, Tabs<br><strong>Data Entry:</strong> Button, Checkbox, DatePickerView, DatePicker, ImagePicker, InputItem, PickerView, Picker, Radio, Switch, Stepper, Slider, SearchBar, TextareaItem<br><strong>Data Display:</strong> Accordion, Badge, Carousel, Card, Grid, Icon, ListViewExperimental, List, NoticeBar, Steps, Tag<br><strong>Feedback:</strong> ActionSheet, ActivityIndicator, Modal, Progress, Toast<br><strong>Gesture:</strong> SwipeAction<br><strong>Combination:</strong> Result<br><strong>Other:</strong> Provider</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/ant-design/ant-design-mobile-rn">https://github.com/ant-design/ant-design-mobile-rn</a><br><strong>Starter Kit:</strong> <a href="https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink">https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink</a></pre><pre><strong>Website:</strong> <a href="https://mobile.ant.design/">https://mobile.ant.design/</a></pre><h3>7- RNUILIB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iv9u9E2nfGrUJsOR970NZw.jpeg" /></figure><p>Developed by the Wix team, RNUILIB has <a href="https://github.com/wix/react-native-ui-lib/stargazers"><strong>2.1K</strong></a> stars. It has the richest component structure after Ant Design, which includes animated components as opposed to low Github stars.</p><pre><strong>Components</strong>:<br>ActionBar, ActionSheet, AnimatedImage, AnimatedScanner<br>Avatar, Badge, Button, Card, Carousel, Checkbox, ColorPalette, ColorPicker, ColorSliderGroup, ColorSwatch, ConnectionStatusBar<br>DateTimePicker, Dialog, DialogDismissibleView, Drawer, FeatureHighlight, FloatingButton, GradientSlider, Hint, Image, Incubator.TouchableOpacity, Item, KeyboardAwareListView, KeyboardAwareScrollView, ListItem, MaskedInput, NativePicker, Overlay, PageCarousel, PageControl, PanDismissibleView, PanGestureView, PanListenerView, PanResponderView, PanningProvider, Picker, ProgressBar, RadioButton, RadioGroup, ScrollBar, SharedArea, Slider, SliderGroup, SourceElement, StackAggregator, Stepper, Swipeable, Switch, TabBar, TabController, TagsInput, TargetElement, Text, TextArea, TextField, Toast, TouchableOpacity, View, Wizard, Wizard.Step</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/wix/react-native-ui-lib">https://github.com/wix/react-native-ui-lib</a><br><strong>Starter Kit:</strong> <a href="https://github.com/wix/react-native-ui-lib/tree/master/expoDemo">https://github.com/wix/react-native-ui-lib/tree/master/expoDemo</a></pre><pre><strong>Website:</strong> <a href="https://wix.github.io/react-native-ui-lib/">https://wix.github.io/react-native-ui-lib/</a></pre><h3>8- Shoutem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*aD4Al5CUb7YEKhvsD2cl0w@2x.jpeg" /></figure><p><strong>Shoutem</strong> is one of the powerful UI libraries with <a href="https://github.com/shoutem/ui/stargazers"><strong>4.5K</strong></a> stars. Unlike the others, Shoutem also has a <a href="https://shoutem.github.io/docs/ui-toolkit/theme/introduction">theme</a> and <a href="https://shoutem.github.io/docs/ui-toolkit/animation/introduction">animation</a> component. It gives options to over-customize components. You can dominate almost every element of the component. This allows you to create applications quickly.</p><pre><strong>Components</strong>:<br>Typography, NavigationBar, DropDownMenu, ListView, GridView, Cards, Dividers, Rows, Tiles, Spinner, Buttons, Switch, Image, ImageBackground, ImagePreview, InlineGallery, ImageGallery, Icons, View, Screen, TouchableOpacity, Touchable, Headers, Overlay, TextInput, Video, Lightbox, HTML, SimpleHtml</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/shoutem/ui">https://github.com/shoutem/ui</a><br><strong>Starter Kit:</strong> <a href="https://github.com/shoutem/ui/tree/develop/examples">https://github.com/shoutem/ui/tree/develop/examples</a></pre><pre><strong>Website:</strong> <a href="https://shoutem.github.io/docs/ui-toolkit/introduction">https://shoutem.github.io/docs/ui-toolkit/introduction</a></pre><h3>9- Nachos UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sk_lOkSyOyVUm66Tie3aJQ.png" /></figure><p>Developed by <a href="https://avocode.com/">Avocode</a>, <strong>Nachos UI</strong> has <a href="https://github.com/nachos-ui/nachos-ui/stargazers"><strong>2K</strong></a> stars. Although it basically has many components that are needed, it needs additional development effort on developer side. Therefore, if you like development without much intervention, Nachos UI may not be exactly what you need.</p><pre><strong>Components</strong>:<br>Badge, Bubble, Button, Card, Carousel, Checkbox, Gravatar, Indicator, Input, Progress, Radio, RadioGroup, SegmentedControlButton, Slider, Spinner, Switcher, TabButton, Typography, ThemeManager</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/nachos-ui/nachos-ui">https://github.com/nachos-ui/nachos-ui</a></pre><pre><strong>Website:</strong> <a href="https://avocode.com/nachos-ui">https://avocode.com/nachos-ui</a></pre><h3>10- Salt UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1RYaZKVb9TGtJri3JT51FA.png" /></figure><p><strong>Salt UI</strong> has only <a href="https://github.com/salt-ui/saltui/stargazers"><strong>203</strong></a> stars, it has more components than many libraries. It’s developed by software developers of Alibaba. Although there are some translations in English, documentation is mostly in Chines and that can be a problem for development. Including many components much like Ant Design; it has also advantage of live code previews and customizable component structure. The design system is coded on the basis of UX Core.</p><pre><strong>Components</strong>:</pre><pre><strong>Feedback:</strong> ActionSheet, Dialog, Layer, Popover, Popup, Toast<br><strong>Display:</strong> Avatar, Badge, Calendar, Carousel, Collapse, Datetime, Filter, FoldablePane, Gallery, ImageViewer, InfiniteScroll, List, Mask, Menu, NoticeBar, NumberInfo, NumberPicker, Pagination, Progress, Rate, Refresh Control, ScrollList, ScrollView, Scroller, SearchBar, Skeleton, Slide, Slot, Switch, Tab, Table, Timeline, Totop<br><strong>Layout:</strong> Boxs, Card, Grid, Group<br><strong>General:</strong> Button, Icon<br>Form: CalendarField, CascadeSelectField, CheckboxField, CitySelectField, DatetimeField, EmployeeField, Field, NumberField, PasswordInput, PhotoField, Picker, PickerField, RadioField, RateField, SelectField, Slider, SliderField, SwitchField, TagField, TextField, Textarea, TextareaField<br><strong>Other:</strong> Context, Style<br><strong>Navigation:</strong> Crumb, NavBar, Steps, TabBar</pre><pre><strong>React Native Web Support: ?</strong><br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/salt-ui/saltui">https://github.com/salt-ui/saltui</a></pre><pre><strong>Website:</strong> <a href="https://salt-ui.github.io/">https://salt-ui.github.io/</a></pre><h3>11- React Native IOS Kit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8Y2M4QYJJexNVkjPMXYscg.png" /></figure><p>It is developed in a way by the <a href="https://callstack.com/">Callstack</a> team that developed React Native Paper. RN IOS Kit may be your choice for IOS view. Although it has <a href="https://github.com/callstack/react-native-ios-kit/stargazers"><strong>300</strong></a> stars.</p><pre><strong>Components</strong>:<br>Avatar, Button, Collection, CheckboxRow, GroupedList, Icon, InfoRow, NavigationRow, PageControl, PageControlView, ProgressBar, RowItem, SearchBar, SegmentedControl, Slider, Spinner, Stepper, Switch, SwitchRow, TabBar, TableView, TextField, TextFieldRow, Toolbar, Typography</pre><pre><strong>React Native Web Support: </strong>?<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/callstack/react-native-ios-kit">https://github.com/callstack/react-native-ios-kit</a></pre><pre><strong>Website:</strong> <a href="https://callstack.github.io/react-native-ios-kit/">https://callstack.github.io/react-native-ios-kit</a></pre><h3>12- React Native Material Kit</h3><p>Another Material Design based React Native UI Library. It has <a href="https://github.com/xinthink/react-native-material-kit/stargazers"><strong>4.6K</strong></a> starts. It has basic components, so when developing an application, you may need to develop additional components by writing extra code for your application’s requirement.</p><pre><strong>Components</strong>:<br>Button, Checkbox, IconToggle, IndeterminateProgress, Progress, RadioButton, RadioButtonGroup, RangeSlider, Ripple, Slider, Spinner, Switch, Textfield</pre><pre><strong>React Native Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/xinthink/react-native-material-kit">https://github.com/xinthink/react-native-material-kit</a></pre><pre><strong>Website:</strong> <a href="http://rnmk.xinthink.com/">http://rnmk.xinthink.com/</a></pre><h3>13- React-Virgin</h3><p>It is not a sufficient library for your application, but a very basic kit with a <strong>boilerplate</strong> flavor. You can only know how it is done. It has <a href="https://github.com/Trixieapp/react-virgin/stargazers"><strong>1.5K</strong></a> stars on Github.</p><pre><strong>Components</strong>:<br>Button, Chat Bubble, Pills, Input field, Loader</pre><pre><strong>React Native Web Support: </strong>?<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/Trixieapp/react-virgin">https://github.com/Trixieapp/react-virgin</a></pre><h3>14- React Native Material UI</h3><p>A UI kit based on Material Design. It has <a href="https://github.com/xotahal/react-native-material-ui/stargazers"><strong>3.3K</strong></a> stars. The components prepared in Material Design are quite sufficient. Due to the lack of a UI kit that can meet every need, it can cause a question mark.</p><pre><strong>Components</strong>:<br>Avatar, Badge, Bottom Navigation, Bottom Navigation Action, Button, Card, Checkbox, Dialog, Drawer, Divider, Icon, Icon toggles, List item, Radio button, Snackbar, Subheader, Toolbar</pre><pre><strong>React Native Web Support: ?</strong><br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/xotahal/react-native-material-ui">https://github.com/xotahal/react-native-material-ui</a><br><strong>Demo:</strong> <a href="https://github.com/xotahal/react-native-material-ui/blob/master/docs/Demo.md">https://github.com/xotahal/react-native-material-ui/blob/master/docs/Demo.md</a></pre><pre><strong>Website:</strong> <a href="https://github.com/xotahal/react-native-material-ui">https://github.com/xotahal/react-native-material-ui</a></pre><h3>15- Material React Native (MRN)</h3><p>It has <a href="https://github.com/binggg/mrn/stargazers"><strong>1.7K</strong></a> stars on Github. It was last updated in December 2015. Far behind other libraries.</p><pre><strong>Components</strong>:<br>Avatar, Button, Checkbox, CheckboxGroup, Divider, Icon, IconButton, List, RadioButton, RadioButtonGroup, Ripple, Subheader, Toolbar</pre><pre><strong>React Native Web Support: ?</strong><br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/binggg/mrn">https://github.com/binggg/mrn</a></pre><pre><strong>Website:</strong> <a href="http://mrn.js.org/">http://mrn.js.org/</a></pre><h3>16- Carbon Native</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLV_nPcG-N5Q45uV82ISCA.png" /></figure><p>An alternative UI library when you want to develop applications with the IOS UI Kit. It contains basic components used in IOS. Carbon Native has <a href="https://github.com/carbon-native/carbon-native/stargazers">200</a> stars.</p><pre><strong>Components</strong>:<br>Badge, Buttons, Card, Container, Content, Icons, List, Range, Toggle, Toolbar, Typography</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/carbon-native/carbon-native">https://github.com/carbon-native/carbon-native</a></pre><pre><strong>Website:</strong> <a href="https://getcarbonnative.com/">https://getcarbonnative.com/</a></pre><h3>17- React Native Design System</h3><p>A new library yet. It has <a href="https://github.com/iamshadmirza/react-native-design-system/stargazers"><strong>128</strong></a> stars. If you wish, you can follow it’s development or contribute via Github.</p><pre><strong>Components</strong>:<br>ActionButton, Avatar, Badge, Button, MenuAddButton, Card, CheckBox, CircularProgressBar, FullScreenLoader, Header, Input, Box, Inline, Stack, ListItem, Overlay, RadioButton, SearchBar, Text</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/iamshadmirza/react-native-design-system">https://github.com/iamshadmirza/react-native-design-system</a></pre><h3>✨ Bonus: Updates</h3><h3>18- Zarm</h3><p>Zarm is a new library from China again which has <a href="https://github.com/ZhongAnTech/zarm/stargazers"><strong>236</strong></a> stars. It’s new and developed by ZhongAn Insurance developers. Zarm is suitable for enterprise-level research and development based on React and React-Native as the developers said. I’m not sure about the compatibility as I haven’t tried this library yet.</p><pre><strong>Components</strong>:</pre><pre><strong>Data:</strong> Calendar, Checkbox, DatePicker, FilePicker, Input, Keyboard, Picker, Radio, SearchBar, Slider, Stepper, Switch</pre><pre><strong>Feedback: </strong>ActionSheet, ActivityIndicator, Button, Message, Modal, Pull, SwipeAction, Toast</pre><pre><strong>Data Display:</strong> Badge, Carousel, Cell, Collapse, Icon, Marquee, NoticeBar, Panel, Popper, Progress, Tooltip</pre><pre><strong>Navigation:</strong> NavBar, Popup, TabBar, Tabs</pre><pre><strong>Other:</strong> LocaleProvider</pre><pre><strong>React Native Web Support: ?</strong><br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> ?<br><strong>Language:</strong> TypeScript<br><strong>Github: </strong><a href="https://github.com/ZhongAnTech/zarm">https://github.com/ZhongAnTech/zarm</a><br><strong>Demo:</strong> <a href="https://github.com/ZhongAnTech/zarm/tree/dev/examples-rn">https://github.com/ZhongAnTech/zarm/tree/dev/examples-rn</a></pre><pre><strong>Website:</strong> <a href="https://zarm.design/">https://zarm.design/</a></pre><h3>19- Magnus UI</h3><p>Magnus UI is newborn UI library. It’s utility-first UI library that helps you to building consistent user interfaces effortlessly. It has more customizable modular components which you need. It is worth for following.</p><pre><strong>Components</strong>:</pre><pre><strong>General:</strong> Text, Button, Icon, Image</pre><pre><strong>Layout:</strong> Div</pre><pre><strong>Navigation:</strong> Dropdown, Drawer, Fab</pre><pre><strong>Data Entry:</strong> Checkbox, Input, Radio, Toggle, Select</pre><pre><strong>Data Display:</strong> Avatar, Badge, Tag</pre><pre><strong>Feedback:</strong> Modal, Overlay, Tooltip, Skeleton, Snackbar</pre><pre><strong>React Native Web Support: </strong>Yes<br><strong>Open Source:</strong> Yes<br><strong>Expo Support:</strong> Yes<br><strong>Language:</strong> TypeScript<br><strong>Github: </strong><a href="https://github.com/jsartisan/react-native-magnus">https://github.com/jsartisan/react-native-magnus</a><br><strong>Example:</strong> <a href="https://magnus-ui.com/docs/examples/">https://magnus-ui.com/docs/examples/</a></pre><pre><strong>Website: </strong><a href="https://magnus-ui.com/">https://magnus-ui.com/</a></pre><h3>Conclusion</h3><p>I made a review about which UI libraries you can use before you started developing mobile applications. The key factor that will help you make a decision here is how much it benefits you with time and how little problem it will cause you in the future.</p><ul><li>For a beginner, React Native Elements can be a great library. By reviewing the components of <a href="https://github.com/react-native-elements/react-native-elements"><strong>React Native Elements</strong></a>, you can learn how components work in React Native.</li><li>If you are more experienced developer on React Native, <a href="https://github.com/akveo/react-native-ui-kitten"><strong>UI Kitten</strong></a> can be a good choice for you.</li><li>If you have more time to spend examine look at <a href="https://github.com/ant-design/ant-design-mobile-rn"><strong>Ant Design</strong></a></li><li><a href="https://salt-ui.github.io/"><strong>Salt UI</strong></a>, which has similar features with Ant Design and which I discovered while writing this article, is also among the libraries that should be examined.</li></ul><p>Discovering all these libraries was a source of great satisfaction for me.</p><pre>You can follow me at:</pre><pre><strong>Twitter:</strong> <a href="http://twitter.com/serkanbektasim">http://twitter.com/serkanbektasim</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/serkan-bektas-58715536/">https://www.linkedin.com/in/serkan-bektas-58715536/</a></pre><h3>Sources:</h3><p>1- <a href="https://flatlogic.com/blog/top-react-native-ui-components-kits/">https://flatlogic.com/blog/top-react-native-ui-components-kits/</a><br>2- <a href="https://blog.bitsrc.io/11-react-native-component-libraries-you-should-know-in-2018-71d2a8e33312">https://blog.bitsrc.io/11-react-native-component-libraries-you-should-know-in-2018-71d2a8e33312</a><br>3- <a href="https://bashooka.com/coding/react-native-ui-libraries/">https://bashooka.com/coding/react-native-ui-libraries/</a><br>4- <a href="https://www.codeinwp.com/blog/react-native-component-libraries/">https://www.codeinwp.com/blog/react-native-component-libraries/</a><br>5- <a href="https://instabug.com/blog/react-native-ui-libraries/">https://instabug.com/blog/react-native-ui-libraries/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b133cb342b3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/17-react-native-ui-libraries-you-should-know-in-2020-b133cb342b3a">17 React Native UI Libraries You Should Know in 2020</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native UI Bileşen Kütüphaneleri]]></title>
            <link>https://medium.com/zingat/react-native-ui-bile%C5%9Fen-k%C3%BCt%C3%BCphaneleri-e95b0af356ad?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/e95b0af356ad</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[uikit]]></category>
            <category><![CDATA[component-libraries]]></category>
            <dc:creator><![CDATA[Serkan Bektaş]]></dc:creator>
            <pubDate>Tue, 10 Mar 2020 14:34:56 GMT</pubDate>
            <atom:updated>2020-03-11T07:18:00.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EiCpTzmgn2fFR8pMYcDP8Q.jpeg" /><figcaption><a href="https://unsplash.com/photos/p-xSl33Wxyc">https://unsplash.com/photos/p-xSl33Wxyc</a></figcaption></figure><p>You can read English version from the link below if you want.</p><p><a href="https://labs.zingat.com/17-react-native-ui-libraries-you-should-know-in-2020-b133cb342b3a">17 React Native UI Libraries You Should Know in 2020</a></p><p>Webden alışkanlığımız olan Bootstrap, Semantic UI, Foundation gibi hazır çatıları kullanarak hızlıca web sitesi oluşturma ihtiyacı, mobil uygulama geliştirirken de karşımıza çıkıyor. React ve React Native tarafındaki gelişmeleri sürekli takip eden fakat henüz mobilde bir uygulamayı yayımlamamış biri olarak epeyce UI bileşen (component) kütüphanelerini araştırdım. Bir yandan kurs izleyip bir yandan da öğrendiklerimi uygularken, daha uygulamanın başında 3–4 farklı kütüphane değiştirdim. İnternette araştırma yaparken elde ettiğim kütüphaneleri sizlerin de faydalanabilmesi için paylaşma ihtiyacı hissettim. Gerek zamandan tasarruf, gerekse standart olan yapılmışları yeniden yapmamak için hazır örneklere bakıp, onlardan faydalanmanızda büyük yarar var.</p><p>Bazen yanıltıcı olmakla birlikte <strong>Github yıldızı</strong> kaynaklar hakkında ön bilgi verse de bu gibi kütüphaneleri incelerken özellikle;</p><ul><li>Dokümantasyonun açıklayıcılığına ve yeterliliğine,</li><li>İhtiyacı ne kadar karşıladığına,</li><li>UI geliştirirken ne kadar ekstra kod maliyeti gerektirdiğine,</li><li>Kod ve dizayn sistemindeki tutarlılığa,</li><li>Hızlıca kod yazabilme kolaylığına</li></ul><p>dikkat ettim ve bu gözle sizlere aktarmaya çalıştım. Kodun görsel ya da kod önizlemesiyle sergilenmesi işimizi kolaylaştırırken, araştırma aşamasında karar vermekte de fazlasıyla yardımcı oluyor.</p><h3>1- React Native Elements</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYiGwZiyWtkvAiAVDYWmbQ.png" /></figure><p>React Native Elements bu yazıyı yazılırken <a href="https://github.com/react-native-elements/react-native-elements/stargazers"><strong>18.2K</strong></a> yıldızla <a href="https://github.com/">Github</a>’ta en popüler React Native kütüphanesi. Native javascript ile kodlanmış, özellikle başlangıç seviyesinde component yapısını inceleyebileceğiniz, ilham alabileceğiniz güzel bir kütüphane. Bileşen bazında bir eksiği yok. Yazarlarının bahsettiği üzere React Native Elements, <strong>görsellikten çok bileşen yapısı</strong>na önem veren bir kütüphanedir. Kullanım ve özelleştirme bakımından en rahat yapıya sahip kütüphanedir. Açıklayıcı dokümantasyonu sayesinde kolayca cross-platform uygulamaları oluşturabilirsiniz.</p><pre><strong>Sahip Olduğu Bileşenler:</strong><br>Avatar, Badge, Button, ButtonGroup, Card, CheckBox, Divider, Header, Icon, Image, Input, ListItem, Overlay, Pricing, Rating, SearchBar, Slider, SocialIcon, Text, Tile, Tooltip</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/react-native-elements/react-native-elements">https://github.com/react-native-elements/react-native-elements</a></pre><pre><strong>Site:</strong> <a href="https://react-native-elements.github.io/react-native-elements/">https://react-native-elements.github.io/react-native-elements/</a></pre><h3>2- UI Kitten</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUcwf58OUC6Tultg_f5uDg.jpeg" /></figure><p>Yaklaşık <a href="https://github.com/akveo/react-native-ui-kitten/stargazers"><strong>6K</strong></a> yıldıza ve özellikle 4. versiyonunu yayımladıktan sonra çıkışa geçen UI kütüphanesi. Gerek sunum, gerek dokümantasyon açısından en gelişmiş UI kütüphanelerinden. <a href="https://github.com/akveo/kittenTricks"><strong>KittenTricks</strong></a> adını verdikleri ve kütüphane içerisindeki birçok örneği sundukları gösteri uygulaması mevcut. Kendi yaptığım uygulamada UI Kitten’ı tercih ettim. Mutlaka göz atmalısınız. Halihazırda kütüphane ve demo uygulamasındaki ekranlar TypeScript ile yazılmış durumda.</p><p>UI Kitten’da tasarım sistemi olarak <a href="https://eva.design/">Eva Design System</a>’i tercih eden ekip, yeni güncellemeye Material Design seçeneğini de ekledi. Dilediğiniz tasarım düzenini seçmek sizin elinizde. Bu esneklik, güzel bir özellik.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:</pre><pre><strong>Tema ve Stillendirme:</strong> Application Provider, Styled Component, Themed Component<br><strong>Global:</strong> Text, Layout, Card, Menu, List, Icon<br><strong>Navigasyon:</strong> Top Navigation, Bottom Navigation, Drawer, View Pager, Tab View<br><strong>Formlar:</strong> Input, Button, Button Group, CheckBox, Toggle, Radio, Select, Datepicker, Autocomplete<br><strong>Modal &amp; Overlay:</strong> Modal Popover Tooltip Overflow Menu<br>Ekstra: Avatar, Spinner, Calendar</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/akveo/react-native-ui-kitten">https://github.com/akveo/react-native-ui-kitten</a><br><strong>Starter Kit:</strong> <a href="https://github.com/akveo/kittenTricks">https://github.com/akveo/kittenTricks</a></pre><pre><strong>Site:</strong> <a href="https://akveo.github.io/react-native-ui-kitten/">https://akveo.github.io/react-native-ui-kitten/</a></pre><h3>3- React Native Paper</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuUmNueyVekHm_GWJQs4kg.png" /></figure><p>Material Design stil rehberini başarılı şekilde uygulayan React Native Paper, Github’ta <a href="https://github.com/callstack/react-native-paper/stargazers"><strong>5.3K</strong></a> yıldıza sahip. Cross-platform desteğiyle React Native Web, IOS ve Android desteği bulunuyor. RN Paper, React ve React Native’in kod gelişimine katkıda bulunan Callstack ekibi tarafından oluşturuldu ve Open Source sayesinde gün geçtikçe büyüyen kütüphanelerden. Gayet açıklayıcı bir dokümantasyona sahip. Material Design çizgisini seviyor ve uygulama arayüzünüzde MD esintisini hissettirmek istiyorsanız React Native Paper, bu alanda en gelişmiş kütüphanelerden.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>ActivityIndicator, Appbar, Avatar, Badge, Banner, BottomNavigation, Button, Card, Checkbox, Chip, DataTable, Dialog, Divider, Drawer, FAB, HelperText, IconButton, TouchableRipple, List, Menu, Modal, Portal, ProgressBar, RadioButton, Searchbar, Snackbar, Surface, Switch, TextInput, ToggleButton, Text, Subheading, Title, Paragraph, Headline, Caption</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/callstack/react-native-paper">https://github.com/callstack/react-native-paper</a></pre><pre><strong>Site:</strong> <a href="https://reactnativepaper.com/">https://reactnativepaper.com/</a></pre><h3>4- NativeBase</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v-2X7rBUZUEnZexdcSv7LQ.png" /></figure><p>Kendi söylemleriyle React seven tutkulu bir ekibin geliştirdiği Native Base, Material Design sistemine göre kodlanmış. Github’ta <a href="https://github.com/GeekyAnts/NativeBase/stargazers"><strong>13.5K</strong></a> yıldıza sahip bu arayüz çatısında, açıklayıcı dokümantasyon sayesinde kolayca kişiselleştirebiliyorsunuz. Örnek uygulamaları ve yayına hazır uygulamaları <a href="https://market.nativebase.io/">NativeBase Market</a> adresinde satışa çıkarmış durumdalar.</p><p><strong>Platform</strong>, <strong>Material</strong> ve <strong>CommonColor</strong> adını verdikleri önayarlı temaları mevcut. <strong>Platform </strong>teması, uygulamanın çalıştığı platformun temasıyla eşleşen ayarları kullanır. <strong>Material</strong> teması, tam olarak Material Design sisteme uyumlu olmasa da kullanılabilir durumda. <strong>CommonColor </strong>teması, çoğu uygulamalarda kullanılan renk, ikon vs. gibi tasarım ögelerinin kullanıldığı genel bir temadır.</p><p>NativeBase, görsel bakımdan çok zengin ve iddialı olmasa da fazlasıyla özelleştirilebilme seçeneklerine sahip bir çatı olarak kullanılabilir.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Anatomy, Accordion, ActionSheet, Badge, Button, Card, Check Box, Date Picker, Deck Swiper, FABs, Footer Tabs, Form, Header, Icon, Layout, List, Picker, Radio Button, Search Bar, Segment, Spinner, Swipeable List, Tabs, Thumbnail, Toast, Typography, Drawer, Ref</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/GeekyAnts/NativeBase">https://github.com/GeekyAnts/NativeBase</a><br><strong>Starter Kit:</strong> <a href="https://github.com/start-react/native-starter-kit">https://github.com/start-react/native-starter-kit</a></pre><pre><strong>Site:</strong> <a href="https://nativebase.io/">https://nativebase.io/</a></pre><h3>5- Galio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qkf25LA-rDwipchzBgbVyA.jpeg" /></figure><p>Galio, gelişmekte olan ve takip ettiğim bir çatı. Dokümantasyonu bakımından, yukarıda yazdığım ilk 5 çatıya göre en zayıf olanı. Tema ayarları kolayca kişiselleştirilebilir olması işinizi kolaylaştırabilir. Github’ta <a href="https://github.com/galio-org/galio/stargazers"><strong>1.9K</strong></a> yıldıza sahip.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Accordion, Block, Button, Card, Checkbox, Deck Swiper, Icon, Input, NavBar, Radio, Text, Toast notification, Slider, Switch</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/galio-org/galio">https://github.com/galio-org/galio</a><br><strong>Starter Kit:</strong> <a href="https://github.com/galio-org/galio-starter-kit">https://github.com/galio-org/galio-starter-kit</a></pre><pre><strong>Site:</strong> <a href="https://galio.io/">https://galio.io/</a></pre><h3>6- React Native Ant Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czGmHEVIQUwtkopD-Fqn1g.png" /></figure><p>Gerek görsellik, gerek doluluk bakımından kullanımı en geniş çatı. Birçok Çinli büyük site (Alibaba, tencent, baidu), Ant Design çatısını kullanıyor. Ant Design, Çinlilerin Material Design’ı gibi bir yapıya sahip. Bana kullanımı biraz karışık geldi ama bu tamamen henüz alışamadığımdan olsa gerek. Gerek dokümantasyon, gerekse kararlı tasarım sistemiyle çok güçlü bir çatıya sahip. Github’ta <a href="https://github.com/ant-design/ant-design-mobile-rn/stargazers"><strong>1.6K</strong></a> yıldıza sahip olsa da ana çatı Ant Design’ın <a href="https://github.com/ant-design/ant-design/stargazers"><strong>55K</strong></a> yıldızı bulunuyor.</p><p>Ant Design, dokümantasyonunda gruplandırdığı bileşenlerle neyi nasıl kullanmanız gerektiği konusunda fazlasıyla açıklayıcı bir dokümana sahip.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:</pre><pre><strong>Layout:</strong> Flex, WingBlank, WhiteSpace<br><strong>Navigation:</strong> Drawer, Popover, Pagination, SegmentedControl, TabBar, Tabs<br><strong>Data Entry:</strong> Button, Checkbox, DatePickerView, DatePicker, ImagePicker, InputItem, PickerView, Picker, Radio, Switch, Stepper, Slider, SearchBar, TextareaItem<br><strong>Data Display:</strong> Accordion, Badge, Carousel, Card, Grid, Icon, ListViewExperimental, List, NoticeBar, Steps, Tag<br><strong>Feedback:</strong> ActionSheet, ActivityIndicator, Modal, Progress, Toast<br><strong>Gesture:</strong> SwipeAction<br><strong>Combination:</strong> Result<br><strong>Other:</strong> Provider</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> TypeScript<br><strong>Github:</strong> <a href="https://github.com/ant-design/ant-design-mobile-rn">https://github.com/ant-design/ant-design-mobile-rn</a><br><strong>Starter Kit:</strong> <a href="https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink">https://github.com/ant-design/ant-design-mobile-rn/tree/master/rn-kitchen-sink</a></pre><pre><strong>Site:</strong> <a href="https://mobile.ant.design/">https://mobile.ant.design/</a></pre><h3>7- RNUILIB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iv9u9E2nfGrUJsOR970NZw.jpeg" /></figure><p>Wix ekibinin geliştirdiği RNUILIB <a href="https://github.com/wix/react-native-ui-lib/stargazers"><strong>2.1K</strong></a> yıldıza sahip. <strong>Düşük yıldızın aksine</strong> animasyonlu bileşenleri de içerisinde barındıran Ant Design’dan sonra en zengin bileşen yapısına sahip.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>ActionBar, ActionSheet, AnimatedImage, AnimatedScanner<br>Avatar, Badge, Button, Card, Carousel, Checkbox, ColorPalette, ColorPicker, ColorSliderGroup, ColorSwatch, ConnectionStatusBar<br>DateTimePicker, Dialog, DialogDismissibleView, Drawer, FeatureHighlight, FloatingButton, GradientSlider, Hint, Image, Incubator.TouchableOpacity, Item, KeyboardAwareListView, KeyboardAwareScrollView, ListItem, MaskedInput, NativePicker, Overlay, PageCarousel, PageControl, PanDismissibleView, PanGestureView, PanListenerView, PanResponderView, PanningProvider, Picker, ProgressBar, RadioButton, RadioGroup, ScrollBar, SharedArea, Slider, SliderGroup, SourceElement, StackAggregator, Stepper, Swipeable, Switch, TabBar, TabController, TagsInput, TargetElement, Text, TextArea, TextField, Toast, TouchableOpacity, View, Wizard, Wizard.Step</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/wix/react-native-ui-lib">https://github.com/wix/react-native-ui-lib</a><br><strong>Starter Kit:</strong> <a href="https://github.com/wix/react-native-ui-lib/tree/master/expoDemo">https://github.com/wix/react-native-ui-lib/tree/master/expoDemo</a></pre><pre><strong>Site:</strong> <a href="https://wix.github.io/react-native-ui-lib/">https://wix.github.io/react-native-ui-lib/</a></pre><h3>8- Shoutem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*aD4Al5CUb7YEKhvsD2cl0w@2x.jpeg" /></figure><p>Github’ta <a href="https://github.com/shoutem/ui/stargazers"><strong>4.5K</strong></a> yıldıza sahip güçlü çatılardan biri Shoutem. UI Kit, diğerlerinden farklı olarak, <a href="https://shoutem.github.io/docs/ui-toolkit/theme/introduction">tema</a> ve <a href="https://shoutem.github.io/docs/ui-toolkit/animation/introduction">animasyon</a> bileşenine de sahip. Bileşenlerde fazlasıyla özelleştirme seçeneğine sahip. Neredeyse bileşenin her elemanına hükmedebiliyorsunuz. Bu da size hızlı bir şekilde uygulama oluşturma imkanı sağlıyor.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Typography, NavigationBar, DropDownMenu, ListView, GridView, Cards, Dividers, Rows, Tiles, Spinner, Buttons, Switch, Image, ImageBackground, ImagePreview, InlineGallery, ImageGallery, Icons, View, Screen, TouchableOpacity, Touchable, Headers, Overlay, TextInput, Video, Lightbox, HTML, SimpleHtml</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/shoutem/ui">https://github.com/shoutem/ui</a><br><strong>Starter Kit:</strong> <a href="https://github.com/shoutem/ui/tree/develop/examples">https://github.com/shoutem/ui/tree/develop/examples</a></pre><pre><strong>Site:</strong> <a href="https://shoutem.github.io/docs/ui-toolkit/introduction">https://shoutem.github.io/docs/ui-toolkit/introduction</a></pre><h3>9- Nachos UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sk_lOkSyOyVUm66Tie3aJQ.png" /></figure><p>Avocode tarafından geliştirilen Nachos UI, Github’ta 2K yıldızmaya sahip. Temelde ihtiyaç olan birçok bileşene sahip olsa da bazı ihtiyaçları tamamlama konusunda ek geliştirmelere sahip. Dolayısıyla çok fazla müdahale etmeden uygulama geliştirme taraftarıysanız Nachos UI, bu haliyle tam olarak ihtiyacınız karşılamayabilir.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Badge, Bubble, Button, Card, Carousel, Checkbox, Gravatar, Indicator, Input, Progress, Radio, RadioGroup, SegmentedControlButton, Slider, Spinner, Switcher, TabButton, Typography, ThemeManager</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/nachos-ui/nachos-ui">https://github.com/nachos-ui/nachos-ui</a></pre><pre><strong>Site:</strong> <a href="https://avocode.com/nachos-ui">https://avocode.com/nachos-ui</a></pre><h3>10- Salt UI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1RYaZKVb9TGtJri3JT51FA.png" /></figure><p>Github’ta <a href="https://github.com/salt-ui/saltui/stargazers"><strong>203</strong></a> yıldızı olsa da birçok kütüphaneden zengin. Alibaba’nın yazılım geliştiricileri tarafından geliştirilmeye devam ediyor. Yer yer İngilizce çeviriler olsa da dokümantasyonun Çince olması dışında nerdeyse hiçbir kusuru yok. Ant Design benzeri birçok bileşeni barındırması, kod önizlemesi, özeleştirilebilir bileşen yapısı önemli artılarından. Design sistem <a href="http://uxco.re/">UX Core</a> baz alınarak kodlanmış.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:</pre><pre><strong>Feedback:</strong> ActionSheet, Dialog, Layer, Popover, Popup, Toast<br><strong>Display:</strong> Avatar, Badge, Calendar, Carousel, Collapse, Datetime, Filter, FoldablePane, Gallery, ImageViewer, InfiniteScroll, List, Mask, Menu, NoticeBar, NumberInfo, NumberPicker, Pagination, Progress, Rate, Refresh Control, ScrollList, ScrollView, Scroller, SearchBar, Skeleton, Slide, Slot, Switch, Tab, Table, Timeline, Totop<br><strong>Layout:</strong> Boxs, Card, Grid, Group<br><strong>General:</strong> Button, Icon<br>Form: CalendarField, CascadeSelectField, CheckboxField, CitySelectField, DatetimeField, EmployeeField, Field, NumberField, PasswordInput, PhotoField, Picker, PickerField, RadioField, RateField, SelectField, Slider, SliderField, SwitchField, TagField, TextField, Textarea, TextareaField<br><strong>Other:</strong> Context, Style<br><strong>Navigation:</strong> Crumb, NavBar, Steps, TabBar</pre><pre><strong>React Native Web Desteği: ?</strong><br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/salt-ui/saltui">https://github.com/salt-ui/saltui</a></pre><pre><strong>Site:</strong> <a href="https://salt-ui.github.io/">https://salt-ui.github.io/</a></pre><h3>11- React Native IOS Kit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8Y2M4QYJJexNVkjPMXYscg.png" /></figure><p>React Native Paper’ı geliştiren Callstack ekibi tarafından Open Source şekilde geliştiriliyor. IOS görüntüsü vererek uygulama geliştirmek isterseniz RN IOS Kit tercihiniz olabilir. Github’ta henüz 300 yıldıza sahip olsa da geliştirilen</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Avatar, Button, Collection, CheckboxRow, GroupedList, Icon, InfoRow, NavigationRow, PageControl, PageControlView, ProgressBar, RowItem, SearchBar, SegmentedControl, Slider, Spinner, Stepper, Switch, SwitchRow, TabBar, TableView, TextField, TextFieldRow, Toolbar, Typography</pre><pre><strong>React Native Web Desteği: </strong>?<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/callstack/react-native-ios-kit">https://github.com/callstack/react-native-ios-kit</a></pre><pre><strong>Site:</strong> <a href="https://callstack.github.io/react-native-ios-kit/">https://callstack.github.io/react-native-ios-kit/</a><br></pre><h3>12- React Native Material Kit</h3><p>Material Design’ın React Native’e uyarlanmış hali. Github’ta <a href="https://github.com/xinthink/react-native-material-kit/stargazers"><strong>4.6K</strong></a> yıldıza sahip. Temel bileşenlere sahip, dolayısıyla uygulama geliştirirken uygulamanız için gerekli ihtiyaçları karşılamakta ekstra kod yazarak bileşen geliştirmeniz gerekebilir.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Button, Checkbox, IconToggle, IndeterminateProgress, Progress, RadioButton, RadioButtonGroup, RangeSlider, Ripple, Slider, Spinner, Switch, Textfield</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/xinthink/react-native-material-kit">https://github.com/xinthink/react-native-material-kit</a></pre><h3>13- React-Virgin</h3><p>Uygulamanıza katkı verebilecek bir çatı değil, <strong>boilerplate</strong> tadında çok temelde kalmış bir kit. Uygulamanıza katkı sağlamanın çok uzağında, sadece nasıl yapıldığı konusunda bilgi sahibi olabilirsiniz. Github’ta <a href="https://github.com/Trixieapp/react-virgin/stargazers"><strong>1.5K</strong></a> yıldıza sahip.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Button, Chat Bubble, Pills, Input field, Loader</pre><pre><strong>React Native Web Desteği: </strong>?<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/Trixieapp/react-virgin">https://github.com/Trixieapp/react-virgin</a></pre><h3>14- React Native Material UI</h3><p>Material Design temelinde hazırlanmış bir UI kit. Github’ta <a href="https://github.com/xotahal/react-native-material-ui/stargazers"><strong>3.3K</strong></a> yıldıza sahip. Son güncelleme Nisan 2019 olması soru işareti olsa da MD temelinde hazırlanan bileşenler gayet yeterli. Her ihtiyacı karşılayabilecek bir UI kit olmaması nedeniyle soru işaretine sebep olabilir.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Avatar, Badge, Bottom Navigation, Bottom Navigation Action, Button, Card, Checkbox, Dialog, Drawer, Divider, Icon, Icon toggles, List item, Radio button, Snackbar, Subheader, Toolbar</pre><pre><strong>React Native Web Desteği: ?</strong><br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github:</strong> <a href="https://github.com/xotahal/react-native-material-ui">https://github.com/xotahal/react-native-material-ui</a><br><strong>Demo:</strong> <a href="https://github.com/xotahal/react-native-material-ui/blob/master/docs/Demo.md">https://github.com/xotahal/react-native-material-ui/blob/master/docs/Demo.md</a></pre><pre><strong>Site:</strong> <a href="https://github.com/xotahal/react-native-material-ui">https://github.com/xotahal/react-native-material-ui</a></pre><h3>15- Material React Native (MRN)</h3><p>Github’ta <a href="https://github.com/binggg/mrn/stargazers">1.7K</a> yıldıza sahip. En son Aralık 2015&#39;te güncellenmiş. Muadillerine göre çok geride.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Avatar, Button, Checkbox, CheckboxGroup, Divider, Icon, IconButton, List, RadioButton, RadioButtonGroup, Ripple, Subheader, Toolbar</pre><pre><strong>React Native Web Desteği: ?</strong><br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> ?<br><strong>Dil:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/binggg/mrn">https://github.com/binggg/mrn</a></pre><pre><strong>Site:</strong> <a href="http://mrn.js.org/">http://mrn.js.org/</a></pre><h3>16- Carbon Native</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLV_nPcG-N5Q45uV82ISCA.png" /></figure><p>IOS UI Kit ile uygulama geliştirmek istediğinizde alternatif bir UI kütüphanesi. İçerisinde IOS’ta kullanılan temel bileşenler mevcut.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>Badge, Buttons, Card, Container, Content, Icons, List, Range, Toggle, Toolbar, Typography</pre><pre><strong>React Native Web Desteği: </strong>Var<br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/carbon-native/carbon-native">https://github.com/carbon-native/carbon-native</a></pre><pre><strong>Site:</strong> <a href="https://getcarbonnative.com/">https://getcarbonnative.com/</a></pre><h3>17- React Native Design System</h3><p>Henüz yeni bir kütüphane. Dilerseniz gelişimini takip edebilir veya Github üzerinden katkıda bulunabilirsiniz.</p><pre><strong>Sahip Olduğu Bileşenler</strong>:<br>ActionButton, Avatar, Badge, Button, MenuAddButton, Card, CheckBox, CircularProgressBar, FullScreenLoader, Header, Input, Box, Inline, Stack, ListItem, Overlay, RadioButton, SearchBar, Text</pre><pre><strong>React Native Web Desteği: Var</strong><br><strong>Open Source:</strong> Evet<br><strong>Expo Desteği:</strong> Var<br><strong>Dil:</strong> Javascript<br><strong>Github: </strong><a href="https://github.com/iamshadmirza/react-native-design-system">https://github.com/iamshadmirza/react-native-design-system</a></pre><h3>Sonuç</h3><p>Mobil uygulama geliştirmeye başlamadan önce hangi UI kütüphanelerinden faydalanabileceğiniz konusunda bir derleme yaptım. Burda karar vermenize yardımcı olacak temel etken, size zaman konusunda ne kadar fayda sağlayıcılığı ve ileride size ne kadar az problem çıkartacağıyla ilgili. Yeni başlayan biri için <a href="https://github.com/react-native-elements/react-native-elements"><strong>React Native Elements</strong></a> gayet iyi bir kütüphane olabilir. React Native Elements’in bileşenlerini inceleyerek, React Native’de bileşenlerin nasıl çalıştığıyla ilgili bilgi sahibi olabilirsiniz. Biraz ileri seviyede biri <a href="https://github.com/akveo/react-native-ui-kitten"><strong>UI Kitten</strong></a> ile hızlı bir şekilde ihtiyacı karşılayabilir. Zamanı olan birinin mutlaka <a href="https://github.com/ant-design/ant-design-mobile-rn"><strong>Ant Design</strong></a>’ı incelemesinde fayda var. Ant Design ile benzer özelliklerde olan ve bu yazıyı yazarken keşfettiğim <a href="https://salt-ui.github.io/"><strong>Salt UI</strong></a> da incelenmesi gereken kütüphanelerden. Yazı yazarken daha önce görmediğim kütüphanelere ulaşmış olmak ise beni en çok tatmin eden şey oldu.</p><pre>Bana aşağıdaki iletişim adreslerinden ulaşabilirsiniz: </pre><pre><strong>Twitter:</strong> <a href="http://twitter.com/serkanbektasim">http://twitter.com/serkanbektasim</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/serkan-bektas-58715536/">https://www.linkedin.com/in/serkan-bektas-58715536/</a><br><strong>Facebook:</strong> <a href="http://facebook.com/serkanbektas">http://facebook.com/serkanbektas</a></pre><h3>Kaynaklar:</h3><p>1- <a href="https://flatlogic.com/blog/top-react-native-ui-components-kits/">https://flatlogic.com/blog/top-react-native-ui-components-kits/</a><br>2- <a href="https://blog.bitsrc.io/11-react-native-component-libraries-you-should-know-in-2018-71d2a8e33312">https://blog.bitsrc.io/11-react-native-component-libraries-you-should-know-in-2018-71d2a8e33312</a><br>3- <a href="https://bashooka.com/coding/react-native-ui-libraries/">https://bashooka.com/coding/react-native-ui-libraries/</a><br>4- <a href="https://www.codeinwp.com/blog/react-native-component-libraries/">https://www.codeinwp.com/blog/react-native-component-libraries/</a><br>5- <a href="https://instabug.com/blog/react-native-ui-libraries/">https://instabug.com/blog/react-native-ui-libraries/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e95b0af356ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/react-native-ui-bile%C5%9Fen-k%C3%BCt%C3%BCphaneleri-e95b0af356ad">React Native UI Bileşen Kütüphaneleri</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decorator’leri Express.js Temel Konseptleri Üzerinden Anlamak]]></title>
            <link>https://medium.com/zingat/decoratorleri-express-js-temel-konseptleri-%C3%BCzerinden-anlamak-dc8c3e59a5d1?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/dc8c3e59a5d1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[decorators]]></category>
            <dc:creator><![CDATA[Doğan Öztürk]]></dc:creator>
            <pubDate>Thu, 02 Jan 2020 09:53:43 GMT</pubDate>
            <atom:updated>2020-01-02T14:46:41.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eh1ju0aZiQP5Q6UJ-KdevQ.jpeg" /></figure><p>ES6 ya da diğer adıyla ES2015, 17 Haziran 2015&#39;te standart haline geldi. Öncesinde ve tabii o günden bu yana asıl adıyla ECMAScript, yaygın kullandığımız haliyle JavaScript, Web’in gittikçe artan ihtiyaçlarına cevap vermeye çalışıyor. Her sene dilin özüne yeni konseptler ve yapılar ekleniyor. Bunlar, özleri itibariyle, JS tabanlı uygulamalar yazan bizler için işimizi daha da kolay yapmamızı sağlayacak, ölçeklendirilebilir ve yönetimi, bakımı ve geliştirilmesi daha rahat olacak kod temelleri oluşturmamızı sağlayan yenilikler.</p><p>Bu yazıda ele almak istediğim konu da aslında böyle bir <em>ekleme. Ecma International, Technical Committee 39,</em> ECMAScript dilinin kurallarını belirleyen, her sene dile eklenecek özelliklerin bünyesinde planlandığı, üyelerinin önerilerini sundukları, bunların tartışıldığı ve uygun bulunup üzerinde uzlaşmaya varılan özelliklerin standart altına alındığı bir kurul. Bu yazıda değineceğim Decorator’ler de şu anda <em>stage 2</em> aşamasında olan yeni bir konsept. Tabii yeni dediğime bakmayın, diğer birçok dilde benzer işlevleri gerçekleştiren yapılar var, JS dünyası için yeni diyelim. Güncel önerileri ve bulundukları aşamaları şuradan inceleyebilirsiniz:</p><p><a href="https://github.com/tc39/proposals">https://github.com/tc39/proposals</a>.</p><p>Decorator’ler JavaScript’e ES6 ile eklenen <em>Class</em> sentaksı üzerine yeni metaprogramming becerileri getiren, aslında temelinde daha okunabilir, işlevsel, bakımı ve yönetimi kolay soyutlamalar oluşturmamıza olanak sağlayacak bir dil özelliği. <em>Metaprogramming</em> bir bilgisayar programının başka bir programı yahut kendisini okuması, oluşturması, analiz etmesi ya da değiştirmesi anlamında kullanılan bir programlama tekniği. Bu bağlamda pratik olarak decorator’lerin JS’teki kullanımı ile nesne yönelimli bir programlama tasavvurunu daha da güçlü biçimde hayata geçirmemiz olanaklı hale geliyor.</p><p>Bunca sözün ardından daha pratik bir yaklaşım ile temel olarak bazı decorator tiplerinin örneklemleri üzerinden basit bir Node.js / Express.js MVC uygulaması örneği yazacağız ve buradaki Controller, Middleware, Router gibi temel Express.js kavramları ile bunları bağdaştıracağız.</p><p>Açıkçası anlatmaya başlayacağım bu örneğe benzer/yakın başka çalışmalar decorator’lerin pratik kullanımı açısından benim için ufuk açıcı oldu. Özellikle Node.js ve Express.js (yahut Koa, Fastify gibi diğer Node.js microframework’leri) özelinde uygulama geliştirme imkanınız olduysa buradaki yaklaşım sizler için de decorator’leri anlaşılır kılacaktır.</p><p>Başlangıç uygulamamız temel TypeScript boilerplate’i üzerine çok basit bir Express.js örneği:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9589563d4eebe06c295c6ab5870368c/href">https://medium.com/media/b9589563d4eebe06c295c6ab5870368c/href</a></iframe><p>Görüldüğü üzere iki controller’ımız var. Bunlar /user path&#39;inde GET ve POST isteklerini karşılıyorlar.</p><p>Kodumuz şu anki haliyle TypeScript uyumlu, çalıştırdığınızda TypeScript compiler’ı hata vermeyecektir; ancak tabii TypeScript kullanıyorsak kodumuzun daha az prosedürel, daha fazla OOP özellikleri taşımasını istiyor olmalıyız. Haliyle aklımıza şöyle bir API üzerinden controller’ı dizayn etmek ve yönetmek gelebilir:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/59d64de8eb9aaf8d4a50dfd75c2b9ece/href">https://medium.com/media/59d64de8eb9aaf8d4a50dfd75c2b9ece/href</a></iframe><p>Günün sonunda ulaşmak istediğimiz kod yazım şekli bu olsun diyelim. Örnekte dikkatinizi çektiğini tahmin ettiğim @Controller, @Get, @Post ve @Middleware decorator&#39;leri yer almakta. İşte bu decorator&#39;leri oluşturarak bir TypeScript class&#39;ına controller vazifesi yüklüyor olacağız. Class içerisinde tanımladığımız metodları da yine çeşitli decorator&#39;ler ile request handler olarak atayacağız. Benzer şekilde @Middleware decorator factory&#39;si ile request controller&#39;a ulaşmadan onu istediğimiz middleware&#39;lerden seçtiğimiz sıra ile geçirebileceğiz.</p><p>Decorator factory’ler invoke edildiklerinde decorator dönen fonksiyonlar basitçe. Bu örnekte kullandığımız tüm yapılar birer decorator factory. Çeşitli parametreler alıyorlar ya da alabilir durumdalar ve sonuçta UserController class’ını ve bu class’a ait metodları manipüle etmemizi sağlayan decorator’leri dönüyorlar. TypeScript’te beş çeşit decorator var: class, method, accessor, property ve parameter decorator’leri. Bu yazıda class ve method örneklerini inceliyor olacağız.</p><p>Controller’a ait metodların birer request handler olmasını sağlayan decorator’ümüzle başlayalım:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eed949399931b260c16609ebee0431d4/href">https://medium.com/media/eed949399931b260c16609ebee0431d4/href</a></iframe><p>Aslında yaptığı son derece basit: Tüm HTTP metodları için teker teker yazmaktansa günün sonunda kullanacağımız decorator factory’yi dönen createRouteMethod adında bir fonksiyonumuz var. &#39;get&#39;, &#39;post&#39; gibi bir string değer alıyor aslında, TypeScript dünyasında olduğumuz için bu parametreleri bir enum üzerinden yönetme şansımız var. Decorator factory&#39;nin kendisi bir path parametresi alıyor, &#39;/user&#39; path&#39;ine GET request&#39;i yapılıyor gibi düşünebilirsiniz, ve decorator&#39;ün kendisini dönüyor nihayetinde. Decorator fonksiyonunun içerisinde de dışarıdan aldığımız path ve hangi HTTP metodunu karşıladığımızı gösteren method parametrelerini daha sonra kullanmak üzere metadata olarak saklıyoruz</p><p>Request handler bazlı middleware yapısını kullanmamızı sağlayan decorator emsalimiz ise şu şekilde:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f7ae48b8715a7ee34eff3d988235f3e6/href">https://medium.com/media/f7ae48b8715a7ee34eff3d988235f3e6/href</a></iframe><p>Bu decorator factory’ye de istediğimiz middleware fonksiyonlarını (klasik middleware fonksiyonları olarak düşünün bunları) bir Array olarak veriyoruz ve nihayetinde yine metadata olarak bu Array’i saklıyoruz.</p><p>Sakladığımız bu bilgiyi runtime’ın başında UserController class’ımızın işleyip kurduğumuz mimarinin çalışmasını sağlayacak ana unsur ise @Controller decorator’ü:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93bb5d8d57a75236fe09ffec06584834/href">https://medium.com/media/93bb5d8d57a75236fe09ffec06584834/href</a></iframe><p>Burada UserController class’ına tanımladığımız tüm metodları dönüyor ve herbiri için eğer varsa tanımlı metadata’yı dışarı çıkarıp istediğimiz tanımlamaları singleton olarak tasarladığımız router’ımız yardımıyla yapıyoruz. Burada dinamik olarak yaptığımız şey aşağıdaki çıktıyı oluşturuyor:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/55c8a5b65293c8d79f8790b02f430a64/href">https://medium.com/media/55c8a5b65293c8d79f8790b02f430a64/href</a></iframe><p>İfade etmeye çalıştığım yapının benzerleri ve çok daha profesyonelce hazırlanmış, kullanılabilir halleri için <a href="https://nestjs.com/">Nest.js</a>, <a href="https://tsed.io/">Ts.ED</a> gibi popüler projeleri inceleyebilirsiniz.</p><p>Bu yazıda kodlarını kullandığım projeye <a href="https://github.com/doganozturk/express-typescript-decorators">https://github.com/doganozturk/express-typescript-decorators</a> adresi üzerinden ulaşabilir, inceleyebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc8c3e59a5d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/decoratorleri-express-js-temel-konseptleri-%C3%BCzerinden-anlamak-dc8c3e59a5d1">Decorator’leri Express.js Temel Konseptleri Üzerinden Anlamak</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Custom Properties (Variables) ile Ögeleri Kontrol Etmek]]></title>
            <link>https://medium.com/zingat/css-custom-properties-variables-ile-%C3%B6geleri-kontrol-etmek-aa2ae868e770?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/aa2ae868e770</guid>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[css-variables]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Serkan Bektaş]]></dc:creator>
            <pubDate>Thu, 07 Nov 2019 14:12:39 GMT</pubDate>
            <atom:updated>2019-11-08T06:25:58.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUT_xy7st66SbYrMJalHaA.jpeg" /><figcaption>Unsplash, <a href="https://unsplash.com/@jantined">@jantined</a></figcaption></figure><h3>Tarihçesi</h3><p>Çokça konuşulup çokça dile getirilse de bir türlü gerçekleşmeyen bir özellikti <strong>CSS Custom Properties</strong>. 2012 yıllarında ortaya atılıp, 2014 yılında güncellenerek Firefox ve Chrome tarafından güncel tarayıcılarda uygulamaya konuldu. 2015 yılında tüm dünyada kullanım yüzdesi %9 olan, 2016&#39;da Chrome, Safari, Opera ve Android browser desteğiyle %69&#39;lara kadar yükseldi.(²)</p><p>An itibariyle %93&#39;lük kullanım oranına sahip bir özelliktir. (³)</p><h3>CSS Custom Properties (Variables) Nedir?</h3><p><strong>CSS Variables</strong> olarak da kullanılan ama kullanım yerleri ve işlevi açısından değişkenlerden ayrıldığı için <strong>CSS Custom Properties</strong> kullanımı daha doğru bir kullanım olmaktadır.</p><p>Yazılım süreçlerinde değişkeni, tekrar eden bir değeri birden fazla yerde kullanarak kontrolünü kolaylaştırmak ve istediğimiz yerde güncel haliyle değere erişmek için kullanırız. Backend yazılımlarında çok önceden beridir yaygın bir şekilde kullanılan bu özelliği, arayüz kodlarken yakın bir geçmişe kadar SASS, Less ve Stylus gibi <strong>önişlemciler</strong> (preprocessor) sayesinde kullanabildik. Yukarıda bahsettiğim gibi günümüzde yaygın bir kullanıma sahip olan bu özelliği artık arayüzde de kullanabiliriz. Bu yazıda <strong>CSS Variables</strong> tanımı ve kullanımından çok küçük ipuçlarıyla daha az css kodu yazmanın yolunu arayacağız. <strong>CSS Variables</strong> kullanımıyla ilgili bilgiyi <a href="https://twitter.com/fatihhayri">Fatih Hayrioğlu</a>’nun <a href="https://fatihhayrioglu.com/css-degiskenleri-custom-properties/">yazısı</a>nda ve <a href="https://twitter.com/_busramemis">Büşra Memiş</a>’in <a href="https://medium.com/@busramemis/csste-de%C4%9Fi%C5%9Fken-tan%C4%B1mlama-49f15b57f588">yazısı</a>nda bulabilirsiniz.</p><h3>Nasıl Kullanıyoruz?</h3><p>CSS değişkenlerini scope içerisinde tanımlayabildiğimiz gibi global olarak da tanımlayabiliyoruz.</p><p>Global olarak tanımladıklarımıza istediğimiz yerde ulaşabiliyoruz. Scope içerisine yazılan ise sadece ilgili scope’ta kullanılabiliyor.</p><pre><strong>/* Global Tanım */</strong><br>:root {<br>  --color: red;<br>}</pre><pre><strong>/* Scope Tanımı */</strong><br>.myClass {<br>   --color: blue;<br>}</pre><p>Gördüğünüz gibi gayet kolay bir kullanımı var.</p><p>Özelliği kullanmak istediğiniz <strong>var(--color) </strong>tanımıyla özelliği kullanabiliyorsunuz. Küçük bir örnekle ifade edersek:</p><pre>.myClass{<br>   --color: red;<br>   background-color: var(--color);<br>}</pre><p>Çoklu özellik kullanımında değişkenin yanına özellik iliştirmek isterseniz tanımı çağırdığınız anda bunu tanımlayabiliyorsunuz:</p><pre><strong><em>// var(--variableName, variable)</em></strong></pre><pre>--div-font: &quot;Georgia&quot;;</pre><pre>.myClass {<br>   font-family: var(--div-font, &quot;Arial&quot;, serif);<br>}</pre><p>Tarayıcı bunu şu şekilde yorumlayacaktır:</p><pre>.myClass {<br>   font-family: &quot;Georgia&quot;, &quot;Arial&quot;, serif;<br>}</pre><blockquote>Genel kullanım itibariyle temel <strong>tasarım rehberi</strong> (styleguide) ögeleri (button durumları, bildirim kutuları, varsayılan font büyüklüğü vs.) için ilgili değişkenler globalde tanımlanır.</blockquote><h3>Neden Kullanıyoruz?</h3><p>CSS’i daha dinamikleştirdiği için kullanışlı. Aynı zamanda JS ile güncelleme, <a href="https://twitter.com/serkanbektasim/status/1186928221381648390">özellik tanımlama</a> gibi artıları da mevcut. CSS değişkenlerini kullanarak daha az kod ile daha optimize kod yazmak mümkün.</p><p>Daha düşük boyutlu çıktılar üretmek performans sürecinin de bir parçası olduğundan site performansına da potizif katkısı olmaktadır. Bu konuyla ilgili daha önce, özellikle <a href="https://www.zingat.com/">Zingat</a>’ta yaşadığımız süreçleri de kapsayan geniş bir yazı serisi yazmıştım. Dilerseniz öncesinde <a href="https://medium.com/@serkanbektas">onlara</a> da göz atabilirsiniz.</p><p>Kaynakları doğru ve etkin kullanmak, kodlarımızı olabildiğince optimize hale getirmek yazılım süreçlerimizin olmazsa olmazıdır. Bu yazıda daha az kod yazmak için aynı işi yapan iki kodu karşılaştıracağız.</p><h3>Örnek Kullanım</h3><p>CSS değişkenleriyle <strong>media-query</strong>’lerini de kullanarak bir kod örneği kullanalım:</p><pre>.myClass {<br>  --width: 400px;<br>  --height: 200px;<br>  --color: steelblue;<br>  --border: 1px solid var(--color);<br>  --font-size: 16px;<br>  --padding: 10px 20px;<br>  --first-color: #FF8C00;<br>  --second-color: #FF0080;<br>  --font-family: Georgia, serif;<br>  width: var(--width);<br>  height: var(--height);<br>  border: var(--border);<br>  color: var(--color);<br>  font-size: var(--font-size);<br>  padding: var(--padding);<br>  background: linear-gradient(to right, var(--first-color), var(--second-color));<br>  font-family: var(--font-family);<br>}</pre><pre>/* <strong>1200px üzerinde bu yatay dikdörtgen kutuyu dikey duruma getirelim ve üzerinde oynayalım</strong> */<br><a href="http://twitter.com/media">@media</a> (min-width: 1200px) {<br>  .myClass {<br>    --width: 200px;<br>    --height: 400px;<br>    --color: black;<br>    --border: 2px dashed var(--color);<br>    --font-size: 20px;<br>    --padding: 20px 40px;<br>    --first-color: #FF0080;<br>    --second-color: #40E0D0;<br>    --font-family: Helvetica, serif;<br>  }<br>}</pre><pre><strong>// HTML Kullanımı</strong><br>&lt;div class=&quot;myClass&quot;&gt;<br>    myClass sınıfı içerisinde değişken kullanıldı.<br>&lt;/div&gt;</pre><p>Kod önizlemesini <a href="https://codepen.io/serkanbektas/pen/wvvjyoK">burdan</a> yapabilirsiniz.</p><p>Gördüğünüz gibi herhangi bir özellik tanımlamadan sadece değişkenleri güncelleyerek ilgili alanlar üzerinde değişiklik yapabildik. Bu sayede birçok alanı sadece değişken tanımlayarak kontrol etme imkanınına sahip olabiliyoruz. Burada önemli olan kontrolü elden kaybetmemek ve değişkenleri kullanımına uygun şekilde tanımlamaktır. CSS kodumuzu ezmeden <strong><em>(</em>override<em>)</em></strong> mevcut değişkenleri düzenleyerek bu sonuca ulaştık.</p><p>Bir de aynı kodu css değişkenlerini kullanmadan yazalım:</p><pre>.myClass {<br>  width: 400px;<br>  height: 200px;<br>  color: steelblue;<br>  border: border: 1px solid steelblue;<br>  font-size: 16px;<br>  padding: 10px 20px;<br>  background: linear-gradient(to right, #FF8C00, #FF0080);<br>  font-family: Georgia, serif;<br>}</pre><pre><strong>// CSS </strong><br><a href="http://twitter.com/media">@media</a> (min-width: 1200px) {<br>  .myClass {<br>    width: 200px;<br>    height: 400px;<br>    color: black;<br>    border: border: 1px solid black;<br>    font-size: 20px;<br>    padding: 20px 40px;<br>    background: linear-gradient(to right, #FF0080, #40E0D0);<br>    font-family: Helvetica, serif;<br>  }<br>}</pre><pre><strong>// HTML</strong><br>&lt;div class=&quot;myClass&quot;&gt;<br>    myClass sınıfı içerisinde değişken kullanıldı.<br>&lt;/div&gt;</pre><p>Değişkenleri anlamlı ve kısa tuttuğunuzda daha küçük çıktılar almak mümkün olabiliyor. Özellikle uzun tanımlı özelliklerde bunu görebiliyorsunuz.</p><p>Karar sizin.</p><pre>Bana aşağıdaki iletişim adreslerinden ulaşabilirsiniz:</pre><pre><strong>Twitter:</strong> <a href="http://twitter.com/serkanbektasim">http://twitter.com/serkanbektasim</a><br><strong>LinkedIn:</strong> <a href="https://www.linkedin.com/in/serkan-bektas-58715536/">https://www.linkedin.com/in/serkan-bektas-58715536/</a><br><strong>Facebook:</strong> <a href="http://facebook.com/serkanbektas">http://facebook.com/serkanbektas</a></pre><p>Kaynaklar:</p><p>1- <a href="https://www.w3.org/TR/2015/CR-css-variables-1-20151203/">https://www.w3.org/TR/2015/CR-css-variables-1-20151203/</a><br>2- <a href="https://medium.com/dev-channel/css-variables-no-really-76f8c91bd34e">https://medium.com/dev-channel/css-variables-no-really-76f8c91bd34e</a><br>3- <a href="https://caniuse.com/#feat=css-variables">https://caniuse.com/#feat=css-variables</a><br>4- <a href="https://webkit.org/blog/5989/css-variables-in-webkit/">https://webkit.org/blog/5989/css-variables-in-webkit/</a><br>5- <a href="https://philipwalton.com/articles/why-im-excited-about-native-css-variables/">https://philipwalton.com/articles/why-im-excited-about-native-css-variables/</a><br>6- <a href="https://medium.com/@busramemis/csste-de%C4%9Fi%C5%9Fken-tan%C4%B1mlama-49f15b57f588">https://medium.com/@busramemis/csste-de%C4%9Fi%C5%9Fken-tan%C4%B1mlama-49f15b57f588</a><br>7- <a href="https://bitsofco.de/css-environment-variables/">https://bitsofco.de/css-environment-variables/</a><br>8- <a href="https://css-tricks.com/difference-between-types-of-css-variables/">https://css-tricks.com/difference-between-types-of-css-variables/</a><br>9- <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties">https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa2ae868e770" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/css-custom-properties-variables-ile-%C3%B6geleri-kontrol-etmek-aa2ae868e770">CSS Custom Properties (Variables) ile Ögeleri Kontrol Etmek</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP Protokolünü Anlamak]]></title>
            <link>https://medium.com/zingat/http-protokol%C3%BCn%C3%BC-anlamak-60e2da54f101?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/60e2da54f101</guid>
            <category><![CDATA[bilgisayar-ağları]]></category>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[yazilim-gelistirme]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Mert Eroğlu]]></dc:creator>
            <pubDate>Tue, 29 Oct 2019 17:47:44 GMT</pubDate>
            <atom:updated>2019-11-04T11:56:14.884Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Kim okumalı: </strong>Web yazılımları geliştirmeye başlayacaklar, başlamış olup eksiklik hissedenler, bilgisayar haberleşmesine ilgisi olanlar ve genel olarak başlık tarafından ilgisi uyandırılanlar.</p><p>2018 yılında web yazılımları geliştirmeye ilk adımlarımı attım. Ardı ardına dersleri takip ederek, kolları sıvayıp kod yazarak ve takıldığım yerde dokümantasyonlara bakarak kendim de beklemediğim bir sürede birçok şey öğrendim. Geliştirme ortamında kod yazıp tarayıcıda onun hatasız kusursuz çalıştığını görmenin mutluluğunu bilenleriniz vardır, ancak bir eksiklik hissediyordum. Bir şey oluyordu, hoşuma gitmeyen bir şey; yaptıklarım çalışıyordu ama arka planda neler döndüğünü anlayamıyordum.</p><p>Sonraki yıl “bilgisayar haberleşmesi” isimli lisans dersini aldığımda bazı taşlar yerine oturdu. Web nedir, server nedir, client nedir, tarayıcıda bir linke veya butona tıkladığımda neler olur? Kafamın bir yerlerinde döndüğü halde henüz ismini koyamamış olduğum soruların bunlar olduğunu farkettim, cevapları sayesinde de birçok şey anladım. Biraz yukarıda bahsettiğim kavramların ve genel olarak web dediğimiz olgunun kalbinde HTTP protokolü bulunduğu için bu yazıya böyle bir başlığı uygun gördüm. O zaman beraber keşfedelim mi?</p><h4>HTTP Genel Bakış</h4><p>HyperText Transfer Protocol kelimelerinin kısaltması olan bu ismi hiper metin aktarım protokolü olarak çevirebiliriz dilimize. Hiper metinler doğrusal olarak akıp gitmeyen, içerisinde başka metinlere referanslar bulunan ve bu metinlere doğrudan erişim sağlanan metinler olarak düşünülebilir. Bunun en bariz örneği her gün onlarcasını dolaştığımız web sayfaları. İncelediğimiz bu protokolde bu tarz metinlerin yanı sıra resimler ve stil sayfaları gibi başka dosyaların da aktarımı yapılabiliyor. Buna ‘protokol’ denmesinin sebebi ise giden ve gelen mesajların önceden belirlenmiş ve sabit bir formatta olması.</p><p>Bir web sayfası bir veya birden fazla nesneden oluşur. Bir nesne belirli bir url üzerinden erişilebilen video veya jpeg görüntüsü gibi, HTML gibi bir dosyadır. Genelde web sayfalarına erişirken bir HTML dosyasına erişiriz ve onun içerisinde diğer nesnelere referanslar olur. HTML dosyaları ulaşmak istediğimiz içeriği taşırken onun referans olduğu nesneler de web sayfasının tasarımını (CSS), tarayıcıdaki davranış ve tepkilerini (JavaScript) ve diğer aksesuarlarını (resim, video, ses vb.) barındırır. Böylece karşınıza burada gördüğünüz gibi bir sayfa çıkar. HTTP ise bu sayfaların sistematik olarak server ve client arasında alışverişini sağlar.</p><h4>HTTP Server — Client</h4><p>HTTP protokolü server-client yapısında çalışır. Türkçe terimlere geçmek istersek server yerine sunucu, client yerine istemci diyelim. İstemcilerin web sayfalarını sunuculardan nasıl isteyeceğini ve sunucuların bu sayfaları istemcilere nasıl aktaracağını HTTP tanımlar. Bu yapıda istemciler genellikle bilgisayarlarımızda çalıştırdığımız tarayıcılardır, sunucular ise uzak bilgisayarlarda sürekli olarak açık tutulan programlardır. Kullanılmakta olan en popüler web sunucuları Apache, IIS ve Nginx olarak listelenebilir. Tarayıcılar web sunucularına HTTP isteğinde bulunur, sunucular ise bunlara HTTP cevabı ile karşılık verir. Bir sunucuya aynı anda birden çok (binlerce veya milyonlarca) HTTP isteği gelebilir. Bu tanımladığımız işlemleri özetleyen küçük bir görseli aşağıda bulabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*iBWvYu0GAkgXG1HjMaRWPg.png" /><figcaption>HTTP istek ve cevapları</figcaption></figure><p>HTTP bir alt katmanda TCP üzerine kurulmuştur. Bu sebeple HTTP haberleşmeleri sırasında gerçekleşebilecek veri kaybı, veya kaybedilen verinin tekrar gönderimi veya doğru sıraya konması gibi konularla TCP ilgilenir. HTTP aynı zamanda durum bilgisi barındırmayan bir protokoldür. Yani, bir kullanıcı bir nesne için birkaç saniye zarfında tekrar istekte bulunursa sunucu “bu nesneyi az önce gönderdim” gibi bir tepki vermez, yaptığını tamamen unutmuştur ve nesneyi kullanıcıya tekrar gönderir.</p><h4>HTTP İstekleri</h4><p>HTTP istek mesajları sıradan ASCII biçiminde yazılabilir ve bilgisayar terimlerine hakim birisi tarafından okunabilir. Bu isteklerin ilk satırına istek satırı, sonrasındaki satırlara ise header (üst bilgi) satırları denir. İstek satırında üç alan bulunur; istek metodu alanı, URL alanı ve HTTP versiyonu alanı. URL isteğin yapıldığı web adresidir, her isteğin geçerli bir adresi olmalıdır. İstek metodlarını ise farklı bir başlık altında inceleyeceğiz.</p><p>HTTP isteği header satırlarında sunucuya bilgi vermek ve ondan da önce sunucunun barındırıldığı host adresini belirtmek için isteğe ait bilgiler bulundurulur. Bunların en sık kullanılanları; <strong>Host:</strong> istekte bulunulan dosyaların barındırıldığı uzak bilgisayarın web adresi, <strong>User-Agent:</strong> kullanıcının tarayıcı ve bilgisayar bilgileri, <strong>Accept:</strong> kabul edilecek format (örneğin html ya da json), olarak sıralanabilir. Bunların ayrıntıları veya diğer header isimleri için <a href="https://developer.mozilla.org/en-US/docs/Glossary/Request_header">MDN Request Headers</a> sayfasını ziyaret edebilirsiniz. Aşağıda örnek bir HTTP isteği bulabilirsiniz.</p><blockquote>GET /public/page.html HTTP/1.1</blockquote><blockquote>Host: <a href="http://www.itu.edu.tr/">www.itu.edu.tr</a></blockquote><blockquote>User-agent: Mozilla/5.0</blockquote><blockquote>Accept: text/html</blockquote><h4>HTTP İstek Metodları</h4><p>Yukarıdaki örnek HTTP isteğinde de görülebileceği gibi bir tarayıcı bir nesne için istekte bulunduğunda GET metodunu kullanır. Bunun yanında geliştirdiğimiz programlar içerisinden veya POSTMAN gibi yardımcı araçlar üzerinden farklı metodlara sahip HTTP istekleri gönderebiliriz. HTTP isteğinin metodu o isteğin anlamsal olarak bir kategoriye dahil edilmesini sağlar. Örneğin GET metodu sunucudan veri almak için kullanılır ve özellikle kullanıcı şifresi gibi hassas içeriklerin barındırıldığı isteklerde kullanılması tavsiye edilmez.</p><p>Diğer önemli ve sık kullanılan istek metodları olarak POST, PUT ve DELETE öne çıkar. POST metodu istekte belirtilen host’a bir varlık, bir veri kümesi veya sadece bir veri göndermek için kullanılır, bunun sonucunda genellikle sunucu tarafında verilerin tutulduğu yere yeni bir veri eklenir. Program geliştirirken kullanıcı kaydı yapmak, login isteği göndermek veya yeni bir blog yazısı oluşturmak gibi istekler için bu metodu kullanırız. PUT metodu sunucu tarafında zaten mevcut olan bir kaynağın içeriğini değiştirmek için kullanılır. Programlarımızda veritabanında kayıtlı bulunan bir verinin tamamını (bazen bir kısmını) değiştirmek için bu metodu kullanırız. DELETE metodu ise kayıtlı olan bir kaynağın tamamen silinmesi için kullanılır. Daha fazlası için <a href="https://developer.mozilla.org/tr/docs/Web/HTTP/metotlar">MDN HTTP İstekleri</a> sayfasına gidebilirsiniz.</p><h4>HTTP Cevapları</h4><p>Cevap mesajları, istek mesajlarında olduğu gibi ASCII olarak aktarılır ve benzer bilgi alanlarına sahiptir. Yukarıda örnek olarak verdiğimiz HTTP isteğine aşağıdakine benzer bir HTTP cevabı almamız mümkündür.</p><blockquote>HTTP/1.1 200 OK</blockquote><blockquote>Date: Tue, 09 Aug 2011 15:44:04 GMT</blockquote><blockquote>Server: Apache/2.2.3 (CentOS)</blockquote><blockquote>Content-Type: text/html</blockquote><blockquote>(Cevap gövdesi…)</blockquote><p>Bu HTTP cevabında ilk satır durum satırı olarak isimlendirilir. Durum satırında protokol versiyonu, durum kodu ve ona karşılık gelen durum mesajı bulundurulur. Sonraki üç satır (daha fazla da olabilirdi) HTTP cevabının header satırlarıdır.</p><p><strong>Date:</strong> gelen istek sonucunda sunucunun istenilen nesneleri kendi dosya sisteminden çekip istemciye sunduğu anın tarihi ve zamanıdır.</p><p><strong>Server: </strong>Sunucu ile ilgili bilgidir, istek mesajındaki ‘User-agent’ bilgisine benzerlik gösterir.</p><p><strong>Content-Type:</strong> sunulan nesnelerin türüdür, istemci gelen veriyi nasıl yorumlayacağını bu üst bilgi sayesinde bilir. Diğer olası header satırları hakkında bilgi almak için <a href="https://developer.mozilla.org/en-US/docs/Glossary/Response_header">MDN Response Headers </a>sayfasını ziyaret edebilirsiniz.</p><p>Cevap gövdesi olarak gösterdiğimiz yer ise istekte bulunulan asıl nesnelerdir.</p><h4>HTTP Durum Kodları</h4><p>HTTP durum kodları ve mesajları sunucu tarafından istemciye gönderilen cevaplarda isteğin nasıl sonuçlandığını belirten alanlardır. Yukarıdaki örnek HTTP cevabında durum satırında ‘200 OK’ görmüştük. Bu sunucu tarafından isteğin başarıyla işlenip sonuç olarak geçerli bir nesne döndürüldüğü anlamına gelir. HTTP durum kodları genel kategorilere ayrılır ve bu kategorilere göre ilk sayıları değişir. Bu kategoriler aşağıdaki gibidir.</p><blockquote>1xx Bilgi mesajları</blockquote><blockquote>2xx Başarılı</blockquote><blockquote>3xx Yeniden yönlendirme</blockquote><blockquote>4xx İstemci hatası</blockquote><blockquote>5xx Sunucu hatası</blockquote><p>Yazdığımız programlarda attığımız istekler sonucu dönen durum kodunu baz alarak bazı işlemler gerçekleştirmek, veya kullanıcılarımıza daha anlamlı hata mesajları göstermek isteyebiliriz. Sunucudan alma olasılığımız yüksek bazı durum kodları şunlardır:</p><p><strong>200: </strong>OK (İstek başarılı)</p><p><strong>401:</strong> Unauthorized (Yetkisiz erişim)</p><p><strong>403:</strong> Forbidden (Erişim yasağı)</p><p><strong>404:</strong> Not Found (Dosya bulunamadı)</p><p><strong>500:</strong> Internal Server Error (Sunucu içerisinde hata)</p><p>HTTP durum kodlarının ve mesajlarının tamamına <a href="https://httpstatuses.com/">HTTP Status Codes</a> sayfasından erişebilirsiniz.</p><p><strong>Referans:</strong> Bu yazı hazırlanırken <strong>James F. Kurose</strong> ve <strong>Keith W. Ross</strong> tarafından hazırlanan “<em>Computer Networking — A Top Down Approach</em>” isimli kitaptan bol miktarda yararlanılmıştır.</p><p><a href="https://twitter.com/beetlemuavini"><strong>Twitter</strong></a><strong> |</strong><a href="https://www.linkedin.com/in/mert-ero%C4%9Flu-223b0a146/"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://github.com/eroglum16"><strong>GitHub</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60e2da54f101" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/http-protokol%C3%BCn%C3%BC-anlamak-60e2da54f101">HTTP Protokolünü Anlamak</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kong Api Gateway]]></title>
            <link>https://medium.com/zingat/kong-api-gateway-1a9b241c5abf?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/1a9b241c5abf</guid>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[api-management]]></category>
            <category><![CDATA[konga]]></category>
            <category><![CDATA[kong]]></category>
            <category><![CDATA[api-gateway]]></category>
            <dc:creator><![CDATA[İlkay Narlı]]></dc:creator>
            <pubDate>Mon, 30 Sep 2019 20:54:10 GMT</pubDate>
            <atom:updated>2019-09-30T20:54:10.032Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba, gerçek hayatta karşılaşılan problemlerin çözümlerini paylaşmak gerçekten ulvi bir davranış. O yüzden öncelikle Stack Overflow’da sorulan sorulara cevap verenler olmak üzere, bir satırla bile olsa bu anlamda katkı sağlayan tüm insanlara derin saygı ve sevgilerimi sunarak başlamak istiyorum. İyi ki varsınız!</p><p>Biz de naçizane, çalıştığımız şirkette (<a href="https://www.zingat.com/">zingat.com</a>) karşılaştığımız problemleri ve çözümü için sarfettiğimiz çabaları zaman zaman, dilimiz döndüğünce burada anlatmaya çalışıyoruz. Umarız faydalı olur. ❤</p><p>Bu yazıda kullanmaya başladığımız <a href="https://konghq.com/kong">Kong Api Gateway</a> aracından bahsetmek istiyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*sfu22jM8ctw0HsC_hxB6Kw.png" /></figure><p>Kong bir api yönetim aracı. Bir veya birden çok API’ı tek bir yazılım üzerinde yönetmenize imkan sağlıyor ve açık kaynaklı. Bu sizi birçok maliyetten kurtardığı gibi rüştünü ispatlamış olduğu için de gönül rahatlığı ile kullanabiliyorsunuz.</p><p>Kong, hali hazırda sunduğu çözümler sayesinde elinizdeki API için ihtiyaç duyduğunuz her şeyi neredeyse tek tık kolaylığıyla kullanmanıza imkân sağlıyor. Çünkü eklenti temelinde çalıştığı için her ihtiyacınıza göre bir eklentisi var. Peki nedir bu ihtiyaçlar? Güvenlik, trafik yönetimi, yetkilendirme, loglama, izleme (monitoring)… Bunların hepsi için tek yapmanız gereken şey API’nızın önüne bir Kong kurmak ve ihtiyaçlarınız için pluginlerin ayarlarını yapmak. Kong community versiyonunda bir arayüz sağlamıyor (sadece resmi arayüz enterprise versiyonunda var), sizinle rest üzerinden haberleşiyor fakat gönüllüler tarafından yazılmış harika arayüzler sayesinde bu ihtiyacınızı da kolaylıkla gideriyorsunuz. Biz arayüz için Konga’yı tercih ettik. <a href="https://github.com/pantsel/konga">https://github.com/pantsel/konga</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7fpQ845Ehk4M0kED5BJ1w.png" /></figure><p>Kong, kurulum adına birçok alternatifle birlikte geliyor. Bunlardan bir tanesi docker. Docker imajını dakikalar içinde sunucunuzda ayağa kaldırarak kullanıma hazır hale getirerek kullanmaya başlayabilirsiniz. Konga’da öyle.</p><p>Bu yazıdaki asıl amacım sizleri benzer ihtiyaçlar için ortak çözümler sunan bir yazılımın varlığından haberdar etmek olduğu için kurulum, ayarlar gibi ayrıntılı konulara girmiyorum. Bunları Kong kendi dökümanlarında uzun uzun ve güzelce <a href="https://docs.konghq.com/1.3.x/getting-started/quickstart/">anlatmış</a>.</p><p>Geçtiğimiz aylarda <a href="https://www.meetup.com/zingat/events/261924775/">Zeetup 2</a>&#39;de Kong hakkında bir sunum yapmıştım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVy0kd3Gu2TkTVU5q2sKgw.jpeg" /><figcaption>Zeetup 2</figcaption></figure><p>Kong’u neden ve nasıl kullandığımızı, faydalarını ve birkaç örnekle de gerçek hayatta bizim için çözdüğü problemleri detaylı olarak anlattım. Konuşurken biraz ağırdan almış olabilirim o yüzden 1.5x ile izlemenizi tavsiye ederim. Okuduğunuz için çok teşekkürler. İyi seyirler :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F23XKWa0f1yI%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D23XKWa0f1yI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F23XKWa0f1yI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/58fcae80359132ea07aba4c86d7355e7/href">https://medium.com/media/58fcae80359132ea07aba4c86d7355e7/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a9b241c5abf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/kong-api-gateway-1a9b241c5abf">Kong Api Gateway</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eski Köye Yeni Adet — PageSpeed]]></title>
            <link>https://medium.com/zingat/eski-k%C3%B6ye-yeni-adet-pagespeed-f2c5f7b9ed34?source=rss----ef932ede3e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/f2c5f7b9ed34</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[zingat]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[page-speed]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[SARP AVCI]]></dc:creator>
            <pubDate>Fri, 27 Sep 2019 15:54:39 GMT</pubDate>
            <atom:updated>2019-09-27T15:54:39.098Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLw_JG55954aR2HRJLVZVQ.jpeg" /></figure><h3>Eski Köye Yeni Adet — PageSpeed</h3><p>Zaman ilerledikçe yeni fikirler, yeni yaklaşımlar, yeni teknolojiler, yeni kütüphaneler çıkıyor. Ben de dahil olmak üzere her yazılımcı bu yenilikleri projelerinde kullanmak istiyor. Yeni bir projeye başlarken rahatlıkla bu yenilikleri kullanabiliyoruz. Peki ya uzun süredir geliştirilen bir proje üzerinde çalışıyorsak? Yazılımcı olarak birçoğumuz gün geliyor uzun süredir geliştirilen projelerde görev alıyoruz ve bu projeler zamanında güncellenememiş ise bu yenilikleri kulanma imkanımızı elimizden alıyor.</p><p>Projemizi güncel tutmamız için birçok sebep var. zingat.com için Google PageSpeed puanı bunlardan bir tanesi. Bu yazımda <strong>Google PageSpeed</strong> için zingat.com’da nelere ihtiyaç duyduk, önümüzdeki engeller nelerdi ve bu engelleri nasıl atlattık bunlardan bahsedeceğim.</p><p>Google PageSpeed, <strong>2018 Kasım</strong> ayında yayımladığı güncelleme ile zamanında oldukça yüksek puan alan siteleri tabiri caiz ise yerin dibine batırmıştı. Bu güncellemeden etkilenen sitelerden biri de zingat.com’du. Sayfalarımızın çoğu 90 puan ve üzeri alırken birden ~30 puanlara düştü. Bir süredir bu puanları nasıl yükselteceğimiz üzerine çalışmalar yapıyorduk ve nihayet başarıya ulaştık. Hala hedeflediğimiz puana ulaşmış değiliz ama artık ~30 puanda da değiliz :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0HegcvKKEPEPdOE0%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0HegcvKKEPEPdOE0%2Fgiphy.mp4&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl0HegcvKKEPEPdOE0%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="230" frameborder="0" scrolling="no"><a href="https://medium.com/media/32ce1f57041e89386f15426cd84a8621/href">https://medium.com/media/32ce1f57041e89386f15426cd84a8621/href</a></iframe><blockquote>Daha önce yapılmış olan optimizasyonlar ile ilgili <a href="https://medium.com/u/dfad3435c77e">Serkan Bektaş</a>’ın yazılarına göz atmayı unutmayın. Çünkü bu ~30 puanı o optimizasyonlar sayesinde alıyoruz.</blockquote><h3>Teknik Detaylar</h3><p>Problemlere geçmeden önce birkaç teknik detay vermek istiyorum. Projemizde;</p><ul><li>Task yönetimi için Grunt kullanıyoruz.</li><li>CSS Pre-processor olarak LESS kulanıyoruz.</li><li>JS.. Native javascript yazıyoruz :) Daha önceden jQuery ile yazılmış olan bölümler var fakat şu anda yazmıyoruz ve gördüğümüz yerlerden de kaldırıyoruz.</li></ul><p>Grunt ile standart concat, less, uglify, minify gibi işlemler yaparak çıktıları elde ediyoruz.</p><blockquote>Bu inceleme sırasında vereceğim detaylar güncelleme için POC olarak baz aldığımız <a href="https://www.zingat.com/okul/okullar"><strong>https://www.zingat.com/okul/okullar</strong></a> sayfası üzerinden olacaktır.</blockquote><p>Yazı içinde sıkça kullanacağım “zng” namespace’inden de kısa bahsedeyim. İsimlendirmede kullandığımız “zng” kelimesi anlaşılacağı gibi Zingat’tan gelmekte. Bu “zng” kelimesini başlıca stiller ve scriptler olmak üzere projenin her yerinde kullanıyoruz. Yapacağımız bu güncelleme ile “zng” kullanımına da veda etmiş oluyoruz.</p><h3>Problemler</h3><ol><li>CSS ve JS çıktılarının çok büyük olması</li><li>Sayfanın oluşturulmasına engel olmayan ve SEO ihtiyacı bulunmayan bölümlerin sayfa açıldıktan sonra yüklenmesi (LazyLoad)</li><li>Third-party (3. parti) yazılımların hız testlerine etkisi</li></ol><p>Gelin bu problemleri teker teker ele alalım ve projemizde ne gibi düzenlemeler ile daha optimize, daha sağlıklı bir proje oluşturduk birlikte bakalım.</p><h3>Peki çözüm için neler yaptık?</h3><p>Güncelleme öncesinde css ve js çıktılarımızı düzgün optimize edemiyorduk ve istemesekte sayfa özelinde kullanılmayan bir takım stil ve scriptleri de dahil etmek zorunda kalıyorduk. Diğer sayfalarda kullanılan stiller, eklenti stilleri vb.</p><p>Çoğu sayfada kullanılan <strong>zng.css</strong> ve <strong>zng.js</strong> dosyaları şu anda neredeyse tüm sayfalarda kullanılıyor. Doğal olarak kulanıldığı her sayfanın ihtiyaçlarını karşılamak zorunda ve proje geliştirilmeye devam ettikçe de büyümeye devam ediyor.</p><h4>Optimizasyondan Önce</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*vYVDVnnyDjsufN-VlvRCmg.jpeg" /></figure><p><strong>zng.css</strong><em> dosyasında toplamda </em><strong><em>150 dosyanın</em></strong><em> birleşmesiyle</em><strong><em> </em></strong><em>oluşuyor ve toplam </em><strong><em>76492 satır</em></strong><em> bulunuyor.</em></p><p><strong>zng.js</strong> dosyasında toplamda <strong>160 dosyanın</strong> birleşmesiyle oluşuyor ve toplam <strong>43663 satır</strong> bulunuyor.</p><p>Bu iki devasa dosyanın yanında birkaç tane daha göz ardı edilemeyecek büyüklüklere sahip dosya yüklüyoruz.</p><h4>Optimizasyondan Sonra</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UyJzeKrOwW4uyYf-RwwIzA.jpeg" /></figure><p>Bu çıktılarda <strong>schools-listing.bundled.css </strong>ve <strong>schools-listing.bundled.js</strong> dosyaları hariç geriye kalan dosyaların hepsi lazy olarak sayfaya dahil ediliyor. Yani sayfa açılışında yüklediğimiz toplam dosya boyutunu <strong>3,6MB</strong>’den <strong>390KB</strong>’ye kadar küçültmüş olduk.</p><p>Bu optimizasyon ile stil tarafında yalnızca doğru bir paketleme yapısı kurduk. Fakat script tarafında işler o kadar basit olmadı. Script tarafında ES6 ile birlikte gelen yenilikleri kullanmak istiyorduk ve bunun için bir transpiler yapısı gerekliydi. Bunun için birkaç alternatif vardı fakat bu süreci kısa tutmak için bize en az maliyet çıkaracak aracı bulmak için testler yaptık.</p><h4>Webpack mi? Browserify mı?</h4><p>Bu iki araç arasında tercihimiz Browserify oldu. Webpack’in bizim proje için entegresi zordu ve güncellememiz gereken çok yer vardı. Ayrıca projede hem Webpack hem de Grunt olması da pek iç açıcı değildi. Browserify grunt ile birlikte çalışabiliyordu ve Browserify ile daha önce deneyimim olması da tercih sebeplerimizden biri oldu.</p><p>Peki Browserify’ı kullanmak tüm problemleri çözdü mü, tabii ki hayır. Çünkü oluşan çıktı öncekinden pek de farklı olmadı :) Sadece sayfa içerisinde kullanmadığımız kodlardan kurtulmuş olduk. Bu durumda javascript çıktımız <strong>~700KB</strong> civarıydı. Bu durumda bizi düşündüren kısım ise çalıştığımız sayfa listeleme sayfasıydı ve içinde 4 farklı filtreleme tipi bulunduran güzel de bir filtresi vardı. Bu filtre sayfa yüklenirken ihtiyaç duyduğumuz bir eleman değildi ve daha sonra yüklemenin bize zararı yok. Oluşan js dosyasının boyutunun yarısı da bu filtre ve bağımlılıklarından geliyordu. Bu filtreyi lazy olarak yükleme yeni bir problemi ortaya çıkardı. Paketleme işlemi sonrasında çıkan dosya capsule edilmiş bir dosya olduğu için filtre scriptlerini ayrı bir dosyaya çıkarmak bizim için çözüm olmadı. Bu dosyanın ana dosyamıza import ediliyor olması gerekliydi ve tabii ki lazy olarak yüklenmeliydi. Bu durumda adı <a href="https://www.npmjs.com/package/split-require">split-require</a> olan Browserify eklentisi bizim derdimize derman oldu. Birkaç küçük ayar ile bizim var olan asset yapımızı bozmadan, ES6 ve sonraki ES versiyonlarını destekleyen, dinamik olarak dosya ve paketleri dosyamıza dahil edebildiğimiz bir yapıyı kurmuş olduk.</p><p>Anlatırken güzel gelse de bu güncellemenin bize en büyük maliyeti;<br>önceden yazılan ve diğer sayfalar tarafından kullanılan fonksiyonların bu yeni yapıda kullanılamamasıydı. Bu yüzden bu sayfada kullanılan fonksiyonlar başta olmak üzere yavaş yavaş yazılan fonksiyonları refactor etmek durumunda kaldık.</p><h4>Ne durumdayız?</h4><p>Stilleri ve scriptleri hallettik, peki puan durumumuz ne oldu? Local ortamda yaptığımız testlerde 70–80 aralığına ulaştık ve dedik ki ilk adım için yeterli. Local olduğu için canlı ortamın artı etkilerinden de yararlanamıyorduk. PageSpeed CDN, TTFB, resimlerin optimizasyonu gibi testlerden puanımızı kırmıştı. Ne duruyoruz canlıya alalım o zaman deyip yaptığımız güncellemeleri yayına aldık.</p><blockquote>Güncellemeleri yayına aldıktan sonra yaptığımız ilk testten aldığımız puan : <strong>“58” ELLİ SEKİZ</strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F7kFiPRhn3aDYs%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F7kFiPRhn3aDYs%2Fgiphy.mp4&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F7kFiPRhn3aDYs%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae866c1f98ddbef6810febd31b228049/href">https://medium.com/media/ae866c1f98ddbef6810febd31b228049/href</a></iframe><p>Daha sonra 31423 test daha yaptık ama aldığımız puan değişmedi. Local ortamdaki testlerde bile daha fazla almıştık. Peki neden böyle bir sonuç çıktı?</p><p>İlk olarak puana çok fazla odaklandık, düşük puan aldığımızda ilk düşündüğümüz şey yaptığımız güncellemenin bir işe yaramamasıydı. Fakat raporu detaylı olarak incelediğimizde bu güncellemenin bize getirisi gayet netti. Asıl konu <strong>problemler</strong>’de bahsettiğim üçüncü maddeydi. Bu sayfada GTM ile yüklenen birçok araç bizim puanımızı baltalıyordu. Tabii ki yazılımsal olarak hala optimize edebileceğimiz yerler vardı fakat önce GTM’e bir göz atmak istedik.</p><p>GTM incelemesi sonucunda bu sayfada ihtiyaç olmayan/kullanılmayan fakat pencere yüklenmesiyle bu sayfaya dahil edilen ilan önerme, remarketing, click-stream gibi etiketleri kontrollü bir şekilde yeniden düzenledik. Bu işlem sonucunda bu sayfada yüklenen ve kullanılmayan stil ve scriptlerden kurtulmuş olduk. Artı olarak bu kurtulduğumuz scriptlerin yükleme maliyetinin yanı sıra evaluation maliyetinden de kurtulduk.</p><h3>Sonuç</h3><p>GTM düzenlemerinden sonra yaptığımız testlerde, şu an 70 puan veri üzeri almaktayız. 80–90 olduğu durumlar da oldu ama biz puanı 70 olarak kabul ediyoruz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F11hVniWaqh17Q4%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F11hVniWaqh17Q4%2Fgiphy.mp4&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F11hVniWaqh17Q4%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/3b8a628e15bc4bc0455a68ad11a7d949/href">https://medium.com/media/3b8a628e15bc4bc0455a68ad11a7d949/href</a></iframe><blockquote>Unutmadan değinmek istiyorum PageSpeed Insight üzerindeki veriler değişebiliyor. Alan verileri yeterli olmadığı için şu an gösterilen puanın da tutarlı bir puan olmadığını düşünüyorum.</blockquote><p>Bu arada Chrome içerisinde bulunan LightHouse ile farklı iki internet hızında test sonuçlarımız da şu şekilde;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzOFvwZrJSwnro9O-x8xcw.png" /><figcaption>Simulated Slow 4G - Applied Slow 4G</figcaption></figure><p>Teşekkürler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2c5f7b9ed34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/zingat/eski-k%C3%B6ye-yeni-adet-pagespeed-f2c5f7b9ed34">Eski Köye Yeni Adet — PageSpeed</a> was originally published in <a href="https://medium.com/zingat">Teknoloji ve Mühendislik Blogu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>