random anti-pattern of the day ``` class Bar { ...
# random
k
random anti-pattern of the day
Copy code
class Bar {
    fun stuff(foo: Foo) {}
}

class Foo {
    val self = this

    fun baz(bar: Bar) = with(bar) {
        stuff(self) // I'm too lazy to type `this@Foo` so I pretend this is Javascript and use self
    }
}