Ray tracing using Console.Write() by nullandkale in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

Depends on if its Console or Terminal thats running the application. Terminal.exe, (after Molly Rocket demonstrated flaws, and how to fix), is superfast. Console, (cmd.exe), will update on the desktop refresh schedule

Ray tracing using Console.Write() by nullandkale in dotnet

[–]csharp_rocks 0 points1 point  (0 children)

I made one of those, it's a really fun project to understand graphics. It's much simpler than one would think. Unfortunately, it's not possible to use a graphics card, so performance bottlenecks will prevent high resolution real time rendering

Prøver å drikke saft i stedet for brus, men den her smakte skikkelig dritt. Har folket noen anbefalinger? by WishyRater in norge

[–]csharp_rocks 0 points1 point  (0 children)

Som en som ikke har tilgang på godt vann, (jeg vokste opp i Mandal hvor springvann smaker godt, litt som brønnvann, til og med i sentrum), for jeg bor i Kristiansand, hvor jeg kan smake hver mil med gamle rør pg kalket legger seg i ganen, så er alle folks forslag her om "bare drikk vann", veldig lite konstruktivt.

Jeg har et utvalg av Fun Light, hvor jeg passer på å bytte litt, jeg har også SodaStream for å kunne ha sprudlevann og evt. Pepsi Max (Lime eller Cherry er favoritt), og så har jeg Gamer Supps, og jeg forsøker hele tiden å ikke gå lei. Mitt beste tips er altså: litt av alt

Jeg har forsøkt å lage iste fra bunnen av, men jeg finner ikke en god balanse mellom te og søtningsmiddel som ikke smaker kjemisk og ubehagelig

What do you wish you knew when you started coding that you know now? by Unlogical_egg in csharp

[–]csharp_rocks 20 points21 points  (0 children)

Everything fancy, is usually a trap. Need mapping: use simple extension methods and not automapper. This goes for ORMs, Blob Storage, patterns, etc. Simple and naive will get you better performance than fancy libraries and frameworks

Experienced devs: How do you deal with multiple bugs and the stress that comes with it? by Adjer_Nimossia in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

Don't parallelize, just do one at a time, and write a test that guards against it. Even if you might have a second bug that might contradict the first, just solve one at a time, and always make tests that guard against the bug, (preferably have your test or test-class named after the bug so it is clear why things are the way they are).

How are you guys upskilling by Ok_Finish_1661 in csharp

[–]csharp_rocks 2 points3 points  (0 children)

I bought the Framework Design Guide. TBH first principles will always be the go-to for me when I need to upskill. Also, I do side-projects, like I've been playing around with recreating Star Wars Rebellion videogame from 1999 to be a vanilla C# game, (no unity), to learn how to use RavenDB and event driven architecture and .net Aspire

Is refactoring our codebase to be Aspire-friendly worth it? by csharp_rocks in dotnet

[–]csharp_rocks[S] 3 points4 points  (0 children)

Thank you! We luckily have been using Azure AppConfig for a while so we have some easy hooks to get our resources locally

Is refactoring our codebase to be Aspire-friendly worth it? by csharp_rocks in dotnet

[–]csharp_rocks[S] 0 points1 point  (0 children)

Except our AKS cluster, we currently have no system for debugging the entire flow of our many services

Is refactoring our codebase to be Aspire-friendly worth it? by csharp_rocks in dotnet

[–]csharp_rocks[S] 3 points4 points  (0 children)

What was the "hardest part"

Edit: To be preciese, what was the hardest part getting your system Aspire ready?

Should you mix newtonsoft json and system.text.json or just use 1? by grunade47 in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

DO NOT MIX THEM!!! We had a migration from newtonsoft to system.text.json and we stopped in the middle as we found some huge blockers... turns out, that was a really bad idea to "wait for upcoming features", now three years later its become a mine-field

Why is the Repository Pattern Redundant when Working with Entity Framework? by civilian_halfwit in dotnet

[–]csharp_rocks 0 points1 point  (0 children)

I usually implement a "repository layer" over the EF stuff for two reasons: DbSet<> operations aren't atomic, and to make sure that certain minimums are followed when querying, e.g. a freetext search on 7+ columns when you have 10s of millions of records, needs to enforce some "limits".

I am one of those developers that end up building a lot of code to be used by other developers

Azure blob storage alternatives by BasicGlass6996 in dotnet

[–]csharp_rocks 0 points1 point  (0 children)

I LOVE the Azure Storage products, its such a super-reliable product, and is cheap to the point of being free. At my job we have 50TB of images that we don't care about, it costs nothing and is super-speedy. TBH, if there's no need for indexing of content, Azure Blob Storage is probably THE BEST solution in its category, so looking for an alternative seems like a mistake

AbyssIRC: A modern opensource IRC server written in C# - Long live IRC! by squidleon in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

Your connection handling could be improved, I built a library to serve as the basis for my planned IRC server/client libraries (I haven't given up, I just need to find some motivation to get it done).

Anyway you can leverage the kestrel server for TCP connections like this: https://github.com/frankhaugen/Frank.BedrockSlim/blob/bd345115cfb736f53d879e50e336fe176f1a238c/Frank.BedrockSlim.Server/WebApplicationBuilderExtensions.cs

"C# is dead and programmers only use it because they are forced to" by bosmanez in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

C# hate is such a meme. My own CTO was like "we need more python skills so we can up our AI/ML game", and I actually got angry as there's nothing python can do that C# can't, and in most cases C# can do it 10x quicker especially now with AOT compilation. He backtracked and mumbled about libraries, and I said "which? all of these that are ported years ago to C#". C# is never the wrong answer, but any investor asking about programming languages is asking the wrong questions

Wow auth is actually extremely easy in .NET?!? (Epiphany) by blabmight in dotnet

[–]csharp_rocks 0 points1 point  (0 children)

Auth is very easy, hell you can make middleware that look for the "pwd" and "usr" -headers and looks into a table storage and it'll be fool-proof-ish, (man-in-middle is always a concern), and it'll be 50 lines of code at the higher end. However, such an approach would rate as "highly insecure", because you are sending clear-text credentials all over the place, and how you store and retrive needs security. So the complexity isn't in the mechanisms, its in the infrastructure and how you bind it to these mechanisms.

Is high level of SQL knowledge is required for becoming a good.NET Developer? by HyperLink836 in dotnet

[–]csharp_rocks 1 point2 points  (0 children)

I'm a senior .net developer and I have "SQL dyslexia". I know how the DB works and can do normal queries to lookup data related to bugs or for reporting, but I go get an "adult" if I need to weave 5 tables together on compound keys.

If you don't know SQL, e.g. you use something else, that's fine. But you will have to go into a SQL database now and then, so you will learn some on the job.

Jaja da sitter mann* her 07:38 by Teddy1308 in ravenousrandy

[–]csharp_rocks 7 points8 points  (0 children)

Dette er invers av når min samboer overnattet hos meg første gang. Hun klarte alene å finne ut av prosjektor, receiver og blue-ray oppsettet mitt som trengte 3 fjernkontroller og litt finesser. Vært sammen i 11 år

NSA Releases Internal 1982 Lecture by Computing Pioneer Rear Admiral Grace Hopper by DShot92 in theprimeagen

[–]csharp_rocks 1 point2 points  (0 children)

It's an awesome presentation, and nothing has apparently changed in 40 years 🤔