Skip to content

Instantly share code, notes, and snippets.

View johnsonlee's full-sized avatar
🎯
Focusing

Johnson Lee johnsonlee

🎯
Focusing
View GitHub Profile

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xno-optimized-callable-references")
}
}
@SinceKotlin(version = "1.4")
private final Class owner;
@SinceKotlin(version = "1.4")
private final String name;
@SinceKotlin(version = "1.4")
private final String signature;
@SinceKotlin(version = "1.4")
@SinceKotlin(version = "1.4")
public FunctionReference(
int arity,
Object receiver,
Class owner,
String name,
String signature,
int flags
) {
super(receiver, owner, name, signature, (flags & 1) == 1);
public FunctionReferenceImpl(
int arity,
KDeclarationContainer owner,
String name,
String signature
) {
super(/* ... */);
}
@SinceKotlin(version = "1.4")
final class refs/LambdaKt$main$1 extends kotlin/jvm/internal/FunctionReference implements kotlin/jvm/functions/Function0 {
public synthetic bridge invoke()Ljava/lang/Object;
public final invoke()V
public final getOwner()Lkotlin/reflect/KDeclarationContainer; // overrides CallableReference#getOwner
public final getName()Ljava/lang/String; // overrides CallableReference#getName
public final getSignature()Ljava/lang/String; // overrides CallableReference#getSignature
<init>()V
public final static Lrefs/LambdaKt$main$1; INSTANCE
static <clinit>()V
}
fun func() {
// ...
}
fun call(func: () -> Unit) {
func()
}
call(::func)
fun interface IFoo {
fun foo()
}
val iFooCtor = ::IFoo
listOf("a", "b").forEach(::println)
listOf("a", "b").forEach {
println(it)
}