<?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 Mümin Celal Pinar on Medium]]></title>
        <description><![CDATA[Stories by Mümin Celal Pinar on Medium]]></description>
        <link>https://medium.com/@mumincelalpinar?source=rss-962d5f85194c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P9pIevy5TQVRLAMdnM2ibA.png</url>
            <title>Stories by Mümin Celal Pinar on Medium</title>
            <link>https://medium.com/@mumincelalpinar?source=rss-962d5f85194c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 01:25:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mumincelalpinar/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[NestJS: Weird swagger request body loading problem because of the circular dependency]]></title>
            <link>https://mumincelalpinar.medium.com/nestjs-weird-swagger-request-body-loading-problem-because-of-the-circular-dependency-731fddd24afe?source=rss-962d5f85194c------2</link>
            <guid isPermaLink="false">https://medium.com/p/731fddd24afe</guid>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[circular-dependencies]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[swagger]]></category>
            <dc:creator><![CDATA[Mümin Celal Pinar]]></dc:creator>
            <pubDate>Fri, 22 Jan 2021 06:52:55 GMT</pubDate>
            <atom:updated>2021-01-22T06:52:55.770Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQFk3k82dInf2eMAUyVx9g.jpeg" /><figcaption>Photo by Unsplash</figcaption></figure><p>JavaScript is an interesting language. Sometimes, a code block/line that gives same output in other languages like C#, Java etc. doesn’t give same output in JavaScript. Welcome the JavaScript world.</p><p>Today JavaScript environment has a lot of frameworks. Each of them is solving one problem. Some of them has huge impact, some of them has not. NestJS is the framework has huge impact in JavaScript world. It is used to develop back-end applications and inspired by Angular.</p><p>When I was developing and back-end application with NestJS, I realized a weird problem. When developing a Web API with NestJS, the framework creates swagger document from API controllers. One of my API endpoint was <strong>POST </strong>request and getting data as body. What I realized is that somehow API body was not rendering on swagger document and below output was emerging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lqG-M-UnFJS9iAVX08EgHg.png" /></figure><p>Document says that “<em>Could not render r, see the console”. </em>And I looked at browser console to find logical error to understand the reason.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wfq14Z5kuHrk8823DoGQwA.png" /></figure><p>As you see from the browser console we couldn’t understand what is causing the problem. Unfortunately, it is really hard to understand cause of the problem and solve it because there is no logical and understandable error message anywhere. If you experienced this error before, it takes a lot of time to solve, days or weeks.</p><p>Almost whole NodeJS developers know and use <em>index.js</em> or <em>index.ts</em> files to group related files called <em>barrel. </em>At some point in the application, related files could be called from each other. The problem arises at this point. Imagine two classes in different files, both are being exported from their barrel file and one class is calling another.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b76730db4db25f3eb4ec2d5e32ff075a/href">https://medium.com/media/b76730db4db25f3eb4ec2d5e32ff075a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ceaedcff6502dc824d9c2f3b6c85cf9f/href">https://medium.com/media/ceaedcff6502dc824d9c2f3b6c85cf9f/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c616c6ef3cb6b3538313c54cc79ce5b5/href">https://medium.com/media/c616c6ef3cb6b3538313c54cc79ce5b5/href</a></iframe><p>If you looked at <strong>cat.dto.ts</strong> file, you can see that identifier.dto.ts file is being called from this file and these two files are exported from barrel file. In this usage, a circular dependency is happening between cat.dto.ts and identifier.dto.ts with help of barrel file because identifier.dto.ts file is called from barrel file in cat.dto.ts. Below approach will solve the problem.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/41a8d1bc1188c4ea30f512f2ea330770/href">https://medium.com/media/41a8d1bc1188c4ea30f512f2ea330770/href</a></iframe><p>I hope it help you with this problem. Thank you for reading. If you have further questions and comments, please write down to comments section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=731fddd24afe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Responsive design with styled-components in React]]></title>
            <link>https://mumincelalpinar.medium.com/responsive-design-with-styled-components-in-react-30128c4e1d18?source=rss-962d5f85194c------2</link>
            <guid isPermaLink="false">https://medium.com/p/30128c4e1d18</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[styled-components]]></category>
            <dc:creator><![CDATA[Mümin Celal Pinar]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 14:14:24 GMT</pubDate>
            <atom:updated>2020-11-23T14:14:24.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lLGYJXaxAKqdevef94-QQ.png" /><figcaption>Photo by Unsplash.</figcaption></figure><p>We are entering some amount of websites on the internet while we are surfing and using our mobile phones, tablets, laptops, desktops, etc. during this surfing. At first, these websites were just suitable for large screens like our desktop monitors. As you know we can not see these types of websites on our small size devices properly and these websites must support small size devices. So, the “Responsive Design” approach emerged.</p><p>The Responsive Design ensures that websites are displayed properly on devices of different screen sizes. Today, we are using different responsive design packages like Bootstrap but these packages can be insufficient most of the time and trying to create our responsive design approach.</p><p>In this article, I will show you how to create your responsive design approach to get more flexibility.</p><p>The responsive design approach leans on the grid structure. This structure divides the screen into grids (Bootstrap is using 12 grids to divide the screen.) and. There are 3 elements in this structure and they are the heart of the grids.</p><p><strong>Container:</strong> It is the outer element that wraps the whole website page. The size of it is the same as the body element.<br><strong>Row:</strong> It is a row as you know and creates an invisible row on the page.<br><strong>Column:</strong> It is a column as you know and creates an invisible column on the page.</p><p>I hope you can understand what is responsive design and how grids work. Now we can jump into the code. I am using React and styled-components and typescript to implement grid structure for the responsive design. styled-components is the most popular styling library for React.</p><p>First of all, we need to set screen sizes to implement a responsive design. We can set them like below. You can extend screen size as you wish.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83c556a114878c42cbb058fd1c6a5961/href">https://medium.com/media/83c556a114878c42cbb058fd1c6a5961/href</a></iframe><p>According to screen size with of the element should be calculated. Below function will do the math.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c24d2f465237865bd3b74c27792c210a/href">https://medium.com/media/c24d2f465237865bd3b74c27792c210a/href</a></iframe><p>Below we are setting some options that our custom responsive design support.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0d0d8c914fa3f756dfdac5cf332e5f3/href">https://medium.com/media/c0d0d8c914fa3f756dfdac5cf332e5f3/href</a></iframe><p>Now that we make the necessary settings we can start to write 3 important elements of grid structure. You can find code of every element below.</p><p><strong>Container:</strong></p><p>Container component will wrap whole screen that will be injected into itself and will give full screen size support to the injected component.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ccd97b0996dd14c1e797c9c404cac1ee/href">https://medium.com/media/ccd97b0996dd14c1e797c9c404cac1ee/href</a></iframe><p><strong>Row:</strong></p><p>Row creates block element according to Container component.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f4f1455905e6d4a504d576afa2319c2/href">https://medium.com/media/3f4f1455905e6d4a504d576afa2319c2/href</a></iframe><p><strong>Column:</strong></p><p>Column creates inline element according to Container and Row components.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17cd81d19f5d78672f5fe3b59247d593/href">https://medium.com/media/17cd81d19f5d78672f5fe3b59247d593/href</a></iframe><p>So far, we wrote grid structure for the responsive design. Now lets see how to use this custom grid structure.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e37726b92ce8c89bbbe0d6349dee3b4a/href">https://medium.com/media/e37726b92ce8c89bbbe0d6349dee3b4a/href</a></iframe><p>That’s it. We created a custom responsive design structure without using any ui components. It is lightweight, easy to use and highly customizable. You can extend above configurations as you wish in your projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30128c4e1d18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>