Hacker News new | ask | show | jobs
by mitxela 87 days ago
You should be passing a connection or a connection pool, not a connection string.
1 comments

I chose a connection string as an example of something that obviously cannot be originated in the middle of the call stack. The difference between passing a raw connection string or passing a connection factory is important for good software design, but I considered them equivalent in the context of this discussion of coloring.