nightooi /s I'm rarely serious
nightooi /s I'm rarely serious
CC#
Created by nightooi /s I'm rarely serious on 3/11/2024 in #help
DI in Asp.net core, abstract
Solid, Thanks alot! This has been hanging over me for some time, will be good to finally put it into the ground. 🙏
10 replies
CC#
Created by nightooi /s I'm rarely serious on 3/11/2024 in #help
DI in Asp.net core, abstract
so it's more like a collection of elements which will be extended to the controllers. Something alike to object delegation in javascript prototypes? Where the
GetService<T>
GetService<T>
would resolve the reference into the underlaying implementation with the help of the config, and return null of not found.(unless
GetRequiredService<T>
GetRequiredService<T>
is called, which would throw instead)
10 replies
CC#
Created by nightooi /s I'm rarely serious on 3/10/2024 in #help
Compiler optimizations with generics
Okay, im just calling Foo/Bar from the implemented classes. I'm doing a factory with a interface as base so, should be fine. Thanks!
2 replies
CC#
Created by Galelao on 1/30/2024 in #help
Looking to not include the ground in my racing game to collide and trigger the event for FMOD
id say its impossible to do from here since this only defines the eventhandler after the event has already triggered. You'd want to check how you define collisions and detach the eventhandler for a collision with the ground... unless the collision variable contains some eventargs for what collision triggered the event the only way for you to not respond here is to check whether the relativeVelocity is equal to the current velocity of the car itself? (the relative velocity to the ground at the moment of collision would be equal to current velocity, since it's standing still, but then this also triggers whenever a player is going dubble your speed and hits you so bad case...) I'd check a layer up or send more information with the event.
3 replies
CC#
Created by nightooi /s I'm rarely serious on 1/28/2024 in #help
✅ What's a good strategy to load serverside resources into your controller?
havent seen that one, bootstrap fluidimage has been my go too, ill take a look thanks c:
10 replies
CC#
Created by nightooi /s I'm rarely serious on 1/28/2024 in #help
✅ What's a good strategy to load serverside resources into your controller?
thanks c:
10 replies
CC#
Created by nightooi /s I'm rarely serious on 1/28/2024 in #help
✅ What's a good strategy to load serverside resources into your controller?
But yeah this is what i didn't really understand i suppose, they get served with the request, meaning i just run strings in the model itself and alter the relative path
10 replies
CC#
Created by nightooi /s I'm rarely serious on 1/28/2024 in #help
✅ What's a good strategy to load serverside resources into your controller?
I've got some models that are coupled to views the idea is to eventually start implementing some client cookies which would tell the controller via request how the enduser is browsing the site which would alter the resources in the model
10 replies
CC#
Created by nightooi /s I'm rarely serious on 1/24/2024 in #help
✅ Takewhile in foreach iterator exiting without iterating over the elements.
nope not it
4 replies
CC#
Created by nightooi /s I'm rarely serious on 1/24/2024 in #help
✅ Takewhile in foreach iterator exiting without iterating over the elements.
thinks me gets it, you have to iterate over the dictionary first? or it Dict.Keys will return a firstordefault value where the takewhile will be applied to the first string..
4 replies
CC#
Created by nightooi /s I'm rarely serious on 1/23/2024 in #help
✅ Can't access attributes from view in helpertag.
Thinks me founds the fact that the attribute wasn't public qualified
2 replies
CC#
Created by nightooi /s I'm rarely serious on 1/19/2024 in #help
✅ Possible bug in ternary operator when incrementing in razorpages?
right post and prefix, never learnt the terms correctly. thank you
6 replies
CC#
Created by nightooi /s I'm rarely serious on 1/19/2024 in #help
✅ Possible bug in ternary operator when incrementing in razorpages?
ahaha, got bit in the ass by the assignment ordering harold . I don't want too keep nesting, this is just the start of the component and its already starting to become a nightmare, thank you! c:
6 replies
CC#
Created by nightooi /s I'm rarely serious on 1/19/2024 in #help
is there a override for when a given type is being instanced as an array?
I'd agree but in this case its a model for a view the viewmodel has some taghelpers that are dependent on a complex type in the composite model which I is a array... Okey im an idiot. I just need a constructor for the consumer and run the sorting in the constructor, good enough in this case. Thinking is hard when
6 replies