Skip to main content
3 votes

In C#, is it reasonable to use a #region when I need several members to implement a common interface?

I know that lots of people hate #regions in C# Whenever #region gets mentioned, people immediately jump on the bad practice bandwagon. And it's true that #region can be abused to hide monolithic code....
Flater's user avatar
  • 59.5k
1 vote

In C#, is it reasonable to use a #region when I need several members to implement a common interface?

As with other code style issues, this is subjective and hard to make good universal claims. IEquatable had far fewer members and doesn't muddy readability as much as IEnumerable, for instance, but ...
Avner Shahar-Kashtan's user avatar
1 vote

Object To Be Used By Service Layer

Follow the "Functional Core, Imperative Shell" model. This is the essence of all modern architecture including Uncle Bob's "Clean", the Onion architecture as well as things like the Elm architecture. ...
Daniel T.'s user avatar
  • 3,073
1 vote

Object To Be Used By Service Layer

Take a look into "Clean Architecture" by Bob Martin: https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html Just to summarize: your application's business rules must be testable ...
Emerson Cardoso's user avatar
1 vote

How can I best organise a Jekyll + Bootstrap + Git site?

Separate build file from source. /jek/_site # the stuff I actually want to upload - but don't really want in git you can put it off from your main branch, jekyll has Continuous Integration support. ...
Adi Prasetyo's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible