Nectar
Nectar
CC#
Created by Nectar on 6/24/2024 in #help
✅ how to write web.config for IIS deploy
ohhh got it, thank you
3 replies
CC#
Created by Nectar on 5/14/2024 in #help
Program to an Interface means in Head First Design Patterns book
thanks for answering. I think it's another meaning of program to interface, but it doesn't answer why the illustration questions the author's decision that clearly the author implements program to interface.
6 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
well, i will read those first. again, thank you!
14 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
I can't send it, I think because the request is disabled.
14 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
can i send you a friend request?
14 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
I'll take that as a reference, thank you very much!
14 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
Sorry, I have another question. My first question: after the changes you suggested, can my code still be called a factory method? because it changes the structure of the UML diagram. Second: what does initialization mean when you say my code implements abstract factory? After you mentioned abstract factory I tried to understand and compare the two, but it raised a third question. Third: can you give an example and explain when to use one over the other in an easy to understand sentence? Thank you very much and sorry for responding so late, I thought no one would respond.
14 replies
CC#
Created by Nectar on 5/4/2024 in #help
✅ Confused when try to implement Factory Method
thanks for the advice!
14 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
:Ok:
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
hmm understandable, thanks a lot!
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
before you said to use interfaces, does the interface already have an implementation? because what I know, now interfaces can have an implementation, or interfaces only with declarations?
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
interesting, but you're right, it might be a bit difficult to translate for EF to understand what's going on
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
sorry, I don't really understand, can you give an example?
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
cmiiw, can't abstract classes be instantiated?
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
what if there is a scenario where some derived classes will have some methods with the same implementation, but these methods are from some different abstract classes, but due to the single inheritance rule the derived classes cannot inherit from both the abstract classes. what solutions are available?
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
understandable. i have one question
11 replies
CC#
Created by Nectar on 3/9/2024 in #help
ELI5 : Abstract Class vs Interface
i think i can make them in one interface like this : interface IBase { int Id { get; set; } DateTime CreatedDate { get; set; } string CreatedBy { get; set; } } cmiiw, but that probably break the DRY principle, cuz they will have the same implementation on every models that inherited from it
11 replies