4 ms·
This is why I LOVE to write interfaces for ORM: Foo Foo.Id Now what is an ID? Just a long. But now when I call a function like getFoo(Foo.Id id) it is static
by Justsignedup 6y ago
This is why I LOVE to write interfaces for ORM:
Foo
Foo.Id
Now what is an ID? Just a long. But now when I call a function like getFoo(Foo.Id id) it is statically obvious what is going on.
Its little things like this that make it obvious what should happen vs documented and then yelling at you for not remembering the exact interface.