Ted Hagos

Ted Hagos @tedhagos

About: coder, scribbler, doodler (in that order). Keeps his notes at https://workingdev.net and https://tedhagos.com.

Joined:
Sep 14, 2018

Ted Hagos
articles - 15 total

If I knew then what I know now

If can go back in time, this is what I will tell to my younger (dev) self

Learn More 348 21Oct 5 '18

Ripping Youtube vids on the cmd line

How to download youtube videos

Learn More 22 5Oct 4 '18

macOS mojave

Should I upgrade to macOS Mojave now

Learn More 18 21Oct 4 '18

You can pass variable arguments in a Kotlin function

You can pass variable number of arguments in a Kotlin function. See how it's done

Learn More 9 0Oct 2 '18

Reified generics in Kotlin

learn how to deal with type erasures during runtime. Kotlin has ways to make the runtime remember the type parameters for generics

Learn More 35 9Sep 28 '18

Kotlin's when is switch, on steroids

Kotlin doesn't have a switch statement, like the one in Java. But, it has the when construct. You can use it either as a statement or expression. It's got superpowers

Learn More 6 0Sep 28 '18

Kotlin Exception handling

Like Java, Kotlin uses the same try-catch construct. But unlike Java, Kotlin treat all exceptions as unchecked. Hence, try-catch is optional

Learn More 8 0Sep 28 '18

if-then, a statement in Java; but an expression in Kotlin

Kotlin's if-then construct is almost the same as Java's, but in Kotlin, if-then is an expression, not a statement

Learn More 13 2Sep 30 '18

A really really basic intro to Kotlin's functions

Kotlin functions are much richer than Java's. You have the flexibility to define default values for parameters and even name the parameters at the call site. This why you don't need to do much overloading in Kotlin

Learn More 12 0Sep 30 '18

Variance in Kotlin Generics

Learn how to use the in and out keyword in Kotlin Generics. Read along if you’re curious about invariant, covariant and contravariant in Kotlin Generics

Learn More 15 0Oct 24 '18

Android Architecture

The most visible part of Android, at least for developers, is its operating system (OS). An OS is a...

Learn More 12 5Oct 2 '18

Android Jank

The following code used to trigger ANR (Android Not Responding) error Listing 1. time consuming...

Learn More 10 0Sep 28 '18

Kotlin - Extension Functions

An extension function in Kotlin allows to add behavior to an existing class, including the ones written in Java, without using inheritance. It essentially lets us define a function that can be invoked as a member of the class, but the function is implemented outside the class

Learn More 5 0Sep 30 '18

How to Write Good

have a good laugh at these tips

Learn More 14 0Oct 1 '18

Die Empty

digested notes from "die empty" by Todd Henry

Learn More 8 0Oct 2 '18