<?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 Yaprak Ayazoğlu on Medium]]></title>
        <description><![CDATA[Stories by Yaprak Ayazoğlu on Medium]]></description>
        <link>https://medium.com/@yaprakaya?source=rss-ef888bedd035------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OaEcY9ULawq5SBgZN1kLXg.jpeg</url>
            <title>Stories by Yaprak Ayazoğlu on Medium</title>
            <link>https://medium.com/@yaprakaya?source=rss-ef888bedd035------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:06:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yaprakaya/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[RxJS — from, catchError, subscribe]]></title>
            <link>https://medium.com/@yaprakaya/rxjs-from-catcherror-subscribe-b11d9dbadca2?source=rss-ef888bedd035------2</link>
            <guid isPermaLink="false">https://medium.com/p/b11d9dbadca2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[observables]]></category>
            <category><![CDATA[rxjs]]></category>
            <category><![CDATA[reactive-streams]]></category>
            <dc:creator><![CDATA[Yaprak Ayazoğlu]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 19:09:22 GMT</pubDate>
            <atom:updated>2020-04-22T20:02:02.547Z</atom:updated>
            <content:encoded><![CDATA[<h3>RxJS — from, subscribe</h3><p>I have been using RxJS for a long while and I have watched different video lectures and read several tutorials and blog posts. Majority of the time, the examples are provided with <em>timers</em>, <em>intervals</em>, etc. Those examples gave no insight to me other than defining the behavior of the operator or feature. I simply missed practical usages.</p><p>In this series of blog posts, I would like to provide you practical real-life examples so that you can have a better idea of the strength of both RxJS and its operators.</p><p>I will start with making an end request with axios, converting a promise into an observable and consume it by subscribing to it and explain the reactive fluent syntax line by line.</p><p>Follow me in this possible scenario on your web app:</p><p>You want to display an information that you fetch from an endpoint and you want to handle the errors gracefully.</p><p>Here you can make your end request as follows:</p><pre>import { from, of } from &quot;rxjs&quot;;<br>import <strong><em>axios</em></strong>, { AxiosResponse } from &#39;axios&#39;;<br>import { catchError } from &quot;rxjs/operators&quot;;<br><br>from(<br>    <strong><em>axios</em></strong>.get(&#39;http://api.tvmaze.com/singlesearch/shows?q=fringe&#39;)<br>).subscribe((response: AxiosResponse) =&gt; {<br>  <strong><em>console</em></strong>.log(&#39;Show&#39;, response.data.name); // Show Fringe<br>});</pre><p>Axios returns us a promise and in order to initiate a observable <br>sequence we have to use “from” function to convert a promise into <br>an observable. Then, you must subscribe to it to consume this <br>observable chain.</p><p>Please don’t forget to subscribe to your observable, otherwise it won’t<br>work. It will simply wait for you to subscribe to it.</p><p>In the next edition, I will give examples about handling errors gracefully.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b11d9dbadca2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make your toddler interested in moon landing?]]></title>
            <link>https://medium.com/@yaprakaya/how-to-make-your-toddler-interested-in-moon-landing-88e35dfc2345?source=rss-ef888bedd035------2</link>
            <guid isPermaLink="false">https://medium.com/p/88e35dfc2345</guid>
            <category><![CDATA[kids-and-tech]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[space]]></category>
            <category><![CDATA[stem-education]]></category>
            <category><![CDATA[saturn-v]]></category>
            <dc:creator><![CDATA[Yaprak Ayazoğlu]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 15:06:52 GMT</pubDate>
            <atom:updated>2020-01-14T15:06:52.339Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I bought a 3D printer to enrich the imaginary world of my toddler. My first topic is the outer space. This is a hard topic for him to grasp.</p><p>Months ago, I bought him a book about moon landing but I was not able to read him the full book. Book about trains, trucks, construction machines were his favorites because he was able to see those around him.</p><p>I observed that he has a longer span of attention if I trigger his different senses such as seeing, touching, hearing, etc. For instance, combining a story on a book with a toy that he can touch and an instructive video where he can see and hear would boost his learning speed.</p><p>I started off with printing <a href="https://www.thingiverse.com/thing:3097729">this Saturn V model</a>. It is designed as two separate pieces. Even with this unfinished pieces, he was already interested in the space and rockets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctTi1Tv6NyYxT2QRy9F_Nw.jpeg" /><figcaption>Saturn V model as two separate prints</figcaption></figure><p>I waited for him to go to sleep for the post production since he did not allowed me to touch his new toys :D Then, I glued them together and applied pressure while it dried:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dX6Fg4IYnyTNStZoaTmptA.jpeg" /></figure><p>I painted it with a permanent marker. It is not the best paint, but my toddler was already happy with it :D</p><figure><img alt="Saturn V model" src="https://cdn-images-1.medium.com/max/1024/1*PcIxUxtZdbbq8pUkofAGog.jpeg" /><figcaption>Saturn V final version</figcaption></figure><p>After printing this new toy, I was able to read him the Moonshot book for the first time! He was constantly comparing the Saturn V model and the one in the book. I felt so happy to see that.</p><p><a href="https://www.goodreads.com/book/show/5408376-moonshot">Moonshot</a></p><p>As an additional activity, we continued drawing our own Saturn V model, Apollo 11 Space Capsule and 3 astronaut laying inside. He said he is the middle astronaut :D</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fBUBuulSUwchyQu3DWQ7Q.jpeg" /></figure><p>Next, I continued with the Apollo astronaut. This guy guy help us even on the dinner table. My toddler was feeding one bite the astronaut first, then having one bite for himself. :D That was definitely fun!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0CCLB1nU4q35x9IAkmfow.jpeg" /></figure><p>My experiment was totally successful. I managed trigger his imagination about outer space.</p><p>Next, I will print him a solar system model. I already promised this to him. Already excited to see his output when I’m done.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88e35dfc2345" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning to interpret the performance tab of Developer Tools]]></title>
            <link>https://medium.com/@yaprakaya/learning-to-interpret-the-performance-tab-of-developer-tools-93aa4cbd56f5?source=rss-ef888bedd035------2</link>
            <guid isPermaLink="false">https://medium.com/p/93aa4cbd56f5</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Yaprak Ayazoğlu]]></dc:creator>
            <pubDate>Thu, 25 Jan 2018 21:46:59 GMT</pubDate>
            <atom:updated>2018-01-25T21:46:59.383Z</atom:updated>
            <content:encoded><![CDATA[<p>Prologue</p><p>Please note, I’m no expert in performance analysis. On the very contrary, I’m someone who wants to learn and understand to how to use the performance tab of developer tools. This series of articles will track my monologue of questions and answers to be excel in this subject. In each article I’ll keep asking questions and search to find answers to these questions and share my findings and helpful articles. Please, do not hesitate to write a comment, answer a question or share an article if you want to. So, this article can help you to learn how to learn something from scratch and I hope that comments and conversations below can also help you to learn the topic itself.</p><p>Day #1</p><p>Understanding the webpage performance has always been a personal goal for me for a long time. The topic was extremely interesting yet scary for me. Being a mom was always also looked challenging to me until the day I gave birth to my beloved son almost 6 months ago. Despite the hard work, it turned out to be the most joyful occupation of my life. This gave me the guts to become absorbed on this topic. So, today I’m starting a journey to learn and share a tiny bit of website performance each day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*Qam4ciH8rFgEof7b7KMmvQ.png" /></figure><p>Currently, I’m working on an Angular project which I picked as a subject project to investigate the performance. Here’s my first attempt:</p><p>1) Open the performance tab in developer tools<br>2) Click record<br>3) Click a checkbox on the page 4 times<br>4) Stop recording<br>5) Check the profile output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*VLZVlXFdjNQxHIT8X60wJg.png" /><figcaption>Profile record output</figcaption></figure><p>Ehm. There are several section-full of information but I do not know how to interpret it. Each day, I’ll try to figure out how to add meanings to this unknowns.</p><p>Each section has a name and <a href="https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/">this article</a> stand as a nice start and gave idea what is each section called.</p><p>For instance, I’ve learned that the chart under the main section is called the “flame chart”. First things first, I want to understand how to read this flame chart and why do we need this flame chart but not another type of visualization. I’ve just made a small research and found<a href="http://www.brendangregg.com/flamegraphs.html"> this website</a> and learned that Brendan Gregg has found this visualization to identify the most frequent code paths to profile a software.</p><p>In the chart above, the x axis is the time in ms and y axis is the main thread stack. It begins with an event click and event click initiates the “function call in zone.js”. “Function call in zone.js” caused “globalZoneAwareCallback” and this goes down to the bottom.</p><p>I feel that I have the basic understanding with a number of why and what questions… Now, I’ll only start with the 2 whys.</p><p>1) Why does the color of the first event is orange? <br>2) The 1st event (event click) is one whole block it feels like an umbrella to the whole click event. Click event splitted into two equal bars in the next line and caused a) Function Call (zone.js 1551) and b) Event (click). Why? What does it mean? If this is the main thread, what does it mean to have two events next to each other?</p><p>Well, apparently I have more than 2 why questions :P</p><p>I’ll keep digging…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93aa4cbd56f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>