Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conceptual dependencies instead of explicit library dependencies #16

Closed
wallymathieu opened this issue Sep 18, 2018 · 3 comments
Closed
Labels

Comments

@wallymathieu
Copy link
Owner

wallymathieu commented Sep 18, 2018

  • Dependency injection container: Func<Type, Object> or Func<Type, string, Object> vs System.IServiceProvider

    • Are concrete types automatically registered?
    • Can you have multiple things of the same type registered?
    • Does the order of registrations matter?
  • Logging see logadapter vs logging abstractions
    a logging abstraction could be something like Action<Exception, string, object[]>, Action<string, object[]> (i.e. where you have the choice to plug in whatever)

    • is the string a template? are the objects added as context regardless of the string?
  • Parameters and configurable options : why is a POCO class not enough? Could Func<Poco> fill the same role?

@wallymathieu
Copy link
Owner Author

You could look at the way some frameworks force you into use them for your POCO objects since they color what kind of structures you can use.

@wallymathieu
Copy link
Owner Author

Another example of implicit dependency is when you use ORM that has a specific behavior related to how it implements LINQ. Lazy loading or not? Possible to map link-tables as many to many in a nice way (or does the ORM require you to have a link-table-class)? How is it possible to use ids (custom ids or not)? Is it possible to use immutable POCO with ORM?

@wallymathieu
Copy link
Owner Author

Most logadapters define errorlevels, but these are not standardized other than that they usually are named something like "error", "err", "ERROR", "info", "INFO", "Information" et.c. The int values of the enums are then of course not normalized...

wallymathieu added a commit that referenced this issue May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant