Skip to content
Discussion options

You must be logged in to vote

Typically I will try to define a metric in the same file as where it is used, but I have certainly come across some cases where that has not made sense. Sometimes that means I change around where the timing is done, e.g. I will time predict from where it is being called instead of having to remember to time it for each implementation. What you describe will work fine though, keeping the definition and usage close is just something I find easier to reason about/maintain.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@igor-susic
Comment options

@csmarchbanks
Comment options

@igor-susic
Comment options

@csmarchbanks
Comment options

@igor-susic
Comment options

Answer selected by igor-susic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants