Re: [ljc] Visitor Pattern

From: user 8.
Sent on: Thursday, January 31, 2013 10:33 PM
Hello Abraham,

Thanks a lot for your suggestion. I will work on that.

I'd say that a good question would be "how you can add functionality without changing the code"? I think it's a win. The ability to do that means that you are not introducing bugs on existing code, you don't have maintenance costs associated to code which already works well. This sort of benefit does not apply always and everywhere, but when applies, it is a win!

But there's no free lunch in life: there's always a price to be paid...  and it is complexity in this case.
Things are complex until you understand them, or until you reorganize concepts inside your head and document them.
If you have people willing to read the documentation and explore what it evolves, they will ultimately understand what is going on, almost certainly.
So, I think that things remain complex/obscure only to people not willing to invest time/effort on them, for whatever reasons they have, which I definitely respect, by the way.

Cheers :)

Richard Gomes
http://rgomes.info

On 31/01/13 10:49, Abraham Marín Pérez wrote:
Hi Richard,

I like the idea of having a good explanation about the visitor pattern, because I must admit when I first heard about how to separate data structure from algorithm my reaction was "isn't that exactly the opposite of what we intend to do with OOP?" 

If you'd like to split I'd suggest two articles: the first one presenting the problem, ie the situation in which you need to separate data and code, and the second explaining the pattern as a solution.

Cheers,
Abraham

--
Abraham Marín Pérez

Twitter: @AbrahamMarin
LinkedIn: http://lnkd.in/TTHC8W

Sent from my iPhone

On 30 Jan 2013, at 20:41, Richard Gomes <[address removed]> wrote:

Truncated!
This message exceeded the Maximum Message Size set in Account Settings, so we have only downloaded the first few lines from the mail server.

Download the rest of the message.

Our Sponsors

  • Our Blog

    Read the latest news from the LJC

  • RecWorks Ltd

    Fixing Tech Recruitment using the Power of Community

  • jClarity

    Java/JVM Performance Analysis Tools & mentoring for Java related matters

  • LJC Aggrity

    Our LJC Aggrity site contains blog posts from our members

  • LJC Book Club

    Our Book club with book reviews from our members

  • Devoxx UK

    Java Community Conference, in collaboration with the LJC 12/13 Jun 14

  • SkillsMatter

    "Host, help organise, promote, film many of our meetings."

  • Hazelcast

    Hazelcast is the leader in operating in-memory computing.

  • Packt Publishing

    A publishing company specializing on specific technologies and solutions

  • Java.Net

    We are an official Java User Group recognised by Oracle's JUG program

  • JRebel

    Free 3 month J-Rebel license.

  • O'Reilly

    40% discount on printed books and 50% on e-books.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy