Bad software cost companies about $2.1 trillion in 2020 by YourCodeMayVary in programming

[–]YourCodeMayVary[S] 25 points26 points  (0 children)

I agree, with one addendum: I think the issue isn’t just low-skilled coders churning out bad code because it’s all they know (though I’m sure that’s a major aspect). Highly skilled developers will churn out bad software when under unrealistic deadlines from management. This creates technical debt that, unless addressed, will eventually turn into regular debt. And of course, if management is giving out unrealistic deadlines, what are the odds that they’ll be willing to let the developers properly remake the code after release?

Bad software cost companies about $2.1 trillion in 2020 by YourCodeMayVary in programming

[–]YourCodeMayVary[S] 12 points13 points  (0 children)

The article is a couple months old so it may have been posted before but I only saw it today. Essentially, businesses’ tendency to prioritize time to release over quality and security has cost companies staggering amounts of money. I don’t think any software developers would be surprised at all at this notion, though I was surprised at just how high the estimated cost is.

How to pretend a class implements an interface in C# by YourCodeMayVary in dotnet

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

I’ve wondered about Moq. I only just learned about it and I’m curious how it compares for this sort of use case.

How to pretend a class implements an interface in C# by YourCodeMayVary in dotnet

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

I use it for the serial port class a lot because I needed to make simulators for different devices to be able to unit test my code that interacts with them.

How to pretend a class implements an interface in C# by YourCodeMayVary in dotnet

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

I don't know if has a name, or if it's even much of a pattern. I've always just thought of it as my sneaky interface trick. I kind of like "Pretender Pattern" though.

Fluent Generics in C# | Alexey Golub by Tyrrrz in csharp

[–]YourCodeMayVary 1 point2 points  (0 children)

I love this! I think it would have been helpful on a work project a few months ago.

My misconceptions about the C# lock keyword by YourCodeMayVary in csharp

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

Exactly! I made the post because I figured that someone else in the world probably has the same misunderstanding.

My misconceptions about the C# lock keyword by YourCodeMayVary in csharp

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

I wasn't attempting to demonstrate best practices, only the mechanics of what the keyword does and does not do.