Thalnos
Thalnos
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
I'll check it out πŸ™‚
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
I see so avalaonia wasn't even an option. Any other options besides Maui I could go with?
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
oh yea it was a requirement for me to write the whole app with just one c# codebase for different platforms. I didn't wanna learn Java and Swift
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
so in that case what framework is prefered? I went with Maui just because lacking skill to judge how good frameworks are, and because its officially from microsoft
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
when I did it was because customer wanted a native app, not a webapp to have the app installed on devices rather than accessing via browser
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
what about this, do you suggest Avalonia instead? And why is that?
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
I see thank you guys
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
why tho?
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
so If I understand you right then razor pages is fine for some small app when you wanna stick to mostly c# and not wanna learn JS/TS, and blazor is just never a good choice cuz its dying out?
83 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
will watch it thanks. My personally prefered tech stack is a Asp.Net Core WebApi backend with a React frontend so I think we share that preference, but I was surprised to hear that razor pages/blazor should be avoided. Razor pages is fairly new as a replacement of MVC, and Blazor is fairly new too and was praised as that new fancy thing with Webassembly and stuff so I thought both these approaches are up to date and quite popular. Maui integrates Blazor too for hybrid apps that run in browser and natively so it can't be very evil, so I thought @TeBeCo
83 replies
CC#
Created by merlo17 on 2/16/2025 in #help
if statement always returns true
oh never mind, not needed. I thought StartRandomEncounters() may not get invoked at all, but you're simply setting it to null at the end so that will be why its null. The method ends with activeEnemy = null;
26 replies
CC#
Created by merlo17 on 2/16/2025 in #help
if statement always returns true
show us how you call EngageCommand() and how you call StartRandomEncounters()
26 replies
CC#
Created by merlo17 on 2/16/2025 in #help
if statement always returns true
the runtime doesn't lie, when if(_eventHandler.activeEnemy == null) resolves true then you can trust that it IS null
26 replies
CC#
Created by Nada on 2/15/2025 in #help
βœ… Need Advice: Choosing the Right .NET Version for Our Project
could you ellaborate why you would avoid Razor/Blazor/Mvc for something serious and opt for React/Vue/Angular/NextJs instead? And what counts as something serious in the first place
83 replies
CC#
Created by Leandro on 2/9/2025 in #help
refactor database to stop using UNIQUEIDENTIFIER as PK
When it takes long on the β€žindex seekβ€œ part you are missing an index
60 replies
CC#
Created by Leandro on 2/9/2025 in #help
refactor database to stop using UNIQUEIDENTIFIER as PK
60 replies
CC#
Created by Leandro on 2/9/2025 in #help
refactor database to stop using UNIQUEIDENTIFIER as PK
Check the execution on db side
60 replies
CC#
Created by Leandro on 2/9/2025 in #help
refactor database to stop using UNIQUEIDENTIFIER as PK
I go with @Yawnder - [β–°/β–±] your db is probably missing indexing here
60 replies
CC#
Created by Cydo on 2/2/2025 in #help
βœ… How to get better at writing EF Queries?
Lazy Loading can help you not load data into memory that isn't needed, but it results in more queries on the DB, so each approach has pros and cons and is good for certain situations
70 replies
CC#
Created by Cydo on 2/2/2025 in #help
βœ… How to get better at writing EF Queries?
there is three kinds of querying, Eager loading which you have done here, Lazy Loading and Explicite Loading. Check out pros and cons of each that might help you when to use which. I've never used explicite loading and dont really know when to use that honestly but for Eager and Lazy loading, the con of Eager loading is loading the whole data into memory, the con of Lazy Loading is that it can result in too many queries - the N + 1 Queries problem. Generally you should favor Eager loading to not run into slow loading time issues with Lazy Loading but if the loading all data into memory all at once becomes an issue then lazy loading could be beneficial. But do not fall into the trap of preemptive optimization, only try to optimize when you really have a performance issue that needs optimization, otherwise you're just wasting time for nothing πŸ™‚
70 replies