Thoughts about the codebase #142
ArinGhazarian
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As I started taking a look at the codebase, I noticed some stuff and thought it would be better to write them down so we can iterate over them and probably create some action items out of them. These are just my ideas and do not necessarily mean that we need to do/follow them.
interface
s (contracts)I am very fund of contract based development and use interfaces heavily. So instead of depending on concrete types/implementations we can just depend on abstractions. IMO it makes to code easier to maintain and test. Most methods are marked as
virtual
because otherwise it'd be close to impossible to mock them, but with using proper interfaces we can get rid of thevirtual
s.AdoClient
)? I think we might be able to move the logging to higher levels (i.e.AdoApi
).NLog
instead ofOctoLogger
.xUnit
. It makes the code so much eaiser to read and follow.HttpClient
.IDisposable
pattern can be simplified (despisteCA10631
) since we don't have anyFinalizers
. Also if we consider making our classessealed
we can easily use a simpler Dispose method.Octoshift
.Beta Was this translation helpful? Give feedback.
All reactions