<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sedanur Yıldız on Medium]]></title>
        <description><![CDATA[Stories by Sedanur Yıldız on Medium]]></description>
        <link>https://medium.com/@sedanuryildiz?source=rss-84b64639592b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*emYYV9IHvkh-Z4J3KRCLFw.jpeg</url>
            <title>Stories by Sedanur Yıldız on Medium</title>
            <link>https://medium.com/@sedanuryildiz?source=rss-84b64639592b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:56:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sedanuryildiz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SQL Window Functions for Data Wizards]]></title>
            <link>https://medium.com/@sedanuryildiz/sql-window-functions-for-data-wizards-c4c23d7908fa?source=rss-84b64639592b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4c23d7908fa</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Sedanur Yıldız]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 15:10:49 GMT</pubDate>
            <atom:updated>2024-01-23T15:23:53.849Z</atom:updated>
            <content:encoded><![CDATA[<h4>Advanced potion making with partitioning and framing</h4><p>I find myself closest to a magician when I write highly extensive sql queries. 🧙‍♀️ It feels like casting a very magical spell, gathering up some very special ingredients and iterating until finding the perfect balance. Window functions in SQL are like special magical spells, a bit mysterious at first, much like the spells of the Half-Blood Prince and needs to be performed with care and attention.</p><p>In the enchanting world of SQL, these functions give you the power to calculate running totals, rank items, and even travel through rows forwards and backwards (time travel, anyone?) — all while maintaining the original structure of your data table.</p><h3>Understanding Window Functions</h3><p>🌟<strong> What is Window Functions: </strong>Think of them as special tools in SQL that allow you to perform calculations across a set of rows (like a window of rows) that are somehow related to the current row. What’s cool about them? They don’t squish your data into a single row like aggregate functions; instead, they maintain the original row structure while doing their math magic.</p><p>🔍<strong> The “Window” Concept: </strong>The “window” here is like a sliding frame through which you look at your data. Imagine a small, moving section of your data table. This window can change size and position based on how you define it. For example, it could include rows before and after the current row, or it could be partitioned by some criteria, like looking at data month by month.</p><p><strong>🔄 How Window Functions Differ from Aggregate Functions:</strong> While aggregate functions compress multiple rows into a single value (like SUM, AVG), window functions don’t compress but glide over the rows. They can calculate aggregates, ranks, or running totals while keeping each row visible and distinct.</p><p>I’m sure you want to go ahead and jump to see the query right ahead, but bare with me. To cast the spell correctly just like Hermione casting <em>wingardium leviosa </em>, we need to understand 2 things. <strong>Partitioning</strong> and <strong>framing</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*F7Rqv6ZvfbfIxhbvXmjTcg.gif" /></figure><h3><strong>Partitioning</strong></h3><p>First we need to get how does partitioning work in sql. These clauses will allow you to partition your data, define the boundaries, and order it as needed.</p><p><strong>OVER() Clause:</strong> The OVER() clause is like the magic circle you draw on the ground before casting a spell. It defines the area where your spell will take effect. In SQL, it specifies the scope of your calculations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*NpgAKaRZ7RtOsUHMKGXTvg.gif" /></figure><p><strong>PARTITION BY: </strong>Think of PARTITION BY as selecting a specific group of objects or creatures within that magic circle. It’s like saying, “I want to cast a spell on all the pokemons in this circle.” It divides your data into distinct groups, just like you’re selecting pokemons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*6PD9iR5e3K-PM4psdv0AxA.gif" /></figure><p><strong>ORDER BY:</strong> Now, let’s say you want to target the hungriest pokemons first. ORDER BY is like arranging the pokemons in the circle based on their hunger level, from the hungriest to the least hungry. (do pokemons even eat? lol) This way, when you cast your spell, it affects the hungriest pokemons before others.</p><p>Alright, time to stop with the fun and dive into the queries!</p><p>Imagine you’re running a pizzeria, you have a <strong>pizza_orders</strong> table for all the transactions. In the real world your tables will probably be much more complex than these, but let’s take this simplified joined table to see examples.</p><pre>CREATE TABLE pizza_orders (<br>    order_id INT PRIMARY KEY,<br>    total_price DECIMAL(10, 2),<br>    customer_id INT,<br>    order_date DATE,<br>    customer_name VARCHAR(255),<br>    pizza_size VARCHAR(50),<br>    pizza_slices_eaten INT,<br>    total_amount_spent DECIMAL(10, 2)<br>);</pre><h3>Framing</h3><h4><strong>Rows Framing</strong></h4><p>This type of framing sets the frame based on a fixed number of rows relative to the current row. It uses the ROWS keyword and allows you to specify how many rows should be considered before and after the current row. For example, ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING includes the current row and the two rows before and after it.</p><p>Let’s say you want to calculate the average number of pizza slices eaten by each customer over a 3-day period (assuming they visit daily). Think of this as a 3-day moving average for pizza consumption.</p><pre>SELECT<br>  customer_name,<br>  order_date,<br>  pizza_slices_eaten,<br>  AVG(pizza_slices_eaten) OVER (<br>    PARTITION BY customer_name<br>    ORDER BY order_date<br>    ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING<br>  ) AS avg_slices_3_day<br>FROM pizza_orders<br>ORDER BY customer_name, order_date;</pre><pre>| customer_name | order_date | pizza_slices_eaten | avg_slices_3_day   |<br>| ------------- | ---------- | ------------------ | ------------------ |<br>| Alice         | 2024-01-05 | 8                  | 7.0000000000000000 |<br>| Alice         | 2024-01-10 | 6                  | 7.3333333333333333 |<br>| Alice         | 2024-01-20 | 8                  | 6.6666666666666667 |<br>| Alice         | 2024-01-30 | 6                  | 7.0000000000000000 |<br>| Bob           | 2024-01-07 | 4                  | 6.0000000000000000 |<br>| Bob           | 2024-01-22 | 8                  | 6.0000000000000000 |<br>| Charlie       | 2024-01-15 | 5                  | 4.5000000000000000 |<br>| Charlie       | 2024-01-25 | 4                  | 4.5000000000000000 |<br>| Dave          | 2024-01-28 | 6                  | 6.0000000000000000 |<br>| Eve           | 2024-01-03 | 4                  | 4.0000000000000000 |</pre><p>Here, ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING specifies that for each customer, you&#39;re calculating the average number of pizza slices eaten for the current visit and the visits from the day before and the day after.</p><h4><strong>Range Framing</strong></h4><p>Range framing defines the frame based on the values of a column within the partition. It uses the RANGE keyword and allows you to specify a range of values that should be considered before and after the current row&#39;s value. This can be particularly useful when your data is not evenly spaced. For example, RANGE BETWEEN 100 PRECEDING AND 100 FOLLOWING considers rows with values within 100 units of the current row&#39;s value.</p><p>Now, let’s say you want to find out the average total price of pizza orders for each customer within a range of $10 of their own order’s total price.</p><pre>SELECT<br>    customer_name,<br>    order_date,<br>    total_price,<br>    AVG(total_price) OVER (<br>        PARTITION BY customer_name<br>        ORDER BY total_price<br>        RANGE BETWEEN 10 PRECEDING AND 10 FOLLOWING<br>    ) AS total_spending_in_10_range<br>FROM pizza_orders<br>ORDER BY customer_name, order_date;</pre><pre>| customer_name | order_date | total_price | total_spending_in_10_range |<br>| ------------- | ---------- | ----------- | -------------------------- |<br>| Alice         | 2024-01-05 | 25.00       | 27.2500000000000000        |<br>| Alice         | 2024-01-10 | 30.00       | 27.2500000000000000        |<br>| Alice         | 2024-01-20 | 28.00       | 27.2500000000000000        |<br>| Alice         | 2024-01-30 | 26.00       | 27.2500000000000000        |<br>| Bob           | 2024-01-07 | 20.00       | 21.0000000000000000        |<br>| Bob           | 2024-01-22 | 22.00       | 21.0000000000000000        |<br>| Charlie       | 2024-01-15 | 15.00       | 16.5000000000000000        |<br>| Charlie       | 2024-01-25 | 18.00       | 16.5000000000000000        |<br>| Dave          | 2024-01-28 | 32.00       | 32.0000000000000000        |<br>| Eve           | 2024-01-03 | 19.00       | 19.0000000000000000        |</pre><p>In this case, RANGE BETWEEN 10 PRECEDING AND 10 FOLLOWING specifies that for each customer, you&#39;re calculating the total amount spent on pizza for the current visit and the visits where the spending is within $10 higher or lower. This can be used to exclude outliers while calculating average spending.</p><p>Ok now we have a better understanding of the frame we are creating over our data. Let’s go even further by calculating necessary things right inside the function!</p><h3>What are the Types of Window Functions</h3><h4>Aggregate</h4><p>Common aggregate window functions include SUM(), AVG(), MIN(), MAX(), COUNT(), ROW_NUMBER(), RANK(), and DENSE_RANK().</p><ul><li>Let’s say you want to know the total sales for each pizza size in a month to compare each sale to the total sales of that pizza size.</li></ul><pre>SELECT<br>    customer_name,order_date,pizza_size,total_price,<br>    SUM(total_price) OVER (PARTITION BY pizza_size) AS total_sales<br>FROM<br>    pizza_orders<br>WHERE<br>    order_date &gt;= &#39;2024-01-01&#39; AND order_date &lt;= &#39;2024-01-31&#39;;</pre><pre>| customer_name | order_date | pizza_size | total_price | total_sales |<br>| ------------- | ---------- | ---------- | ----------- | ----------- |<br>| Alice         | 2024-01-05 | Large      | 25.00       | 75.00       |<br>| Alice         | 2024-01-20 | Large      | 28.00       | 75.00       |<br>| Bob           | 2024-01-22 | Large      | 22.00       | 75.00       |<br>| Dave          | 2024-01-28 | Medium     | 32.00       | 103.00      |<br>| Alice         | 2024-01-10 | Medium     | 30.00       | 103.00      |<br>| Alice         | 2024-01-30 | Medium     | 26.00       | 103.00      |<br>| Charlie       | 2024-01-15 | Medium     | 15.00       | 103.00      |<br>| Charlie       | 2024-01-25 | Small      | 18.00       | 57.00       |<br>| Eve           | 2024-01-03 | Small      | 19.00       | 57.00       |<br>| Bob           | 2024-01-07 | Small      | 20.00       | 57.00       |</pre><p>In this query, we’re using the SUM() aggregate window function to calculate the total sales (total amount) for each pizza size within the specified month.</p><h4>Ranking</h4><p>Ranking window functions in SQL assign positions or ranks to rows in a result set based on specified sorting criteria, facilitating tasks like ranking, percentile calculations, and identifying outliers.</p><ul><li>Your pizzeria has introduced a new “Supreme Pizza,” and you want to rank all orders by their total price.</li></ul><pre>SELECT<br>    order_id,<br>    total_price,<br>    RANK() OVER (ORDER BY total_price DESC) AS price_rank<br>FROM<br>    pizza_orders;</pre><pre>| order_id | total_price | price_rank |<br>| -------- | ----------- | ---------- |<br>| 8        | 32.00       | 1          |<br>| 2        | 30.00       | 2          |<br>| 5        | 28.00       | 3          |<br>| 9        | 26.00       | 4          |<br>| 1        | 25.00       | 5          |<br>| 6        | 22.00       | 6          |<br>| 3        | 20.00       | 7          |<br>| 10       | 19.00       | 8          |<br>| 7        | 18.00       | 9          |<br>| 4        | 15.00       | 10         |</pre><p>This query uses the RANK() ranking window function to assign a rank to each order based on its total price, with the highest-priced order getting the top rank.</p><h4>Analytic</h4><p>Analytic window functions in SQL enable advanced data analysis and calculations by operating on specific subsets or “windows” of rows within a result set, preserving data granularity. These functions include LAG(), LEAD(), FIRST_VALUE(), LAST_VALUE(), PERCENTILE_CONT() .</p><ul><li>You want to know the price difference between the current order and the next order for a specific customer.</li></ul><pre>SELECT<br>    customer_id,<br>    order_id,<br>    total_price,<br>    LEAD(total_price) OVER (PARTITION BY customer_id ORDER BY order_date) AS next_order_price_difference<br>FROM<br>    pizza_orders<br>WHERE<br>    customer_id = 123;</pre><pre>| customer_id | order_id | total_price | next_order_price_difference |<br>| ----------- | -------- | ----------- | --------------------------- |<br>| 123         | 1        | 25.00       | 30.00                       |<br>| 123         | 2        | 30.00       | 28.00                       |<br>| 123         | 5        | 28.00       | 26.00                       |<br>| 123         | 9        | 26.00       |                             |</pre><p>In this query, we use the LEAD() analytic window function to compare the total price of the current order with the total price of the next order for a particular customer, helping you identify any changes in spending habits.</p><p>Window functions in SQL are powerful tools that can transform the way you interact with data. Like any good magic, they require practice and creativity. Dive into your data, cast these spells, and watch the magic happening. Remember, in the world of data, the only limit is your imagination. Happy querying! 🧙‍♀️✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4c23d7908fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a multilingual blog with Gatsby using Wordpress as headless CMS]]></title>
            <link>https://medium.com/tio-ist/building-a-multilingual-blog-with-headless-wordpress-gatsby-66a4031a1ce5?source=rss-84b64639592b------2</link>
            <guid isPermaLink="false">https://medium.com/p/66a4031a1ce5</guid>
            <category><![CDATA[gatsbyjs-blog]]></category>
            <category><![CDATA[gatsbyjs]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[headless-cms]]></category>
            <category><![CDATA[headless]]></category>
            <dc:creator><![CDATA[Sedanur Yıldız]]></dc:creator>
            <pubDate>Tue, 07 Dec 2021 14:18:37 GMT</pubDate>
            <atom:updated>2021-12-13T16:14:21.602Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, I’m a digital product developer @<a href="https://medium.com/u/fd180d72c580">TİO</a>, a digital product studio based in Istanbul. This post is about creating a GatsbyJS website with blog function using Wordpress as a headless CMS.</p><p>Even though I originally started digital product development with PHP, I never approached Wordpress as a good option. Maybe it’s because I felt limited with design or the setup was somehow always problematic. At <a href="https://medium.com/u/fd180d72c580">TİO</a> we even created our own very basic CMS platform for the blogs we developed JUST FOR THE SAKE OF NOT using WP. 🙃</p><p>But it’s almost 2022 and well it’s time for headless systems! The idea of Wordpress being just a reliable backend source just stole my heart as I can now use the blog posts with my very custom designed gatsby website. YEEAY.</p><p>Content managers love the WP admin dashboard as they are used to it and we don’t have to teach anyone how to use the CMS we built. :) I still love how to-the-point it was for our case but it’s time to be faster than ever.</p><p>Setting up the gatsby wordpress starter blog with my already existing gatsby website took only 1 hour. I was so happy when I saw how easy it was to just follow the GitHub documentation and see it working like a charm. ✨</p><p>BUT things got a little bit more complicated. In <a href="https://medium.com/u/fd180d72c580">TİO</a>’s website we have both english and turkish content, so we wanted to create a multilingual blog which serves seperate blog posts for each language. After a long search I couldn’t find a ready-made solution as it’s relatively a new concept. So I came up with my own solution by hacking the gatsby-node.js a little bit. I’m curious to see alternative solutions, so if you come across with a better solution please let me know!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*JsQ02mOx6epT8wLR2GemEA.png" /></figure><h3><strong>How to create multilingual blog posts with gatsby and Wordpress?</strong></h3><p>First follow the gatsby-starter-wordpress-blog instructions until 7th step to set up your blog with gatsby.</p><p><a href="https://github.com/gatsbyjs/gatsby-starter-wordpress-blog">GitHub - gatsbyjs/gatsby-starter-wordpress-blog</a></p><p>Then install Polylang plugin to your wordpress. Choose language of the blog posts you added. I did not use the translation method, I simple have different blog posts for each language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ON7bPmXhS-5oDT4v8iEbFg.png" /><figcaption>install Polylang plugin to your wordpress</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-FHHa0UN0wHM8G9NVN-YQw.png" /><figcaption>Choose language of the blog posts you added</figcaption></figure><p>Now we need to add polylang languages and translations into the GraphQL schema. For this we will use WP GraphQL Polylang plugin. When I searched in add new plugin page of wordpress I couldn’t find this plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMhNltifYfrjYwloBJcq7g.png" /><figcaption>I couldn’t find any plugin for WP GraphQL and Polylang</figcaption></figure><p>As I’m not a wordpress expert I lost time by checking up my wordpress version, php version etc. It was weird for me to not to find something I see in another tutorial. But I didn’t give up and discovered the magical button of upload plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*fgYKd2muNLLF40OSq_tj7w.png" /><figcaption>That lovely upload plugin button</figcaption></figure><p><a href="https://github.com/valu-digital/wp-graphql-polylang">https://github.com/valu-digital/wp-graphql-polylang</a></p><p>I just downloaded the plugin from GitHub as zip. and simple uploaded to wordpress. And I could see the languages in my graphQL query. ✨ Many thanks to @valu-digital.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1O0-W_QUajjnqcVJ9o5v0w.png" /><figcaption>Filtering posts by language in GraphiQL IDE.</figcaption></figure><p>Now we need to edit gatsby-node file to generate pages according to languages and use different template files to adapt language-based content.</p><p><strong>Generating multi-lingual blog posts with GatsbyJS:</strong></p><p>1- We create a function to query the active languages in your wordpress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8wMaLLju_GIM-6KQW_CNw.png" /><figcaption>A function to query the active languages in your wordpress</figcaption></figure><p>We add language parameter to getpost query to filter posts with language</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9iE-ZuskAqyG0UmIj2_Vg.png" /><figcaption>Add language parameter to getpost query to filter posts with language</figcaption></figure><p>2- Edit main generatePages function to get the languages and create blog posts for each language in the system</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FRsZu7rKbUmsXJyxRl3pqQ.png" /><figcaption>Edit the main createPages function to loop the languages in the system</figcaption></figure><p>3- Create your blog post and archive templates for each language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*WbO18cd-GkUOz3kzKI-4TQ.png" /><figcaption>Create your blog post and archive templates for each language.</figcaption></figure><blockquote><strong>!! Don’t forget to change the name of the page query in the additioanl language template as it can’t be duplicate in a project.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DE9xmupDwhc7jVItuOvkXA.png" /></figure><p>4- Add language parameters to individual blog post generating function and blog archive generation function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CpS_gldtBWxKL2GHJPsQRg.png" /></figure><p>5- Define template for the language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TorXcBa_T4638RqjuDzkg.png" /><figcaption>Define template for the language</figcaption></figure><p>6- Generate pages based on the template by passing the template file to createPage function as the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTq7XPSXwUOV8XdlreOZ3A.png" /><figcaption>Pass the template file into the createPage function as the component.</figcaption></figure><p>6- That’s it! ✨</p><p><a href="https://github.com/sedyldz/gatsby-starter-wordpress-blog">https://github.com/sedyldz/gatsby-starter-wordpress-blog</a></p><p>Here is the github repo where I edited the official starter. You can have a look in the gatsby-node.js file and the templates. Don’t forget to update gatsby-source-wordpress plugin settings in gatsby-config.js with your wordpress url where you setup polylang plugin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j3jMwi3NpNBy7RdoNyempA.png" /></figure><p>I hope it is useful for anyone who is searching for making a multilingual blog with headless Wordpress and GatsbyJs.</p><p>Don’t forget to check out tio’s blog page as the final result of this tutorial. 👇</p><p><a href="https://tio.ist/blog">Our latest news, stories and insights.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66a4031a1ce5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tio-ist/building-a-multilingual-blog-with-headless-wordpress-gatsby-66a4031a1ce5">Building a multilingual blog with Gatsby using Wordpress as headless CMS</a> was originally published in <a href="https://medium.com/tio-ist">tio.ist</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getir kullanmayı neden bıraktım?]]></title>
            <link>https://medium.com/@sedanuryildiz/getir-kullanmay%C4%B1-neden-b%C4%B1rakt%C4%B1m-87000a340203?source=rss-84b64639592b------2</link>
            <guid isPermaLink="false">https://medium.com/p/87000a340203</guid>
            <category><![CDATA[getir]]></category>
            <category><![CDATA[digital-product]]></category>
            <category><![CDATA[criticism]]></category>
            <dc:creator><![CDATA[Sedanur Yıldız]]></dc:creator>
            <pubDate>Tue, 16 Jun 2020 17:05:12 GMT</pubDate>
            <atom:updated>2020-06-16T17:13:24.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*IhvVJIdfLN9PdB1Hg6ADHA.png" /></figure><p><em>Bu yazımda Getir’de kendi sipariş verilerimi analiz ederek neden artık benim için karlı bir ürün olmadığını açıklamaya çalıştım. Tamamen kendi fikir ve yorumlarıma dayanan bir deneyim yazısıdır.</em></p><p><a href="https://getir.com/">Getir</a>, yaptığı son güncelleme ile su siparişlerini normal siparişlerden ayırarak Getirsu bölümünü açtı. Uzun zamandır Getir’i fanatiklik derecesinde hem kullanıp hem çevreme faydalarını anlatarak gönüllü marka elçiliklerini yapıyordum. Fakat bu güncelleme ile benim gibi birçok müşteriyi kaybetme noktasına gelmiş olabilirler.</p><p>Getir’den su söyleme sebebim kapıda ödeme yapmak zorunda kalmamak, siparişin ne zaman geleceğini takip edebilmek gibi faydalarının yanında su yanında birkaç ıvır zıvır alarak daha fazla karda olduğumu hissetmekti.</p><p>10 Ocak 2019 tarihinden itibaren <strong>49</strong> sipariş vermişim. Yalnızca su söylediğim sipariş sayısı <strong>21</strong>, su söylemeden başka ürünler aldığım sipariş sayısı ise <strong>9</strong>. Bu 9 siparişin 9&#39;u da karantina döneminde verdiğim siparişler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*abtwp59Dvi4xealfxUWvnw.jpeg" /><figcaption>Getir sipariş geçmişim</figcaption></figure><p>Bu siparişlerimi yeni sistem ile veriyor olsaydım %18&#39;ini Getir, %42&#39;sini Getirsu ile vermiş olacaktım. Fakat siparişlerimin %40&#39;ını oluşturan “Su alırken yanında birkaç şey daha alma” siparişlerimi verebileceğim sistem <strong>artık mümkün değil.</strong></p><p>Getir gibi başarıyla büyüdüğünü severek takip ettiğimiz bir girişimin özellikle karantinada sistemi kapatacak müşteri sayısına erişmişken üründe bu kadar büyük böyle bir değişiklik yapmalarına biraz şaşırdım.</p><p>Getir ekibi kullanıcı verilerinden de faydalanarak daha verimli hizmet verebilmek için bu yöntemi seçmiş olabilir. Ama basit bir kullanıcı olarak bu karar benim Getir yerine yerel su markamın yeni geliştirdiği online sipariş sistemine yönelmeme sebep oldu.</p><p>Ben bir şekilde ikna olmuş bir kullanıcı olarak 5 TL fazla vererek su söylerken şu an Getir’in bana sağladığı kazanç hissinin azaldığını hissediyorum. Eskiden su söylerken getirme ücreti olmadığı için, fiyatları marketten 1–2 TL fazla olan yoğurt, süt, soda gibi ürünleri de taşımak zorunda kalmamak için alıyorken şimdi hem getirme ücreti, hem minimum sipariş kısıtı sebebiyle Getir’den acil durumlar dışında sipariş vereceğimi sanmıyorum. ☹️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*drEehleUhRYG8nz9lkFUsg.png" /></figure><p>Ürün ailesinden Getirbüyük kullanmayı denediğim birkaç seferde de onlarca ürünle sepetimi oluşturup sipariş verme ekranında ‘aşırı yoğunluk’ sebebiyle sipariş alamadıkları yazısıyla beni hayal kırıklığına uğrattı. Ve oluşturduğum sepeti normal Getir’e aktaramadım, uğraştığımla kaldım.</p><p>Kullanıcı deneyimi laboratuvar ortamlarında yapılan çeşitli testler veya kullanıcı görüşmelerindense en iyi ürünü fiilen kullanan kullanıcının oluşturduğu veriden analiz edilebilir diye düşünüyorum. Belki de birçok kullanıcının bu halini tercih edeceğine dair analizler yapmışlardır. Öyleyse de bunun ürün için daha iyi olacağına müşterilerini ikna eden bir iletişim yolu izlemeleri faydalı olabilirdi.</p><p>Yine de başarılarını ve serüvenlerini merakla takip etmeye devam ediyor, Getir’i seviyorum. 💜</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87000a340203" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How did I “hack” Instagram’s API restrictions? ]]></title>
            <link>https://medium.com/@sedanuryildiz/how-did-i-hack-instagrams-api-restrictions-aedce7aaaaee?source=rss-84b64639592b------2</link>
            <guid isPermaLink="false">https://medium.com/p/aedce7aaaaee</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[instagram-marketing]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <dc:creator><![CDATA[Sedanur Yıldız]]></dc:creator>
            <pubDate>Thu, 28 May 2020 21:01:47 GMT</pubDate>
            <atom:updated>2020-05-30T19:04:43.524Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been looking for a way to export my followings list from Instagram for a while. There are some chrome extensions and libraries but they all seemed like they will just steal my account and make likes to pictures I’ve never seen or even worse.</p><p>I still wanted to give it a chance, so I created a random Instagram account, followed some random people and gave access to the extension from a private window. But it takes way too much time as there is a <strong>delay</strong> between every request to Instagram’s API.</p><p>Well, I thought ok maybe I can do it myself! As I’m doing #100daysofcode challenge and I was looking for some ways I can write code for fun projects except work. So here is a really easy solution for <strong><em>how to export the list of people you follow on Instagram in 5 minutes.</em></strong></p><p>I just inspected the web app, I realized I can just scroll down to fetch all the list and copy the html list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fWH3MQ8FNebVKuPhNNIFYQ.png" /></figure><p>Even if it looks like tangled, all the list elements have same class names which makes the data much easier to manipulate with Javascript.</p><p>After getting the html I wrote only 6 lines of code with jquery to create an array of my following list. Yes, it’s that simple!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f081BOqpnmeqa_RDenOyug.png" /><figcaption>Adding Instagram followings list to an array with Javascript.</figcaption></figure><p><strong>My code is really simple:</strong><br>Create an empty array, <br>Loop through all the list elements which has a css class ‘d7ByH’ <br>Get the href link of the a tag in this list element (Instagram username of the account)<br>Get the next element’s inner html content (Instagram full name of the account)<br>Add these to following array.</p><p><strong>Here is my list:</strong> ✌️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unuj9cdoBoWfyF1HT2EFIA.png" /></figure><h3><strong>Ok, but…</strong></h3><p>For me I had 490 followings in my list, so it took 5 minutes to get what I wanted, including scrolling and writing the code, well that’s not too bad! <strong>But</strong> what if there are thousands in your following list how would you scroll down to get the full list?</p><blockquote><em>UPDATE: Scrolling can be also hacked with a simple js function on the browser. Many thanks to </em><strong><em>Furkan Gürsoy</em></strong><em> for this improvement.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-tGdOIR3c_VZrlKC_loHCA.gif" /><figcaption>Auto-scrolling with scroll function</figcaption></figure><pre>function scrollDown() { <br>  document.getElementsByClassName(&quot;isgrP&quot;)[0].scrollTo(0, 99999999); <br>} <br>setInterval(scrollDown, 0)</pre><p>In the inspect mode you can go to console and write a Javascript code and it would work as a code from the website itself. Quite magical, isn’t it? So with this code piece, you can select the ‘isgrP’ div which includes the list with following accounts and scroll to the end. ✅</p><p>Or what if you want more detailed information about the accounts you follow like their biography or else?</p><p>For these purposes you might check out those tools I mentioned or actually dive into Instagram’s API.</p><p>The next steps for me will be trying to scrape these profiles to get a list of their website with python. I will share it as well. Stay tuned! 🛎</p><p>Do you think this is a lazy solution and not artificial intelligence enough to be cool? 🤓 Or the best code is the one solves your problem in the shortest time with minimum effort possible? I’m an entrepreneur and I just wanted to scrape the websites of my potential customers from their Instagram accounts. Instead of spending time or energy on getting the list, I will spend my time on actually building relationships with these target customers.</p><p>As <a href="https://medium.com/u/fd180d72c580">TİO</a>, we are always looking up these kind of code challenges to find new team members, some creativity and solving the problem without too much hustling. I will note this one down for some further ideation. I’m also happy that I actually did something practical today for the challenge. 🥳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aedce7aaaaee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>