<?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 Uğur Oruç on Medium]]></title>
        <description><![CDATA[Stories by Uğur Oruç on Medium]]></description>
        <link>https://medium.com/@uur_oruc?source=rss-ff5401a191b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Yjp8rY1DJlSpUUkV0yokzQ.png</url>
            <title>Stories by Uğur Oruç on Medium</title>
            <link>https://medium.com/@uur_oruc?source=rss-ff5401a191b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:12:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@uur_oruc/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[Engineering Monthly Round-Up (December 2022)]]></title>
            <link>https://medium.com/@uur_oruc/engineering-monthly-round-up-december-2022-ba24e1f01ab9?source=rss-ff5401a191b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba24e1f01ab9</guid>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[wrap-up]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Uğur Oruç]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 15:40:31 GMT</pubDate>
            <atom:updated>2023-01-10T16:25:49.486Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anKWV_MYEIo1gpuJp4WDgA.png" /></figure><p><em>Each month, the OAK’S LAB engineering team rounds up the latest news, insights, and events in the engineering world and shares them with you.</em></p><p>As we take strides into the new year, we hope that everyone achieved their goals in 2022. At OAK’S LAB, we did great work building strong products and playing a vital role in helping our founders attack their business goals, and we look forward to the new year and the direction that we are heading in. Let’s kick off 2023 with a newsletter about what we were reading and discovering in the last month of the year.</p><h3>News &amp; Exploration</h3><h4><a href="https://css-irl.info/logical-border-radius/">Logical Border Radius</a></h4><p>Michelle Barker has a confession about writing ‘border-radius’. Because it is difficult to remember the order of the values, she almost never does it shorthand. It turns out there are several ways to make the border-radius different, and her walkthrough (complete with code examples and graphics) should help you be able to write ‘border-radius’ shorthand in no time.</p><h4><a href="https://melonjs.org/">Create Games with JavaScript</a></h4><p>Did you ever want to write a game with JavaScript? If you did, this tool is for you. Melon JS is a “fresh, modern, &amp; lightweight” game engine that you can use to write your game. It’s fast (built with HTML 5). It’s free (forever). And it’s elegant (with all of its features). Go forth and create!</p><h4><a href="https://github.com/facebook/react/pull/25881">Renaming ‘useEvent</a>’</h4><p>With the confusion of ‘useEvent’, a new RFC has been proposed for React to rename it and explain ‘useEvent’ and the scope changes included with it.</p><h4><a href="https://vercel.com/blog/announcing-sveltekit-auth">SvelteKit receiving Auth Support</a></h4><p>With over 300,000 downloads per week, the Vercel team has seen the popularity and the power of <a href="https://next-auth.js.org/">NextAuth.js</a>. Now, they want to bring authorization to SvelteKit. While conceptually similar to Next.js for React, SvelteKit will provide an opinionated framework for building Svelte applications, and the SvelteKit Auth is the first framework outside of Next.js officially supported, built on top of the new @auth/core decoupled library.</p><h4><a href="https://www.jason.af/creativity-and-editing/">The Ugly Other Half of Creativity</a></h4><p>This article from Jason Lengstorf (host of the <a href="https://www.learnwithjason.dev/">“Learn with Jason”</a> podcast) does a deep dive into the concept of creativity. His ultimate discovery: “<strong>Creativity happens in two stages: first, unbounded imagination; then — more importantly — ruthless editing.</strong>” With a major emphasis on editing as the “ugly other half” of creativity, the article gives great advice on how to hone in your creative imagination in order to produce big new things.</p><h4><a href="https://github.com/evanbacon/expo-mdx">MDX on React-Native</a></h4><p>Have you ever wanted to use MDX on React-Native? Well, now you can. MDX is a powerful tool to write your documentation. Check out this GitHub page to discover the universal MDX implementation for Expo (React &amp; Metro).</p><h4><a href="https://www.twilio.com/blog/comparing-nextjs-nestjs-nuxt-gatsby">Next.js, Gatsby, NuxtJS, Nest… Which One to Choose</a></h4><p>Comparing JavaScript frameworks to find out which one is the one for you seems like the next big thing these days. Aside from the humourous fact that they all are starting to sound alike, this deep dive article from Twilio looks at the requirements for a web application, goes into a detailed comparison of the Next.js, Gatsby, NuxtJS, and Nest frameworks, and discusses how to choose the best one for your project. Dive in.</p><h3>A Few 2022 Wrapups</h3><h4><a href="https://web.dev/interop-2022-wrapup/">End-of-the-Year Wrapup from the Google Developer Team</a></h4><p>In this article, the Google Developer Team looks back at all the features that became interoperable throughout 2022. The Interop 2022 initiative saw browser compatibility issues identified by web developers tackled by all major browser vendors and stakeholders. And it doesn’t stop here. Check out the article to see all the progress that browsers have made, and make sure to go to <a href="https://web.dev/submit-your-proposals-for-interop-2023/">Interop 2023</a> to submit your proposals for what should be solved in the new year.</p><h4><a href="https://www.githubunwrapped.com/">GitHub Unwrapped</a></h4><p>Do you want to see how your year has been on GitHub? Check out GitHub Unwrapped to see a personalized video of your GitHub 2022 activity and share it with your fellow devs.</p><h3>A Final Challenge</h3><p>We’re closing it out with another engineering challenge brought to you by Cassidy Williams. (You can <a href="https://cassidoo.co/newsletter/">subscribe to her newsletter</a> for all things new and cool in the world of web development.)</p><p>Given a string of any length, which contains only digits from 0 to 9, replace each consecutive run of the digit 0 with its length.</p><pre>replaceZeros(&quot;1234500362000440&quot;);<br><br>// 1234523623441<br><br>replaceZeros(&quot;123450036200044&quot;);<br><br>// 123452362344<br><br>replaceZeros(&quot;000000000000&quot;);<br><br>// 12<br><br>replaceZeros(&quot;123456789&quot;);<br><br>// 123456789</pre><p><em>If you or someone you know is looking for an engineering position either remotely or in Prague, check out our job openings. We’re hiring!</em></p><h3>Our Jobs</h3><p>Do you want to shape the future and help build companies from scratch? Here is a list of job openings available right now at OAK’S LAB.</p><ul><li><a href="https://www.oakslab.com/jobs-digital/qa-analyst-tester">QA Analyst (Tester), Prague</a></li><li><a href="https://www.oakslab.com/jobs-digital/senior-frontend-engineer">Senior Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/tech-lead">Tech Lead, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/full-stack-engineer">Senior Full Stack Engineer (Node.js / React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/backend-engineer-node-js">Senior Backend Engineer (Node.js), Prague, Remote</a></li></ul><p>That’s the end of the December 2022 Engineering Monthly Round-Up. Thank you for reading, and we hope you’ve enjoyed the articles, libraries, and insights we shared. We look forward to seeing what next year brings our way. If you have any comments, suggestions, or other interesting material to share, please feel free to comment below or send me an email directly at <a href="/service/mailto:ugur@oakslab.com">ugur@oakslab.com</a>. Thank you again, and we’ll be back next month.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba24e1f01ab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering Monthly Round-Up (October 2022)]]></title>
            <link>https://medium.com/@uur_oruc/engineering-monthly-round-up-october-2022-fcc3224a7d52?source=rss-ff5401a191b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcc3224a7d52</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Uğur Oruç]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 11:59:27 GMT</pubDate>
            <atom:updated>2022-11-07T11:59:27.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sP_1gTSdPYx-ihuZTRW0ZA.png" /></figure><p><em>Each month, the OAK’S LAB engineering team rounds up the latest news, insights, and events in the engineering world and shares them with you.</em></p><p>October was strong and steady for the engineers at OAK’S LAB. After crushing our objectives last quarter, we spent the month kicking off new OKRs and focusing our energy on the projects at hand. And while we stayed busy building products, we learned a little on the way. From conferences and new releases to exciting features and thought-provoking articles, here’s what we had our eye on in October 2022.</p><h3>Engineering News and Insights</h3><h4>Next.js 13</h4><p>The highlight of October for us was the Next.js Conference and the release of Next.js 13, both of which brought us amazing features and pushed the community and other libraries forward. <a href="https://vercel.com/">Vercel</a> (the company behind Next.js) has been working on a lot of features for the framework. Here are a few of the highlights:</p><ul><li>Layouts, loading, and error state for pages/folders</li><li>Server first default and React Server Components</li><li>Dynamic HTML streaming</li><li>Turbopack, the successor to Webpack, with up to 700x faster performance</li><li>And many more</li></ul><p>In case you missed it…</p><ul><li><a href="https://bit.ly/3E72YNH">Watch the Next.js Conference recordings</a>.</li><li><a href="https://bit.ly/3U0uhhW">Read the Next.js 13 beta docs</a>. (Tip: You can leave comments directly on the page for the team.)</li></ul><p>And you didn’t hear it from us, but one of the core members of the React team said, “This release is the actual release for React 18.”</p><h4><a href="https://bit.ly/3UpoGBQ">Is it time to break up with CSS-in-JS?</a></h4><p>Is CSS-in-JS bad? You might be wondering how it works, what are the benefits, and at what cost. Sam Magura (the second most active maintainer of the <a href="https://emotion.sh/">Emotion</a> CSS library) has written all about it in a blog post that outlines the pros, cons, and why key performance issues drove him away from CSS-in-JS altogether.</p><h4><a href="https://bit.ly/3zIZNJo">Node.js 19</a></h4><p>Node.js 19 was released last month! The Node team worked hard to release this new version, and it’s finally available. The “current” Node.js is no longer “18,” which enters long-term support. Some highlights from the release:</p><ul><li>“Watch” mode has been introduced to listen to import changes on your project.</li><li>WebCrypto is now stable.</li><li>The V8 engine got an update to v10.7.</li></ul><h4><a href="https://bit.ly/3FH9VWQ">Are the decorators finally ready?</a></h4><p>JavaScript decorators have finally reached stage 3 of the <a href="https://exploringjs.com/impatient-js/ch_history.html#tc39-process">TC39 process</a>. With Babel support in place and TypeScript support on the way, this blog post details stage 3 of the ECMAScript proposal <a href="https://github.com/tc39/proposal-decorators">“Decorators”</a> by Daniel Ehrenberg and Chris Garrett. Dive in to find out everything you need to know about the history and future of decorators.</p><h4><a href="https://bit.ly/3FGWKoz">Signal Boosting</a></h4><p>The Preact team <a href="https://preactjs.com/blog/introducing-signals/">introduced “Signals”</a> a while ago, and it brings a new way of state management that is already popular in other libraries and frameworks. The team has introduced a new version, and “Signal” can be used on React as well. With this, you will no longer need “dependencies” on your React Hooks. But you will be able to define states easier, and it will push you to do more reactive programming.</p><h4>Halloween has come and gone… 🎃</h4><p>But it’s always good to be prepared for next year. This October we found <a href="https://bit.ly/3NyT769">Dracula UI</a>, a UI library that is perfect for adding some Halloween-type themes to your websites. Feel free to explore, and as a disclaimer: We don’t take any responsibility if visitors bounce from fright.</p><h3>Extra Things to Read and Watch</h3><ul><li>Self-care is of the utmost importance. And running yourself into the ground is a genuine hazard. Read more about how to <a href="https://bit.ly/3NxL4X9"><strong>protect yourself from burnout</strong></a>.</li><li>“Indulge me a moment, and picture the following scenario.” James Sinclair wrote a beautiful and comprehensive essay that explores the question: <a href="https://bit.ly/3sTzPyT"><strong>What if my team hates my functional code</strong></a><strong>?</strong></li><li>Check out this video of Jack Herrington as he discusses <a href="https://bit.ly/3U82Z9t"><strong>how to make React context as fast as any state manager out there</strong></a>.</li><li>And finally… we’ve said it once, and we’ll say it again. <a href="https://nextjs.org/conf?utm_source=article&amp;utm_medium=medium&amp;utm_campaign=oct+eng"><strong>Next.js Conference is the event to watch</strong></a>.</li></ul><h3>A Few Libraries to Browse:</h3><ul><li><strong>Prisma:</strong> Our lovely ORM framework has released v4.5. Here are the <a href="https://bit.ly/3U2ox7z">release notes</a>. (To read more about why we chose and love Prisma, check out my latest article: <a href="https://bit.ly/prismablog">4 Ways We Use Prisma to Speed Up Development</a>.)</li><li><strong>Turbopack:</strong> Vercel’s new Webpack successor. <a href="https://bit.ly/3FCk8DT">Alpha is out</a>.</li></ul><h3>A Final Challenge</h3><p>We’re closing it out with another engineering challenge.</p><p>Do you trust your JS skills? Try to spot the bug without running the following code:</p><pre>const petName = &#39;Leo&#39;<br>const placeholder = &#39;{NAME}&#39;<br>const reminderTemplate = &#39;{NAME} is due for another visit. Please call us so we can set up a new appointment. We look forward to seeing you and {NAME} soon.&#39;</pre><pre>const reminder = reminderTemplate.replace(placeholder, petName)</pre><p>Need help? See the answer at the end of the article.</p><p><em>If you or someone you know is looking for an engineering position either remotely or in Prague, check out our job openings. We’re hiring!</em></p><h3>Our Jobs</h3><p>Do you want to shape the future and help build companies from scratch? Here is a list of job openings available right now at OAK’S LAB.</p><ul><li><a href="https://www.oakslab.com/jobs-digital/qa-analyst-tester">QA Analyst (Tester), Prague</a></li><li><a href="https://www.oakslab.com/jobs-digital/senior-frontend-engineer">Senior Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/tech-lead">Tech Lead, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/full-stack-engineer">Senior Full Stack Engineer (Node.js / React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/backend-engineer-node-js">Senior Backend Engineer (Node.js), Prague, Remote</a></li></ul><p>That’s the end of the October 2022 Engineering Monthly Round-Up. Thank you for reading, and we hope you’ve enjoyed the articles, libraries, and insights we shared. We look forward to seeing what next month brings our way. If you have any comments, suggestions, or other interesting material to share, please feel free to comment below or send me an email directly at <a href="/service/mailto:ugur@oakslab.com">ugur@oakslab.com</a>. Thank you again, and we’ll be back next month.</p><p>ANSWER:</p><p><em>The “replace” method in JavaScript only replaces the first match. So, using this will not replace every instance for the “placeholder.” To fix that, you should use the “replaceAll” method. This will replace all the occurrences in the string. Or you can quickly write RegExr for this.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcc3224a7d52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Ways We Use Prisma to Speed Up Development]]></title>
            <link>https://medium.com/@uur_oruc/4-ways-we-use-prisma-to-speed-up-development-a3c05f71d3d3?source=rss-ff5401a191b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3c05f71d3d3</guid>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[prisma]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Uğur Oruç]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 14:59:28 GMT</pubDate>
            <atom:updated>2022-10-21T14:59:28.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5O9UOOEUp2_bzNtBsx6WbA@2x.png" /></figure><p>In the startup world, if your business depends on software and its data, being agile and moving fast is crucial. Many changes will be needed over time, and your application should be able to handle those changes.</p><p>For products and applications, databases are essential. Over time, model and field changes will heavily affect your application, and you need to be sure that everything is working as it was before, despite the fact that your new features include database changes.</p><p>With this in mind, selecting technologies is often challenging due to the many libraries and technologies available in the world. At <a href="https://www.oakslab.com/">OAK’S LAB</a>, we chose <a href="https://www.prisma.io/">Prisma</a> as the library to help us move forward quickly, safely, and reliably when we build our startups.</p><h3>Prisma: The Node.js/TypeScript ORM</h3><p>Prisma is an Object-Relational Mapping (ORM) tool for Node.js and TypeScript. It is type-safe and easily integrates into our stack for database modeling, migrations, and the connection between our applications and database.</p><p>Prisma takes away most of the repetitive work from us and gives us back more control over our databases. Plus, it has a great developer experience (DX) so we can focus on business needs and build startups quickly and safely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3Da4Tbw5qKcP-4NBZQm9A@2x.png" /></figure><h3>4 Ways We Use Prisma</h3><p>Since our startups require constant updates and feature releases, we use Prisma in many ways. Let’s take a look at four main features that Prisma provides, which help us on a daily basis: data modeling, out-of-the-box migrations, adding subscriptions to GraphQL, and reliably using the same database on multiple applications.</p><h4>1. Data Modeling and Relations</h4><p>When a project first starts or when it is picked up from where it left off, one of two things needs to be done in order to understand the application. You either create your database model or inspect the database. Here’s how we use Prisma in both cases.</p><blockquote><strong>1. Creating your database model</strong></blockquote><p>Prisma allows you to create your models easily and understand them by providing a feature called <strong>Prisma Schema.</strong></p><p>Let’s look at an example.</p><p>We will be modeling below for a small blog where users will have multiple posts, and each post can have multiple attachments.</p><pre>generator client {<br>  provider = &quot;prisma-client-js&quot;<br>}<br> <br>datasource db {<br>  provider = &quot;postgresql&quot;<br>  url      = env(&quot;DATABASE_URL&quot;)<br>}<br> <br>model User {<br>  id String <a href="http://twitter.com/id">@id</a> <a href="http://twitter.com/default">@default</a>(cuid())<br> <br>  username String<br>  email    String<br> <br>  Post Post[]<br>}<br> <br>model Post {<br>  id String <a href="http://twitter.com/id">@id</a> <a href="http://twitter.com/default">@default</a>(cuid())<br> <br>  title     String<br>  content   String<br>  published Boolean<br> <br>  authorId String<br>  Author   User   <a href="http://twitter.com/relation">@relation</a>(fields: [authorId], references: [id])<br> <br>  Attachments Media[]<br> <br>  createdAt DateTime <a href="http://twitter.com/default">@default</a>(now())<br>  updatedAt DateTime <a href="http://twitter.com/updatedAt">@updatedAt</a><br>}<br> <br>model Media {<br>  id  String <a href="http://twitter.com/id">@id</a> <a href="http://twitter.com/default">@default</a>(cuid())<br>  url String<br> <br>  postId String<br>  Post   Post   <a href="http://twitter.com/relation">@relation</a>(fields: [postId], references: [id])<br>}</pre><p>By using Prisma Schema in this example, you can see how the models are connected and how each field is defined. All the definitions of fields have the database equivalent types underneath. You can even use types from the database directly.</p><blockquote><strong>2. Inspecting the database</strong></blockquote><p>When it comes to working with already existing databases, Prisma will help you understand and create a schema from it with a feature called <strong>Introspection.</strong></p><p>Introspection reviews the current model in your database and creates a schema for you based on the model that’s there. This method becomes especially valuable if you are not using the Prisma Migrate functionality (see next point for more on that). Introspection will keep your model up-to-date with the current database so that you don’t have to sync changes manually.</p><p>For a more detailed look at Prisma Schema, visit the <a href="https://www.prisma.io/docs/concepts/components/prisma-schema">Prisma Schema reference page</a>.</p><h4>2. Out-of-the-box Migrations (Prisma Migrate)</h4><p>You will often need many changes to the database in your application, and those changes should be the same in all environments you have. For example, if you are using other ORMs (like TypeORM or Sequelize), shipping changes require updates on your database relations and models. This means that you have to write all database changes yourself into a “.sql” file and make sure it applies to all environments.</p><p>Prisma helps you create these and ensures your changes can be applied to your database by providing a feature called <strong>Prisma Migrate. </strong>With Prisma Migrate, you don’t have to create “.sql” files by yourself. All you need to do is edit your Prisma schema, and Prisma will generate the migration file for you.</p><p>Let’s generate our migration with Prisma for the example we used above.</p><pre>1-- CreateTabl<br>2CREATE TABLE &quot;User&quot; (<br>3    &quot;id&quot; TEXT NOT NULL,<br>4    &quot;username&quot; TEXT NOT NULL,<br>5    &quot;email&quot; TEXT NOT NULL,<br>6<br>7    CONSTRAINT &quot;User_pkey&quot; PRIMARY KEY (&quot;id&quot;)<br>8);<br>9<br>10-- CreateTable<br>11CREATE TABLE &quot;Post&quot; (<br>12    &quot;id&quot; TEXT NOT NULL,<br>13    &quot;title&quot; TEXT NOT NULL,<br>14    &quot;content&quot; TEXT NOT NULL,<br>15    &quot;published&quot; BOOLEAN NOT NULL,<br>16    &quot;authorId&quot; TEXT NOT NULL,<br>17    &quot;createdAt&quot; TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,<br>18    &quot;updatedAt&quot; TIMESTAMP(3) NOT NULL,<br>19<br>20    CONSTRAINT &quot;Post_pkey&quot; PRIMARY KEY (&quot;id&quot;)<br>21);<br>22<br>23-- CreateTable<br>24CREATE TABLE &quot;Media&quot; (<br>25    &quot;id&quot; TEXT NOT NULL,<br>26    &quot;url&quot; TEXT NOT NULL,<br>27    &quot;postId&quot; TEXT NOT NULL,<br>28<br>29    CONSTRAINT &quot;Media_pkey&quot; PRIMARY KEY (&quot;id&quot;)<br>30);<br>31<br>32-- AddForeignKey<br>33ALTER TABLE &quot;Post&quot; ADD CONSTRAINT &quot;Post_authorId_fkey&quot; FOREIGN KEY (&quot;authorId&quot;) REFERENCES &quot;User&quot;(&quot;id&quot;) ON DELETE RESTRICT ON UPDATE CASCADE;<br>34<br>35-- AddForeignKey<br>36ALTER TABLE &quot;Media&quot; ADD CONSTRAINT &quot;Media_postId_fkey&quot; FOREIGN KEY (&quot;postId&quot;) REFERENCES &quot;Post&quot;(&quot;id&quot;) ON DELETE RESTRICT ON UPDATE CASCADE;<br>37</pre><p>While generating the migrations, Prisma reviews your current database and warns you in case your changes cannot be applied. You will be able to move safely for each environment because those will be using the same migration history and same structure.</p><p>For a more detailed look at Prisma Migrate, visit the <a href="https://www.prisma.io/docs/concepts/components/prisma-migrate">Prisma Migrate reference page</a>.</p><h4>3. The N+1 Problem</h4><p>In OAK’S LAB, we also use GraphQL for our APIs, and GraphQL introduces the N+1 problem because it has a graph-like structure. This problem occurs when multiple relations are fetched and the database is queried more times than necessary. For example, if you are requesting 10 relations for a single entity in a GraphQL query, this might execute “1+10(since N=10)” queries on the backend if it’s not handled correctly. That is not efficient, and it will cause long response times.</p><p><em>To read more about N+1, here’s a great article from Shopify that looks at </em><a href="https://shopify.engineering/solving-the-n-1-problem-for-graphql-through-batching"><em>solving the N+1 problem through batching</em></a><em>.</em></p><p>When Prisma is used appropriately with GraphQL, fetching relations is done as a batch (like a data loader) as opposed to being done one by one. Using Prisma for this approach removes the need for unnecessary calls to your database, thus saving time and resources.</p><p>To see how Prisma solves this problem, read about <a href="https://www.prisma.io/docs/guides/performance-and-optimization/query-optimization-performance">query optimization</a> directly from Prisma’s documentation.</p><h4>4. Middleware</h4><p>While using database operations in your applications, you might want to log them, tweak them, or react to them. For example, if you want to use “soft delete,” doing this in multiple places across your codebase on each delete might be cumbersome. For this scenario, you can take advantage of Prisma Middleware to tweak all the delete actions that are happening on the database level. In addition, if you want to find out all of your queries’ execution times, you can add logging for the queries.</p><p>Prisma Middleware lets you intercept any query that you are running so that you can have the fine-grained, declarative control you need.</p><p>To see how it works and to look at more examples, read about <a href="https://www.prisma.io/docs/concepts/components/prisma-client/middleware">Prisma Middleware</a> directly from Prisma’s documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1DHpqFUuHuQSypP4VppZjw@2x.png" /></figure><h3>In conclusion</h3><p>This is just a highlight of the most important features provided by <a href="https://www.prisma.io/">Prisma</a>. There are definitely more that we utilize and love. We could talk about it all day long. Prisma helps us every day to create type-safe queries and changes, and it gives us comfort that we are using databases safely.</p><p>Prisma might not be the solution for everyone and for every problem, but right now it solves most of our common struggles across all our projects. If you are curious about the differences between Prisma and other ORMs, <a href="https://www.prisma.io/docs/concepts/more/comparisons">check out how it compares</a>.</p><p>At OAK’S LAB, we mainly use TypeScript, Node.js, and GraphQL. And since Prisma is made for JavaScript and TypeScript, it integrates quickly and easily. While using Prisma, we don’t have to worry about the challenges that commonly arise on projects. We can focus more on creating features and building startups.</p><p>Using Prisma with these 4 features sums up why we love to work with the ORM. We can focus on what we need to build, and Prisma can take the extra work off our shoulders.</p><p><em>If you want to talk about Prisma and why we love it, you can find me on </em><a href="https://www.linkedin.com/in/uuroruc/"><em>LinkedIn</em></a><em> or send me an email at </em><a href="/service/mailto:ugur.oruc@oakslab.com"><em>ugur.oruc@oakslab.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3c05f71d3d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering Monthly Round-Up (September 2022)]]></title>
            <link>https://medium.com/@uur_oruc/engineering-monthly-round-up-september-2022-2d7b35241ce7?source=rss-ff5401a191b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d7b35241ce7</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[libraries]]></category>
            <dc:creator><![CDATA[Uğur Oruç]]></dc:creator>
            <pubDate>Fri, 07 Oct 2022 13:07:56 GMT</pubDate>
            <atom:updated>2022-10-07T13:34:45.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awARD_r2wpTm5gn5KzsKXw@2x.png" /></figure><p><em>Each month, the OAK’S LAB engineering team rounds up the latest news, insights, and events in the engineering world and shares them with you.</em></p><p>This past month at <a href="https://www.oakslab.com/">OAK’S LAB</a>, we smashed through objectives and closed out the quarter at the top of our game. Now, more than ever, we are looking forward to what the future will bring to our company, our department, and our projects. While we kick off Q4 on a high, let’s look back at what we discovered. We learned from interesting questions posed in the community, explored a number of new libraries, and signed up for some exciting events on the horizon. Here’s what we were reading and watching in September 2022.</p><h3>Engineering News and Insights</h3><h4><a href="https://bit.ly/3EmsWNn">Introducing Signals — Preact</a></h4><p>Preact (a 3kb version of React) has introduced a new way of state management to their library. To quote from the article, “Signals are a way of expressing state that ensure apps stay fast regardless of how complex they get.” This kind of state management is not new on frontend libraries/frameworks, which hopefully can push React to have something similar.</p><h4>Is a better console possible? <a href="https://bit.ly/3fOQ7px">Speed up your workflow with Console shortcuts.</a></h4><p>While debugging applications on the browser, sometimes a console is the best way to see the behavior. Did you know your Chrome Console can do much better? Check out this video from the Google Chrome Developers to learn how to use shortcuts to speed up your workflow.</p><h4><a href="https://bit.ly/3eiLALs">JavaScript APIs you don’t know about</a></h4><p>The JavaScript environment is getting bigger and bigger, and browser APIs are extending every release. This article covers the least known APIs that you might have missed and explains how they are also some of the most useful ones.</p><p>Also, <a href="https://bit.ly/3RGfhUs">Safari is bringing more.</a></p><h4><a href="https://bit.ly/3SHMbFE">Should I write my own JavaScript framework?</a></h4><p>There are billions of JavaScript frameworks out there, and currently, there is a debate going on in the community about writing your own. Should you build your own and push the boundaries of the whole landscape? We’ve found an <a href="https://bit.ly/3SHMbFE">article</a> and an <a href="https://bit.ly/3e9cLIP">answer</a> (or rather… a journey) for you to decide for yourself.</p><h4><a href="https://bit.ly/3CxHtnd">How to improve Largest Contentful Paint for faster load times</a></h4><p>Largest Contentful Paint (LCP) is a Core Web Vital metric to track how many seconds it takes to paint your application (text, images, elements with background images, videos, etc.). Improving that metric means faster applications, so what can we do about it? Check out this article to discover how to optimize LCP and improve user experience.</p><h4><a href="https://bit.ly/3M9PKSD">Can JavaScript do that? Optical Character Recognition</a></h4><p>Did you know that JavaScript can do Optical Character Recognition(OCR)? Your browser or your Node.js application can do that for you, so you don’t need any other language for this. Discover pure JavaScript OCR for more than 100 Languages on GitHub.</p><h4>Attention to TypeScript</h4><p>Typescript can be annoying to solve and hard to figure out sometimes. But, once you have learned, Typescript is another programming language. Here are some courses, websites, and workshops we have gathered for you to extend your TS knowledge.</p><p><a href="https://bit.ly/3RFfzv0">Type-Level Typescript</a></p><p><a href="https://bit.ly/3SJ5DSl">Total Typescript</a></p><p>Bonus: <a href="https://bit.ly/3Cdgehp">Translate your Typescript errors into a human-readable form.</a></p><h3>Libraries to Browse:</h3><p><a href="https://bit.ly/3ykJIsE"><strong>Timezone Library</strong></a></p><p><a href="https://bit.ly/3V6IKdd"><strong>React Router 6.4 Release</strong></a></p><p><a href="https://bit.ly/3SYl6xE"><strong>Styled-components</strong></a><strong> </strong>(V6 is on the way)</p><p><a href="https://bit.ly/3MbFt8o"><strong>Prisma</strong></a></p><p>Prisma has released version 4.3.0, and they have a preview feature for the multiSchema.</p><p><a href="https://bit.ly/3eeoeXt"><strong>TypeScript</strong></a></p><p>Microsoft has released its new version of TypeScript; it’s in beta right now, but it’s bringing many valuable features.</p><h3>Upcoming Events:</h3><p>Now that summer is almost over, the event calendar is filling up for the fall. Here’s what we’re watching.</p><h4><a href="https://bit.ly/3Bhk2z1">ViteConf</a></h4><p>Date: <strong>October 11th-12th</strong></p><p>Stackblitz is hosting the Vite Conference to bring you a full day of launches, learnings, and celebrations from the projects reimagining Web Development.</p><p><em>This is a free and virtual event.</em></p><h4><a href="https://bit.ly/3D15SDq">React Brussels | The First React Conference in the heart of Europe</a></h4><p>Date: <strong>October 14th</strong></p><p>The first React conference in Brussels will feature a list of speakers ranging from talents at Netflix and Postman to SolidJs and Typescript. You can also attend workshops about different tools and technologies that are part of the React ecosystem.</p><p><em>This event is online and in-person. Tickets are on sale now.</em></p><h4><a href="https://bit.ly/3APgCSI">Firebase Summit 2022</a></h4><p>Date: <strong>October 18th</strong>.</p><p>The 7th annual summit of Firebase in New York City will teach you how Firebase can help accelerate app development, run your app with confidence, and scale your business.</p><p><em>This event is online and in-person.</em></p><h4><a href="https://reactadvanced.com/">React Advanced London</a></h4><p>Date: <strong>October 21st + 24th</strong></p><p>A global network of field experts in React, React Native, GraphQL, and TypeScript will host a hybrid event over 2 days in London. The first day will be remote-friendly, and the second will be remote-only.</p><p><em>This event is online and in-person. Tickets are on sale now.</em></p><h4><a href="https://nextjs.org/conf">Next.js Conference</a></h4><p>Date: <strong>October 25th</strong></p><p>Vercel is holding the 3rd annual global user conference for Next.js. In celebration of six years of Next.js, the team will unveil some of the largest improvements at the conference.</p><p><em>This event is online and in-person.</em></p><h3>A Final Challenge</h3><p>We’re closing out our newsletter with another engineering challenge.</p><p>Let’s see how much you know generators in JavaScript and if you are able to use them. Try to write a function that produces a generator, and for each call, it will give numbers between the first parameters, including both ends.</p><pre>let gen = fromTo(5,7)</pre><pre>&gt; gen()<br>5<br>&gt; gen()<br>6<br>&gt; gen()<br>7<br>&gt; gen()<br>undefined</pre><p>Need help? See the answer at the end of the article.</p><p><em>If you or someone you know is looking for an engineering position either remotely or in Prague, check out our job openings. We’re hiring!</em></p><h3>Our Jobs</h3><p>Do you want to shape the future and help build companies from scratch? Here is a list of job openings available right now at OAK’S LAB.</p><ul><li><a href="https://www.oakslab.com/jobs-digital/qa-analyst-tester">QA Analyst (Tester), Prague</a></li><li><a href="https://www.oakslab.com/jobs-digital/engineering-manager">Engineering Manager, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/senior-frontend-engineer">Senior Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/tech-lead">Tech Lead, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/frontend-engineer-react">Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/full-stack-engineer">Full Stack Engineer (Node.js / React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/backend-engineer-node-js">Backend Engineer (Node.js), Prague, Remote</a></li></ul><p>That’s the end of the September 2022 Engineering Monthly Round-Up. Thank you for reading, and we hope you’ve enjoyed the articles, libraries, insights, and events we shared. We look forward to seeing what next month brings our way. If you have any comments, suggestions, or other interesting material to share, please feel free to comment below or send me an email directly at <a href="/service/mailto:ugur@oakslab.com">ugur@oakslab.com</a>. Thank you again, and we’ll be back next month.</p><p>ANSWER:</p><pre>function* generator(start, finish) {<br>  for (let i = start; i &lt;= finish; i++) {<br>    yield i;<br>  }<br>}<br>const fromTo = function (start, finish) {<br>  const generatorFunction = generator(start, finish);<br>  return () =&gt; {<br>    return generatorFunction.next().value;<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d7b35241ce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering Monthly Round-Up (August 2022)]]></title>
            <link>https://medium.com/@uur_oruc/engineering-monthly-round-up-august-2022-f81170168aaa?source=rss-ff5401a191b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f81170168aaa</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Uğur Oruç]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 12:45:44 GMT</pubDate>
            <atom:updated>2022-09-09T11:49:35.444Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iJCQxuIFtPvVS7ZJMQSZ3g.png" /></figure><h4><em>Each month, the OAK’S LAB engineering team rounds up the latest news, insights, and events in the engineering world and shares them with you.</em></h4><p>At <a href="https://www.oakslab.com/">OAK’S LAB</a>, knowledge sharing is part of our DNA. It’s one of the principles that help us build state-of-the-art products from scratch, and it’s the reason why our internal Engineering Newsletter has finally made its way to the pages of the internet.</p><p>Our engineers are not afraid to innovate. Every month, we keep an eye on current news, insights, and events related to our industry and relevant to our work, and we share them with each other. The topics range from the newest platforms, extensions, and tools to educational articles, the hottest conferences, inspirational white pages, and more. Now, we want to share them with you. We hope that you too find inspiration in the news, insights, and events below.</p><p>This past month at OAK’S LAB we released new products (check out our startup partner <a href="https://bit.ly/3RmbVXh">Karus</a>), kicked off new projects (say hello to our new startup partner <a href="https://bit.ly/3RmIQey">Fixt</a>), and said goodbye to LifeBrand (see our <a href="https://www.oakslab.com/case-study-lifebrand">case study</a>). Throughout it all, we gathered insightful articles, explored new platforms, and challenged existing frameworks to improve the way we work. Here’s what we discovered in August 2022.</p><h3>Engineering News and Insights</h3><h4><a href="https://bit.ly/3qjXMhm">Webhooks.fyi — a universal platform for webhooks</a></h4><p>Webhooks are the backbone of API development. They are universally used, from payment services to receiving SMS messages, but they remain unstandardized API contracts. Webhooks.fyi is a platform that provides a directory of webhook providers and a collection of best practices for providing and consuming webhooks. Created by <a href="https://bit.ly/3RoxlTY">ngrok</a>.</p><h4><a href="https://bit.ly/3KQxc9g">Modern (and free) web application design patterns</a></h4><p>Are you curious about modern application design patterns? What they are? How they are done? Patterns.dev is an excellent source for you to discover patterns, tips, and tricks for improving how you architect apps. For a more interactive version, you can explore <a href="https://bit.ly/3CYgUJB">JavaScript Patterns</a>.</p><h4><a href="https://bit.ly/3RGoSeA">Avoiding useEffect with callback refs</a></h4><p>Are you using “refs” effectively and correctly? If you have a basic understanding of refs in React, then this article is a great write-up on ref usage. Key takeaways include: always be careful of what the dependencies are in your useEffect. And don’t forget that “ref” is a function!</p><h4><a href="https://bit.ly/3RglFT0">Container Queries and :has() have landed on Chrome</a></h4><p>Container queries help developers to query the parent selector for its size and styling. But there’s more to it. The developers at Google Chrome go into detail on why this is such a huge release — alongside the :has() feature — for developers everywhere. You can also watch <a href="https://bit.ly/3RlV336">this explanation video</a> for a deeper understanding.</p><h4><a href="https://bit.ly/3qfOQcW">Are 3rd-party resources more harmful than helpful?</a></h4><p>Using third-party resources is necessary to track user behavior and even to check if your application is failing. However, they might do harm to your website or application. The developers at Google Chrome have a future vision of the web where third-party scripts provide value without disrupting the performance or user experience of websites. They share their information and insights from experiments with third-party scripts.</p><h4><a href="https://bit.ly/3AUw8wj">Why does React re-render? The real answer.</a></h4><p>Have you ever wondered what triggers React to re-render? Even the most experienced developer might give you different answers if you ask. At OAK’S LAB, we are using “useCallback”, “useEffect”, and “useMemo” constantly in React, and it might cause some re-renders in different scenarios. To finally understand the behavior, Josh Comeau provides the explanation.</p><h4><a href="https://bit.ly/3x36gxh">Inspiring Engineering Ladders for Engineer Managers</a></h4><p>Engineering levels and ladders differ from company to company. At OAK’S LAB, we found inspiration by looking at this framework for engineering managers. It’s an excellent way to evaluate how we are doing and how we can improve the way our department works.</p><h3>Upcoming Events:</h3><p>Now that summer is almost over, the event calendar is filling up for the fall. Here’s what we’re watching.</p><h4><a href="https://bit.ly/3QjJ2ty">GraphQL Conference</a></h4><p>Date: <strong>September 29th</strong></p><p>Learn about GraphQL best practices from industry experts and become part of the thriving GraphQL community.</p><p><em>This is a free and virtual event.</em></p><h4><a href="https://bit.ly/3Bhk2z1">ViteConf</a></h4><p>Date: <strong>October 11th-12th</strong></p><p>Stackblitz is hosting the Vite Conference to bring you a full day of launches, learnings, and celebrations from the projects reimagining Web Development.</p><p><em>This is a free and virtual event.</em></p><h4><a href="https://bit.ly/3D15SDq">React Brussels | The First React Conference in the heart of Europe</a></h4><p>Date: <strong>October 14th</strong></p><p>The first React conference in Brussels will feature a list of speakers ranging from talents at Netflix and Postman to SolidJs and Typescript. You can also attend workshops about different tools and technologies that are part of the React ecosystem.</p><p><em>This event is online and in-person. Tickets are on sale now.</em></p><h4><a href="https://bit.ly/3APgCSI">Firebase Summit 2022</a></h4><p>Date: <strong>October 18th</strong>.</p><p>The 7th annual summit of Firebase in New York City will teach you how Firebase can help accelerate app development, run your app with confidence, and scale your business.</p><p><em>This event is online and in-person.</em></p><h3>Past Talks:</h3><h4><a href="https://bit.ly/3DhJZ2X">Creative CSS Layout</a></h4><p>From Web Conferences Amsterdam, this talk about creative CSS layouts stood out and can be found on YouTube now.</p><h4><a href="https://bit.ly/3KRsmbD">From 0 to 100, the story of React</a></h4><p>The UI Dot Dev team has put together a video of how React entered the ecosystem and evolved into what it is today.</p><h3>A Final Challenge</h3><p>To celebrate the first edition of our monthly round-up, we’re closing it out with a small engineering challenge.</p><p>Do you know how JavaScript works? Let’s see how deep your knowledge is!</p><p>What is the output of the code below: (<em>Answer at the end of the article.)</em></p><pre>console.log(&#39;First&#39;)</pre><pre>setTimeout(function () {<br>  console.log(&#39;Second&#39;)<br>}, 0)</pre><pre>new Promise(function (res) {<br>  res(&#39;Third&#39;)<br>}).then(console.log)</pre><p><em>If you or someone you know is looking for an engineering position either remotely or in Prague, check out our job openings. We’re hiring!</em></p><h3>Our Jobs</h3><p>Do you want to shape the future and help build companies from scratch? Here is a list of job openings available right now at <a href="https://www.oakslab.com/">OAK’S LAB</a>.</p><ul><li><a href="https://www.oakslab.com/jobs-digital/engineering-manager">Engineering Manager, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/senior-frontend-engineer">Senior Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/tech-lead">Tech Lead, Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/frontend-engineer-react">Frontend Engineer (React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/full-stack-engineer">Full Stack Engineer (Node.js / React), Prague, Remote</a></li><li><a href="https://www.oakslab.com/jobs-digital/backend-engineer-node-js">Backend Engineer (Node.js), Prague, Remote</a></li></ul><p>That’s the end of the August 2022 Engineering Monthly Round-Up. Thank you for reading the first edition, and we hope you’ve enjoyed the articles, platforms, insights, and events we shared. We look forward to seeing what next month brings our way. If you have any comments, suggestions, or other interesting material to share, please feel free to comment below or send me an email directly at <a href="/service/mailto:ugur.oruc@oakslab.com">ugur.oruc@oakslab.com</a>. Thank you again, and we’ll be back next month.</p><p><em>ANSWER</em>:</p><p>Output: <strong>First, Fourth, Third, Second.</strong></p><p>It’s all connected to the JavaScript event loop at the end. JavaScript treats all events in a different order, and putting “0” in setTimeout does not make the timeout an immediate call.</p><p>VIDEO: <a href="https://bit.ly/3BdJ7uC">Watch how event loops work.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f81170168aaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>