dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.8K
active users

#csharp

12 posts11 participants0 posts today

How to fix slow code:
➡️ Avoid logging everything in production: it eats resources and slows execution.
➡️ Loops matter: use optimized methods like list comprehensions in Python for speed.
➡️ Be mindful of hardware quirks like cache misses and memory fragmentation.
➡️ Understand how database queries and copy-paste operations can impact efficiency.

freecodecamp.org/news/why-your

freeCodeCamp.org · Why Your Code is Slow: Common Performance Mistakes Beginners MakeMaybe you’ve experienced something like this before: you’ve written code that works, but when you hit “run,” it takes forever. You stare at the spinner, wondering if it’s faster to just solve the problem by hand. But you end up looking something like...

C# nerds and aspnet core fans how do you do (not how does one but how do you specifically) handle auth between an api and a front end? the docs are like "noooo don't use jwt use oidc!!" and then only seem to provide docs for oidc integration in razor? i can probably figure it out but i feel like i'm "holding something wrong." is it just that microsoft wants you to use entra and nothing else? #dotnet #csharp #fediHelp

I've been playing with Github Copilot, and it kept telling me that my constructors were wrong. I finally got it to say that the reason they are wrong was because C# doesn't support primary constructors, a feature which was introduced to classes in C# 12 (2023)...

In related news my free trial is nearly up 😅

#AI#DotNet#Github

I wonder if a Silk.NET backed C# game engine would be competitive. I bet 50 bucks it would, but would I bet 50 months of work?

The philosophy would be to keep as much as possible in managed code. Only interface with native through Silk.

Anyone got experience with Silk? Since it's mostly generated, and kind of brings the whole kitchen sink, how performant are its bindings?

Do you know of an alternative?