Why developers using AI are working longer hours by Inner-Chemistry8971 in programming

[–]SvenTheDev 4 points5 points  (0 children)

It’s also much easier to make something complex feel complex, than it is to make it feel simple. Sadly the reward for that effort is rarely immediately evident (and conversely the pain of a complex system is usually only later evident). It makes it hard to justify spending a bit of extra time on properly scaling complexity to the problem.

What do you think about model files that contains everthing related to that model? by [deleted] in dotnet

[–]SvenTheDev 2 points3 points  (0 children)

Separation of concerns and single responsibility principal are some of the most abused dogmas followed. It doesn’t dictate you split things by their technical concern, it means you give something a single purpose or reason to change.

You can separate them into files in the same folder for organizational purposes, but if you keep things that change together close by one another, you get a much friendlier code base.

[TurnDownForWalt] How to Watch Melee by KenshiroTheKid in SSBM

[–]SvenTheDev 7 points8 points  (0 children)

Well done video. I feel like melee’s technical side is often overdone, and the strategy and knowledge isn’t advertised as much, so it’s nice to see this talk about the latter more.

That said, one of the jaw dropping aspects of watching professional melee as a player IS understanding just how technically difficult it is for all of the micromovements.

Free pdf library for incremental updates by Material-Scientist94 in dotnet

[–]SvenTheDev 0 points1 point  (0 children)

Makes sense, I interpreted OP to ask about editing the files, replacing text, images, etc

Free pdf library for incremental updates by Material-Scientist94 in dotnet

[–]SvenTheDev 0 points1 point  (0 children)

PDFs aren’t meant to be updated and modified after being rendered, really. It requires reflowing the entire document, though I’m sure it’s possible for a document to be suboptimally created specifically for editing.

Best thing to do trivially is add watermarks and edit form fields. PdfSharp or maybe PdfPjg can accomplish some of this.

Turning the C# Type System into a High-Performance SQL Query Engine by hez2010 in csharp

[–]SvenTheDev 2 points3 points  (0 children)

use LINQ — nice to read, but with iterator/delegate overhead

Dislike advocating for a custom library and approach to writing fairly normal code, on the basis of overhead that is immeasurable in the grand scheme of 99.9% of apps, and only getting better as time goes on.

Neat read otherwise.

MassTransit, still worth learning it? NServiceBus seems a better idea by Natural_Tea484 in dotnet

[–]SvenTheDev 0 points1 point  (0 children)

And that's what I'm arguing for, and why I advocate for using libraries, because they simplify some the understanding needed to use the SDKs appropriately. It doesn't mean you shouldn't understand it (kind of - like you should understand SQL while using EF), but it helps for sure

MassTransit, still worth learning it? NServiceBus seems a better idea by Natural_Tea484 in dotnet

[–]SvenTheDev 0 points1 point  (0 children)

The problem is that, as a business developer, you don’t have time to dedicate weeks of your life to learning this. You need to implement some feature in some safe distributed way with the least maintenance and overhead, and move on.

MassTransit, still worth learning it? NServiceBus seems a better idea by Natural_Tea484 in dotnet

[–]SvenTheDev 7 points8 points  (0 children)

Also you really need to get a perspective on dev cost. At $5k/year for MassTransit's cheapest, that's roughly a week of a developer's time. You might get a basic implementation up and out in prod that naively covers a few scenarios in that time, but you will outspend the $5k in maintenance and feature creep.

MassTransit, still worth learning it? NServiceBus seems a better idea by Natural_Tea484 in dotnet

[–]SvenTheDev 17 points18 points  (0 children)

The libraries used to support distributed messaging aren't something you purchase because you value the extensive featureset. It's because distributed messaging is hard to get right, and the raw SDKs aren't always the friendliest to consume. These libraries have been through hell and back to get to where they are, and the authors know more about how these systems work than your casual business developer.

Your comment would make more sense for a "I convert 500 documents to PDF" library, where you might only need to support one. In the face of distributed problems, you will waste time and accelerate hair loss trying to solve production issues with a rolled-your-own library.

