Tag: clean code

  • Kotlin Anti-Patterns – Also this is Null

    Kotlin Anti-Patterns – Also this is Null

    Kotlin is a young language, and with that comes many untrodden paths and unknown gotchas. Let’s explore one of these anti-patterns, for the sake of the article I’ve called it “Also this is null”.

  • [TUT] Kotlin Extension Functions by Example

    Kotlin Extension functions allow you to add behaviour (think methods/functions) to any other type on the platform or in your codebase. The idea being to allow for greater flexibility and less boiler plate code. Let’s have a quick run through of how to create them and what are some advantages and disadvantages. The official docs:…

  • Hexawhat Architecture?

    Have you ever heard of hexagonal architecture? In my experience, the question quite divides people. It’s either yes! wow! I love it, I’m doing it / experimenting with it right now, OR no what? what even is that, is it Android based. hexa – six something? Here I’m going to try to explain hexagonal architecture…

  • This one simple change for better class naming will blow your mind

    Single Responsibility[^n], Beware the Share[^n], Boyscout Rule[^n]. These are some conventions that guide good practice in software development and I believe naming can benefit from these ideas and other practices. This blog post will discuss class naming using Model View Presenter as the example and show you one change you can do to make your…

  • Clean Code: Java Class Fields

    Keeping your code clean is no easy task. Clean code allows your project to pass the test of time. It can be broken down into making your code simple to read, write, and understand. This post will explain how you can clean up your class fields to move towards a cleaner project. Code maintenance is…

  • CleanCoders – Mobile App Case Study Review

    Learning is hard and comes in many forms. I have recently finished watching “Mobile Development with Swift” an online ~10 hour video series by Robert C Martin of the [Clean Coders](https://cleancoders.com/) website. It aims to teach you about mobile development, test driven development and clean code. What did I learn? Was it worth it? And…

  • [TUT] Create your own CheckStyle check

    Android code is just like any Java system, you need to write tests and have automated code review checks. CheckStyle is a way of double checking your Java code. Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. It automates the process of checking Java code to…