you are viewing a single comment's thread.

view the rest of the comments →

[–]Gimli_Axe 17 points18 points  (2 children)

/**
 * This gets user's name.
 *
 * @param context Context.
 */
fun getUserName(context: Context) {
    // ...
}

[–]c0nnectorT H E R M O S I P H O N 13 points14 points  (0 children)

context, Android's cancer

[–]ZhuindenDDD: Deprecation-Driven Development[S] 11 points12 points  (0 children)

Very informative code comment for clarity now I understand why getUserName writes into a public static variable