<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kotlin on Brais Gabín</title><link>http://braisgabin.com/tags/kotlin/</link><description>Recent content in Kotlin on Brais Gabín</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 31 Jul 2026 14:20:22 +0200</lastBuildDate><atom:link href="http://braisgabin.com/tags/kotlin/index.xml" rel="self" type="application/rss+xml"/><item><title>Reduce Visibility</title><link>http://braisgabin.com/posts/reduce-visibility/</link><pubDate>Fri, 31 Jul 2026 14:20:22 +0200</pubDate><guid>http://braisgabin.com/posts/reduce-visibility/</guid><description>&lt;h2 id="reduce-visibility"&gt;
 Reduce visibility
 &lt;a class="heading-link" href="#reduce-visibility"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;I like to use and build tools that let me improve the source code. I&amp;rsquo;m not talking about LLMs; I&amp;rsquo;m talking about deterministic tools that I can run over and over again on a source code.&lt;/p&gt;
&lt;p&gt;Two weeks ago, an answer in the detekt Slack channel caught my attention. &lt;a href="https://androiddev.social/@eugen" class="external-link" target="_blank" rel="noopener"&gt;Eugen Martynov&lt;/a&gt; &lt;a href="https://kotlinlang.slack.com/archives/C88E12QH4/p1784297367396369?thread_ts=1784067418.051549&amp;amp;cid=C88E12QH4" class="external-link" target="_blank" rel="noopener"&gt;commented on an interesting feature&lt;/a&gt; in &lt;a href="https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/" class="external-link" target="_blank" rel="noopener"&gt;Dependency Analysis Gradle Plugin (DAGP)&lt;/a&gt;. DAGP has an undocumented task called &lt;code&gt;publicTypeUsage&lt;/code&gt; that lists all the &lt;code&gt;public&lt;/code&gt; classes that can be &lt;code&gt;internal&lt;/code&gt;. That&amp;rsquo;s so good! Reducing visibility helps your source code in different ways. The one that I like the most: it helps to detect (and remove) dead code.&lt;/p&gt;</description></item></channel></rss>