<?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 Bora Kucukkara on Medium]]></title>
        <description><![CDATA[Stories by Bora Kucukkara on Medium]]></description>
        <link>https://medium.com/@borakucukkara?source=rss-abc6bd5cd405------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SUnuqrDU_I9nGqEim7A7aw.png</url>
            <title>Stories by Bora Kucukkara on Medium</title>
            <link>https://medium.com/@borakucukkara?source=rss-abc6bd5cd405------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:21:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@borakucukkara/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[UnoCSS, Vite + Vue3 basit kurulum]]></title>
            <link>https://borakucukkara.medium.com/unocss-vite-vue3-basit-kurulum-48860e921194?source=rss-abc6bd5cd405------2</link>
            <guid isPermaLink="false">https://medium.com/p/48860e921194</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Bora Kucukkara]]></dc:creator>
            <pubDate>Thu, 13 Apr 2023 22:22:37 GMT</pubDate>
            <atom:updated>2023-04-13T22:40:00.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QnE9avFW2nAafWC3x76MBg@2x.png" /></figure><h3>Kısaca UnoCSS nedir?</h3><p>UnoCSS, esneklik ve performans göz önünde bulundurularak tasarlanmış modern bir CSS motorudur. Bilinen CSS framework’leri aksine, UnoCSS, CSS’nin temel işlevlerini presetler kullanarak sağlamaya odaklanır. Bu, performans veya esneklikten ödün vermeden uygulamalarınızı hızlı ve kolay bir şekilde stillemenize olanak tanır.</p><p>Temelinde, UnoCSS, atomik bir CSS motorudur. Karmaşık tasarımları oluşturmak için birleştirilebilecek küçük, yeniden kullanılabilir stiller oluşturma fikri etrafında inşa edilir. UnoCSS ile bilinen popüler framework’lerin sınırlamalarıyla uğraşmadan daha geniş bir çerçevede yüksek performanslı uygulamalar oluşturabilirsiniz.</p><h3>Vue3 + Vite ile kolayca kullanalım</h3><p>Öncelikle <a href="https://unocss.dev/guide/">resmi dokümantasyona</a> göz atmanızı tavsiye ederim, ancak tüm dokümantasyon typeScript kod örnekleriyle anlatılmış bu nedenle kafa karışıklığınızı azaltmak adına bu mini eğitseli hazırlıyorum.</p><p>İlk olarak Vue projemizi oluşturuyoruz;</p><pre>npm init vue@latest</pre><p>Proje adını ve gereksinimlerini adım adım seçtikten sonra UnoCSS’i projeye dahil edeceğiz. Basitçe ayarlarımı paylaşıyorum.</p><pre>Vue.js - The Progressive JavaScript Framework<br><br>✔ Project name: … unocss<br>✔ Add TypeScript? … No <br>✔ Add JSX Support? … No <br>✔ Add Vue Router for Single Page Application development? … No <br>✔ Add Pinia for state management? … No <br>✔ Add Vitest for Unit Testing? … No <br>✔ Add an End-to-End Testing Solution? › No<br>✔ Add ESLint for code quality? … Yes<br>✔ Add Prettier for code formatting? … No<br><br>Scaffolding project in ../unocss...<br><br>Done. Now run:<br><br>  cd unocss<br>  npm install<br>  npm run dev</pre><p>Projenin kurulduğu dizine girip “npm install” komutuyla projenin kurulumunu yapalım.</p><p>Aynı dizinde UnoCSS’i oyuna dahil ediyoruz;</p><pre>npm i -D unocss</pre><p>UnoCSS proje gerekliliklerine eklendi, artık paketi vite.config.js dosyasına dahil edelim.</p><pre>// vite.config.js<br><br>import { fileURLToPath, URL } from &#39;node:url&#39;<br>import { defineConfig } from &#39;vite&#39;<br>import vue from &#39;@vitejs/plugin-vue&#39;<br><br>// UNOCSS&#39;i dahil ettik<br>import Unocss from &#39;unocss/vite&#39;<br><br>export default defineConfig({<br>  plugins: [vue(),Unocss({})], // plugin tanımladık.<br>  resolve: {<br>    alias: {<br>      &#39;@&#39;: fileURLToPath(new URL(&#39;./src&#39;, import.meta.url))<br>    }<br>  }<br>})</pre><p>Projemizdeki main.js dosyamıza uno.css dosyasını import ederek kullanmaya başlayabiliriz;</p><pre>// main.js<br>import { createApp } from &#39;vue&#39;<br>import App from &#39;./App.vue&#39;<br>import &#39;uno.css&#39;<br><br>createApp(App).mount(&#39;#app&#39;)</pre><p>UnoCSS “Presets”, Ön tanımlı paketler ile basitçe özelleştirerek kullanmaya başlayalım. Diğer tüm paketler için <a href="https://unocss.dev/presets/">dökümana</a> göz atmanızı tavsiye ederim.</p><p>Kurulumunu yapacağımız paketlerden kısaca bahsedeyim;</p><p><strong>Uno preset:</strong> Tailwind CSS, Windi CSS, Bootstrap, Tachyons vb. popüler frameworkleri birleştiren bir yapı olarak çalışır.</p><p><strong>Attributify preset:</strong> html elementleri içinde attributify modunu kullanabilirsiniz, örneğin;</p><pre>&lt;button <br>  bg=&quot;blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600&quot;<br>  text=&quot;sm white&quot;<br>  font=&quot;mono light&quot;<br>  p=&quot;y-2 x-4&quot;<br>  border=&quot;2 rounded blue-200&quot;<br>&gt;<br>  Button<br>&lt;/button&gt;</pre><p>Projemizin bulunduğu dizinde bu iki paketi kuralım,</p><pre>npm i -D @unocss/preset-uno<br>npm i -D @unocss/preset-attributify</pre><p>Yüklediğimiz paketleri vite.config.js dosyasına ekliyoruz ve ayarlarını tanımlıyoruz.</p><pre>// vite.config.js<br><br>import { fileURLToPath, URL } from &#39;node:url&#39;<br>import { defineConfig } from &#39;vite&#39;<br>import vue from &#39;@vitejs/plugin-vue&#39;<br><br>// UNOCSS<br>import Unocss from &#39;unocss/vite&#39;<br>import { presetAttributify, presetUno } from &#39;unocss&#39; // Presetler<br><br>export default defineConfig({<br>  plugins: [vue(),<br>  Unocss({<br>    presets: [presetAttributify(),presetUno()], // tanımlamalar<br>  })],<br>  resolve: {<br>    alias: {<br>      &#39;@&#39;: fileURLToPath(new URL(&#39;./src&#39;, import.meta.url))<br>    }<br>  }<br>})</pre><p>Tüm kurulumlar tamam. Artık UnoCSS’i Vue projemizde kullanabiliriz, <a href="https://marketplace.visualstudio.com/items?itemName=antfu.unocss">VS Code eklentisini</a> kesinlikle kullanmanızı tavsiye ederim. Şimdilik WebStorm için plugin yok, kısa zamanda geliştirileceğini umuyorum.</p><p>Örnek App.vue template yapısı</p><pre>&lt;template&gt;<br>  &lt;nav text-white bg-green-5 flex justify-between font-sans vw-100 py-6 px-4&gt;<br>    &lt;div&gt;Logo&lt;/div&gt;<br>    &lt;div w-10rem flex justify-around&gt;<br>      &lt;span&gt;Home&lt;/span&gt;<br>      &lt;span&gt;Contact&lt;/span&gt;<br>    &lt;/div&gt;<br>  &lt;/nav&gt;<br>  &lt;main flex justify-center items-center vw-100 h-20rem bg-gray-2 &gt;<br>    &lt;div font-sans text-3xl font-500&gt;Hero&lt;/div&gt;<br>  &lt;/main&gt;<br>&lt;/template&gt;</pre><p>Uygulama çıktısı;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*IOnc2c2aXcnHzL_FbY7AKA.png" /><figcaption>UnoCSS Vue3 arayüz örneği</figcaption></figure><h3>Özetle;</h3><p>UnoCSS, performans ve esnekliği göz önünde bulundurarak tasarlanmış harika bir yapı. Ayrıca benchmark sonuçlarını da araştırmanızı tavsiye ederim. Hızlı ve kullanımı kolay bir CSS framework arıyorsanız, UnoCSS güçlü bir seçenek.</p><p>Okuduğunuz için teşekkürler! Bu kısa anlatımın faydalı olduğunu umuyorum. Herhangi bir sorunuz veya yorumunuz varsa, lütfen aşağıya yazmaktan çekinmeyin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48860e921194" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vue Options API vs Composition API]]></title>
            <link>https://borakucukkara.medium.com/vue-options-api-vs-composition-api-65b9d510ac6e?source=rss-abc6bd5cd405------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b9d510ac6e</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vue-3]]></category>
            <dc:creator><![CDATA[Bora Kucukkara]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 16:05:10 GMT</pubDate>
            <atom:updated>2023-03-21T16:05:10.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*msk95laoFkv8YeY-" /><figcaption>Photo by <a href="https://unsplash.com/@jackson_hirsch?utm_source=medium&amp;utm_medium=referral">Jackson Hirsch</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Let’s end the confusion of beginners.</h3><p>Vue.js, one of the most popular JavaScript frameworks, provides two ways to structure a component’s code: Options API and Composition API. Both have their own advantages and disadvantages, and choosing between them can be a daunting task for developers. In this blog post, we will discuss the differences between the two and help you decide which one to use.</p><h3>Options API</h3><p>The Options API is the traditional way of structuring Vue components. It uses a set of predefined options to define a component’s behavior. These options include data, computed, methods, lifecycle hooks, and more. The Options API is easy to understand, especially for developers who are new to Vue. It follows a simple and intuitive structure that makes it easy to read and maintain.</p><p>Here is an example of using the Options API:</p><pre>&lt;template&gt;<br>  &lt;div&gt;<br>    &lt;h1&gt;{{ message }}&lt;/h1&gt;<br>    &lt;button @click=&quot;increment&quot;&gt;Increment&lt;/button&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>export default {<br>  data() {<br>    return {<br>      message: &#39;Hello, World!&#39;,<br>      count: 0<br>    }<br>  },<br>  methods: {<br>    increment() {<br>      this.count++<br>    }<br>  }<br>}<br>&lt;/script&gt;</pre><h3>Composition API</h3><p>The Composition API is a new way of structuring Vue components that was introduced in Vue 3. It allows developers to write component code using functions instead of options. This makes it much easier to reuse code and share logic between components. The Composition API provides a set of functions that can be used to define a component’s behavior. These functions include reactive, computed, watch, and more. The Composition API is more flexible and powerful than the Options API, but it has a steeper learning curve.</p><p>Here is an example of using the Composition API:</p><pre>&lt;template&gt;<br>  &lt;div&gt;<br>    &lt;h1&gt;{{ message }}&lt;/h1&gt;<br>    &lt;button @click=&quot;increment&quot;&gt;Increment&lt;/button&gt;<br>  &lt;/div&gt;<br>&lt;/template&gt;<br><br>&lt;script&gt;<br>import { reactive, computed } from &#39;vue&#39;<br>export default {<br>  setup() {<br>    const state = reactive({<br>      message: &#39;Hello, World!&#39;,<br>      count: 0<br>    })<br>    const increment = () =&gt; {<br>      state.count++<br>    }<br>    const doubleCount = computed(() =&gt; state.count * 2)<br>    return {<br>      message: state.message,<br>      increment,<br>      doubleCount<br>    }<br>  }<br>}<br>&lt;/script&gt;</pre><h3>Which one to choose?</h3><p>Choosing between the Options API and Composition API depends on the complexity of your project and your personal preferences. If you’re working on a simple project or you’re new to Vue, the Options API is a good choice. It’s easy to understand and it follows a simple structure. If you’re working on a complex project or you’re an experienced Vue developer, the Composition API is a better choice. It’s more flexible and powerful, and it allows you to write reusable and shareable code.</p><h3>Conclusion</h3><p>In conclusion, Vue.js provides two ways to structure a component’s code: Options API and Composition API. The Options API is the traditional way of structuring Vue components and it’s easy to understand, while the Composition API is a new way of structuring components that provides more flexibility and power. Choosing between the two depends on the complexity of your project and your personal preferences. At the end of the day, it will be beneficial for your career to specialize in one thing and have knowledge in another. I hope this blog post has helped you understand the differences between the two and choose the one that’s right for you.</p><p>Hi there! Thanks so much for reading this. I’m really glad that you found this information useful. If you have any questions or comments, please don’t hesitate to leave them below. I’m always happy to help out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b9d510ac6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Nesting: Simplifying Your Stylesheets]]></title>
            <link>https://borakucukkara.medium.com/css-nesting-simplifying-your-stylesheets-840c65a2a241?source=rss-abc6bd5cd405------2</link>
            <guid isPermaLink="false">https://medium.com/p/840c65a2a241</guid>
            <category><![CDATA[scss]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Bora Kucukkara]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 18:34:26 GMT</pubDate>
            <atom:updated>2023-03-21T15:43:04.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_iScutsolJvro8LC" /><figcaption>Photo by <a href="https://unsplash.com/@fongsoul?utm_source=medium&amp;utm_medium=referral">Jeffrey Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Introduction</h3><p>Styling web pages has always been a challenging task, especially when dealing with complex layouts. CSS nesting is a powerful feature that simplifies the structure of your CSS stylesheets by allowing you to nest selectors, which increases readability and maintainability. In this post, we’ll explore the benefits of using CSS nesting and how to implement it in your projects.</p><h3>What is CSS Nesting?</h3><p>CSS nesting is a feature that allows you to nest selectors within other selectors, making your stylesheet more organized and easier to read. It works by adding a space between the parent selector and the child selector. Here’s an example:</p><pre>.parent {<br>  background-color: blue;<br>  .child {<br>    color: white;<br>  }<br>}</pre><p>In the example above, .child is nested within .parent. This means that .child inherits all the properties of .parent and can also have its own properties. The resulting CSS code is cleaner and easier to understand.</p><h3>Benefits of Using CSS Nesting</h3><p>CSS nesting offers several benefits that can make your stylesheet more maintainable and scalable. Here are some of the key advantages of using CSS nesting:</p><h3>1. Improved Readability</h3><p>CSS nesting makes your code more readable by grouping related styles together. This means that you no longer have to search through your code to find the styles that apply to a specific element. Instead, you can easily locate the styles by looking at the nested selectors.</p><h3>2. Easier Maintenance</h3><p>CSS nesting makes it easier to maintain your code by separating the styles into smaller, more manageable blocks. This means that you can modify the styles of a specific element without affecting the styles of other elements.</p><h3>3. Reduced Code Duplication</h3><p>CSS nesting helps to reduce code duplication by allowing you to reuse styles for multiple elements. This means that you can define a style once and apply it to multiple elements using a nested selector.</p><h3>Conclusion</h3><p>CSS nesting is a powerful feature that can help you write cleaner and more maintainable code. By grouping related styles together and separating them into smaller, more manageable blocks, you can improve the readability and maintainability of your stylesheet. So, if you’re looking for a way to simplify your CSS code, CSS nesting is definitely worth considering.</p><h3>How to Implement CSS Nesting</h3><p>With the explanation of the CSS Nesting module available at <a href="https://www.w3.org/TR/2023/WD-css-nesting-1-20230214/">https://www.w3.org/TR/2023/WD-css-nesting-1-20230214/</a>, we can now use the nested styling feature that we are accustomed to in CSS compilers such as SCSS, without any compiler. As of February 2023, the CSS nesting feature, which is currently only supported by Chrome (<a href="https://chromestatus.com/feature/5800613594529792">https://chromestatus.com/feature/5800613594529792</a>), can be tested as an experimental feature in many browsers.</p><p>Thank you for reading! I hope that you found this information useful and that it helps you simplify your stylesheets. If you have any questions or comments, please feel free to leave them below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=840c65a2a241" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Nesting nedir? Native destek geldi.]]></title>
            <link>https://borakucukkara.medium.com/css-nesting-nedir-native-destek-geldi-e67119569b56?source=rss-abc6bd5cd405------2</link>
            <guid isPermaLink="false">https://medium.com/p/e67119569b56</guid>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[turkish]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Bora Kucukkara]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 16:51:17 GMT</pubDate>
            <atom:updated>2023-02-26T00:20:44.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yUgEbOOAE_YkqRL7" /><figcaption>Photo by <a href="https://unsplash.com/@fongsoul?utm_source=medium&amp;utm_medium=referral">Jeffrey Leung</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>CSS Nesting modülünün <a href="https://www.w3.org/TR/2023/WD-css-nesting-1-20230214/">açıklanmasıyla</a> SASS gibi CSS derleyicilerden alışık olduğumuz iç içe stilleme özelliği, artık bir derleyici olmadan kullanılabilecek. Şubat 2023 itibariyle sadece <a href="https://chromestatus.com/feature/5800613594529792">Chrome</a> desteği olan css nesting özelliği bazı tarayıcılarda deneysel özellik olarak aktif edilerek test edilebilir durumda. 2023 yılı içinde tam sürümlerde <a href="https://caniuse.com/css-nesting">kullanılabilir</a> olmasını umuyoruz.</p><p>CSS Nesting modülünün ana motivasyonu stillerin tek bir yapıda toplanmasını sağlayarak okunabilirliği ve sürdürülebilirliği arttırmak.</p><p>Kural içinde kural tanımlamaya müsade eden yapıyı ve kullanım senaryolarını basitçe örneklendirelim;</p><pre>/* CSS Nesting */<br>.parent {<br>  color: red;<br>  .child {<br>    color: blue;<br>  }<br>}<br><br>/* Buna eşdeğerdir */<br>.parent {<br>  color: red;<br>}<br>.parent .child {<br>  color: blue;<br>}</pre><pre>/* CSS Nesting */<br>.link {<br>  color: blue;<br>    &amp;:hover {<br>    color: green;<br>  }<br>}<br><br>/* Buna eşdeğerdir */<br>.link { color: blue; }<br>.link:hover { color: green; }</pre><pre>/* CSS Nesting */<br>figure {<br>  margin: 0;<br>  &gt; figcaption {<br>    background: hsl(0 0% 0% / 50%);<br>    &gt; p {<br>      font-size: .9rem;<br>    }<br>  }<br>}<br>/* Buna eşdeğerdir */<br>figure { margin: 0; }<br>figure &gt; figcaption { background: hsl(0 0% 0% / 50%); }<br>figure &gt; figcaption &gt; p { font-size: .9rem; }</pre><h3>Avantajı nedir?</h3><p>Daha modüler ve sürdürülebilir stil sayfaları oluşturulabilir. Bir stil sayfasında birden çok yerde aynı seçiciye sahip olmak yerine, bu seçiciyle ilgili tüm stilleri tek bir yere yerleştirebilirsiniz. Geliştirme süresini ve hata ayıklama süresini olumlu yönde etkileyecektir.</p><p>Daha detaylı kullanım senaryoları için <a href="https://www.w3.org/TR/css-nesting-1/">CSS Nesting Module</a> dokümantasyonuna göz atmanızı tavsiye ederim.</p><p>Zaman ayırdığınız için teşekkürler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e67119569b56" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>