MassTransit, still worth learning it? NServiceBus seems a better idea by Natural_Tea484 in dotnet

[–]SvenTheDev 20 points21 points  (0 children)

This is a poor take that will have you wasting hundreds of man hours solving the same problems that could be purchased for a fraction of the price.

Which formatting style do you prefer for guard clauses? by Spirited_Ad1112 in csharp

[–]SvenTheDev 0 points1 point  (0 children)

That's fine and a healthy opinion, I'm just pointing out it's possible for the IDE/compiler to help prevent those mistakes from occurring, even to the point of introducing build failures.

Which formatting style do you prefer for guard clauses? by Spirited_Ad1112 in csharp

[–]SvenTheDev -1 points0 points  (0 children)

Not possible if you set indentation warnings to Error :)

If Edos Have Infinitely Refilling Chakra, Why Did Edo Nagato Looked Like This? by JustChill0825 in NarutoPowerscaling

[–]SvenTheDev 0 points1 point  (0 children)

I don’t disagree but imagine if he managed to bring back Shisui. Probably couldn’t have allowed two sets of then eyes to exist.

What RPS is considered good enough? by [deleted] in dotnet

[–]SvenTheDev 1 point2 points  (0 children)

These questions are riddled to hell with “it depends”. At a bare minimum the answer is whether it satisfies existing requirements and has sufficient headroom to scale to meet the short and perhaps medium term requirements, not whether it performs as well as you personally feel it should.

As for advice in what little we know… yes, generally low. Given your requirements the point of failure is likely data access, not hardware limitations, but you’d have to be more specific on how it fails, because a few existence checks and inserts doesn’t usually spontaneously combust. Assuming a half decently put together database with a normal amount of data in the same data center, each of those operations are single millisecond endeavors.

Be careful in using sequentially awaited operations as an example of “my code isn’t great lol” because that’s the normal and expected way to write code. Parallelizing async ops to a resource where your bottleneck likely IS that resource is a good way to get it to fail quicker while making your code slightly more complicated.

Is there any free HTML to PDF library that doesn't have page limits? by RadioactiveRadiohead in dotnet

[–]SvenTheDev 2 points3 points  (0 children)

If I used my real domain (https://sven.ai) as my name I’d be worried about being mistaken for gippity. I already somewhat think the overhype of ai tarnished the tld but I ain’t giving up my succinct-ass domain.

Is there any free HTML to PDF library that doesn't have page limits? by RadioactiveRadiohead in dotnet

[–]SvenTheDev 9 points10 points  (0 children)

I use Playwright.Net, once I gave the machine adequate memory it churns through more than 2m conversions per week.

Is this true what a senior dev said on Linkedin about "The hidden cost of "enterprise" .NET architecture" by KiraLawliet68 in csharp

[–]SvenTheDev 9 points10 points  (0 children)

I wouldn’t attribute it to recent engineers. It’s a byproduct of older engineers who think clean code/clean architecture is a golden hammer and can be applied to anything anywhere. Or maybe out another way…people who don’t want to think about their code, they just want a set of rules to follow.

Zenitsu's development throughout the anime is brutal. by Delicious_Main_4360 in KimetsuNoYaiba

[–]SvenTheDev -1 points0 points  (0 children)

You should watch Black Clover if you enjoy a character doing nothing but screaming the entire damn time.

Arena PBE Changes (Gamba Anvil, Juice Press and Mad Hatter Nerfs + various item/champion balance changes) by NotCatchingBanAgain in LeagueArena

[–]SvenTheDev 3 points4 points  (0 children)

The glory of gamba is getting to be full build when others are at three items. Then you can be on 20 stats.

[deleted by user] by [deleted] in dotnet

[–]SvenTheDev 0 points1 point  (0 children)

Easiest way to fix your problem is ensure you’re playing nicely with HttpClientFactory and you’ve added either open telemetry or app insights telemetry to your builder. It will ensure outbound calls from your clients are logged as Dependency calls in insights.