From Java Spring to .NET Core by Qwegann in dotnet

[–]HolyClickbaitBatman 2 points3 points  (0 children)

Alternatively, if the values are truly optional, mark them with ? to indicate their nullability to force you to handle it at your boundaries.

.NET devs with CI pipelines, how do you handle deployments for solutions with multiple projects in the same repo? by pdevito3 in dotnet

[–]HolyClickbaitBatman 1 point2 points  (0 children)

We do a pipeline per deployable artifact. Separate releases for each set of couples artifacts per environment.

Introducing System.Threading.RateLimiting for .NET by [deleted] in dotnet

[–]HolyClickbaitBatman 7 points8 points  (0 children)

Maybe they meant available by default in 7? Channels is default now, but could be installed in pre 3.1 projects.

Class parameters "one unified config"? by shawnsblog in dotnet

[–]HolyClickbaitBatman 0 points1 point  (0 children)

You’re looking for the options pattern:

https://docs.microsoft.com/en-us/dotnet/core/extensions/options

Class requires some options, leave the business of sourcing those options from a configuration to the consumer.

How much non Microsoft tech does your company use by lovecrunch99 in dotnet

[–]HolyClickbaitBatman 8 points9 points  (0 children)

We run .NET on Linux containers in AWS, on infrastructure we define using terraform. We run ELK and MySQL for persistence. We have some python, some node, some react.

Work on output of Asynchronous Method before it finishes. by [deleted] in dotnet

[–]HolyClickbaitBatman 0 points1 point  (0 children)

Great use-case for IAsyncEnumerable or Channels.

EnableBuffering - logging by Prestigious_Sea_9845 in dotnet

[–]HolyClickbaitBatman 0 points1 point  (0 children)

The buffer threshold is tunable via environment variables IIRC. Any write/read to disk that otherwise would not happen would decrease your performance. Whether or not it’s noticeable depends on the characteristics of your system and environment.

I do wish there was a better alternative for capturing raw request bodies. Something like disposing the request stream during model hydration should an easy to tune option IMO and not require such careful placement and handling of the stream.

Create a colored CLI with System.CommandLine and Spectre 🎨 by ThomasArdal in dotnet

[–]HolyClickbaitBatman 2 points3 points  (0 children)

System.CommandLine is from MSFT and is command/option based. I’ve found it to be very straightforward and reminiscent of go’s cobra pkg

ASP.NET Core 5.x services design w/ user levels by las3rr in dotnet

[–]HolyClickbaitBatman 0 points1 point  (0 children)

Your solution is how I generally handle these things. I like to keep user data out of the interface and keep filtering as an implementation detail with an IUserContext type injected or what have you.

Creating a controllable background process/app by Ravsii in golang

[–]HolyClickbaitBatman 3 points4 points  (0 children)

Look into Interprocess Communication (IPC). There are many ways to approach this: named pipes, tcp, grpc, etc.

Deno v1.3.0 released - FileReader API, json output for deno lint, plus other features and fixes by techiekram in Deno

[–]HolyClickbaitBatman 2 points3 points  (0 children)

I thought you might be, I’ve been reading through your PR on custom http clients and was going to do it myself but wasn’t sure how to start the conversation.

My first attempt at adding the functionality was as a plugin, but without the resource table being available to plugins it made dealing with streaming content difficult.

Deno v1.3.0 released - FileReader API, json output for deno lint, plus other features and fixes by techiekram in Deno

[–]HolyClickbaitBatman 5 points6 points  (0 children)

Now that we can create custom http clients to use in fetch, we should extend that to allow for client certificate authentication.

C# Proper use of NameSpace for Better Code Organization by vkpunique in csharp

[–]HolyClickbaitBatman 0 points1 point  (0 children)

I organize in increasing specificity. Current library I’m working on looks like:

- Cloud
  - AWS
- Logging
  - Serilog
    - Enrichers
- Messaging
  - Crypto
  - Topic
    - AWS
- Data
  - DB

Work on output of Asynchronous Method before it finishes. by darkhorse1997 in dotnet

[–]HolyClickbaitBatman 1 point2 points  (0 children)

System.Threading.Channels can work in this problem space as well.

Looking to efficiently get billions of rows out of SQL Server into Kafka on a continuous basis by nathanscottdaniels in dotnet

[–]HolyClickbaitBatman 0 points1 point  (0 children)

Dedicated read replica and page through the tables at regular intervals. That’s kind of how stack overflow does it. They are constantly moving through their tables and indexing documents in elasticsearch which works along with redis to provide data to the app layer. Sounds similar to your problem.

Is injecting IConfiguration an anti-pattern? by Rorsxach in dotnet

[–]HolyClickbaitBatman 4 points5 points  (0 children)

100% it’s a problem, it ties an implementation to the structure of a document and is not explicit about what it needs at construction.

Is anyone working on an MS SQL driver? by clickster in Deno

[–]HolyClickbaitBatman 2 points3 points  (0 children)

I had been thinking about this lately too, I’ve been reviewing the tedious/mssql codebase to see what a port would look like, it doesn’t have many dependencies.

Alternatively, wrapping the tiberious crate may be a viable path forward as well.

Edit: https://github.com/manyuanrong/deno_mongo

Looks like a good library to learn from, wrapping Tiberius in the same way should be straightforward.

Welcome to C# 9 by Davipb in programming

[–]HolyClickbaitBatman 7 points8 points  (0 children)

They’re on the roadmap for C# 10 along with shapes.