# Smarter ToDos with Kotlin

DevFeed: [Smarter ToDos with Kotlin](<https://devfeed.tech/articles/smarter-todos-with-kotlin-25330.md>)

Original publisher: [Read original article](<https://kau.sh/blog/smarter-todos-with-kotlin/>)

Author: Kaushik Gopal

Published: 2018-03-14T07:00:00Z

Content type: article

Language: en

Sources: [Kaushik Gopal's Site](<https://devfeed.tech/sources/kaushik-gopal-s-site.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Code](<https://devfeed.tech/topics/code.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [code](<https://devfeed.tech/tags/code.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [requirements](<https://devfeed.tech/tags/requirements.md>)

## AI overview

A short Kotlin blog post describes adapting the existing Kotlin TODO pattern to track and add accountability for deferred pull request review feedback. It also includes a Kotlin date-builder function with optional date and time components.

## Source excerpt

Checkout this quick blog post I wrote for my company, tweaking the existing Kotlin TODO to work towards our requirements. While I don't think this solution is a panacea for all your missing code snippets, I have found some luck with this method, in adding accountability for those PR review feedback comments you say you'll get to, but conveniently forget :) Here's a bonus if you're reading this article from here: /** * @param month - regular month (so 3 = March) */ @JvmOverloads fun ISDate( day: Int? = null, month: Int? = null, year: Int? = null, hour: Int? = null, minute: Int? = null, second: Int? = null, date: Date? = null ): Date = Date().apply { val cal = Calendar.getInstance() date?.let { cal.time = it } day?.let { cal.set(Calendar.DAY_OF_MONTH, it) } month?.let { cal.set(Calendar.MONTH, it - 1) } year?.let { cal.set(Calendar.YEAR, it) } hour?.let { cal.set(Calendar.HOUR_OF_DAY, it) } minute?.let { cal.set(Calendar.MINUTE, it) } second?.let { cal.set(Calendar.SECOND, it) } return cal.time } It's a pretty straightforward date builder with minor tweaks (for e.g. 3 = March cause what are we, Monsters ?).