Ask HN: API Design, id's or objects?
I'm curious, what do you guys prefer in your methods/functions/members, object or the object's id, specially in context of statically typed languages (C#/Java/Scala)Pros of object itself: 1) More typesafe calls. 2) Get once from persistence, no need to get againCons: Most of the time no need for the actual object, just id would do, so having it costs extra to get from persistence.A mixture of...