<?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 Ceren Şolpan Türe on Medium]]></title>
        <description><![CDATA[Stories by Ceren Şolpan Türe on Medium]]></description>
        <link>https://medium.com/@cerenture?source=rss-1200561ebe35------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yuN8ZcE-EdhyG2lCUyzpGA.jpeg</url>
            <title>Stories by Ceren Şolpan Türe on Medium</title>
            <link>https://medium.com/@cerenture?source=rss-1200561ebe35------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:02:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cerenture/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[Next.js 13]]></title>
            <link>https://cerenture.medium.com/next-js-13-2aba908d8c9?source=rss-1200561ebe35------2</link>
            <guid isPermaLink="false">https://medium.com/p/2aba908d8c9</guid>
            <category><![CDATA[nextjs-13]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Ceren Şolpan Türe]]></dc:creator>
            <pubDate>Fri, 30 Dec 2022 07:59:22 GMT</pubDate>
            <atom:updated>2022-12-30T07:59:22.724Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mllgho23BhL_MH3Rski_yA.png" /><figcaption><a href="https://nextjs.org/">https://nextjs.org/</a></figcaption></figure><p>Vercel, the company behind the popular React framework Next.js, released the latest version of the framework on October 25th, 2022. This new version, Next.js 13, includes updates and improvements to features such as layout, data fetching, and routing, as well as a faster bundler. These changes are intended to make it easier for developers to create fast, scalable, and reliable web applications using React.</p><p>One new feature in Next.js 13 is the introduction of route segments, which allows developers to create nested routes by placing pages within folders within the app directory. When creating routes within these folders, developers can use page.jsx instead of index.jsx.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*JKndh1ddsmGjYEy_maoyLA.png" /></figure><p>In the previous versions of Next.js, developers were required to create a layout folder in order to share UI between multiple pages. However, with the release of Next.js 13, this is no longer necessary as the layout is now included by default when creating a new project. The layout in Next.js 13 is interactive and does not need to be re-rendered, making it easier for developers to work with.</p><p>In addition to the inclusion of the default layout, Next.js 13 also introduces simplifications to the API for fetching data. The old APIs <em>getServerSideProps</em>, <em>getStaticProps</em>, and <em>getInitialProps</em> are no longer supported and have been replaced with a new API that is designed to be easier to use.</p><h4><strong>Similar to ‘getServerSideProps’</strong></h4><p>When the send request using getServerSideProps., should be cached ‘no-store’.</p><pre>fetch(URL, { cache: &#39;no-store&#39; });</pre><h4><strong>Similar to ‘getStaticProps’</strong></h4><p>When the send request using getServerSideProps, should be cached ‘force-cache’.</p><pre>fetch(URL, { cache: &#39;force-cache&#39; });</pre><h4><strong>Similar to ‘getStaticProps with the revalidate option</strong>’</h4><p>When cached with a lifetime of seconds</p><pre>fetch(URL, { next: { revalidate: 30 } });</pre><h4>Turbopack(Alpha)</h4><p>Turbopack is a faster bundler compared to Webpack, Vite. Also, Turbopack uses clever caching techniques to improve the handling of source changes in an optimized manner. Turbopack holds a model of the changes that were already built and only builds those based on ongoing changes. You can try out Turbopack if you run ‘<em>next dev — — turbo’.</em></p><p>Turbopack results in:</p><blockquote><strong>700x faster</strong> updates than Webpack</blockquote><blockquote><strong>10x faster</strong> updates than Vite</blockquote><blockquote><strong>4x faster</strong> cold starts than Webpack</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UeQzqSQ7gUBk9WyBQBX7gw.png" /><figcaption><a href="https://nextjs.org/blog/next-13">https://nextjs.org/blog/next-13</a></figcaption></figure><h4><strong>‘use client’</strong></h4><p>Components can automatically be rendered as server component and if we want to use ‘useState’ and ‘useEffect’ client hooks, it is necessary to write ‘use client ’ at the beginning of the file.</p><pre>&#39;use client&#39;;<br><br>import { useState } from &#39;react&#39;;<br><br>export default function Navbar() {<br>  const [title, setTitle] = useState(&#39;React&#39;);<br><br>  return (<br>    &lt;div&gt;<br>      &lt;p&gt;{title}&lt;/p&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><h4><strong>next/link</strong></h4><p>In previous versions of Next.js, the &lt;a&gt; had to be nested within &lt;Link&gt; in order to properly render a link. However, with the release of Next.js 13,&lt;Link&gt; now always renders &lt;a&gt; by default.</p><pre>import Link from &#39;next/link&#39;<br><br>// Next.js 12: <br>&lt;Link href=&quot;/checkout&quot;&gt;<br>  &lt;a&gt;About&lt;/a&gt;<br>&lt;/Link&gt;<br><br>// Next.js 13<br>&lt;Link href=&quot;/checkout&quot;&gt;<br>  About<br>&lt;/Link&gt;</pre><h4><strong>next/image</strong></h4><p>In the previous versions of Next.js, it was required to specify the ‘alt’ attribute for the image in order to avoid an error. However, with the release of Next.js 13, you no longer need to the ‘alt’ attribute.</p><pre>import Image from &#39;next/image&#39;;<br>import logo from &#39;./logo.png&#39;;<br><br>function Navbar() {<br>  return &lt;Image alt=&quot;logo&quot; src={logo} /&gt;;<br>}</pre><h4>@next/font</h4><p>According to Next.js 13 new font system, you can optimize your custom fonts and also use Google fonts without any request from the browser. The only thing you need to do is install the @next/font package. You can use it like this:</p><pre>import { Inter } from &#39;@next/font/google&#39;;<br><br>const inter = Inter();</pre><p>Resources:</p><ul><li><a href="https://nextjs.org/blog/next-13">Next.js 13</a></li><li><a href="https://blog.logrocket.com/next-js-13-new-app-directory">Next.js 13: Working with the new app directory - LogRocket Blog</a></li></ul><p><strong><em>Thank You, See you in the next article !!</em></strong></p><p><em>You can reach out to me here,</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/cerensolpan/">https://www.linkedin.com/in/cerensolpan/</a></p><p><em>GitHub: </em><a href="https://github.com/cerensolpan">https://github.com/cerensolpan</a></p><p><em>Twitter:</em> <a href="https://twitter.com/cerensolpanture">https://twitter.com/cerensolpanture</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2aba908d8c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Nuggets — Filter & Find]]></title>
            <link>https://cerenture.medium.com/javascript-nuggets-filter-find-ded89be747be?source=rss-1200561ebe35------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded89be747be</guid>
            <category><![CDATA[array-methods]]></category>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nuggets]]></category>
            <category><![CDATA[arrays]]></category>
            <dc:creator><![CDATA[Ceren Şolpan Türe]]></dc:creator>
            <pubDate>Wed, 28 Jul 2021 20:52:54 GMT</pubDate>
            <atom:updated>2021-07-28T20:52:54.265Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript Nuggets — Filter &amp; Find</h3><p>In this story which is the second of this series, I will explain filter() and find() methods.</p><p>Filter returns a new array. The difference from map() method is can manipulate the size of the new array. If there are no matches according to condition, returns an empty array.</p><pre>const people = [<br>  {<br>    name: &#39;Ceren&#39;,<br>    age: 29<br>  },<br>  {<br>    name:&#39;Esra&#39;,<br>    age:34<br>  },<br>  {<br>    name:&#39;Aslı&#39;,<br>    age:20<br>  }<br>];</pre><pre>const young= people.filter((person)=&gt;{<br>  return person.age &lt;30;<br>});<br>console.log(young); //[{name:&#39;Ceren&#39;,age:29},{name:&#39;Aslı&#39;,age:20}]</pre><pre>// no match<br>const name= people.filter((person)=&gt; person.name === &#39;Seda&#39;;<br>);<br>console.log(name); //[]</pre><p>Find method returns a single object and first match according to condition. If there are no matches, returns undefined.</p><pre>const people = [<br>  {<br>    name: &#39;Ceren&#39;,<br>    age: 29<br>  },<br>  {<br>    name:&#39;Esra&#39;,<br>    age:34<br>  },<br>  {<br>    name:&#39;Aslı&#39;,<br>    age:20<br>  }<br>];</pre><pre>// first match<br>const young= people.find((person)=&gt;{<br>  return person.age &lt;30;<br>});<br>console.log(young); //{name:&#39;Ceren&#39;,age:29}</pre><pre>// no match<br>const name= people.find((person)=&gt; person.name === &#39;Seda&#39;;<br>);<br>console.log(name); //undefined</pre><pre>const animals= [&#39;dog&#39;,&#39;duck&#39;,&#39;giraffe&#39;,&#39;camel&#39;];<br>const animal= animals.find((animal)=&gt; animal === &#39;giraffe&#39;);<br>console.log(animal); // giraffe</pre><p><em>I tried to explain filter() and find() methods which are the JavaScript methods. If you want to see more details, you can review my codes on my Github profile</em>.</p><p><em>If I have any mistakes, please feedback to me.</em></p><p><strong><em>Thank You!</em></strong></p><p><em>You can reach out to me here,</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/cerensolpan/">https://www.linkedin.com/in/cerensolpan/</a></p><p><em>GitHub: </em><a href="https://github.com/cerensolpan">https://github.com/cerensolpan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded89be747be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Nuggets — Map]]></title>
            <link>https://cerenture.medium.com/javascript-nuggets-map-cc83c9375dad?source=rss-1200561ebe35------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc83c9375dad</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[higher-order-function]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[ecmascript]]></category>
            <dc:creator><![CDATA[Ceren Şolpan Türe]]></dc:creator>
            <pubDate>Sun, 18 Jul 2021 22:58:10 GMT</pubDate>
            <atom:updated>2021-07-18T22:58:10.352Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript Nuggets — Map</h3><p>In this story, I will explain JavaScript methods. First of all, I began investigating map().</p><p>map() returns a new array and uses values from the original array when making a new one. It behaves as a <em>for</em> loop but the difference is that it uses less code and makes your code more readable.</p><pre>const people = [<br>  {<br>    name: &#39;Ceren&#39;,<br>    age: 29,<br>  },<br>  {<br>    name:&#39;Esra&#39;,<br>    age:34,<br>  },<br>  {<br>    name:&#39;Aslı&#39;,<br>    age:20,<br>  }<br>];</pre><pre>const ages = people.map((person)=&gt;{<br>  return person.age;<br>});</pre><pre>console.log(ages); //[29,34,20]</pre><p>In this example, map() takes each element from the array.</p><pre>const people = [<br>  {<br>    name: &#39;Ceren&#39;,<br>    age: 29,<br>  },<br>  {<br>    name:&#39;Esra&#39;,<br>    age:34,<br>  },<br>  {<br>    name:&#39;Aslı&#39;,<br>    age:20,<br>  }<br>];</pre><pre>const newPeople = people.map((person)=&gt;{<br>  return {<br>    newName: person.name.toUpperCase().split(&quot;&quot;).reverse().join(&quot;&quot;),<br>    newAge: person.age+20,<br>  }<br>});</pre><pre>console.log(newPeople); <br></pre><pre>//CONSOLE</pre><pre>[<br>  {<br>    newName: &#39;NEREC&#39;,<br>    newAge: 49,<br>  },<br>  {<br>    newName:&#39;ARSE&#39;,<br>    newAge:54,<br>  },<br>  {<br>    newName:&#39;ILSA&#39;,<br>    newAge:40,<br>  }</pre><p>In another example, map() transforms it with a function that you specify and creates a new array. But here it should be noted the size of the original array doesn’t change.</p><p><em>I tried to explain map() method which is one of the JavaScript methods. If you want to see more details, you can review my codes on my Github profile</em>.</p><p><em>If I have any mistakes, please feedback to me.</em></p><p><strong><em>Thank You!</em></strong></p><p><em>You can reach out to me here,</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/cerensolpan/">https://www.linkedin.com/in/cerensolpan/</a></p><p><em>GitHub: </em><a href="https://github.com/cerensolpan">https://github.com/cerensolpan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc83c9375dad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Object-Oriented Programming (OOP) in JavaScript]]></title>
            <link>https://cerenture.medium.com/object-oriented-programming-oop-in-javascript-31e0011b877d?source=rss-1200561ebe35------2</link>
            <guid isPermaLink="false">https://medium.com/p/31e0011b877d</guid>
            <dc:creator><![CDATA[Ceren Şolpan Türe]]></dc:creator>
            <pubDate>Sat, 16 Jan 2021 23:44:01 GMT</pubDate>
            <atom:updated>2021-01-16T23:44:29.755Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UC_FwsRaeJ7LDidlpGGv1g.png" /><figcaption><a href="https://blog.alexdevero.com/fun-object-oriented-javascript/">https://blog.alexdevero.com/fun-object-oriented-javascript/</a></figcaption></figure><p>Object-Oriented Programming (OOP) is the programming model that focuses on objects. Objects are the basic building blocks that we build applications. Which concepts are more preferred? Which ways will we use it? In this article, I will try to explain them.</p><h4>OOP Concepts in JavaScript</h4><ul><li><strong>Abstraction </strong>shows the main features of the object and hides details. It is important because it helps avoid code duplication.</li><li><strong>Encapsulation </strong>aims to hide data and ensure to prevent access from the outside.</li><li><strong>Inheritance </strong>refers to the object to take on the properties and methods of another object.</li><li><strong>Polymorphism </strong>refers to multiple objects use the same functionality and perform a single action in a different way.</li></ul><h4>How to create ‘class’?</h4><pre>class User {<br>  constructor(name,age) {<br>    this.name = name;<br>    this.age = age;<br>    this.playlist = [];<br>  }<br>}</pre><p>The <em>constructor</em> function contains the basic properties of the class. These properties will be unique and defined on each User. In the constructor function, <em>this </em>indicates User and also let to access values.</p><p>If we want to define someone as a User, we can create a new User object that specified features.</p><pre>const ceren = new User(&#39;Ceren&#39;,29);</pre><pre>console.log(ceren.name) // Ceren<br>console.log(ceren.age) // 29</pre><h4><strong>How to create methods for class?</strong></h4><pre>class User {<br>  constructor(name,age) {<br>    this.name = name;<br>    this.age = age;<br>    this.playlist = [];<br>  }</pre><pre>  addPlaylist(song) {<br>    this.playlist.push(song);<br>  }<br>}</pre><p>In the example given above, we create <em>addPlaylist </em>method for adding songs to User.playlist. We are adding songs to the playlist with the ‘<em>push</em>’ command. But how do we create the songs that we want to add?</p><p>Firstly, we create a new class <em>Song </em>and create a new object/objects.</p><pre>class Song {<br>  constructor(name) {<br>    this.name = name;<br>  }<br>}</pre><pre>const lucky = new Song(&#39;Lucky&#39;);<br>const downtown = new Song(&#39;Downtown&#39;);</pre><pre>console.log(lucky.name) // Lucky<br>console.log(downtown.name) // Downtown</pre><p>Secondly, we need to add the Song objects that created to the User’s playlist. We make this using the addPlaylist method that created before.</p><pre>ceren.addPlaylist(lucky);<br>ceren.addPlaylist(downtown);</pre><pre>console.log(ceren.playlist)</pre><p>As we can see on the console, songs have been assigned to the user’s playlist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*hnbLRrbhAVKmACgmOeRIlA.png" /></figure><p><em>I tried to explain Object-Oriented Programming in a simple and basic form. If you want to see more details, you can review my codes on my Github profile</em>.</p><p><em>If I have any mistakes, please feedback to me.</em></p><p><strong><em>Thank You!</em></strong></p><p><em>You can reach out to me here,</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/cerensolpan/">https://www.linkedin.com/in/cerensolpan/</a></p><p><em>GitHub: </em><a href="https://github.com/cerensolpan">https://github.com/cerensolpan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31e0011b877d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP Requests using Axios in JavaScript]]></title>
            <link>https://medium.com/cnk-tech/http-requests-using-axios-in-javascript-767a8296a0d7?source=rss-1200561ebe35------2</link>
            <guid isPermaLink="false">https://medium.com/p/767a8296a0d7</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Ceren Şolpan Türe]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 21:58:52 GMT</pubDate>
            <atom:updated>2021-04-03T20:28:45.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*GjkID-7qsbsvpuxsir-jJA.jpeg" /><figcaption><a href="https://unsplash.com/@grakozy">https://unsplash.com/@grakozy</a></figcaption></figure><p>HTTP -Hypertext Transfer Protocol- is a protocol that allows us to communicate between requests from a web browser or client and responses from web servers. JavaScript provides the opportunity to perform HTTP requests with many alternative methods such as Ajax, Fetch, JQuery, Axios.</p><h4>Why Axios?</h4><p>Axios is a very popular promise-based HTTP client that works in both Browser and Node.js platforms. I prefer Axios in the examples because it provides more practical and comprehensive solutions for HTTP methods.</p><p>We can make HTTP requests using different methods in JavaScript. But how? Here are the most commonly used methods:</p><p>1.GET: This method is used to get data from the server. Query texts can be sent in the URL. Get is better for the data which does not require security because the URL is displayed on the screen and parameters are stored in server logs, and browser history.</p><ul><li>axios.get(url[, config])</li></ul><pre>axios.get(&#39;API_URL&#39;)<br>  .then((response) =&gt; {<br>    console.log(response.data);<br>  });</pre><p>2. POST: This method is used to send and entity to specified resource. With this method, request parameters can be sent both in the URL and message body. Using the message body will prevent the security risks and POST requests do not remain in the browser history.</p><ul><li>axios.post(url[, data[, config]])</li></ul><pre>axios.post(&#39;API_URL&#39;, {<br>  Name: &#39;Ceren&#39;<br>})<br>.then((response) =&gt; {<br>  console.log(response);<br>}, (error) =&gt; {<br>  console.log(error);<br>});</pre><p>3. HEAD: It has a similar function to the GET method but without the response body. It is useful for checking a resource exists before Get request.</p><ul><li>axios.head(url[, config])</li></ul><pre>axios.head(&#39;API_URL&#39;, {<br>  params: {&quot;foo&quot;: &quot;bar&quot;}<br>})<br>.then((response =&gt; console.info(&quot;headers:&quot;, response.headers))<br>);</pre><p>4. PUT: This method is used to send data to update a resource on the server. It is useful for to send file content to the server. The difference from POST method, the same source is accessed with the same address. If there is content, it is replaced with the incoming data, if not, new content is created.</p><ul><li>axios.put(url[, data[, config]])</li></ul><pre>axios.put(&#39;API_URL&#39;,<br>&quot;putdata&quot;,<br>{headers: {&quot;Content-Type&quot;: &quot;text/plain&quot;}}<br>)<br>.then(r =&gt; console.log(r.status))<br>.catch(e =&gt; console.log(e));</pre><p>5. DELETE: You can delete any data on the server with this method.</p><ul><li>axios.delete(url[, config])</li></ul><pre>axios.delete(&#39;API_URL&#39;, {<br>headers: {<br>Authorization: authorizationToken<br>},data: {<br>source: source}<br>});</pre><p>6. PATCH: This method used to update partial resources. If you need to update only one field for the resourse, this method will be preferred.</p><ul><li>axios.patch(url[, data[, config]])</li></ul><pre>axios.patch(&#39;API_URL&#39;, args)<br>.then(res =&gt; res.data).catch(e =&gt; console.log(e));</pre><p>7. OPTIONS: This method used to query the server HTTP methods that can be used for a resource.</p><ul><li>axios.options(url[, config])</li></ul><p>Resources: <a href="https://www.npmjs.com/package/axios">https://www.npmjs.com/package/axios</a></p><p><strong><em>Thank You, See you in the next article !!</em></strong></p><p><em>You can reach out to me here,</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/cerensolpan/">https://www.linkedin.com/in/cerensolpan/</a></p><p><em>GitHub: </em><a href="https://github.com/cerensolpan">https://github.com/cerensolpan</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=767a8296a0d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cnk-tech/http-requests-using-axios-in-javascript-767a8296a0d7">HTTP Requests using Axios in JavaScript</a> was originally published in <a href="https://medium.com/cnk-tech">CNK Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>