Search posts, tags, users, and pages
Matthias Bruns
Freelancer Backend & Technical Lead; Founder of Happy Ann
The Prototype pattern is a creational pattern that allows objects to be created from existing objects of the same class. This pattern is useful when creating objects is expensive or time-consuming, and you want to avoid unnecessary duplication of obj...
masood keshvari
Backend developer | Golang
Hi and thanks for sharing. I think bether to return Person struct in Clone() method instead of Interface. I saw many example that return interface. would you like to describe why return Interface?
masood keshvari
Backend developer | Golang
Hi and thanks for sharing. I think bether to return Person struct in Clone() method instead of Interface. I saw many example that return interface. would you like to describe why return Interface?