BenMcLean
BenMcLean
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I am going to need to make sync and async versions of everything available so that will muck it up a bit in terms of complexity.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Oh, I didn't quite get what you were saying before. I think I see now that you included an idea of what it could look like in your post.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Assuming I had to use that IHasSpecialImplementation interface, what members would it have?
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Oh nice
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Maybe one method to check which special implementation methods are available and one to actually run them?
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
That IHasSpecialImplementation interface ... What members would it have?
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I'll probably need to use something like this.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I would use the default methods if it were available but I think it is not.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Also I'm limited to .NET Standard 2.0 + PolySharp
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
It looks like this is actually a proposal, not a real existing C# feature.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Like if special case, do special implementation, else run the default method from the interface?
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Can the overriding methods refer back to the default methods?
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I think that would probably do it. I could just overload the default methods when needed.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Oh that might be nice
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I can post a link to the code
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
Um no. The IModel interface doesn't currently cover these dozen or so operations at all.
30 replies
CC#
Created by BenMcLean on 8/7/2024 in #help
OOP design pattern question
I hate smart phones and the Internet in general so much. I hate it all. Right now, I can't edit my question on my phone. I can get in to make my edit but the "Save" button is unresponsive. I think maybe the real solution is to join the Amish. My plow wouldn't do this crap to me.
30 replies
CC#
Created by SleepWellPupper on 7/26/2024 in #help
✅ Periodically (asynchronously) yielding in an otherwise synchronous method
OK I think I will need to both post a newly revised version of this one AND make one about what object oriented design pattern(s) my code should follow
42 replies
CC#
Created by SleepWellPupper on 7/26/2024 in #help
✅ Periodically (asynchronously) yielding in an otherwise synchronous method
Can we re-open this?
42 replies
CC#
Created by SleepWellPupper on 7/26/2024 in #help
✅ Periodically (asynchronously) yielding in an otherwise synchronous method
How's this done? I feel like I'm missing something in what you're saying.
42 replies