<?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 Fazilet Kosure on Medium]]></title>
        <description><![CDATA[Stories by Fazilet Kosure on Medium]]></description>
        <link>https://medium.com/@faziletkosure1?source=rss-af193f0000dc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pzGDdvdo7AJBblbeu8Z1MQ.png</url>
            <title>Stories by Fazilet Kosure on Medium</title>
            <link>https://medium.com/@faziletkosure1?source=rss-af193f0000dc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:07:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@faziletkosure1/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[A Short Future-Reference for Debugging, Security Issues, and API Usage (Yelp API) with React Native]]></title>
            <link>https://medium.com/clarusway/a-short-future-reference-for-debugging-security-issues-and-api-usage-yelp-api-with-react-native-b21e4dbcc15a?source=rss-af193f0000dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b21e4dbcc15a</guid>
            <category><![CDATA[yelp]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[openweathermap-api]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[environment-variables]]></category>
            <dc:creator><![CDATA[Fazilet Kosure]]></dc:creator>
            <pubDate>Sat, 24 Oct 2020 01:44:50 GMT</pubDate>
            <atom:updated>2020-10-25T01:47:10.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9GGTKM-eve2AA5R7" /><figcaption>Photo by <a href="https://unsplash.com/@baciutudor?utm_source=medium&amp;utm_medium=referral">Tudor Baciu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As promised, I am back to share some beginner-level knowledge that I recently internalized all along with my ongoing full-stack Bootcamp. Last month our schedule was very intense, and I could hardly find time to write human-readable content other than machine-readable codes 🤓.</p><p>Anyway, let’s get started. Neither I nor you have plenty of time. In this short article, you will find some debugging and security tips over an API implementation with react-native, namely Yelp API.</p><blockquote>“The Yelp API gives developers access to Yelp’s wealth of high quality, local content across 50 million businesses across 32 international markets.”</blockquote><p>I won’t mention the details over the documentation just because it is clear enough. You can find further details here: <a href="https://www.yelp.com/developers">Yelp API</a>. But I can say that it is a fully-fledged API that can meet your needs for all front-end, back-end, and testing purposes.</p><p>I would like to emphasize that this writing is only focused on how to get a response from the API and additionally, over some basic security concerns. Anyway, after getting the response body from the endpoint, the sky is the limit.🌈 I am sure you have lots of great ideas on how to use and present that data in your outstanding projects.</p><p>Steps to follow:</p><ul><li>Get your API key from <a href="https://www.yelp.com/developers">this page</a>.</li><li>Create an app from <a href="https://www.yelp.com/developers/v3/manage_app">here</a>.</li><li>Jump into your coding environment and initialize your react-native project. If you don’t have the necessary set-up yet, please visit <a href="https://reactnative.dev/docs/environment-setup">here</a>.</li></ul><p>Right here, let’s catch a breath and consider some security concerns. Be warned that this is an API with a<strong> personal API key</strong>. A common beginner fault is uploading the API credentials to GitHub. No need to mention the dangers of that. ⚠️ To avoid this, please follow the consecutive steps:</p><ul><li>Be sure that you have a .gitignore file in the root directory.</li><li>Create a .env file and add it to your .gitignore file.</li><li>Install these two packages to be able to manage environment variables within the react-native setting.</li></ul><ol><li><a href="https://www.npmjs.com/package/react-native-config">react-native-config</a></li><li><a href="https://www.npmjs.com/package/react-native-dotenv">react-native-dotenv</a></li></ol><p>🚥 At that point, I would like to mention some hardships with regards to the possible obstinate emulator and/or npm related errors emerging from newly added packages in case you don’t fully abide by the instructions. Please, don’t be in a hurry in this phase. If you make a mistake here, believe me, you will waste lots of your time debugging to be able to see the lovely mobile screen again.</p><p>🚥 As a rule of thumb, do not install new packages while your node terminal on which your app is running is active. If you use CocoaPods, please remember running pod install <strong><em>(cd ios &amp;&amp; pod install &amp;&amp; cd ../ &amp;&amp; react-native run-ios)</em></strong> before restarting your app.</p><p>Yet, if the build is unsuccessful, don’t panic, this happens to the best of us. Just read the error message and behave accordingly. In most cases, a fresh npm install may be needed. Those are the most common steps for it <em>(of course subject to change according to your development environment)</em>:</p><ul><li>Clear watchman watches:<strong><em> watchman watch-del-all</em></strong></li><li>Delete node_modules: <strong><em>rm -rf node_modules</em></strong></li><li>Install again: <strong><em>npm install</em></strong> or <strong><em>yarn</em></strong></li><li>Install pods: <strong>cd ios &amp;&amp; pod install &amp;&amp; cd ../ &amp;&amp; react-native run-ios</strong></li><li>If needed, reset metro’s cache: <strong><em>yarn start –reset-cache</em></strong></li><li>If needed, for android: <strong>cd android &amp;&amp; ./gradlew clean &amp;&amp; cd ..</strong></li></ul><p>Assuming that you are done with the new package installations, let’s move over to the API call part. As I mentioned above, put your API key in your .env file (if it doesn’t exist, create one.) Here, use no quotations.</p><pre>                                                                .env</pre><pre>YOUR_API_KEY=someApiKey33ClarusWayE2134     </pre><p>In your component, add the lines below to safely use your API keys without being exposed to the world. Yelp needs a header for the search string which you can easily create within an object and pass as a second parameter to fetch (or Axios) call.</p><pre>                                                    SomeComponent.js</pre><pre><strong>import</strong> Config <strong>from</strong> &quot;react-native-config&quot;;</pre><pre>const <strong>apiKey</strong> <strong>=</strong> Config<strong>.</strong><em>YOUR_API_KEY;</em></pre><pre>const <strong>config</strong> <strong>=</strong> {<br>    headers: {<br>        Authorization: &#39;Bearer &#39; <strong>+</strong> <strong>apiKey</strong>,<br>    },<br>};</pre><pre>const fetchCafes <strong>=</strong> (location, term) <strong>=&gt;</strong> {<br>    fetch(`https://api.yelp.com/v3/businesses/search?                    term=${term}&amp;location=${location}`, <strong>config</strong>)</pre><pre><strong>        .</strong>then((<strong>response</strong>) <strong>=&gt;</strong> response<strong>.</strong>json())<br>        <strong>.</strong>then(<strong>json</strong> <strong>=&gt;</strong> {<br>            console<strong>.</strong>log(json<strong>.</strong><em>businesses</em>)<br>        })</pre><pre><strong>        .</strong>catch((<strong>error</strong>) <strong>=&gt;</strong> console<strong>.</strong>error(error))</pre><pre><strong>        .</strong>finally(() <strong>=&gt;</strong> {//some code here});<br>}</pre><p>Now that you see the response body with some help of the old good console.log command, the rest is upon you. Make some great projects with it. If you have read till here, you deserved a virtual hug from me 🤗.</p><p>For further details, you can visit <a href="https://github.com/FaziletKosure/react-native-Weather-app">my GitHub repository </a>and explore the full source code there. Please don’t keep your expectations high, it is an easy sandbox project over which I implemented my newly learned react-native knowledge using a weather API (<a href="https://openweathermap.org/api">OpenWeather API</a>), <a href="https://www.yelp.com/developers/documentation/v3">Yelp API</a>, <a href="https://reactnavigation.org/">navigation</a>, and <a href="https://www.npmjs.com/package/react-native-webview">WebView</a>.</p><p>YouTube link of the Preview is here: <a href="https://youtu.be/cU8Bt5uX2hw">https://youtu.be/cU8Bt5uX2hw</a></p><p>Pull requests and feedback are more than welcome. I am always ready to update my article according to your comments in order not to be the spreader of erroneous information🤭. Hope to see you in my next article. Until then keep yourself safe and healthy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b21e4dbcc15a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/clarusway/a-short-future-reference-for-debugging-security-issues-and-api-usage-yelp-api-with-react-native-b21e4dbcc15a">A Short Future-Reference for Debugging, Security Issues, and API Usage (Yelp API) with React Native</a> was originally published in <a href="https://medium.com/clarusway">Clarusway</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This is the very beginning of my Writing Journey!]]></title>
            <link>https://faziletkosure1.medium.com/this-is-the-very-beginning-of-my-writing-journey-fc0edd3bae07?source=rss-af193f0000dc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc0edd3bae07</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html-css]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[learning-curve]]></category>
            <dc:creator><![CDATA[Fazilet Kosure]]></dc:creator>
            <pubDate>Tue, 15 Sep 2020 00:16:54 GMT</pubDate>
            <atom:updated>2020-09-15T09:07:44.687Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Every programmer is an author…</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n6064MUYjqR_oIAh" /><figcaption>Photo by <a href="https://unsplash.com/@thoughtcatalog?utm_source=medium&amp;utm_medium=referral">Thought Catalog</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a passionate reader of awesome Medium articles, I finally found the necessary level of courage to start sharing my educational attainments during my full-stack bootcamp.</p><p>It is a heavily scheduled bootcamp, and it’s not hard to imagine that I don’t have the luxury to implement time efficiency. Consequently I don’t have much time to write and edit. Thus, I found a middle way solution that could support my learning curve and also add some value to the community at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*MHJClmPoGZ5cUoy9vuCRDw.jpeg" /><figcaption>…the learning pyramid</figcaption></figure><p>Once I made myself clear enough about my motive to write, now let me explain the writing topics. My writings will be a collage of some newly learned usages and handy tips over some concepts parallel to my bootcamp curriculum. This is the first month of my bootcamp, hence, in this first article, you will find small tips and tricks over HTML/CSS. Let me tell you a little secret: Those insights were disclosed to me mostly in the dead of night 😃.</p><pre>if (youAre === &#39;ACuriousBeginnerInWebDevelopment&#39;) {<br>    alert(`This article (hopefully those series of articles) may be something for your eyes.`) </pre><pre>} else if (youAre === &#39;alreadyAPro&#39;) {<br>    alert(`Be warned that this article can be a waste of time for you`)</pre><pre>} </pre><pre>/* But yet, your feedbacks and contributions are highly valuable and more than welcome. */</pre><p>So let’s get started…</p><p><strong>How to make the first character Uppercase:</strong></p><p>As a developer, you may need to style some parts of a text differently from the rest. Do you have any suggestions for that? Yes, you are right. We can easily do that using &lt;span&gt; tag. Easy peasy lemon squeezy. But this approach can be a bit annoying and tends to result in a messy HTML structure.</p><figure><img alt="…messy solution with span" src="https://cdn-images-1.medium.com/max/618/1*8OnvbBAoIkxZLKc87uSNzw.png" /><figcaption>… messy solution with span 😜</figcaption></figure><p>Well, this code will likely get some fervent comments even from peer reviewers, let alone seniors 😨. I can hear you complaining like ‘But if a senior do that, it might be considered as an outstanding approach.’ You may be right, however being a junior is hard in any profession. We can’t solve this phenomenon here 🎃. So let’s move on…</p><p>How about using a pseudo-class selector? That already sounds a tad more professional, right? Let’s give it a try:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*YUkKznokhK_jXSQAaTTB5A.png" /><figcaption>…seems good, nevertheless not the ideal solution</figcaption></figure><p>Congratulations. That provides a legit solution for the current situation, but yet far from the best practices.</p><p>Now, let me enhance the task: <em>Make the first word of a text phrase in a different color and also make its first and last letters uppercase.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*iNV4J2REhxvEd9XJyWK4qQ.png" /><figcaption>…but here, we manipulated the HTML.</figcaption></figure><p>Before exploring further, let me provide some information over data attributes:</p><blockquote><a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5">HTML5</a> is designed with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning. <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-*">data-* attributes</a> allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, extra properties on DOM, or <a href="https://developer.mozilla.org/en-US/docs/Web/API/Node/setUserData">Node.setUserData()</a>. More info at: <a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes">https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes</a></blockquote><p>Here, we used self-declarable data attribute to manipulate the last character of the first word. Because there is no :last-letter pseudo-class selector!</p><p>Another implementation detail that wouldn’t escape from your careful eyes is that: we added display: inline-block to span. Because in order for :first-letter pseudo-class selector to work, the applied element needs to be either block or inline-block. In the former example, since the p tag was already block, we haven’t encountered any problems.</p><p>I wanted to overemphasize this, because if you aren’t aware that only block elements can be styled with :first-letter pseudo selector, life could get miserable for a beginner 😎</p><p>If you are still with me, let’s try the same once more, but this time keeping HTML untouched:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*c0fNUoVMuCP6XzxY5evdCg.png" /><figcaption>…done with pure css, but so what?</figcaption></figure><p>As you feel it, there must be an easier solution. This is a typical situation that can be easily solved with JavaScript.</p><p>Now, I will try it with JavaScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*5dCjlJcbsjew1FIJPInICA.png" /></figure><p>It may seem a bit amateurish for now, but <strong>stay tuned</strong>. I hope you have begun to feel a little bit of the power of JavaScript.</p><p>More exciting JavaScripts articles are yet to come!</p><p><em>To be continued…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc0edd3bae07" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>