Gax
Gax
CC#
Created by on 11/20/2024 in #help
overriding methods
but as you can see even after casting C to A, it still executes C's implementation
90 replies
CC#
Created by on 11/20/2024 in #help
overriding methods
ignore broken indentation
90 replies
CC#
Created by on 11/20/2024 in #help
overriding methods
C's implementation gets called instead of B's the children overrides the immediate parent's methods It's faster if you simply put a different Console.WriteLine and run the code yourself to mess with it rather than asking
90 replies
CC#
Created by Gax on 11/20/2024 in #help
What are the actual downsides of using Aspire in prod, being aware it isn't supposed to be?
We have a CI/CD pipeline to build and publish the solution to our host provider via SSH It consists of a monolithic ASP NET API with a Blazor frontend We just publish the binaries and the server runs the services with nginx routing them to the API and frontend
8 replies
CC#
Created by Gax on 11/20/2024 in #help
What are the actual downsides of using Aspire in prod, being aware it isn't supposed to be?
As of right now no, we have a deal with a local provider and chances are that we aren't moving to azure either since it's cheaper
8 replies
CC#
Created by Iznax on 11/20/2024 in #help
Hello guys totally new to coding need some help
Being very honest it is a lot, no point hiding it, but everything is cumulative. It will often be overwhelming to learn more complex concepts, you'll be stuck for a while trying to understand why X doesn't work just to realize you skipped a step days later, but everything you do and everything you write will eventually add up to a point where you look at something and implement it yourself with no guidance whatsoever, though even at that point you shouldn't be scared or embarrassed of getting stuck and asking for help. Asking for help is one of the most powerful and underrated tools that people don't use As said above mistakes will always happen, often you'll see a bunch of exceptions and not know what the hell are causing it, but that'll be part of the learning process
23 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I was asked to use a base class for all components so that creating new components as they need is easy, since I'm only responsible for the main "flow from A to B correctly" part of it
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
Sadly I'm also limited to using this format by the project manager/lead, which is a whole new barrier that id need to deal with when refactoring
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I'm mostly treating the wire class as both that and a base component class. Even when rewriting to fit that idea, I'd still be faced with the same issue: I still would need to figure a way to examine and find where the "beginning" of the circuit is Unless I'm having a bad case of tunnel vision I can't see how refactoring to use nodes and wires would help finding that
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
I have looked into them, a small amount are open source and while they use a slightly similar approach, the ones I found seem like their own implementation of it The reason I have Wire is for more easily implementing the components without having to repeat a lot of behaviour, and having the "universal" changes apply to them (like the normal flow of electricity and such) While a resistor inheriting from a wire might sound weird, all that would mean is that it would inherit the same properties like position and colors and such, while also following the basic flow that wires do, with the added change of passing less voltage through
11 replies
CC#
Created by Gax on 8/1/2024 in #help
Simulating electricity flow in wire/component classes in a linked list like manner
In this case still 8 Right now you can assume if nothing consumes it like a LED or something, it would still be the same
11 replies
CC#
Created by Gax on 1/18/2024 in #help
Generating input fields for each element in an array in Blazor WASM
I've solved it by just making a class purely to serve as a "reference type array" and using it instead of just the default array, not the best solution but for my use case is good enough I guess. All it has is a private array field to store the values and an indexer which is all I need I also made an input field component that has parameters to store the reference to that object and an index representing which value to change
6 replies
CC#
Created by Gax on 1/4/2024 in #help
Rendering a razor component from a raw string
Nevermind, solved it by adding a MathJaxSettings on top of the page and replacing the <Equation/> component with standard latex text 😅
4 replies
CC#
Created by Gax on 1/4/2024 in #help
Rendering a razor component from a raw string
No description
4 replies
CC#
Created by ! 휘백 on 12/30/2023 in #help
Can this be implemented?
What would even be the use case for that
29 replies