<?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 Alparslan Selcuk Develioglu (En) on Medium]]></title>
        <description><![CDATA[Stories by Alparslan Selcuk Develioglu (En) on Medium]]></description>
        <link>https://medium.com/@alparslandev?source=rss-14c49c9dd1d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6HAAC-lXc9w2dMptGRY16w.jpeg</url>
            <title>Stories by Alparslan Selcuk Develioglu (En) on Medium</title>
            <link>https://medium.com/@alparslandev?source=rss-14c49c9dd1d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:18:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alparslandev/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[Two Months of Yarış Radarı: Proud Moments and Mistakes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/two-months-of-yar%C4%B1%C5%9F-radar%C4%B1-proud-moments-and-mistakes-00373b4c9266?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/1200/0*sM87uByGMfS1dC68.jpg" width="1200"></a></p><p class="medium-feed-snippet">A look at two months of building Yar&#x131;&#x15F; Radar&#x131;: real visit numbers, the new features, and honest lessons from what went wrong.</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/two-months-of-yar%C4%B1%C5%9F-radar%C4%B1-proud-moments-and-mistakes-00373b4c9266?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/two-months-of-yar%C4%B1%C5%9F-radar%C4%B1-proud-moments-and-mistakes-00373b4c9266?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/00373b4c9266</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[geo]]></category>
            <category><![CDATA[aeo]]></category>
            <category><![CDATA[become-better]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 17:31:35 GMT</pubDate>
            <atom:updated>2026-09-28T17:31:35.919Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[ChatGPT Cited in 3 Days: A Generative Engine Optimization (GEO-AEO) Case Study]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/chatgpt-cited-in-3-days-a-generative-engine-optimization-geo-aeo-case-study-f4c806f8eb58?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/1200/0*uxeWKKvRCxFQz9uo.jpg" width="1200"></a></p><p class="medium-feed-snippet">Launched a web site on Saturday; by Wednesday ChatGPT was citing it. An honest GEO case study: SSR, structured data, llms.txt, Bing, and&#x2026;</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/chatgpt-cited-in-3-days-a-generative-engine-optimization-geo-aeo-case-study-f4c806f8eb58?source=rss-14c49c9dd1d5------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/chatgpt-cited-in-3-days-a-generative-engine-optimization-geo-aeo-case-study-f4c806f8eb58?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4c806f8eb58</guid>
            <category><![CDATA[geo]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 15:01:33 GMT</pubDate>
            <atom:updated>2026-07-24T15:01:33.335Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A Principal Who Made a Difference #2: The Classroom That Blooms in the Snow]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/a-principal-who-made-a-difference-2-the-classroom-that-blooms-in-the-snow-05bc6b290c83?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/1400/1*9NzZbkAewM39L4RP3vBWSw.png" width="1400"></a></p><p class="medium-feed-snippet">In the village he reached on foot in the freezing cold of Sivas, a passion for teaching began to blossom within him.</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/a-principal-who-made-a-difference-2-the-classroom-that-blooms-in-the-snow-05bc6b290c83?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/a-principal-who-made-a-difference-2-the-classroom-that-blooms-in-the-snow-05bc6b290c83?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/05bc6b290c83</guid>
            <category><![CDATA[become-better]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[schools]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 09:51:44 GMT</pubDate>
            <atom:updated>2026-06-12T09:51:44.480Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A Principal Who Made a Difference #3: Pur Cliffs and Partridge Sounds]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/a-principal-who-made-a-difference-3-pur-cliffs-and-partridge-sounds-de3100c203e3?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/1200/0*qFwbOSdgrmVpHNuu.jpg" width="1200"></a></p><p class="medium-feed-snippet">This article doesn&#x2019;t contain many managerial memories, nor does it mention school, but it has something completely different in it. I&#x2019;ve&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/a-principal-who-made-a-difference-3-pur-cliffs-and-partridge-sounds-de3100c203e3?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/a-principal-who-made-a-difference-3-pur-cliffs-and-partridge-sounds-de3100c203e3?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3100c203e3</guid>
            <category><![CDATA[teachers]]></category>
            <category><![CDATA[become-better]]></category>
            <category><![CDATA[fatherhood]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[memories]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Mon, 25 May 2026 20:12:22 GMT</pubDate>
            <atom:updated>2026-06-16T17:27:18.499Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Opening 11 Million Character HTML in a Mobile WebView: Virtual Chunking]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://levelup.gitconnected.com/opening-11-million-character-html-in-a-mobile-webview-virtual-chunking-daf9ef8f03c3?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/600/1*nMIf2jIPdDkmIuX-VdbwiQ.png" width="600"></a></p><p class="medium-feed-snippet">&#x201C;We&#x2019;ll just redirect these 227 documents to the browser,&#x201D; we said. Then, we decided to rescue the Turkish Commercial Law.</p><p class="medium-feed-link"><a href="https://levelup.gitconnected.com/opening-11-million-character-html-in-a-mobile-webview-virtual-chunking-daf9ef8f03c3?source=rss-14c49c9dd1d5------2">Continue reading on Level Up Coding »</a></p></div>]]></description>
            <link>https://levelup.gitconnected.com/opening-11-million-character-html-in-a-mobile-webview-virtual-chunking-daf9ef8f03c3?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/daf9ef8f03c3</guid>
            <category><![CDATA[capacitor]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 14:52:48 GMT</pubDate>
            <atom:updated>2026-04-22T14:52:48.444Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[One Prompt, Four Different AIs: Which One Is Really Better?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/one-prompt-four-different-ais-which-one-is-really-better-e7bb6daa7798?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/2600/1*7bGVRtWKxhiqoZ36luyQow.png" width="2752"></a></p><p class="medium-feed-snippet">A single prompt, four different giants: Lovable vs. Claude vs. Gemini vs. Cursor. From the perspective of a software team leader: With the&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/one-prompt-four-different-ais-which-one-is-really-better-e7bb6daa7798?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/one-prompt-four-different-ais-which-one-is-really-better-e7bb6daa7798?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7bb6daa7798</guid>
            <category><![CDATA[become-better]]></category>
            <category><![CDATA[lovable]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 19:52:00 GMT</pubDate>
            <atom:updated>2026-03-24T19:52:00.129Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Dear Vibe Coder, Bring Your Idea to Life Now!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/dear-vibe-coder-bring-your-idea-to-life-now-5532d4c30068?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/2600/1*_h9CAdVqnJd0FfOtFaKIRg.jpeg" width="4000"></a></p><p class="medium-feed-snippet">Transforming an idea into an MVP, and a sustainable product: Analytics, task tracking, Lovable, Google Antigravity, and SOLID.</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/dear-vibe-coder-bring-your-idea-to-life-now-5532d4c30068?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/dear-vibe-coder-bring-your-idea-to-life-now-5532d4c30068?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5532d4c30068</guid>
            <category><![CDATA[become-better]]></category>
            <category><![CDATA[lovable]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[google-antigravity]]></category>
            <category><![CDATA[minimum-viable-product]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 19:32:14 GMT</pubDate>
            <atom:updated>2025-12-10T19:32:14.865Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Vibe Coding for 10 Years Experienced Software Developer]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/becoming-for-better/vibe-coding-for-10-years-experienced-software-developer-de4298cefedf?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/1080/1*NQcPgaDAwyKNdsAFsQs5DQ.jpeg" width="1080"></a></p><p class="medium-feed-snippet">A veteran developer&#x2019;s first encounter with vibe coding, who even said &#x201C;it got too easy&#x201D; when switching from Java to Kotlin.</p><p class="medium-feed-link"><a href="https://medium.com/becoming-for-better/vibe-coding-for-10-years-experienced-software-developer-de4298cefedf?source=rss-14c49c9dd1d5------2">Continue reading on Become Better »</a></p></div>]]></description>
            <link>https://medium.com/becoming-for-better/vibe-coding-for-10-years-experienced-software-developer-de4298cefedf?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/de4298cefedf</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[lovable]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 12:17:26 GMT</pubDate>
            <atom:updated>2026-01-01T20:23:30.091Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Moment My Ex-Manager Was Rightfully Angry at Me : Dagger Hilt and the DI Lesson]]></title>
            <link>https://proandroiddev.com/the-moment-my-ex-manager-was-rightfully-angry-at-me-dagger-hilt-and-the-di-lesson-85095457f90e?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/85095457f90e</guid>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[dagger-hilt]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 15:38:44 GMT</pubDate>
            <atom:updated>2025-08-13T17:14:56.828Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Moment My Ex-Manager Was Rightfully Angry at Me : Dagger Hilt and the DI Lesson</h3><h4>How did the DI decision I postponed because it was a small one cause me trouble in a project that turned into a monster with three endpoints?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W4DA6whN-Kb6Kk7Q" /><figcaption>Photo by <a href="https://unsplash.com/@mou5avi?utm_source=medium&amp;utm_medium=referral">Sadeq Mousavi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It was 2018. I had just started a job at one of Turkey’s largest companies operating in the hotel and restaurant sector. My start story is like a movie in itself; I’ll save that for another article. In short, these eyes saw a lot in that time… (In a positive way.)</p><p>We had two main projects:</p><p>The first was a massive project that integrated ordering, kitchen, and cash registers for restaurants. The second was a customer greeting application that my team leader initiated and later handed over to me.</p><p>At upscale restaurants, the receptionist asks:<br>“Do you have a reservation?”<br>“What kind of table would you like to sit at?”<br>“Have you been here before?”<br>“Are you going to eat, or just want to have hookah?”</p><p>We wanted a tablet app that would display a reservation list, a table list, and table occupancy status, all in the hands of staff who asked these questions. We started the project in Java. Android hadn’t yet announced Kotlin support; even when it did, the drastic transition of “Let’s rewrite all projects with Kotlin” wasn’t typically made in the industry. We were developing a tablet application based on Java 8 + RxJava + CircleCI, talking to Ruby on Rails API services.</p><p>I’m someone who forms an emotional bond with the projects I work on. <a href="https://play.google.com/store/apps/details?id=com.protel.reservation&amp;hl=en"><em>I’ve occasionally looked at this project out of curiosity; they’ve abandoned the tablet app and moved to an Android phone app</em></a>. I haven’t reverse-engineered it, but I’m pretty sure they rewrote it with Kotlin. “The table system was already hard to fit, so we purposely built it on a tablet. From what I can tell from the Google Play Store screenshots, they’ve completely abandoned our table plan page. With the help of my team leader, we wrote a very nice system using the intersection algorithm.” I think. I’m not unaware of the reason, but it’s their choice. Maybe they made it tablet-friendly, and the UI changes when you download it. Clever. I hope they did it that way.</p><p>Now, let’s get to the real story…<br>At my previous job, I was the only Android developer; I wasn’t sure how much I could improve myself. At my new job, my team leader, Erdem, was someone I greatly valued for both his technical knowledge and his character. Even though we don’t see each other very often now, I still remember him with respect. Maybe you’ll read it. Thanks again for everything, Erdem! :)</p><p>One day, he called me and explained dependency injection at length: “Instead of creating the same object over and over again, we create it in one place and use it everywhere; the code stays clean and understandable…” Then he mentioned Dagger. (Hilt didn’t exist back then; adding Dagger to the project was more of a hassle.)</p><p>“We used Dagger on a big project, and it worked out pretty well,” he said. Then he asked, “Should we add it to your project, Check&amp;Place too?” I declined, out of ignorance, timidity, intimidation, and the thought, “It’s a small project, what’s the point?” I remember him getting a little angry at me, but I don’t remember exactly what he said — it’s been 6 or 7 years. I never imagined the project would grow at the time. In fact, he didn’t think about either.</p><p>Until…</p><p>Things changed when we sold the project to a restaurant with valet service. The restaurant said, “Don’t let both the valet and your app ask for customer’s name, surname, and phone number; scan the QR code on the card provided by the valet app and get the necessary information from there.” Bazingaaa! We had to integrate with the QR system and services of a company we didn’t even know.</p><p>Then we sold it to a hotel restaurant. This time, they said, “Anyway, a hotel guest comes in; they give their room number and get their name and surname from the hotel database.” Bazingaaa! This time, we had to integrate with a completely unfamiliar Oracle database. As I recall, it was quite a challenge for our backend team; since we couldn’t get data directly, or some data manipulation is needed something like that. They had to write a small Golang middleware that would only run on that server.</p><p>With each new connection, while the user screens didn’t change much, the backend connection layer grew larger and larger. And this wasn’t just on the backend; the application began to grow increasingly complex, with new endpoints and new configurations to connect to different services on <strong>iOS</strong> and <strong>Android</strong>. It was at this point that I said, “I wish we’d added Dagger back then.” Luckily, we have Hilt today. With multiple base URLs and services, we can clarify which client will be used where with @Qualifier annotations and inject dependencies cleanly into the project.</p><p>Qualifiers.kt:</p><pre>import javax.inject.Qualifier<br><br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class BaseApiUrl<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class ValeApiUrl<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class HotelApiUrl<br><br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class BaseClient<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class ValeClient<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class HotelClient<br><br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class BaseRetrofit<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class ValeRetrofit<br>@Qualifier @Retention(AnnotationRetention.BINARY)<br>annotation class HotelRetrofit</pre><p>NetworkModule.kt:</p><pre>import com.example.network.BaseApi<br>import com.example.network.ValeApi<br>import com.example.network.HotelApi<br>import dagger.Module<br>import dagger.Provides<br>import dagger.hilt.InstallIn<br>import dagger.hilt.components.SingletonComponent<br>import okhttp3.Interceptor<br>import okhttp3.OkHttpClient<br>import okhttp3.logging.HttpLoggingInterceptor<br>import retrofit2.Retrofit<br>import retrofit2.converter.moshi.MoshiConverterFactory<br>import javax.inject.Singleton<br><br>@Module<br>@InstallIn(SingletonComponent::class)<br>object NetworkModule {<br><br>    // Base URLs<br>    @Provides @Singleton @BaseApiUrl<br>    fun provideBaseApiUrl(): String = &quot;https://base.example.com/api/&quot;<br><br>    @Provides @Singleton @ValeApiUrl<br>    fun provideValeApiUrl(): String = &quot;https://vale.example.com/api/&quot;<br><br>    @Provides @Singleton @HotelApiUrl<br>    fun provideHotelApiUrl(): String = &quot;https://hotel.example.com/api/&quot;<br><br>    // Common logging<br>    @Provides @Singleton<br>    fun provideLogging(): Interceptor =<br>        HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BODY }<br><br>    // OkHttp Clients (gerekirse farklı header/interceptor eklenir)<br>    @Provides @Singleton @BaseClient<br>    fun provideBaseClient(logging: Interceptor): OkHttpClient =<br>        OkHttpClient.Builder()<br>            .addInterceptor(logging)<br>            // .addInterceptor { chain -&gt; /* base headers */ chain.proceed(chain.request()) }<br>            .build()<br><br>    @Provides @Singleton @ValeClient<br>    fun provideValeClient(logging: Interceptor): OkHttpClient =<br>        OkHttpClient.Builder()<br>            .addInterceptor(logging)<br>            .build()<br><br>    @Provides @Singleton @HotelClient<br>    fun provideHotelClient(logging: Interceptor): OkHttpClient =<br>        OkHttpClient.Builder()<br>            .addInterceptor(logging)<br>            .build()<br><br>    // Retrofit Instances<br>    @Provides @Singleton @BaseRetrofit<br>    fun provideBaseRetrofit(<br>        @BaseApiUrl baseUrl: String,<br>        @BaseClient client: OkHttpClient<br>    ): Retrofit = Retrofit.Builder()<br>        .baseUrl(baseUrl)<br>        .client(client)<br>        .addConverterFactory(MoshiConverterFactory.create())<br>        .build()<br><br>    @Provides @Singleton @ValeRetrofit<br>    fun provideValeRetrofit(<br>        @ValeApiUrl baseUrl: String,<br>        @ValeClient client: OkHttpClient<br>    ): Retrofit = Retrofit.Builder()<br>        .baseUrl(baseUrl)<br>        .client(client)<br>        .addConverterFactory(MoshiConverterFactory.create())<br>        .build()<br><br>    @Provides @Singleton @HotelRetrofit<br>    fun provideHotelRetrofit(<br>        @HotelApiUrl baseUrl: String,<br>        @HotelClient client: OkHttpClient<br>    ): Retrofit = Retrofit.Builder()<br>        .baseUrl(baseUrl)<br>        .client(client)<br>        .addConverterFactory(MoshiConverterFactory.create())<br>        .build()<br><br>    // API layer<br>    @Provides @Singleton<br>    fun provideBaseApi(@BaseRetrofit retrofit: Retrofit): BaseApi =<br>        retrofit.create(BaseApi::class.java)<br><br>    @Provides @Singleton<br>    fun provideValeApi(@ValeRetrofit retrofit: Retrofit): ValeApi =<br>        retrofit.create(ValeApi::class.java)<br><br>    @Provides @Singleton<br>    fun provideHotelApi(@HotelRetrofit retrofit: Retrofit): HotelApi =<br>        retrofit.create(HotelApi::class.java)<br>}</pre><p>API interface examples (Can be found in different folders):</p><pre>import retrofit2.http.GET<br>import retrofit2.http.Query<br><br>interface BaseApi {<br>    @GET(&quot;tables&quot;) suspend fun getTables(): List&lt;TableDto&gt;<br>}<br><br>interface ValeApi {<br>    @GET(&quot;tickets/by-qr&quot;) suspend fun getByQr(@Query(&quot;qr&quot;) qr: String): ValeTicketDto<br>}<br><br>interface HotelApi {<br>    @GET(&quot;guest/by-room&quot;) suspend fun getGuest(@Query(&quot;roomNumber&quot;) room: String): GuestDto<br>}</pre><p>We choose which connection to choose in the Repository layer with enum</p><pre>import com.example.network.BaseApi<br>import com.example.network.HotelApi<br>import com.example.network.ValeApi<br>import javax.inject.Inject<br>import javax.inject.Singleton<br><br>enum class Backend { BASE, VALE, HOTEL }<br><br>@Singleton<br>class CheckInRepository @Inject constructor(<br>    private val baseApi: BaseApi,<br>    private val valeApi: ValeApi,<br>    private val hotelApi: HotelApi<br>) {<br>    suspend fun fetchByQr(qr: String) = valeApi.getByQr(qr)<br>    suspend fun fetchGuest(room: String) = hotelApi.getGuest(room)<br>    suspend fun fetchTables() = baseApi.getTables()<br><br>    suspend fun fetch(mode: Backend = Backend.BASE, arg: String): Any = when (mode) {<br>        Backend.BASE  -&gt; baseApi.getTables()<br>        Backend.VALE  -&gt; valeApi.getByQr(arg)<br>        Backend.HOTEL -&gt; hotelApi.getGuest(arg)<br>    }<br>}</pre><p>Of course, we can do it in an even shorter way:</p><pre>@Module<br>@InstallIn(SingletonComponent::class)<br>object NetworkModuleNamed {<br><br>    @Provides @Singleton @Named(&quot;url_base&quot;)  fun urlBase():  String = &quot;https://base.example.com/api/&quot;<br>    @Provides @Singleton @Named(&quot;url_vale&quot;)  fun urlVale():  String = &quot;https://vale.example.com/api/&quot;<br>    @Provides @Singleton @Named(&quot;url_hotel&quot;) fun urlHotel(): String = &quot;https://hotel.example.com/api/&quot;<br><br>    @Provides @Singleton fun logging(): Interceptor =<br>        HttpLoggingInterceptor().apply { level = HttpLoggingInterceptor.Level.BODY }<br><br>    @Provides @Singleton @Named(&quot;client_base&quot;)<br>    fun clientBase(logging: Interceptor) = OkHttpClient.Builder().addInterceptor(logging).build()<br><br>    @Provides @Singleton @Named(&quot;client_vale&quot;)<br>    fun clientVale(logging: Interceptor) = OkHttpClient.Builder().addInterceptor(logging).build()<br><br>    @Provides @Singleton @Named(&quot;client_hotel&quot;)<br>    fun clientHotel(logging: Interceptor) = OkHttpClient.Builder().addInterceptor(logging).build()<br><br>    @Provides @Singleton @Named(&quot;retrofit_base&quot;)<br>    fun retrofitBase(@Named(&quot;url_base&quot;) url: String, @Named(&quot;client_base&quot;) c: OkHttpClient): Retrofit =<br>        Retrofit.Builder().baseUrl(url).client(c).addConverterFactory(MoshiConverterFactory.create()).build()<br><br>    @Provides @Singleton @Named(&quot;retrofit_vale&quot;)<br>    fun retrofitVale(@Named(&quot;url_vale&quot;) url: String, @Named(&quot;client_vale&quot;) c: OkHttpClient): Retrofit =<br>        Retrofit.Builder().baseUrl(url).client(c).addConverterFactory(MoshiConverterFactory.create()).build()<br><br>    @Provides @Singleton @Named(&quot;retrofit_hotel&quot;)<br>    fun retrofitHotel(@Named(&quot;url_hotel&quot;) url: String, @Named(&quot;client_hotel&quot;) c: OkHttpClient): Retrofit =<br>        Retrofit.Builder().baseUrl(url).client(c).addConverterFactory(MoshiConverterFactory.create()).build()<br><br>    @Provides @Singleton @Named(&quot;api_base&quot;)<br>    fun apiBase(@Named(&quot;retrofit_base&quot;) r: Retrofit): BaseApi = r.create(BaseApi::class.java)<br><br>    @Provides @Singleton @Named(&quot;api_vale&quot;)<br>    fun apiVale(@Named(&quot;retrofit_vale&quot;) r: Retrofit): ValeApi = r.create(ValeApi::class.java)<br><br>    @Provides @Singleton @Named(&quot;api_hotel&quot;)<br>    fun apiHotel(@Named(&quot;retrofit_hotel&quot;) r: Retrofit): HotelApi = r.create(HotelApi::class.java)<br>}</pre><p>Usage:</p><pre>class CheckInRepository @Inject constructor(<br>    @Named(&quot;api_base&quot;)  private val baseApi: BaseApi,<br>    @Named(&quot;api_vale&quot;)  private val valeApi: ValeApi,<br>    @Named(&quot;api_hotel&quot;) private val hotelApi: HotelApi<br>) { /* ... */ }</pre><h3>Small practical notes</h3><ul><li>If Auth/Headers differ, add a separate Interceptor to each client (e.g., ValeAuthInterceptor, HotelAuthInterceptor).</li><li>Policies like timeout/cache/pinning may differ across three clients.</li><li>If you’re going to use the same interface in three backends (if the endpoint contract is identical), the cleanest way is to create three instances with three separate Retrofit.create() calls and select them with when(Backend).</li></ul><h3>Dependency Injection (DI) Isn’t Just That</h3><p>When most of us think of DI, the first thing that comes to mind is “injecting Retrofit with Hilt.” But the essence of DI is that a class doesn’t create the objects it needs internally; it injects them externally. This way:</p><ul><li>Dependencies become visible: The constructor clearly shows what the class needs.</li><li>Testability increases: You can provide a fake/mock instead of a real service and write unit tests.</li><li>Configuration changes become easier: URL, timeout, cache, logger… all change from a single location.</li><li>Layers are separated cleanly: The UI → Use Case/Repository → Data (API/DB) chain becomes loosely coupled.</li></ul><p>In this project (BASE/VALE/HOTEL), DI allowed us to:</p><ul><li>We were able to connect the same “customer greeting” flow to different data sources (hotel DB, valet service, main API).</li><li>When the endpoint changed in the backend, we isolated the impact within a single module.</li><li>When the new integration was implemented, we added a new implementation without disrupting existing code.</li></ul><h4>The Heart of DI: “Inversion of Control” and Composition Root</h4><p>DI is the inversion of control (IoC). Objects don’t create their own dependencies; they inherit them. The decision on how these dependencies are created is centralized in a single place: the composition root.</p><ul><li>Composition root: This is where the application is “built.” In Android, these are typically Application/DI modules. All wiring is done here.</li><li>Classes focus on pure business logic; questions like “which URL, which client, which logger?” are the job of the composition root.</li></ul><h4>Anti-Pattern: Service Locator vs. Pure DI</h4><ul><li>Service Locator: The “call a global ServiceLocator.get(Api.class) and get the object” approach. This is simple, but creates hidden dependencies and is poorly tested.</li><li>Pure DI (Constructor Injection): “Request what you want in the constructor.” Dependencies are visible, making testing easy.</li></ul><pre>// Bad practice (Service Locator):<br>class CheckInController {<br>    private val api = ServiceLocator.get&lt;BaseApi&gt;()<br>    fun load() { /* api&#39;yi kullanır */ }<br>}<br><br>// Good practice (Constructor Injection):<br>class CheckInController(private val api: BaseApi) {<br>    fun load() { /* api&#39;yi kullanır */ }<br>}</pre><h3>Conclusion</h3><p>The DI decision I postponed that day, thinking “it’s a small project, what’s the need?”, revealed its true colors when the project grew to three separate backends. DI isn’t just about injecting Retrofit; it’s about making dependencies visible, making testing easier, and making change cheaper.</p><p>Today, in the same scenario, with Hilt + @Qualifier, we’re cleanly separating three clients, managing the flow with a simple selection in the repository, and adding new integrations with the ease of “plugging and unplugging.” I wish I’d done it back then; thankfully, today is the day. I’ve learned my lesson, Erdem. Thank you :)</p><p>If you like this article, read more of my articles from lists please.</p><ul><li><a href="https://medium.com/@alparslandev/list/a857be2dfbc6">Software</a></li><li><a href="https://medium.com/@alparslandev/list/9ca215438721">Motivation</a></li><li><a href="https://medium.com/@alparslandev/list/3773f85e3fb9">Memories</a></li><li><a href="https://medium.com/@alparslandev/list/10bbfb19568c">My Sci-Fi Madness</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85095457f90e" width="1" height="1" alt=""><hr><p><a href="https://proandroiddev.com/the-moment-my-ex-manager-was-rightfully-angry-at-me-dagger-hilt-and-the-di-lesson-85095457f90e">The Moment My Ex-Manager Was Rightfully Angry at Me : Dagger Hilt and the DI Lesson</a> was originally published in <a href="https://proandroiddev.com/">ProAndroidDev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Questions That Help Me Quit ChatGPT Plus and Every Subscription]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/illumination/7-questions-that-help-me-quit-chatgpt-plus-and-every-subscription-8b9de3946611?source=rss-14c49c9dd1d5------2"><img src="https://cdn-images-1.medium.com/max/2600/1*sOdsJ_-9bs2-AdnhspmoPA.png" width="2816"></a></p><p class="medium-feed-snippet">Get rid of unnecessary subscriptions! How do we question the necessity of subscriptions like Spotify, Office, and YouTube?</p><p class="medium-feed-link"><a href="https://medium.com/illumination/7-questions-that-help-me-quit-chatgpt-plus-and-every-subscription-8b9de3946611?source=rss-14c49c9dd1d5------2">Continue reading on ILLUMINATION »</a></p></div>]]></description>
            <link>https://medium.com/illumination/7-questions-that-help-me-quit-chatgpt-plus-and-every-subscription-8b9de3946611?source=rss-14c49c9dd1d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b9de3946611</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[digital-detox]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[illumination]]></category>
            <dc:creator><![CDATA[Alparslan Selcuk Develioglu (En)]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 14:33:31 GMT</pubDate>
            <atom:updated>2025-07-31T14:33:31.450Z</atom:updated>
        </item>
    </channel>
</rss>