integrant

Charlie Briggs 2020-09-25T08:29:27.002400Z

hey, I’m pretty new to integrant/component/etc is there a common pattern with integrant/the reloaded workflow to get a concrete implementation in say, a comment block in a namespace (not the actual implementation)? A couple of ideas which I’d like a sanity check on: is it sensible to have a running system and pull the correct component using integrant.repl.state/system or to manually create a new component, or use ig/nit-key?

Charlie Briggs 2020-09-25T09:55:31.004400Z

as a separate question, is it common to inject components (e.g. a datasource) through your system as say, the first argument of a function call, rather than using anything more sophisticated like records? Prior to integrant we just had a namespace with static methods which accessed a datasource atom in a separate namespace