Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
cppcrypt.tumblr.com
Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
1–10 of 64 posts
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#2Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#3And so we end up with a huge pile of visitor code, and there is one or maybe two actual visitors.
When it would have been far easier to read and modify if it was just coded out normally.
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#4Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#5If you're like me and couldn't get past the first few slides because it's a terrible reading experience, go to the archive, which shows the whole thing in thumbnails. It makes it little better, even though the thumbnails are in reverse: https://cppcrypt.tumblr.com/archive
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#6If you're like me and couldn't get past the first few slides because it's a terrible reading experience, go to the archive, which shows the whole thing in thumbnails. It makes it little better, even though the thumbnails are in reverse: https://cppcrypt.tumblr.com/archive
This would definitely be better as a blog post than a dog post.
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#7Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#8The thing that annoys me most about this pattern is that people always miss the "there needs to be lots of things you want to perform on those thingies". And so we end up with a huge pile of visitor code, and there is one or maybe two actual visitors. When it would have been far easier to read and modify if it was just coded out normally.
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#9The thing that annoys me most about this pattern is that people always miss the "there needs to be lots of things you want to perform on those thingies". And so we end up with a huge pile of visitor code, and there is one or maybe two actual visitors. When it would have been far easier to read and modify if it was just coded out normally.
Nevertheless, for many problems, like compiler construction, I’ve never seen a pattern that matched the utility of the visitor (even outside of imperative and object-oriented patterns)
Re: Grim C++ Tales from the Crypt: The Visitor Pattern (2017)
#10I assume there is already a proposal out?