Best article I have ever seen so far regarding this topic. https://www.devtrends.co.uk/blog/creating-your-first-shared-library-in-.net-core
Category: C#
EF Core 7 deadly sin
Load testing tool Bombardier https://github.com/codesenberg/bombardier EF Core 7 deadly sin Get only the rows that you need Casting IQueryable -> IEnumerable use .Count() from IQueryable rather than IEnumerable, which will query all data and parsing all. Not using AsNoTracking Can be faster 4x times. Explicit joins Select and map to the object directly rather… Continue reading EF Core 7 deadly sin
Technology Radar for dot net devlopers – Volume 24
A few take-aways for dot net developers from Technology Radar volume 24. Sentry: Adopt I use Sentry at work. As it’s so good, we should utilize this further to make the most out of it. Simplest possible ML : Trial Totally agree. Many problems actually do not require ML. Regex or Regression may be… Continue reading Technology Radar for dot net devlopers – Volume 24
When Test Driven Development Goes Wrong
When you feel TDD is difficult when you first started TDD, that might sign that there are improvements to make in the design. There are 5 common anti-patterns. The Liar Passes all tests with no useful assertions, which could be caused by chasing test coverage. => Write the test first, which fails with a purpose.… Continue reading When Test Driven Development Goes Wrong
DateTime – How to properly save and read date time in ASP.Net
There could be many ways of saving DateTime in an App. The simplest way is storing it as it is typed in by users if the website’s users are within a single country. If a website is serviced globally, confusion starts. Normally users might assume the date-time is local time. For example, if a user… Continue reading DateTime – How to properly save and read date time in ASP.Net