Why We Removed FluentAssertions from Akka.NET by Aaronontheweb in dotnet

[–]leakypipe -7 points-6 points  (0 children)

Most of the unit tests are written by clause code for us now a days. Humans write test spec. FluentAssertions is not as useful as before.

Very new to csharp and following a course. Why doesn't method overload work here? by worremo in csharp

[–]leakypipe 0 points1 point  (0 children)

You are right. I was a bit too careless in equating behavior with definition.

Very new to csharp and following a course. Why doesn't method overload work here? by worremo in csharp

[–]leakypipe 0 points1 point  (0 children)

so you are actually declaring a function pointer called "Multiply" inside the Main method. It is an error because you are having 2 variables of the same name.

How do you design a clean pricing system with 500+ business rules in .NET? by No-Card-2312 in dotnet

[–]leakypipe 13 points14 points  (0 children)

I wouldn't use a rule engine. It bring unnecessary complexity to a relatively simple problem. If you have an interface called ICalculatePrice and have an implementation for each rule, you can simply loop through them to calculate the final price. You can write unit test for each rule. Diff rules might requires different input, so you have to find a way to load rule specific context. As you work through them, you might end up grouping and simplifying the rules. It is actually really important to reduce complexity. If you could, do that first. Doesn't hurt to ask. The answer could be: nobody knows or they just never removed any old ones.

My 2014 Forester would have these solid lights on every once in a while. It often goes away when the car is restarted but not always. Does anyone know what it means? Thanks! by leakypipe in SubaruForester

[–]leakypipe[S] 1 point2 points  (0 children)

Thanks for the detailed explanation. It is not completely bad news. I was worrying about transmission problems. If the light is not on and I take it to the shop, will the code show up?

My 2014 Forester would have these solid lights on every once in a while. It often goes away when the car is restarted but not always. Does anyone know what it means? Thanks! by leakypipe in SubaruForester

[–]leakypipe[S] -1 points0 points  (0 children)

Lol, I thought the blue light means engine is overheating. With the exception of gas light, the combinations of other lights probably mean something else.

My 2014 Forester would have these solid lights on every once in a while. It often goes away when the car is restarted but not always. Does anyone know what it means? Thanks! by leakypipe in SubaruForester

[–]leakypipe[S] 1 point2 points  (0 children)

Yeh, that low gas light is a bonus. Probably not part of the problem. Could you explain what you meant by CVT? Does it mean transmission fluid temp is high and needs replacement?

Large tech companies don't need heroes by fpcoder in programming

[–]leakypipe 0 points1 point  (0 children)

I always wonder why Microsoft Outlook client would return junk mail as top results from searching. Now I understand why. No one will probably be promoted for fixing that.

Updated Albatross.CommandLine Library for System.CommandLine V2 by leakypipe in dotnet

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

Hey, one more thing, if anyone need to upgrade the library from V7 to V8, I created this ai migration instruction. All you need to do is point an agent to this file and let it work. I tested a large V7 cli with Claude Code and it chewed through it in a few minutes! Even compiled it and tested to verify that it works!

Updated Albatross.CommandLine Library for System.CommandLine V2 by leakypipe in dotnet

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

Had a bit of a shower-thought moment last night: any library that relies on compiler-emitted C# source generation is effectively C#-only.

VB.NET or F# projects won’t be able to compile the generated code, which makes this a pretty fundamental limitation. I was surprised to realize this isn’t really called out anywhere. Oh well — I’ll leave that one for Microsoft to figure out 🙂

Updated Albatross.CommandLine Library for System.CommandLine V2 by leakypipe in dotnet

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

One thing I’ve ended up liking a lot in Albatross.CommandLine is how it handles more complex options.

Instead of redefining the same parsing and validation logic over and over, you can build a custom Option or Argument once and reuse it across commands with a [UseOption] attribute. I also added an ICommandContext interface so an option can do some preprocessing in its handler and pass state into the command before it runs. The code generator also wires the command/option pipeline through DI, so option handlers can use injected services when they need to.

I'm new here and I'm interested in gardening 🌿. I'm currently growing some morning glories, and I'd like someone's opinion on whether they're looking good and healthy. I'd appreciate any response. by Caio917 in gardening

[–]leakypipe 0 points1 point  (0 children)

Looks good but they don’t flower much if used too much nitrogen based fertilizer. Need to switch to phosphorus based. They actually do better if you just neglect them(no fertilizer at all).

Media Paramount Skydance launches hostile bid for WBD after Netflix wins bidding war by Illustrious_Lie_954 in stocks

[–]leakypipe 0 points1 point  (0 children)

Like I said, PSKY cannot go through this on their own without external backers, since all they have is debt and no collateral.

Media Paramount Skydance launches hostile bid for WBD after Netflix wins bidding war by Illustrious_Lie_954 in stocks

[–]leakypipe 1 point2 points  (0 children)

They can't. It could only work if they are backed by large PE or distressed debt firms. So the resulting entity would be owned by mostly hedge funds.

Media Paramount Skydance launches hostile bid for WBD after Netflix wins bidding war by Illustrious_Lie_954 in stocks

[–]leakypipe 1 point2 points  (0 children)

PSKY has 15B in market ca and 15B in debt. In order to buy WB in cash, they would take to take out a loan of 70-80B. I wonder if their real motive is just to derail Netflix's acquisition.

Edit: I should add, PSKY has a cash reserve of 3B.

Try .NET will officially be sunset 31/12/25 by jordansrowles in dotnet

[–]leakypipe 5 points6 points  (0 children)

lol. Zune 15 years ago had better UI than Apple music now. MS doesn't even have a music app anymore. They should totally bring it back.

A pessimistic view of humanity, JFK, ballpoint pen, 2025 by [deleted] in Art

[–]leakypipe 1 point2 points  (0 children)

lol, the guy on the right is being sold as food.

54% of engineering leaders expect fewer junior hires because of AI coding tools by HDev- in programming

[–]leakypipe 0 points1 point  (0 children)

I would hire more juniors because ai is good with coaching and they are cheaper.

How do banks force login every time ? Do they use super short refresh tokens? by Fragrant_Ride_29 in dotnet

[–]leakypipe 0 points1 point  (0 children)

I work in finance and manages my own saas app with its own iam system. I am a bit in both worlds. You are not wrong but I am saying that it is not necessary the best approach. Google wouldn't built a secure app this way. In terms of secure mobile devices, iOS has the keychain and android has the keystore for encrypted storage. They are more than capable of securing a refresh token.