<?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 Abdullah Balta on Medium]]></title>
        <description><![CDATA[Stories by Abdullah Balta on Medium]]></description>
        <link>https://medium.com/@abdullahbalta?source=rss-17a5237ff332------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*g5bgoSkKyPpSMpn0.</url>
            <title>Stories by Abdullah Balta on Medium</title>
            <link>https://medium.com/@abdullahbalta?source=rss-17a5237ff332------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:22:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abdullahbalta/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[My Associate Android Developer Certification Experience]]></title>
            <link>https://abdullahbalta.medium.com/my-associate-android-developer-certification-experience-e99e535a9484?source=rss-17a5237ff332------2</link>
            <guid isPermaLink="false">https://medium.com/p/e99e535a9484</guid>
            <category><![CDATA[android-certification]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Abdullah Balta]]></dc:creator>
            <pubDate>Wed, 18 Nov 2020 17:20:03 GMT</pubDate>
            <atom:updated>2020-11-18T17:20:03.143Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello all Android developers, in this article I am sharing my experience of Associate Android Developer certification process given by Google.</p><p>I received this 3-year certificate in September / 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2FrnUZG5hDCroCevfYUZ4g.png" /></figure><p>In this article, I skip the registration for the certification exam. Google’s <a href="https://developers.google.com/certification/associate-android-developer">documents</a> will be enough for this. Now, I continue with the subject of the exam and which subjects you need to study.</p><p>First of all, this exam is neither difficult nor easy and takes exactly 8 hours. So, you can join on your off day. Once you’ve done all the setup for the exam, Android Studio creates a sample project with its Trueability Plugin, and then the exam countdown starts.</p><h3>Study Guideline</h3><p>The next step is how you will study for this exam. This project has new features of Android Development and working topics that Google shares as an example. I highly recommend that you have a good knowledge of these topics:</p><p><strong>MVVM Architecture</strong></p><p><strong>Android Architecture Components:</strong></p><ul><li><strong>Room</strong></li><li><strong>Paging</strong></li><li><strong>LiveData</strong></li></ul><p><strong>Broadcast Manager</strong></p><p><strong>Notification System</strong></p><p><strong>Job Scheduler / Work Manager</strong></p><p><strong>Materialcomponents / Widgets</strong></p><p><strong>UI Testing / Espresso</strong></p><p>The project needs you to complete several tasks. These tasks consist of bug fixing, implement new page, provide some data for app, change or add ui of app etc.</p><p>If you have completed these tasks before timer runs out, you have to submit it. Make sure your project successfully built before submitting, if there is an error while building. I assume your result will be fail, if any build error or crashes.</p><p>Finally, when you submit the project, you will notice that the project is gone. Once posted, an exit interview awaits you. Your video and voice will be recorded during this interview. You have 3 minutes to answer each question. I strongly recommend that you join this meeting as soon as possible because this interview should ask some questions about the project. The purpose of the interview is that Google wants to know if you have completed the project on your own. Of course, you can use internet, StackOverFlow, Medium etc. for coding during the exam. If you copy some code over the internet, please know what you are copying.</p><h3>Summary</h3><p>If you have experience about Android Development for 3+ years. I think it will be easy to complete tasks. You consider for any lack knowledge about these topics, make sure you very well study them before taking this exam.</p><p>Good Luck…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e99e535a9484" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ViewModel Clean Stylish]]></title>
            <link>https://abdullahbalta.medium.com/viewmodel-clean-stylish-1d303444f0d8?source=rss-17a5237ff332------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d303444f0d8</guid>
            <category><![CDATA[viewmodel]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[use-cases]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Abdullah Balta]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 14:54:45 GMT</pubDate>
            <atom:updated>2020-03-16T08:30:43.766Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*MxMMjB5SIlEgYTS5fz9Svw.png" /></figure><p>Using <a href="https://developer.android.com/topic/libraries/architecture">Architecture Component</a> is strongly recommended by Google. So, Android Developers using any kind of architecture when developing apps. MVVM, MVP, and MVI are the most popular ones. However, the main idea is the separation of UI and business logic.</p><p>We end up adding extra layers to existing patterns as we combine CleanArchitecture with them. Let’s think about both the MVVM pattern and CleanArchitecture together. In MVVM pattern initial “V” letter stands for “View” means that your activities, fragments, adapters, custom widgets, etc. On the other side, CleanArchitecture has a presentation layer as we know. This layer includes activities, fragments, adapters, custom widgets and viewmodels.</p><p>You noticed that, there is a conflict with viewmodels. How can we separate UI and business logic? The answer is <strong>UseCase </strong>but what is the use case?</p><p>Let’s look at some viewmodel approaches with the following scenario. The app has tutorial screens. If the user skips the tutorial, it shows again when the app restarts. If the user completes the tutorial, it never shows again. The user directly sees the dashboard screen when the app restarts.</p><p><strong>First Approach: ViewModel No Clean Way</strong></p><pre>class TutorialViewModel(<br>    private val tutorialRepository: TutorialRepository<br>): ViewModel() {</pre><pre>    val showDashboardLiveData = LiveData&lt;Unit&gt;()<br>    val showTutorialLiveData = LiveData&lt;Unit&gt;()</pre><pre>    fun isTutorialSkipped() {<br>        if (tutorialRepository.isSkipped()) {<br>            showDashboardLiveData.<em>value </em>= Unit<br>        } else {<br>            showTutorialLiveData.<em>value </em>= Unit<br>        }<br>    }<br>}</pre><p>This is a simple ViewModel class in MVVM. Like <a href="https://developer.android.com/jetpack/docs/guide">Google recommended app architecture</a>. ViewModel class has some logic and that’s fine.</p><p><strong>Second Approach: ViewModel With Clean Architecture</strong></p><p>In this approach, viewModel executes useCase and useCase returns if the user skipped the tutorial or not. Still ViewModel class has logic and our architecture has an additional layer that means more classes and more lines of code. So, how can we get rid of this logic?</p><pre>class TutorialViewModel(<br>    private val tutorialUseCase: TutorialUseCase<br>): ViewModel() {</pre><pre>val showDashboardLiveData = LiveData&lt;Unit&gt;()<br>    val showTutorialLiveData = LiveData&lt;Unit&gt;()</pre><pre>fun isTutorialSkipped() {<br>        if (tutorialUseCase.execute()) {<br>            showDashboardLiveData.<em>value </em>= Unit<br>        } else {<br>            showTutorialLiveData.<em>value </em>= Unit<br>        }<br>    }<br>}</pre><p>Here is useCase class,</p><pre>class TutorialUseCase(<br>    private val tutorialRepository: TutorialRepository<br>): UseCase&lt;Boolean, Unit&gt; {<br><br>    override fun execute(): Boolean = tutorialRepository.isSkipped()<br>}</pre><p><strong>Third Approach: Super Clean ViewModel</strong></p><pre>class TutorialViewModel(<br>    private val tutorialUseCase: TutorialUseCase<br>): ViewModel() {<br>    val showDashboardLiveData = LiveData&lt;Unit&gt;()<br>    val showTutorialLiveData = LiveData&lt;Unit&gt;()<br>    fun isTutorialSkipped() {<br>        tutorialUseCase.execute(<br>            {<strong> </strong>showDashboardLiveData.<em>value </em>= Unit }, <br>            {<strong> </strong>showTutorialLiveData.<em>value </em>= Unit }<strong><br>        </strong>)<br>    } <br>}</pre><p>Here is more logical UseCase :)</p><pre>class TutorialUseCase(<br>    private val tutorialRepository: TutorialRepository<br>): UseCase&lt;Boolean, Unit&gt; {<br><br>    override fun execute(showTutorial: () -&gt; Unit = {}, continue: () =&gt; {}) {<br>        if (tutorialRepository.isSkipped()) {<br>            showTutorial()<br>        } else {<br>            continue()<br>        }<br>    }<br>}</pre><p>Now, ViewModel means the presentation layer gets rid of some logic. So this way is much cleaner. ViewModel just execute the useCase and nothing more.</p><p>In CleanArchitecture, useCases are not dependent platform, they keep only your business logic. Think about multi-platform applications like iOS, Android, Desktop or Web apps. Presentation layer has only platform specific codes. So, we can easily use these useCases on other platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d303444f0d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Kotlin Quality]]></title>
            <link>https://abdullahbalta.medium.com/improving-kotlin-quality-fc59df802ba8?source=rss-17a5237ff332------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc59df802ba8</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[detekt]]></category>
            <category><![CDATA[lint]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Abdullah Balta]]></dc:creator>
            <pubDate>Wed, 27 Mar 2019 05:58:56 GMT</pubDate>
            <atom:updated>2019-03-27T10:20:56.919Z</atom:updated>
            <content:encoded><![CDATA[<h3>Detekt: Improving Kotlin Quality</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgwEocz-Znj_K1dK5lxxJg.jpeg" /></figure><p>Kotlin has several advantages over Java for writing codes. It is more simple, safe and concise than Java. However, there are not many analysis tools to work with Kotlin. If you are Android developer, you have already noticed about lint warning. In this post, I am going to configure a simple Android project which is written in Kotlin for lint format, custom lint rules with gradle tasks.</p><p>Let’s find a sample project written in Kotlin or you can use your own. I prefer “todo-mvp-kotlin” which is in <a href="https://github.com/googlesamples/android-architecture/tree/todo-mvp-kotlin/">Google Samples</a> repository. Then, clone it and run. If everything works perfect, let’s add and configure <a href="https://arturbosch.github.io/detekt/">detekt</a> for this project.</p><p>First of all, add detekt plugin in your root build.gradle file.</p><pre>plugins <em>{<br>    </em>id &quot;io.gitlab.arturbosch.detekt&quot; version &quot;1.0.0-RC14&quot;<br><em>}</em></pre><p>Now, run <strong>./gradlew detektGenerateConfig </strong>task to generate default detekt config file.</p><p>Then we write a task to check detekt rules based on config file. In root gradle file run following task.</p><pre>detekt <em>{<br>        </em>toolVersion = &quot;1.0.0-RC14&quot;<br>        input = files<em>(&quot;</em>$projectDir<em>&quot;)<br>        </em>config = files<em>(&quot;</em>$project.projectDir/default-detekt-config.yml<em>&quot;)<br>        </em>reports <em>{<br>            </em>xml <em>{<br>                </em>enabled = true<br>                destination = file<em>(&quot;</em>$project.projectDir/detekt-report.xml<em>&quot;)<br>            }<br>            </em>html <em>{<br>                </em>enabled = true<br>                destination = file<em>(&quot;</em>$project.projectDir/detekt-report.html<em>&quot;)<br>            }<br>        }<br>}</em></pre><p>After running task, Android Studio shows build failed. Because, we have break some detekt rules.</p><p>Let’s see report file and fix some rules, the path is given by Android Studio like below.</p><blockquote>Complexity Report:<br> — 5783 lines of code (loc)<br> — 3108 source lines of code (sloc)<br> — 2027 logical lines of code (lloc)<br> — 1719 comment lines of code (cloc)<br> — 556 McCabe complexity (mcc)<br> — 30 number of total code smells<br> — 55 % comment source ratio<br> — 274 mcc per 1000 lloc<br> — 14 code smells per 1000 lloc</blockquote><blockquote>Project Statistics:<br> — number of properties: 251<br> — number of functions: 411<br> — number of classes: 59<br> — number of packages: 12<br> — number of kt files: 52</blockquote><blockquote>Successfully generated HTML report at /Users/abdullahbalta/StudioProjects/android-architecture/todoapp/detekt-report.html<br>Successfully generated Checkstyle XML report at /Users/abdullahbalta/StudioProjects/android-architecture/todoapp/detekt-report.xml</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAEnSrBUjG-Uy0aClWccmA.png" /></figure><p>Now, fix <strong>naming </strong>titled issues, the issue says,</p><blockquote>Variable names should follow the naming convention set in the projects configuration.</blockquote><blockquote>/Users/abdullahbalta/StudioProjects/android-architecture/todoapp/app/src/mock/java/com/example/android/architecture/blueprints/todoapp/data/FakeTasksRemoteDataSource.kt:27:5 <br>Private variable names should match the pattern: (_)?[a-z][A-Za-z0–9]*</blockquote><blockquote>/Users/abdullahbalta/StudioProjects/android-architecture/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksActivity.kt:36:5 <br>Private variable names should match the pattern: (_)?[a-z][A-Za-z0–9]*</blockquote><p>We change <em>FakeTasksRemoteDataSource.kt:27:5 and TasksActivity.kt:36:5 </em>code like these. Because, this type of naming is constant value naming and <strong>tasksServiceData</strong> is not a constant variable and we convert second variable to constant.</p><pre>//FakeTaksRemoteDataSource.kt:27:5</pre><pre>private val TASKS_SERVICE_DATA = LinkedHashMap<em>&lt;</em>String, Task<em>&gt;()</em></pre><pre>changed to</pre><pre>private val tasksServiceData = LinkedHashMap<em>&lt;</em>String, Task<em>&gt;()</em></pre><pre>//TaskActivity.kt:36:5</pre><pre>private val CURRENT_FILTERING_KEY = &quot;CURRENT_FILTERING_KEY&quot;</pre><pre>changed to</pre><pre>companion object <em>{<br>    </em>private const val CURRENT_FILTERING_KEY = &quot;CURRENT_FILTERING_KEY&quot;<br><em>}</em></pre><p>So, after fix these rules we re-run detekt tasks to see the result. Now, naming issues have disappeared.</p><p>Now, we can customize these rules in detekt-config.yml file. Let’s configure <strong>TooManyFunctions</strong> rule. The default value is set to 11, so we change to 30. After customizing, re-run the task and see the results. All TooManyFunctions issues disappear.</p><p>These rules provide some organization to your codes. Your team can make some decision to generate custom rules and every developer in team has following the rules, on the other hand project not build.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc59df802ba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Experience on Godot Game Engine]]></title>
            <link>https://abdullahbalta.medium.com/my-first-experience-on-godot-game-engine-404995172dae?source=rss-17a5237ff332------2</link>
            <guid isPermaLink="false">https://medium.com/p/404995172dae</guid>
            <category><![CDATA[game-engine]]></category>
            <category><![CDATA[godot]]></category>
            <category><![CDATA[unity3d]]></category>
            <category><![CDATA[game-development]]></category>
            <dc:creator><![CDATA[Abdullah Balta]]></dc:creator>
            <pubDate>Thu, 09 Mar 2017 21:37:34 GMT</pubDate>
            <atom:updated>2017-03-10T15:35:39.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xctAq4Yq0kwzWx-P7M9nbw.png" /></figure><p>Developing a game has a lots of challenges for who wants to create a game from scratch. Choosing a game concept and platform, which game engine to use and how to design scenes are not so easy. In this article, I will share my experiences on <a href="https://godotengine.org/"><strong>Godot Game Engine</strong></a>.</p><p>I have developed several mobile applications on Android. So developing mobile applications lead me to developing mobile games. First of all, I have already experienced about Unity3d Game Engine which is easy to use, has friendly UI editor and lots of tutorials.</p><p>However, Unity3d is free of charge to use, but it has some limitations on free version. As a open source fan, I started to search completely free, open source and something as good as Unity3d game engine. Finally, I end up with Godot Game Engine.</p><p>Learning of new platform or software takes some time and effort for sure. In my opinion Godot’s official documentation is not easy enough to learn it quickly. So, I started to watch some tutorial series on Youtube to kick off game development as fast as possible. While watching tutorials I realized that Godot is easy to learn. In two weeks, I started to develop my own game.</p><h3>Scripting</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*WJGoyrN_5GXn_2DJrZb7xA.png" /></figure><p>Scripting is the most important thing If you want to have full control over your game. Godot has own script language called <em>GDScript. </em>It looks like combination of pyhton, swift and javascript. If you have already experienced in these languages, you can learn it easily.</p><h3>Scene Editor</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*yb8G0tGccuqMCfewXNEB_A.png" /></figure><p>Some of game engine has scene editor and some of them has fully code based. If you want to make a game faster, I suggest you to choose game engine which has scene editor. Godot Scene editor looks similar to Unity’s so that is attracted me to choose it. It has a lot of properties on scene editor to make a quick changes your game levels.</p><h3>2d or 3d</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*KCYu1AtssnOZ5ghwpcfVBA.jpeg" /></figure><p>My game development is about 2d concept. Godot has also 3d support too, but, I have not come across too much 3d tutorials. If you want to develop complex 3d games, the best choice is Unity3d.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*k10izw34CrArV9a3E5FSkQ.png" /></figure><h3>Publishing</h3><p>Publish your game mobile, desktop and web platforms are possible on Godot Game Engine. This is also enough reason to go with Godot for game development .</p><h3>Community</h3><p>Even though Godot is developing fast and periodically as a game engine; Godot community has not been grown enough yet. In most cases, you learn and explore many things by yourself.</p><p>To sum up, Godot is good open-source alternative to Unity3d. It deserves chance to making a game development.</p><p><em>If you liked the article, click the </em>💚<em> below so more people can see it! Also, you can follow me on</em> <a href="https://medium.com/@abdullahbalta"><strong><em>Medium</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=404995172dae" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>