What are the advantages and disadvantages of the Properties Pattern?

后端 未结 3 1623
深忆病人
深忆病人 2021-02-08 09:43

Steve Yegge describes the Properties Pattern in a blog post of his.

For someone using a static language like C# or Java, what are the advantages and dis

3条回答
  •  暖寄归人
    2021-02-08 10:36

    For someone using Java, as I read the article, I'd say you can't use the Properties Pattern on any projects, because quote:

    Java offers essentially zero support for the Properties Pattern.

    Same would be true for C# for the same reasons. I felt a little comforted when I came to that statement, because I sure wasn't finding any way to fit them together.

    So I'm not sure I understand your question. But thanks for the link - upvote the question for that alone. Now I understand some things I halfway intuited a little better.

提交回复
热议问题