/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

brunty.me
| | tomasvotruba.com

While working with legacy projects, I often encountered this anti-pattern of misusing repositories. Instead of easy-to-inject service, projects are locked into a service locator. This makes code hard to upgrade and locks your project heavily to the Doctrine ODM packages. And there are plenty of them. Each extra package bites off its share of upgrade costs. Today, we look at how to refactor the ODM service locator to independent services and separate your project from ODM. We also get a few advantages in strict type coverage.
4.3 parsecs

Travel
| |
| | www.darrenhorrocks.co.uk

Building APIs that handle large datasets can be a challenge. A common approach is to collect all the data into a list, convert it to JSON, and then send it all at once. But what happens when that dataset is massive? Your API might freeze up while it's building the response, and you could end up with a huge memory footprint. Fortunately, ASP.NET Core provides a great solution for this problem: IAsyncEnumerable.
7.9 parsecs

Travel
| |
| | conradakunga.com

Suppose you had the following class:
8.7 parsecs

Travel
| |
| | dzone.com

We examine cookie and token-based authentication, advantages of using tokens, and address common questions developers have regarding token-based auth.
28.7 parsecs

Travel
|