Category Archives: Architecture

Software development architecture issues and solutions

Avoid extracting internal libraries

In a not-too-small software development company it’s very likely that you’ll manage multiple projects over time, with multiple teams and doing work for multiple customers. And for each platform/framework that you’d target (sometimes even cross-platform) you will probably determine that you … Continue reading

Posted in Architecture | Tagged , , , | Leave a comment

Can we skip unit tests for infrastructural code?

Almost always we end up with infrastructural code in our projects. That is extension code on top of the framework that we’re using internally, added so that the main functional code of the app is cleaner, clearer, shorter, and also … Continue reading

Posted in Architecture | Tagged , | Leave a comment

Mocking Entity Framework to unit test your data services

It’s not easy to write unit tests for services that use DbContext and DbSet<T> classes from Entity Framework (or Entity Framework Core), and there are complex solutions to approach this, like separating the data access layer completely, as I propose in my UnitOfWork-EntityFramework implementation. … Continue reading

Posted in Architecture, C# | Tagged , , , , , , | Leave a comment

Stop over-abstracting

Because developers are usually highly intelligent, they are very good when it comes to abstracting things, be this: 1) generating base or generic classes to inherit from or reuse; 2) generic or overloaded functions called with arguments instead of standalone ones; or 3) reusing code … Continue reading

Posted in Architecture | Tagged , , , , , , | 1 Comment

Bridging

When you, a Microsoft technology-oriented developer, write software today you have to select the target platforms you would like to support. The platforms are then used to select the tools, technologies, and programming languages you can use for coding the different layers of … Continue reading

Posted in .NET, Architecture, C#, Development, JavaScript, Unity | Tagged , , , , | Leave a comment

Architect vs. developer

A software developer knows how to (and will be eager to) generalize things – for example using a list instead of a single item or a generic type or method instead of a specific one – enabling more scenarios with supposedly minimal amount of initial … Continue reading

Posted in Architecture, Miscellaneous | Tagged , , , , , | Leave a comment

Too much dependency injection?

I’m sure you use dependency injection in many of your projects. And usually, it’s a very good thing to do. However, I found out that many people use it somehow blindly: every time they need to extract a new class just … Continue reading

Posted in Architecture | Tagged , , | 1 Comment